on 04-03-2009 2:32 PM
i,
When I post a XI message via SAP PI 7.10 SP7 integration server to a J2SE adapter engine to a file adapter, then when I use mode "XMB2FILE" in the receiver file adapter configuration on the J2SE Adapter Engine then the XML file is delivered into the appropriate folder with the correct XML format and content (As expected). However when I change the mode to XMB2FILEWITHCONVERSION then message fails in the integration Engine on the PI server.
With:
<Trace level="2" type="T">Addressing mode: url</Trace>
<Trace level="3" type="T">Host = "HOST"</Trace>
<Trace level="3" type="T">Port = 8111</Trace>
<Trace level="3" type="T">Transport protocol = HTTP 1.0</Trace>
<Trace level="3" type="T">Message protocol =</Trace>
<Trace level="3" type="T">Path = /file/receiver?action=execute&pipelineid=Receiver</Trace>
<Trace level="2" type="T">Auth mode: basicNonSAP</Trace>
<Trace level="3" type="T">Conversion of language from char2 to char1</Trace>
<Trace level="3" type="T">User = rip</Trace>
<Trace level="3" type="T">Client =</Trace>
<Trace level="3" type="T">Language =</Trace>
<Trace level="3" type="T">Creating HTTP-client</Trace>
<Trace level="3" type="T">HTTP-client: creation finished</Trace>
<Trace level="3" type="T">Security: Basic authentication</Trace>
<Trace level="3" type="T">Serializing message object...</Trace>
<Trace level="3" type="T">HTTP-client: sending http-request...</Trace>
<Trace level="3" type="T">HTTP-client: request sent</Trace>
<Trace level="3" type="T">HTTP-client: Receiving http-response...</Trace>
<Trace level="3" type="T">HTTP-client: response received</Trace>
<Trace level="3" type="T">HTTP-client: checking status code...</Trace>
<Trace level="3" type="T">HTTP-client: status code = 500</Trace>
<Trace level="3" type="T">Deserializing message object...</Trace>
<Trace level="3" type="System_Error">Error while sending by HTTP (error code: 500, error text: Internal Server Error:java.lang.NullPointerException)</Trace>
</Trace>
</Trace>
<Trace level="3" type="System_Error">Error exception return from pipeline processing!</Trace>
<Trace level="1" type="T">Persist Message in Retry State</Trace>
A file is created in the target folder with no content and each time PI retries a new file is created.
If I look at the J2SE adapter trace file the following error is displayed:
Apr 3, 2009 3:05:03 PM ...i.messaging.adapter.XMB2FileProcessor [Thread[Thread-1145,5,main]] Error: Message processing failed with
java.lang.NullPointerException
at com.sap.aii.af.sdk.xi.adapter.Conversion.convertXML2Plain(Conversion.java:621)
at com.sap.aii.messaging.adapter.XMB2FileProcessor.persistFile(ModuleXMB2File.java:1658)
at com.sap.aii.messaging.adapter.XMB2FileProcessor.onMessage(ModuleXMB2File.java:1346)
at com.sap.aii.messaging.adapter.ModuleHttpServer$ListenerDetails.onMessage(ModuleHttpServer.java:448)
at com.sap.aii.af.sdk.xi.net.HTTPRequest.run(ServerHttpImpl.java:437)
Please can you assist in the resolution of this problem?
Regards
Willie Hugo
Apply SP 23 for J2SE Adpter Engine.
Stevan,
SAPXICONS23_0-20000271.SCA
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Stefan,
We applied SP23 (SAPXICONS23_0-20000271.SCA) for the J2SE Adapter Engine and that had solved the problem.
Thank you very much for your assistance.
Regards
Willie Hugo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Stefan,
Thanks again for the help. I will try this and let you know, but now late Friday South Africa and going home now. Probably do it on Monday. Enjoy your Weekend.
Regards
Willie Hugo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Stefan,
If this patch is to work, how do you deploy this patch to the Plain J2SE Adapter Engine?
Regards
Willie Hugo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Stefan,
Thank for the prompt reply. I am sending the XI message to a plain J2SE Adapter Engine. As I under stand the process, the XI message XML to flat file conversion will take place in the J2SE Adapter Engine in the File Adapter, configured there. If I under stand correctly we need to deploy a patch to the J2SE Adapter Engine and the note refers to XI 3.00 & 7.00, these Adapter Engines I can only assume is J2EE. Also the scenario described in the note is from csv to XML and not the required XML to CSV.
Please can you assist further?
Regards
Willie Hugo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The note refers to XI 3.0 SP20. Which version of the J2SE adapter do you have? I did not find another note, but the behavior is a bug and so there might be a bugfix in a current version.
So I recommend to patch the J2SE adapter engine and if this does not help to create on OSS ticket for this.
Regards
Stefan
Check SAP note 1051052
Maybe you install a patch for the adapter engine.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.