cancel
Showing results for 
Search instead for 
Did you mean: 

File sender channel throwing error as "Could not process due to error: java.lang.NullPointerException"

former_member399424
Participant
0 Kudos

Dear Experts,

We are observing some weird issue at some of the file sender channels & the error states as "Could not process due to error: java.lang.NullPointerException: while trying to get the length of an array loaded from local variable 'dirList'".

Up to yesterday every thing was working fine but from today morning we are facing the above issue & we have tried many possible options but still no success.

We came across the below thread where in you can see that it is mentioned as some Basis issue but we are not sure on it.

Appreciate your help in the regard.

Thanks,

Farooq

Accepted Solutions (1)

Accepted Solutions (1)

pvishnuvardan_reddy
Active Contributor

Hi Mohammed,

Also, can you check the below sap note:

1673907 - ERROR:while trying to get the length of an array loaded from local variable

former_member399424
Participant
0 Kudos

Hi Vishnu,

Thanks for your reply..

We are picking the files from PI app server i.e. we are using NFS.

When i try to download the above note i get a message as "Document is not released", so could you please copy the note content or at least let us know the recommended solution.

Regards,

Mohammed Farooq

former_member184720
Active Contributor
0 Kudos

Can you make sure that folder authorizations have not been changed?

If your OS is windows then, SAPService<SID>/ If it unix then <SID>adm user should have the access to read the files/ list the directories.

former_member399424
Participant
0 Kudos

Hi Hareesh,

Thanks for your reply...

As the application is running on windows OS, we have already asked the basis & the relevant team to verify the permission for the user SAPService<SID> and waiting for their response.

Thanks,

Mohammed Farooq

former_member184720
Active Contributor
0 Kudos

I suspect it's an issue with the permission as it was working earlier but not now.

If you want to collect addition traces meanwhile, make use of XPI inspector which should much give detailed information on this error.

pvishnuvardan_reddy
Active Contributor
former_member399424
Participant
0 Kudos

Hi Vishnu / Harish,

Many thanks for your replies..

Windows team confirmed that the user SAPService<SID> is already with full permission & than later after couple of hours the issue got resolved automatically & channels started working fine.

But still we are not sure what was the actual reason for the channel error & there was no any restart as well not even file service.

Any way thanks for your help.

Regards,

Mohammed Farooq

pvishnuvardan_reddy
Active Contributor
0 Kudos

Hi Farooq,

It's very weird that the issue has resolved with out involving any change.

From the error log, we could assume the root cause might be with the directory or the user trying to access it.

Is the directory present on the PI app server or any mounting has done onto PI from other systems so that you can access it locally(NFS protocol).

former_member399424
Participant
0 Kudos

Hi Vishnu,

Its a file system which is mounted on PI server..

Regards,

Mohammed Farooq

pvishnuvardan_reddy
Active Contributor
0 Kudos

Hi Farooq,

Since it is a mounted directory on to PI system, then root cause  might be with the mounting else with the user permission.

Can you pls close this thread as your query has been resolved.

Answers (1)

Answers (1)

pvishnuvardan_reddy
Active Contributor
0 Kudos

HI Mohammed,

Are yo trying to pick up file from PI local server or any FTP server.

If you are picking from the PI app server, then please make sure you are maintaining the absolute path in the comm channel for picking up the file.