cancel
Showing results for 
Search instead for 
Did you mean: 

NullPointerException: while trying to invoke the method java.lang.String.length() of a null object loaded from local variable 'str'

Former Member
0 Kudos

Dear Team,

This is basically FTP to FTPS scenario where at Receiver communication channel I'm facing below error:

Error when getting an FTP connection from connection pool: Unable to create a new pooled resource : NullPointerException while trying to invoke the method java.lang.String.length() of a null object loaded from local variable 'str'

PI fetches the text file from ECC application server and places into the target application folder wherein we face the error at receiver communication channel.

Please help. Many Thanks...!!

Regards,

Rajesh PS

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member

Looks like an issue while connecting to the target server.

Can you share screenshots of your channel configuration and the error?

Have you configured certificates correctly for FTPS?

Regards,

Gav

Former Member
0 Kudos

Hello Gavaksh,

Thanks for your reply.

Please find below error screenshot:

SSL certificates(TrustedCAs) are imported successfully and jar files are also added to os level successfully. Details: PI version 7.0 running on java 1.4.2

Former Member
0 Kudos

Are you using variable substitution in your channel?

Make sure the FTP server is added to your network firewall..

Former Member
0 Kudos

Hi Ramkumar,

No I'm not using any variable substitution in communication channel.

Will there be problem with java version. I'm using java 1.4.2.

Former Member
0 Kudos

Dear All,

Please provide your inputs.

Many Thanks...!!

Former Member
0 Kudos

can you share your channel configuration screenshot of each tab, parameters ,processing etc..

Former Member
0 Kudos

Hello Ram,

Please find below screenshots of receiver channel.

Former Member
0 Kudos

will there be any issue with Java version.

Currently it is running on Java web start 1.4.2.

Is it required to upgrade to 6 or 7 to avoid Null pointer exception errors.

Ryan-Crosby
Active Contributor
0 Kudos

Hi Rajesh,

Do you have any additional modules setup in the module configuration?  If those get saved out of order then you can sometimes get errors like this in the runtime.

Regards,

Ryan Crosby

Former Member
0 Kudos

Hello Rajesh,

Just to cross-check, have you imported the certificate in X.509 type and not in Binary type ?

Regards,

Souvik

former_member186851
Active Contributor
0 Kudos

Ryan,

Re-configure the channel and check once.

Former Member
0 Kudos

Hi souvik,

I didnt get you. But the certificates are impoted and also the jar files at XI qualitiy Database level.

So you are telling problem with the certificate. Could you please elaborate.

Former Member
0 Kudos

Hi Ryan,

No additional modules setup in the module configuration. Please help further.

Above screenshiot for the receiver channel configuration.

Former Member
0 Kudos

Hi Raghu,

You mean to say to newly create an receiver communication channel and reconfigure and add to scenario. This is basically FTP to FTPS scenario I'm facin below error in receiver communication channel.

NullPointerException: while trying to invoke the method java.lang.String.length() of a null object l...

Former Member
0 Kudos

Hello Rajesh,

Please note that certificates are in Binary or X.509 format.

from the screenshot of the receiver channel I can see that the transfer mode is Binary, however on the other hand you have also checked the checkbox for X.509 certificate. Here I can suggest you to uncheck that check box.

Regards,

Souvik

Former Member
0 Kudos

Dear All,

Please provide you inputs and kindly help me out on this error.

Many Thanks....!!