MQ

 View Only
  • 1.  MQ Client JMS Java Application Fails Intermittently

    Posted 22 days ago

    Dear All,

    I have a little JMS Java client application running on Windows 10. Our local IMB Client version is 9.3. What the client application is doing connect to Queue Manager, retrieve messages if there are any in the queue, then disconnect from the queue.
    The issue I have that when we set up a looper calling the application repeatedly, then from time to time, the application fails to connect to queue, but not fails all the time.
    The errors I am encountering are:

    1. LinkedException: JMSCMQ0001: IBM MQ call failed with compcode '2' ('MQCC_FAILED') reason '2397' ('MQRC_JSSE_ERROR').
    com.ibm.msg.client.jms.DetailedJMSException: JMSWMQ0018: Failed to connect to queue manager 'MQT501' with connection mode 'Client' and host name 'Client'.


    2. LinkedException: JMSCMQ0001: IBM MQ call failed with compcode '2' ('MQCC_FAILED') reason '2009' ('MQRC_CONNECTION_BROKEN').
    com.ibm.msg.client.jms.DetailedJMSException: JMSWMQ0018: Failed to connect to queue manager 'MQT501' with connection mode 'Client' and host name 'Client'.

    3. LinkedException: JMSCMQ0001: IBM MQ call failed with compcode '2' ('MQCC_FAILED') reason '2538' ('MQRC_HOST_NOT_AVAILABLE').
    com.ibm.msg.client.jms.DetailedIllegalStateException: JMSWMQ0018: Failed to connect to queue manager 'MQT501' with connection mode 'Client' and host name 'Client'.

    4. com.ibm.msg.client.jms.DetailedJMSException: JMSCMQ0002: The method 'MQBACK' failed.

    5. LinkedException: JMSCMQ0001: IBM MQ call failed with compcode '2' ('MQCC_FAILED') reason '2009' ('MQRC_CONNECTION_BROKEN').
    com.ibm.msg.client.jms.DetailedJMSException: JMSWMQ0018: Failed to connect to queue manager 'MQT501' with connection mode 'Client' and host name 'Client'.

    Could anybody provide some insight?

    Thanks so much in advance,

    Chen 



    ------------------------------
    Chen Zheng
    ------------------------------


  • 2.  RE: MQ Client JMS Java Application Fails Intermittently

    IBM Champion
    Posted 22 days ago
    You should check you are only doing the connect once.
    Doing
    Loop
       Call program
             connect
             get messages
            return

    is very inefficient ( if this was a client you would be doing a TLS handshake every time)
    It would be better
    connect
    loop
       call program
       get message
      return








  • 3.  RE: MQ Client JMS Java Application Fails Intermittently

    Posted 18 days ago

    If you show complete stack traces for the Exceptions, I may be able to help you. It may also be useful to share the content of any mqjms*.log file generated.



    ------------------------------
    Mark Bluemel
    Software Engineer
    IBM
    mbluemel@uk.ibm.com
    ------------------------------