Topic
3 replies Latest Post - ‏2013-02-05T07:24:25Z by SystemAdmin
SystemAdmin
SystemAdmin
8523 Posts
ACCEPTED ANSWER

Pinned topic JMSException while creating JmsFactoryFactory.getInstance of WMQ_PROVIDER

‏2013-01-31T09:16:25Z |
I am running the program to send message to local queue of websphereMQ from webMethods. On webMethods using the jms.jar and com.ibm.mqjms.jar but getting JMSException while creating JmsFactoryFactory Instance of WMQ_PROVIDER i.e com.ibm.msg.client.wmq

Code:
final JmsFactoryFactory ff = JmsFactoryFactory.getInstance(WMQConstants.WMQ_PROVIDER);
final JmsConnectionFactory cf = ff.createConnectionFactory();

Can anyone tell me why it is failing to create JmsFactoryFactory Instance ?
Error Message:

Stack trace


Stack trace to show the location of the FFST call
| FFST Location :- java.lang.Exception
| at com.ibm.msg.client.commonservices.trace.Trace.getCurrentPosition(Trace.java:1671)
| at com.ibm.msg.client.commonservices.trace.Trace.createFFSTString(Trace.java:1610)
| at com.ibm.msg.client.commonservices.trace.Trace.ffstInternal(Trace.java:1494)
| at com.ibm.msg.client.commonservices.trace.Trace.ffst(Trace.java:1353)
| at com.ibm.msg.client.commonservices.nls.PINLSServices.createException(PINLSServices.java:115)
| at com.ibm.msg.client.commonservices.nls.NLSServices.createException(NLSServices.java:390)
| at com.ibm.msg.client.jms.internal.JmsErrorUtils.createException(JmsErrorUtils.java:104)
| at com.ibm.msg.client.jms.internal.JmsFactoryFactoryImpl.getInstance(JmsFactoryFactoryImpl.java:165)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

| connectionTypeName :- com.ibm.msg.client.wmq
| exception :- ExceptionDepth is 3
| exception :-
| | Cause:1 :- java.lang.reflect.InvocationTargetException
| | Cause:2 :- java.lang.NullPointerException
| | StackTrace:1 :- java.lang.reflect.InvocationTargetException
| | 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:585)
| | at com.ibm.msg.client.jms.JmsFactoryFactory.getInstance(JmsFactoryFactory.java:175)
| | at gxs.swift.websphereMQ.publishMessageToDestinationQueue(websphereMQ.java:98)
| wm.server.updates :- ;

WorkQueueMananger Contents


| Maintain ThreadPool size :- false
| Maximum ThreadPool size :- -1
| ThreadPool inactive timeout :- 0
| unavailable - :- com.ibm.msg.client.commonservices.CSIException: JMSCS0002

Runtime properties


| Available processors :- 2
| Free memory in bytes (now) :- 74323984
| Max memory in bytes :- 532742144
| Total memory in bytes (now) :- 271470592

Component Manager Contents


Common Services Components:
Messaging Provider Components:
javax.jms.JMSException
at com.ibm.msg.client.jms.JmsFactoryFactory.getInstance(JmsFactoryFactory.java:199)
at gxs.swift.websphereMQ.publishMessageToDestinationQueue(websphereMQ.java:98)
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:585)
at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:403)
at com.wm.app.b2b.server.invoke.InvokeManager.process(InvokeManager.java:631)
at com.wm.app.b2b.server.util.tspace.ReservationProcessor.process(ReservationProcessor.java:40)
at com.wm.app.b2b.server.invoke.StatisticsProcessor.process(StatisticsProcessor.java:44)
at com.wm.app.b2b.server.invoke.ServiceCompletionImpl.process(ServiceCompletionImpl.java:241)
at com.wm.app.b2b.server.invoke.ValidateProcessor.process(ValidateProcessor.java:51)
at com.wm.app.b2b.server.ACLManager.process(ACLManager.java:228)
at com.wm.app.b2b.server.invoke.DispatchProcessor.process(DispatchProcessor.java:30)
at com.wm.app.b2b.server.AuditLogManager.process(AuditLogManager.java:624)
at com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:536)
at com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:381)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:237)
at com.wm.app.b2b.server.comm.DefaultServerRequestHandler.handleMessage(DefaultServerRequestHandler.java:119)
at com.wm.app.b2b.server.HTTPMessageHandler.process(HTTPMessageHandler.java:151)
at com.wm.app.b2b.server.HTTPDispatch.handleRequest(HTTPDispatch.java:186)
at com.wm.app.b2b.server.Dispatch.run(Dispatch.java:327)
at com.wm.util.pool.PooledThread.run(PooledThread.java:118)
at java.lang.Thread.run(Thread.java:595)

Thanks,
Pradeep
Updated on 2013-02-05T07:24:25Z at 2013-02-05T07:24:25Z by SystemAdmin
  • mbw
    mbw
    50 Posts
    ACCEPTED ANSWER

    Re: JMSException while creating JmsFactoryFactory.getInstance of WMQ_PROVIDER

    ‏2013-02-01T10:03:53Z  in response to SystemAdmin
    Hello - it looks like you've included some information from an FFST file; could you include the whole header information please. Specifically the probe id, and the data please.

    Matthew B Whitehttp://about.me/matthewbwhite
    • SystemAdmin
      SystemAdmin
      8523 Posts
      ACCEPTED ANSWER

      Re: JMSException while creating JmsFactoryFactory.getInstance of WMQ_PROVIDER

      ‏2013-02-05T06:05:04Z  in response to mbw
      Hi Matt, Attaching the full header information.

      Regards,
      Pradeep M
      • SystemAdmin
        SystemAdmin
        8523 Posts
        ACCEPTED ANSWER

        Re: JMSException while creating JmsFactoryFactory.getInstance of WMQ_PROVIDER

        ‏2013-02-05T07:24:25Z  in response to SystemAdmin
        Hi,
        After adding all the ibm wmq jars to wM lib directory, I am able to publish the message from webMethods to WMQ.
        Thanks,
        Pradeep M