on 09-23-2015 4:40 PM
Hi All,
I am developed new custom adapter module and I want it to be called after the execution standard module in File receiver channel.
But I am getting a Null pointer exception as it has lost the reference to ModuleData while the custom module is invoked.
*****Error message
Transmitting the message to endpoint <local> using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.lang.NullPointerException: while trying to invoke the method com.sap.engine.interfaces.messaging.api.Message.getMessageId() of a null object loaded from local variable msg
********
But When the same module is placed before standard "CallSapAdapter", it is getting executed successfully.
Could some please advise if we can call a custom module after standard Sap "CallSapAdapter" module.
Part code:
obj = inputModuleData.getPrincipalData();
msg = (Message)obj;
loc = Location.getLocation(getClass().getName());
this.trace = moduleContext.getContextData("trace");
this.key = new MessageKey(msg.getMessageId(), msg.getMessageDirection());
Getting error @this.key = new MessageKey(msg.getMessageId(), msg.getMessageDirection()); as msg object is null.
Hi,
What's ur requirement?
This is how adapter will behave if you call your custom module after the standard sap module.
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 Inthiyaz,
I am developed new custom adapter module and I want it to be called after the execution standard module in File receiver channel.
This is not possible unless your scenario is synchronous. Even then, it will be executed for the response message and not for the request. What is your requirement?
Regards,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.