on 01-07-2014 3:25 PM
Hi,
I am using localejbs/AF_Modules/MessageTransformBean module parameter in SOAP receiver adapter in order to transform XML to flat file
My source data Structure
<?xml version="1.0" encoding="UTF-8"?>
<ns0:File1 xmlns:ns0="urn:mt.com:PO31_Tests">
<Record>
<ID>12563</ID>
<Number>Hello</Number>
<Name>world</Name>
</Record>
</ns0:File1>
Target Side :
12563Helloworld
I am using following module parameter:
Processing Sequence :
1 sap.com/com.sap.aii.af.soapadapter/XISOAPAdapterBean Local Enterprise Bean soap
2 AF_Modules/MessageTransformBean Local Enterprise Bean XML2Plain
L2Plain |
| |
XML2Plain |
| text/plain;charset=utf-8 |
XML2Plain |
| SimpleXML2Plain |
XML2Plain |
| 0 |
XML2Plain |
| 5,5,5 |
XML2Plain |
| Cut |
Error Log :
MP: exception caught with cause javax.ejb.TransactionRolledbackLocalException: ASJ.ejb.005043 (Failed in component: sap.com/com.sap.aii.af.mod.trans.app, BC-XI-CON-AFW-MP) Exception raised from invocation of public com.sap.aii.af.lib.mp.module.ModuleData com.sap.aii.af.modules.trans.MessageTransformBean.process(com.sap.aii.af.lib.mp.module.ModuleContext,com.sap.aii.af.lib.mp.module.ModuleData) throws com.sap.aii.af.lib.mp.module.ModuleException method on bean instance com.sap.aii.af.modules.trans.MessageTransformBean@54ef6a0 for bean sap.com/com.sap.aii.af.mod.trans.app*xml|com.sap.aii.af.mod.trans.ejb.jar*xml|MessageTransformBean in application sap.com/com.sap.aii.af.mod.trans.app.; nested exception is: java.lang.NullPointerException: while trying to invoke the method java.lang.Object.getClass() of a null object loaded from local variable 'data'; nested exception is: javax.ejb.EJBException: ASJ.ejb.005043 (Failed in component: sap.com/com.sap.aii.af.mod.trans.app, BC-XI-CON-AFW-MP) Exception raised from invocation of public com.sap.aii.af.lib.mp.module.ModuleData com.sap.aii.af.modules.trans.MessageTransformBean.process(com.sap.aii.af.lib.mp.module.ModuleContext,com.sap.aii.af.lib.mp.module.ModuleData) throws com.sap.aii.af.lib.mp.module.ModuleException method on bean instance com.sap.aii.af.modules.trans.MessageTransformBean@54ef6a0 for bean sap.com/com.sap.aii.af.mod.trans.app*xml|com.sap.aii.af.mod.trans.ejb.jar*xml|MessageTransformBean in application sap.com/com.sap.aii.af.mod.trans.app.; nested exception is: java.lang.NullPointerException: while trying to invoke the method java.lang.Object.getClass() of a null object loaded from local variable 'data'; nested exception is: javax.ejb.EJBTransactionRolledbackException: ASJ.ejb.005043 (Failed in component: sap.com/com.sap.aii.af.mod.trans.app, BC-XI-CON-AFW-MP) Exception raised from invocation of public com.sap.aii.af.lib.mp.module.ModuleData com.sap.aii.af.modules.trans.MessageTransformBean.process(com.sap.aii.af.lib.mp.module.ModuleContext,com.sap.aii.af.lib.mp.module.ModuleData) throws com.sap.aii.af.lib.mp.module.ModuleException method on bean instance com.sap.aii.af.modules.trans.MessageTransformBean@54ef6a0 for bean sap.com/com.sap.aii.af.mod.trans.app*xml|com.sap.aii.af.mod.trans.ejb.jar*xml|MessageTransformBean in application sap.com/com.sap.aii.af.mod.trans.app.; nested exception is: java.lang.NullPointerException: while trying to invoke the method java.lang.Object.getClass() of a null object loaded from local variable 'data'; nested exception is: javax.ejb.EJBException: ASJ.ejb.005043 (Failed in component: sap.com/com.sap.aii.af.mod.trans.app, BC-XI-CON-AFW-MP) Exception raised from invocation of public com.sap.aii.af.lib.mp.module.ModuleData com.sap.aii.af.modules.trans.MessageTransformBean.process(com.sap.aii.af.lib.mp.module.ModuleContext,com.sap.aii.af.lib.mp.module.ModuleData) throws com.sap.aii.af.lib.mp.module.ModuleException method on bean instance com.sap.aii.af.modules.trans.MessageTransformBean@54ef6a0 for bean sap.com/com.sap.aii.af.mod.trans.app*xml|com.sap.aii.af.mod.trans.ejb.jar*xml|MessageTransformBean in application sap.com/com.sap.aii.af.mod.trans.app.; nested exception is: java.lang.NullPointerException: while trying to invoke the method java.lang.Object.getClass() of a null object loaded from local variable 'data'
SAP PO Version 7.31 SP05 single stack
Kind regards,
Amit Kumar
Hello,
It seems that ur module sequence is incorrect? Try putting MTB as ur first module and then check?
Thanks
Amit Srivastava
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Amit,
I have already tried that option before posting the thread but I am getting end target messages as it as without any transformation
Result Log version msg :
<ns0:File1 xmlns:ns0="urn:mt.com:PO31_Tests"><Record><ID>12563</ID><Number>Hello</Number><Name>world</Name></Record></ns0:File1>
Regards,
Amit
Hello,
>>but I am getting end target messages as it as without any transformation
Where are u checking this message in PI or in target application?
BTW, did u check the audit/message logs and find MTB module executed?
U cannot see transformed text message in PI, so u have to ask from ur target application whether they have received text or xml message?
Thanks
Amit Srivastava
Hi Amit
Check these examples of content conversion
Regards
Javi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.