Reputation: 91
TID: [-1] [] [2017-08-09 12:07:00,546] INFO {org.apache.axis2.engine.AxisEngine} - [MessageContext: logID=4cc6574b7acd53b2510b0e78661a4db2bff0d346d5081397] null {org.apache.axis2.engine.AxisEngine}
TID: [-1] [] [2017-08-09 12:07:00,546] ERROR {org.apache.synapse.core.axis2.AsyncCallback} - {org.apache.synapse.core.axis2.AsyncCallback}
java.lang.NullPointerException
at org.apache.axis2.transport.jms.JMSSender.sendOverJMS(JMSSender.java:224)
at org.apache.axis2.transport.jms.JMSSender.sendMessage(JMSSender.java:200)
at org.apache.axis2.transport.base.AbstractTransportSender.invoke(AbstractTransportSender.java:112)
at org.apache.axis2.engine.AxisEngine$TransportNonBlockingInvocationWorker.run(AxisEngine.java:626)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
TID: [-1] [] [2017-08-09 12:07:00,546] WARN {org.apache.synapse.core.axis2.AsyncCallback} - Executing fault handler due to exception encountered {org.apache.synapse.core.axis2.AsyncCallback}
followed this link "http://nandikajayawardana.blogspot.in/2015/03/configuring-ibm-mq-with-wso2-esb.html"
Note: able to receive messages from queue but not able to send to queue, giving Null Pointer Exception
Upvotes: 2
Views: 266
Reputation: 7983
The issue is because of the transport headers. Adding the following property before the endpoint would suffice:
<property action="remove" name="TRANSPORT_HEADERS" scope="axis2"/>
Upvotes: 1
Reputation: 91
added following propertys before send mediator it started wortking
<property name="OUT_ONLY" value="true"/>
<property name="FORCE_SC_ACCEPTED" scope="axis2" value="true"/>
<property name="JMS_IBM_PutApplType" scope="transport" type="INTEGER" value="2"/>
<property name="JMS_IBM_Encoding" scope="transport" type="INTEGER" value="785"/>
<property name="JMS_IBM_Character_Set" scope="transport" type="INTEGER" value="37"/>
<property name="JMS_IBM_MsgType" scope="transport" type="INTEGER" value="8"/>
<property action="remove" name="Accept-Encoding" scope="transport"/>
<property action="remove" name="Content-Length" scope="transport"/>
<property action="remove" name="User-Agent" scope="transport"/>
<property action="remove" name="JMS_REDELIVERED" scope="transport"/>
<property action="remove" name="JMS_DESTINATION" scope="transport"/>
<property action="remove" name="JMS_TYPE" scope="transport"/>
<property action="remove" name="JMS_REPLY_TO" scope="transport"/>
<property action="remove" name="Content-Type" scope="transport"/>
<send>
<endpoint key="gov:endpoint"/>
</send>
Upvotes: 1