Null Pointer Exception While Using a Transformation

The system throws a Null Pointer Exception when a message is being processed by a Channel that uses Transformation.

Transformation Error
        java.lang.NullPointerException
        at java.lang.String.<init>(Unknown Source)
        at com.ibi.hl7.HL7OutTransformer.transform(HL7OutTransformer.java:62)
        at com.ibi.hl7.HL7OutAdapter.process(HL7OutAdapter.java:170)
        at com.ibi.edaqm.XDAdaptersPreEmitter.transform(XDAdaptersPreEmitter.java:296)
        at com.ibi.edaqm.XDEmit.runListOfPreEmitters(XDEmit.java:682)
        at com.ibi.edaqm.XDEmit.preEmit(XDEmit.java:369)
        at com.ibi.edaqm.XDEmit.preEmit(XDEmit.java:247)
        at com.ibi.edaqm.XDFileEmit.emit(XDFileEmit.java:106)
        at com.ibi.edaqm.XDWorker.sendToAll(XDWorker.java:2761)
        at com.ibi.edaqm.XDWorker.sendToAll(XDWorker.java:2565)
        at com.ibi.edaqm.XDWorker.invokeAgent(XDWorker.java:1256)
        at com.ibi.edaqm.XDIWAFWorker.run(XDIWAFWorker.java:105)
        at java.lang.Thread.run(Unknown Source)

This error results when the messages being processed by the Transformation do not match with the Input message schema. A change in the HL7 Processing mode of the Listener from Full to Optimized, and vice versa, can also result in a change in the XML message structure, causing this error. It is recommended to save a copy of the XML-based message and ensure that it is as per the Input Schema.


iWay Software