cancel
Showing results for 
Search instead for 
Did you mean: 

Error: java.lang.NullPointerException

Former Member
0 Kudos

Hi,

In my File - RFC - File scenario (PI 7.1), i am facing the error in the communication channel

File processing failed with java.lang.NullPointerException

But in SXMB_MONI it the status shows Processed Successfully.

From File to RFc it displays all the details like Sender Namespace, Sender Interface, Receiver component etc.

RFC to File it doesn't display any details other than Message ID.

The following steps are executed in RFc to File message:

Inbound Message ( CENTRAL )

XML Validation Inbound Channel Response

Request Message Mapping

XML Validation Outbound Channel Response

these steps also contain the output file format in xml structure:

<?xml version="1.0" encoding="UTF-8" ?>

- <ns1:MT_LOTUSNOTES_UNIFORM_FILE_RESP xmlns:ns1="http://lotusnotes.uniform.com">

- <ITAB_OUT>

- <item>

<STR>20000000|3022|-10.25|09.11.2009|Testing 1111|</STR>

</item>

- <item>

<STR>20000000|3022|800.99|10.11.2009|Testing 22222|</STR>

</item>

- <item>

<STR>20000015|3022|200|09.11.2009|Testing 333333|</STR>

</item>

</ITAB_OUT>

</ns1:MT_LOTUSNOTES_UNIFORM_FILE_RESP>

pls let me know how to solve this error

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

First stop the channel in runtime workbench and then start it again.

-Tanaya.

Former Member
0 Kudos

Hi,

I tried stopping all the 3 communication channels and started it again, but still shows the error java.lang.NullPointerException

Former Member
0 Kudos

can anybody pls help me to solve this problem...

Edited by: jjma1706 on Dec 9, 2009 8:00 AM

Former Member
0 Kudos

could anyone help me to solve this error

Former Member
0 Kudos

Having the callstack for the NullPointerException would help ! Have you been able to find it somewhere ?

Chris

Former Member
0 Kudos

Hi Chris,

I was not able to find the CallStack. Where should i check for that.

I am getting the below messagees in Sender CC(File):

2009-12-15 07:46:00 Information Channel CC_LOTUSNOTES_UNIFORM_SND_FILE: Converted complete file content to XML format.

2009-12-15 07:46:00 Information Send text file "/home/ftp/home/ftpusr/test/in/20091109PYI_UNIFOR.txt", size 402, encoding ISO8859-1with QoS BE.

2009-12-15 07:46:00 Information MP: entering1

2009-12-15 07:46:00 Information MP: processing local module localejbs/AF_Modules/RequestResponseBean

2009-12-15 07:46:00 Information RRB: entering RequestResponseBean

2009-12-15 07:46:00 Information RRB: passing through ...

2009-12-15 07:46:00 Information RRB: leaving RequestResponseBean

2009-12-15 07:46:00 Information MP: processing local module localejbs/CallSapAdapter

2009-12-15 07:46:00 Information The application tries to send an XI message synchronously using connection File_http://sap.com/xi/XI/System.

2009-12-15 07:46:00 Information Trying to put the message into the call queue.

2009-12-15 07:46:00 Information Message successfully put into the queue.

2009-12-15 07:46:00 Information The message was successfully retrieved from the call queue.

2009-12-15 07:46:00 Information The message status was set to DLNG.

2009-12-15 07:46:00 Information The message was successfully received by the messaging system. Protocol: XI URL: http://sdnpi1.sap.spoolzgroupit:50800/MessagingSystem/receive/AFW/XI Credential (User): PIISUSER

2009-12-15 07:46:00 Information Using connection RFC_http://sap.com/xi/XI/System. Trying to put the message into the request queue.

2009-12-15 07:46:00 Information Message successfully put into the queue.

2009-12-15 07:46:00 Information The message was successfully retrieved from the request queue.

2009-12-15 07:46:00 Information The message status was set to DLNG.

2009-12-15 07:46:00 Information Delivering to channel: CC_LOTUSNOTES_UNIFORM_RCV_RFC

2009-12-15 07:46:00 Information MP: entering1

2009-12-15 07:46:00 Information MP: processing local module localejbs/RfcAFBean

2009-12-15 07:46:00 Information RfcAdapter received a synchronous message. Trying to send sRFC for Z_PI_LOTUSNOTES_UNIFORM.

2009-12-15 07:46:00 Information RfcAdapter received a synchronous message. Trying to send sRFC for J2EE_GUEST.

2009-12-15 07:46:00 Information MP: leaving

2009-12-15 07:46:00 Information The message was successfully delivered to the application using connection RFC_http://sap.com/xi/XI/System.

2009-12-15 07:46:00 Information The message status was set to DLVD.

2009-12-15 07:46:00 Information The application sent the message synchronously using connection File_http://sap.com/xi/XI/System. Returning to application.

2009-12-15 07:46:00 Information MP: processing local module localejbs/AF_Modules/ResponseOnewayBean

2009-12-15 07:46:00 Information The message was successfully transmitted to endpoint http://sdnpi1.sap.spoolzgroupit:50800/sap/xi/engine?type=entry using connection File_http://sap.com/xi/XI/System.

2009-12-15 07:46:00 Information The message status was set to DLVD.

2009-12-15 07:46:00 Information MP: leaving

2009-12-15 07:46:00 Error File processing failed with java.lang.NullPointerException

Former Member
0 Kudos

My error is not yet resolved... As displayed in my previous post i am not getting what the exact error is. the sender CC just displays

Error: java.lang.NullPointerException:

So i am not able to find what the exact error is? Pls guide me.

Former Member
0 Kudos

can anybody help me to solve this issue

Former Member
0 Kudos

Hi ,

could anybody please give some solutions to this error. i m not able to solve it.

I have a query. in the message mapping of File to RFC i have disabled some fields of RFC since it is not mandatory.

Is the problem b'cos of this. if so, i tried passing constant to this disabled fields and still the error exist.

Please help.

former_member187339
Active Contributor
0 Kudos

Hi,

>>file>RFC>File

Are you using BPM or responseonewasy bean??

See whether all configurations were done correctly or not.. Check these wiki page

http://wiki.sdn.sap.com/wiki/display/XI/FILETORFCTOFILEwithBPM

http://wiki.sdn.sap.com/wiki/display/XI/File-RFC-File(Without+BPM)

Regards

Suraj

Former Member
0 Kudos

Hi ,

I am doing it without BPM and refered the same link

http://wiki.sdn.sap.com/wiki/display/XI/File-RFC-File%28Without+BPM%29

I have given the following in Sender File CC

Processing sequence :

AF_Modules/RequestResponseBean

CallSapAdapter

AF_Modules/ResponseOnewayBean

Module Configuration

passThrough

receiverChannel

receiverService

Former Member
0 Kudos

Hi Suraj,

Can you help me solve this error.

former_member187339
Active Contributor
0 Kudos

Hi,

There seems to be some problem with the configuration of these two modules in your Communication channel. I will suggest you to try and play with the different parameters for these modules as give in help.sap

http://help.sap.com/saphelp_nwpi71/helpdata/EN/45/20c210c20a0732e10000000a155369/content.htm

http://help.sap.com/saphelp_nwpi71/helpdata/EN/45/20cc5dc2180733e10000000a155369/content.htm

PS: The wiki link may be showing some module and by specifying only those you may or may not get the result. So I will suggest you to check the above link and try to put some more parameters for the module's.

Regards

Suraj

Former Member
0 Kudos

Can you paste the full error over here?

Then it would be easier to get the solution for you.

-Tanaya.

Former Member
0 Kudos

Hi,

Please see the audit log

Audit Log for Message: 3c5fbcee-4b17-4afe-0ea5-a6064f47d377

Time Stamp Type Description

2009-12-08 07:18:21 Information Channel CC_LOTUSNOTES_UNIFORM_SND_FILE: Converted complete file content to XML format.

2009-12-08 07:18:21 Information Send text file "/home/ftp/home/ftpusr/test/in/20091109PYI_UNIFOR.txt", size 402, encoding ISO8859-1with QoS BE.

2009-12-08 07:18:21 Information MP: entering1

2009-12-08 07:18:21 Information MP: processing local module localejbs/AF_Modules/RequestResponseBean

2009-12-08 07:18:21 Information RRB: entering RequestResponseBean

2009-12-08 07:18:21 Information RRB: passing through ...

2009-12-08 07:18:21 Information RRB: leaving RequestResponseBean

2009-12-08 07:18:21 Information MP: processing local module localejbs/CallSapAdapter

2009-12-08 07:18:21 Information The application tries to send an XI message synchronously using connection File_http://sap.com/xi/XI/System.

2009-12-08 07:18:21 Information Trying to put the message into the call queue.

  • Page 1 / 4 *

Audit Log for Message: 3c5fbcee-4b17-4afe-0ea5-a6064f47d377

Time Stamp Type Description

2009-12-08 07:18:21 Information Message successfully put into the queue.

2009-12-08 07:18:21 Information The message was successfully retrieved from the call queue.

2009-12-08 07:18:21 Information The message status was set to DLNG.

2009-12-08 07:18:22 Information The message was successfully received by the messaging system. Protocol: XI URL: http://sdnpi1.sap.spoolzgroupit:50800/MessagingSystem/receive/AFW/XI Credential (User): PIISUSER

2009-12-08 07:18:22 Information Using connection RFC_http://sap.com/xi/XI/System. Trying to put the message into the request queue.

2009-12-08 07:18:22 Information Message successfully put into the queue.

2009-12-08 07:18:22 Information The message was successfully retrieved from the request queue.

2009-12-08 07:18:22 Information The message status was set to DLNG.

2009-12-08 07:18:22 Information Delivering to channel: CC_LOTUSNOTES_UNIFORM_RCV_RFC

2009-12-08 07:18:22 Information MP: entering1

  • Page 2 / 4 *

Audit Log for Message: 3c5fbcee-4b17-4afe-0ea5-a6064f47d377

Time Stamp Type Description

2009-12-08 07:18:22 Information MP: processing local module localejbs/RfcAFBean

2009-12-08 07:18:22 Information RfcAdapter received a synchronous message. Trying to send sRFC for Z_PI_LOTUSNOTES_UNIFORM.

2009-12-08 07:18:22 Information RfcAdapter received a synchronous message. Trying to send sRFC for J2EE_GUEST.

2009-12-08 07:18:22 Information MP: leaving

2009-12-08 07:18:22 Information The message was successfully delivered to the application using connection RFC_http://sap.com/xi/XI/System.

2009-12-08 07:18:22 Information The message status was set to DLVD.

2009-12-08 07:18:22 Information The application sent the message synchronously using connection File_http://sap.com/xi/XI/System. Returning to application.

2009-12-08 07:18:22 Information MP: processing local module localejbs/AF_Modules/ResponseOnewayBean

2009-12-08 07:18:22 Information The message was successfully transmitted to endpoint http://sdnpi1.sap.spoolzgroupit:50800/sap/xi/engine?type=entry using connection File_http://sap.com/xi/XI/System.

2009-12-08 07:18:22 Information The message status was set to DLVD.

  • Page 3 / 4 *

Audit Log for Message: 3c5fbcee-4b17-4afe-0ea5-a6064f47d377

Time Stamp Type Description

2009-12-08 07:18:22 Information MP: leaving

*2009-12-08 07:18:22 Error File processing failed with java.lang.NullPointerException: *

Page 4 / 4

Edited by: jjma1706 on Dec 8, 2009 9:05 AM

Former Member
0 Kudos

adapter engine (your file adapter) error will not reflect in moni, go to communication channel monitoring and check audit log of file communication channel.

Former Member
0 Kudos

it just shows

File processing failed with java.lang.NullPointerException

Former Member
0 Kudos

> File processing failed with java.lang.NullPointerException

One reason could be FCC at receiver side. How you have defined your FCC?

Former Member
0 Kudos

my output file record structure :

DT_out

itab_out 0.........1

item 0...... unbounded

STR 0........1

So i have given in the receiver FCC parameters as:

Record structure : item,ITAB_OUT

Content conversion parameters:

item.fieldFixedLengths 255

item.endSeparator 'nl'

ITAB_OUT.fieldFixedLengths 255

ITAB_OUT.endSeparator 'nl'

Former Member
0 Kudos

First of all it is case sensitive, so make sure to use same case as you used in your output record structure.

Secondly the order in your Record structure : item,ITAB_OUT is wrong. It shoud be itab_out,item.

Lastly, just remove " ITAB_OUT.fieldFixedLengths 255" from your FCC why because this is your parent node which don't require to have any fixed length.

So after doing above modification try again.

Regards,

Sarvesh

Former Member
0 Kudos

i have given the record structure as mentioned by you:

ITAB_OUT,item

But if i am removing 'ITAB_OUT.fieldSeparator' or 'ITAB_OUT.fieldFixedLengths' it was showing the following error in Receiver File CC

*Conversion initialization failed: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Parameter 'ITAB_OUT.fieldFixedLengths' or 'ITAB_OUT.fieldSeparator' is missing *

so i have added ITAB_OUT.fieldSeparator 'nl'

but still showing the same error Error: java.lang.NullPointerException

Former Member
0 Kudos

Any solutions / suggestions for my error?

Former Member
0 Kudos

Hi,

Just try this combination..

Record structure : ITAB_OUT,item

Content conversion parameters:
item.addHeaderLine     0
item.fieldFixedLengths 255
item.endSeparator 'nl'
ITAB_OUT.fieldSeparator 'nl'

Former Member
0 Kudos

it didnt help... getting the following error:

Error: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Channel has not been correctly initialized and cannot process messages

Former Member
0 Kudos

Hi Sarvesh,

Can you help me to sort out this error

Former Member
0 Kudos

Raised an OSS message for this, and SAP provided a patch. so the error message turned to a warning message.

Former Member
0 Kudos

Can you please share what SAP's solution? Was it a note or something else?

thx in adv

praveen

Former Member
0 Kudos

Hi,

Try to apply the Note 1261159 and the SAP_BASIS support level is atleast SAPKB71009.

Also check whether the receiver communication channel's module configuration is following the sequence:

1 AF_Modules/DynamicConfigurationBean Local Enterprise Bean 0

2 CallSapAdapter Local Enterprise Bean 1

If you wish, send me your mail address so that i send you the file received from SAP.

You can also look into the OSS message 54091 and look for com.sap.aii.adapter.file.svc.zip in the attachments. Ask your basis team to deploy this.