Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0-M1
-
Fix Version/s: 1.0
-
Labels:None
-
Environment:Websphere MQ 5.3, connectionFactory = com.ibm.mq.jms.MQQueueConnectionFactory; transportType = 1 (TCP/IP, thin java-only client)
-
Number of attachments :
Description
In JmsServiceExporter, following code means that JMSServiceExporter.onMessage can be called in another thread before super.afterProperties initializes the marshaller, leading to "MQJMS1034E MessageListener threw: java.lang.NullPointerException" error
...
// do we have a destination specified, if so consume
if (destination != null)
super.afterPropertiesSet();
}
Possible solution may be to call super.afterPropertiesSet() before calling consumer.setMessageListener(this), this seems to be where the thread is being created by Websphere MQ implementation