DX Application Performance Management

  • 1.  MQMonitor Fails with a 2012 MQRC_ENVIRONMENT_ERROR

    Posted Dec 11, 2014 03:15 PM

    I am running MQMonitor under zOS and I get this error (I x'ed out the domain and manager name). I can connect from my locals window (for testing) box but nor zOS.

     

    12/11/14 01:59:02 PM EST [WARN] [com.wily.powerpack.websphereMQ.agent.MQMonitor.trace.MQQMConnectionManager] MQQMConnectionManager.mqConnect(ConfigurationInstance, boolean) An MQException has occured. Reason Code: 2012 MQRC_ENVIRONMENT_ERROR while trying to connect to configuration instance xxxx|xxxxx.xxxx.***.xx.xx.***

    12/11/14 01:59:02 PM EST [DEBUG] [com.wily.powerpack.websphereMQ.agent.MQMonitor.trace.MQQMConnectionManager] MQQMConnectionManager.mqConnect(ConfigurationInstance, boolean) MQJE001: Completion Code '2', Reason '2012'.

    com.ibm.mq.MQException: MQJE001: Completion Code '2', Reason '2012'.

            at com.ibm.mq.MQSESSION.getConnectionRequestInfo(MQSESSION.java:2230)

            at com.ibm.mq.MQQueueManagerFactory.obtainBaseMQQueueManager(MQQueueManagerFactory.java:888)

            at com.ibm.mq.MQQueueManagerFactory.procure(MQQueueManagerFactory.java:780)

            at com.ibm.mq.MQQueueManagerFactory.constructQueueManager(MQQueueManagerFactory.java:729)

            at com.ibm.mq.MQQueueManagerFactory.createQueueManager(MQQueueManagerFactory.java:177)

            at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:745)

            at com.wily.powerpack.websphereMQ.agent.MQMonitor.trace.MQQMConnectionManager.mqConnect(MQQMConnectionManager.java:191)

            at com.wily.powerpack.websphereMQ.agent.MQMonitor.trace.MQQMConnectionManager.mqConnect(MQQMConnectionManager.java:92)

            at com.wily.powerpack.websphereMQ.agent.MQMonitor.events.MQEventTracer$QThread.run(MQEventTracer.java:324)

     

    I am running 9.1.5 and MQ 7.1 and java J6.0_64SR10. The error could be caused by a client vs bindings transport type but I am not sure where I would set that? Or some other issue??

     

    Thanks,

     

    Mike



  • 2.  Re: MQMonitor Fails with a 2012 MQRC_ENVIRONMENT_ERROR

    Posted Dec 11, 2014 07:32 PM

    Hi Mike,

    You are correct that this error could be caused due to use of Client mode vs binding mode but there is no way to configure MQ PP to use one vs. another.

    It will automatically determine which one to use, in this case I believe we need more details. It could be a configuration issue and\or problem with agent so I would recommend

    opening a support issue with us and attach following files

    -Debug MQMonitor Agent logs

    -Zip of properties folder under MQMonitor installation which contains config files for e.g MQMonitor.properties

    -4 digit version information for MQ Client jars used

     

    Regards,

    Kulbir

    CA Support.



  • 3.  Re: MQMonitor Fails with a 2012 MQRC_ENVIRONMENT_ERROR

    Posted Dec 17, 2014 03:47 PM

    Kulbir,

     

    I will open a ticket with CA.

     

    Thanks,

     

    Mike



  • 4.  Re: MQMonitor Fails with a 2012 MQRC_ENVIRONMENT_ERROR

    Posted Dec 12, 2014 04:15 PM

    Hi there,

     

    Sounds like an MQ issue to me. a quick google search finds me below:

    The issue is resolved and the reason is the environment variable QIBM_MULTI_THREADED was set to 'N' and it is supposed to be set to 'Y'.This is becuase the MQ Java and JMS are inherently multithreaded and they require the java runtime to be initialized to run multithreaded programs.

    or maybe

    export LD_LIBRARY_PATH=/opt/mqm/java/lib -- path to MQ's

     

    Hope it helps. If not, I'd check with ibm support along with apm's.

     

    Regards,

    James.



  • 5.  Re: MQMonitor Fails with a 2012 MQRC_ENVIRONMENT_ERROR

    Posted Dec 17, 2014 03:47 PM

    James,

     

    Yes, I found those on the 'net as well. Neither of those solutions worked.

     

    Thanks,

     

    Mike



  • 6.  Re: MQMonitor Fails with a 2012 MQRC_ENVIRONMENT_ERROR
    Best Answer

    Posted Jan 12, 2015 01:25 PM

    After discussing the issue with CA, it appears they do not support running the agent on zOS, only Unix and Windows. I have created an Idea for enhancing the current MQ agent to support running from zOS (as well as Windows and Unix). Please vote in this Idea.

     

    https://communities.ca.com/ideas/235718037

     

    Thanks,

     

    Mike