I am trying to execute the following command
MQConnectionFactory connFactory = new MQConnectionFactory();
and i get a null pointer that i can't seem to track down, i have attached the stack trace, any help would be greatly appreciated.
java.lang.NullPointerException at com.ibm.msg.client.jms.internal.JmsFactoryFactoryImpl.getInstance(JmsFactoryFactoryImpl.java:169) at com.ibm.msg.client.jms.admin.JmsConnectionFactoryImpl.setProviderFactory(JmsConnectionFactoryImpl.java:165) at com.ibm.mq.jms.MQConnectionFactory.(MQConnectionFactory.java:271) at com.foundation.agent.plugin.JMSClient.createConnection(JMSClient.java:154) at com.foundation.agent.plugin.JMSClient.launch(JMSClient.java:108) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597)
i am loading the class that calls the new MQConectionFactory()
using a class loader so i suspect that some jboss JMS lib possibly causing this.
more info:
- com.ibm.mq.runtime_7.0.1.0\lib
jars
- com.ibm.mq.headers.jar
- com.ibm.mqjms.jar
- jms.jar
- com.ibm.mq.jar
- connector.jar
- jta.jar
- com.ibm.mq.jmqi.jar
- dhbcore.jar
- providerutil.jar
- com.ibm.mq.pcf.jar
- fscontext.jar