JMS with MQv6.0 - Websphere

This is a discussion on JMS with MQv6.0 - Websphere ; Hi, I am using the following code on WAS 5.1 with Websphere MQ v6.0: QueueConnectionFactory factory = (QueueConnectionFactory) getInitContext().lookup(connectionName); connection = factory.createQueueConnection(); session = connection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); However, the 2nd line (createQueueConnection) is giving the exception given below. Any help would ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: JMS with MQv6.0

  1. JMS with MQv6.0

    Hi,

    I am using the following code on WAS 5.1 with Websphere MQ v6.0:

    QueueConnectionFactory factory =
    (QueueConnectionFactory) getInitContext().lookup(connectionName);
    connection = factory.createQueueConnection();
    session = connection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);

    However, the 2nd line (createQueueConnection) is giving the exception given below.

    Any help would be much appreciated.

    java.lang.NoSuchFieldError: msgToken
    at com.ibm.mq.server.MQSESSION.init_conversion(Native Method)
    at com.ibm.mq.server.MQSESSION.(MQSESSION.java:248)
    at com.ibm.mq.MQSESSIONServer.getMQSESSION(MQSESSIONS erver.java:67)
    at com.ibm.mq.MQSESSION.getSession(MQSESSION.java:455 )
    at com.ibm.mq.MQManagedConnectionJ11.(MQManagedConnectionJ11.java:155)
    at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11._ createManagedConnection(MQBindingsManagedConnectio nFactoryJ11.java:153)
    at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11.c reateManagedConnection(MQBindingsManagedConnection FactoryJ11.java:189)
    at com.ibm.mq.StoredManagedConnection.(StoredManagedConnection.java:80)
    at com.ibm.mq.MQSimpleConnectionManager.allocateConne ction(MQSimpleConnectionManager.java:171)
    at com.ibm.mq.MQQueueManager.obtainBaseMQQueueManager (MQQueueManager.java:754)
    at com.ibm.mq.MQQueueManager.construct(MQQueueManager .java:688)
    at com.ibm.mq.MQQueueManager.(MQQueueManager.java:469)
    at com.ibm.mq.MQSPIQueueManager.(MQSPIQueueManager.java:52)
    at com.ibm.mq.jms.MQConnection.createQM(MQConnection. java:2200)
    at com.ibm.mq.jms.MQConnection.createQMNonXA(MQConnec tion.java:1701)
    at com.ibm.mq.jms.MQQueueConnection.(MQQueueConnection.java:144)
    at com.ibm.mq.jms.MQQueueConnection.(MQQueueConnection.java:54)
    at com.ibm.mq.jms.MQQueueConnectionFactory.createQueu eConnection(MQQueueConnectionFactory.java:106)
    at com.ibm.ssya.mq.p2p.QReceiver.setConnection(QRecei ver.java:192)
    at com.ibm.ssya.mq.p2p.QReceiverUI.connectionEntered( QReceiverUI.java:84)
    at com.ibm.ssya.mq.p2p.QReceiverUI.connEtoC1(QReceive rUI.java:121)
    at com.ibm.ssya.mq.p2p.QReceiverUI.access$1(QReceiver UI.java:115)
    at com.ibm.ssya.mq.p2p.QReceiverUI$IvjEventHandler.pr opertyChange(QReceiverUI.java:20)
    at java.beans.PropertyChangeSupport.firePropertyChang e(PropertyChangeSupport.java:265)
    at java.awt.Component.firePropertyChange(Component.ja va:6791)
    at com.ibm.ssya.mq.common.ConnectionPanel.setConnecti onEntered(ConnectionPanel.java:623)
    at com.ibm.ssya.mq.common.ConnectionPanel.setConnecti on(ConnectionPanel.java:605)
    at com.ibm.ssya.mq.common.ConnectionPanel.connEtoC1(C onnectionPanel.java:75)
    at com.ibm.ssya.mq.common.ConnectionPanel.access$1(Co nnectionPanel.java:70)
    at com.ibm.ssya.mq.common.ConnectionPanel$IvjEventHan dler.actionPerformed(ConnectionPanel.java:26)
    at java.awt.Button.processActionEvent(Button.java:411 )
    at java.awt.Button.processEvent(Button.java:379)
    at java.awt.Component.dispatchEventImpl(Component.jav a:3712)
    at java.awt.Component.dispatchEvent(Component.java:35 74)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java: 536)
    at java.awt.EventDispatchThread.pumpOneEventForHierar chy(EventDispatchThread.java:237)
    at java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThread.java:187)
    at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:181)
    at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:173)
    at java.awt.EventDispatchThread.run(EventDispatchThre ad.java:136)

    Thanks..

  2. Re: JMS with MQv6.0

    Hi,

    WMQ has been configured to use the "bindings" form of connection
    here.... i.e. it is directly connecting to the QueueManager rather than
    using a TCP/IP connection.

    To make this direct connection native libraries are used. This error
    would typically be seen when trying to use say WMQ v6 jar files with WMQ
    5.3 binaries.

    This would suggest a possible configuration problem. An alternative
    would be to use client connection rather than the bindings connection!

    mbw

    tejanb@hotmail.com wrote:
    > Hi,
    >
    > I am using the following code on WAS 5.1 with Websphere MQ v6.0:
    >
    > QueueConnectionFactory factory =
    > (QueueConnectionFactory) getInitContext().lookup(connectionName);
    > connection = factory.createQueueConnection();
    > session = connection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
    >
    > However, the 2nd line (createQueueConnection) is giving the exception given below.
    >
    > Any help would be much appreciated.
    >
    > java.lang.NoSuchFieldError: msgToken
    > at com.ibm.mq.server.MQSESSION.init_conversion(Native Method)
    > at com.ibm.mq.server.MQSESSION.(MQSESSION.java:248)
    > at com.ibm.mq.MQSESSIONServer.getMQSESSION(MQSESSIONS erver.java:67)
    > at com.ibm.mq.MQSESSION.getSession(MQSESSION.java:455 )
    > at com.ibm.mq.MQManagedConnectionJ11.(MQManagedConnectionJ11.java:155)
    > at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11._ createManagedConnection(MQBindingsManagedConnectio nFactoryJ11.java:153)
    > at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11.c reateManagedConnection(MQBindingsManagedConnection FactoryJ11.java:189)
    > at com.ibm.mq.StoredManagedConnection.(StoredManagedConnection.java:80)
    > at com.ibm.mq.MQSimpleConnectionManager.allocateConne ction(MQSimpleConnectionManager.java:171)
    > at com.ibm.mq.MQQueueManager.obtainBaseMQQueueManager (MQQueueManager.java:754)
    > at com.ibm.mq.MQQueueManager.construct(MQQueueManager .java:688)
    > at com.ibm.mq.MQQueueManager.(MQQueueManager.java:469)
    > at com.ibm.mq.MQSPIQueueManager.(MQSPIQueueManager.java:52)
    > at com.ibm.mq.jms.MQConnection.createQM(MQConnection. java:2200)
    > at com.ibm.mq.jms.MQConnection.createQMNonXA(MQConnec tion.java:1701)
    > at com.ibm.mq.jms.MQQueueConnection.(MQQueueConnection.java:144)
    > at com.ibm.mq.jms.MQQueueConnection.(MQQueueConnection.java:54)
    > at com.ibm.mq.jms.MQQueueConnectionFactory.createQueu eConnection(MQQueueConnectionFactory.java:106)
    > at com.ibm.ssya.mq.p2p.QReceiver.setConnection(QRecei ver.java:192)
    > at com.ibm.ssya.mq.p2p.QReceiverUI.connectionEntered( QReceiverUI.java:84)
    > at com.ibm.ssya.mq.p2p.QReceiverUI.connEtoC1(QReceive rUI.java:121)
    > at com.ibm.ssya.mq.p2p.QReceiverUI.access$1(QReceiver UI.java:115)
    > at com.ibm.ssya.mq.p2p.QReceiverUI$IvjEventHandler.pr opertyChange(QReceiverUI.java:20)
    > at java.beans.PropertyChangeSupport.firePropertyChang e(PropertyChangeSupport.java:265)
    > at java.awt.Component.firePropertyChange(Component.ja va:6791)
    > at com.ibm.ssya.mq.common.ConnectionPanel.setConnecti onEntered(ConnectionPanel.java:623)
    > at com.ibm.ssya.mq.common.ConnectionPanel.setConnecti on(ConnectionPanel.java:605)
    > at com.ibm.ssya.mq.common.ConnectionPanel.connEtoC1(C onnectionPanel.java:75)
    > at com.ibm.ssya.mq.common.ConnectionPanel.access$1(Co nnectionPanel.java:70)
    > at com.ibm.ssya.mq.common.ConnectionPanel$IvjEventHan dler.actionPerformed(ConnectionPanel.java:26)
    > at java.awt.Button.processActionEvent(Button.java:411 )
    > at java.awt.Button.processEvent(Button.java:379)
    > at java.awt.Component.dispatchEventImpl(Component.jav a:3712)
    > at java.awt.Component.dispatchEvent(Component.java:35 74)
    > at java.awt.EventQueue.dispatchEvent(EventQueue.java: 536)
    > at java.awt.EventDispatchThread.pumpOneEventForHierar chy(EventDispatchThread.java:237)
    > at java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThread.java:187)
    > at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:181)
    > at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:173)
    > at java.awt.EventDispatchThread.run(EventDispatchThre ad.java:136)
    >
    > Thanks..


+ Reply to Thread