SAP Knowledge Base Article - Preview

2519864 - MessageTransformBean is raising NullPointerException

Symptom

You are using Process Integration (PI) or Process Orchestration (PO) and you have added the MessageTransformBean Module to a Communication Channel module chain:

Module Processing.PNG

(in the example image above it is a SOAP Sender communication channel)

While processing a message through the above Communication Channel, the following error is being thrown:

Exception raised from invocation of public com.sap.aii.af.lib.mp.module.ModuleData com.sap.aii.af.modules.trans.MessageTransformBean.process

In the default traces or XPI Inspector traces the following error can be found:

Exception caught by adapter framework: 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@4e92448c 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)
...
Caused by: java.lang.NullPointerException: while trying to invoke the method java.lang.Object.getClass() of a null object loaded from local variable 'data'
at com.sap.aii.af.modules.trans.MessageTransformBean.process(MessageTransformBean.java:328)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:47)
... 91 more


Read more...

Environment

  • PI Release Independent
  • SAP NetWeaver
  • SAP Process Integration

Product

SAP NetWeaver 7.0 ; SAP NetWeaver 7.3 ; SAP NetWeaver 7.4 ; SAP NetWeaver 7.5 ; SAP NetWeaver Process Integration 7.1 ; SAP enhancement package 1 for SAP NetWeaver 7.0 ; SAP enhancement package 1 for SAP NetWeaver 7.3 ; SAP enhancement package 1 for SAP NetWeaver Process Integration 7.1 ; SAP enhancement package 2 for SAP NetWeaver 7.0 ; SAP enhancement package 3 for SAP NetWeaver 7.0

Keywords

CallSapAdapter, XISOAPAdapterBean, RESTAdapterBean, Module, NullPointerException, data, 005043, ModuleData, Process Integration 7.0, PI 7.0, PI 7.01, PI 7.02, Process Integration 7.10, PI 7.10, Process Integration 7.11, PI 7.11, Process Integration 7.30, PI 7.30, Process Integration 7.31, PI 7.31, Process Orchestration 7.40, PI 7.40, PO 7.40, Process Orchestration 7.50, PI 7.50, PO 7.50, NetWeaver, XI, Module, ModuleProcessor
, KBA , BC-XI-CON-AFW-MP , Module Processor , BC-XI-CON-AFW , J2EE Adapter Framework , BC-XI-CON-MSG , Messaging System , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.