cancel
Showing results for 
Search instead for 
Did you mean: 

FTP Adapter : java.lang.NullPointerException

manish_bhalla2
Contributor
0 Kudos

Hi,

I am getting a java.lang.NullPointerException when I try to use the FTP Adapter.

The message monitor for the Adapter shows this:

2006-02-27 16:48:57 Success File adapter receiver channel OMAF_PO_FTPS_Rcvr: start processing: party " ", service "OMAF"

2006-02-27 16:48:57 Success Connect to FTP server "fintst", directory "/"

2006-02-27 16:49:59 Error Attempt to process file failed with java.lang.NullPointerException

2006-02-27 16:49:59 Error Exception caught by adapter framework: java.lang.NullPointerException

2006-02-27 16:49:59 Error Delivery of the message to the application using connection AFW failed, due to: java.lang.NullPointerException.

When I look at the J2EE logs, I don't see much more detail that might help me troubleshoot....

#1.5#001185B7A4A7007500000BAC00002DB400040DC9804C00C5#1141058999161#/Applications/ExchangeInfrastructure/AdapterFramework/Services/ADAPTER/ADMIN/File#sap.com/com.sap.aii.af.app#com.sap.aii.adapter.file.XI2File.onInternalMessage(XMBMessage, String, IGUID, String)#J2EE_GUEST#0#SAP J2EE Engine JTA Transaction : [011ffffffc6320045b]###16a1e690a7b111da8272001185b7a4a7#XI AF XI2File[/OMAF/OMAF_PO_FTPS_Rcvr]##0#0#Error#1#com.sap.aii.adapter.file.XI2File#Plain###File processing failed with java.lang.NullPointerException#

#1.5#001185B7A4A7007500000BAE00002DB400040DC9804C2276#1141058999161#/Applications/ExchangeInfrastructure/AdapterFramework/Services/ADAPTER/ADMIN/File#sap.com/com.sap.aii.af.app#com.sap.aii.adapter.file.XI2File.addAuditLog(PublicMessageKey, String, AuditLogStatus, String, String)#J2EE_GUEST#0#SAP J2EE Engine JTA Transaction : [011ffffffc6320045b]###16a1e690a7b111da8272001185b7a4a7#XI AF XI2File[/OMAF/OMAF_PO_FTPS_Rcvr]##0#0#Error#1#com.sap.aii.adapter.file.XI2File#Plain###FILE_ERR_211#

Now, given the message monitor output, I assume that the adapter was able to connect successfully to the target FTP server, and that the error is occuring during the writing of the file to the folder (or the conversion of the XML to flat file).

I have checked the conversion parameters. The exact same ones work if I use the comm protocol as File System rather than FTP.

Any ideas?

Thanks and Regards

Manish

Accepted Solutions (0)

Answers (1)

Answers (1)

thorsten_hautz
Participant
0 Kudos

Hi Manish,

have you tried to use "\" instead of "/"?

We had a similar error when we used "/" instead of "\" in the path.

Regards,

Thorsten

manish_bhalla2
Contributor
0 Kudos

Hi Thorsten,

I tried that. Unfortunately we are still getting the same NullPointerException.

Regards

Manish

Former Member
0 Kudos

Hi,

Have you set the read write and modify properties for your local ftp server for the corrosponding path, i mean i use guildftp for unit testing, and i need to specify these in the ftp server locally.

That may be a reason why you get this, as you donot specify the autorixation to read the folder under ftp root.

Also refer the file adapter faq: 821267 oss note

Regards,

Anirban.