Service Virtualization

Expand all | Collapse all MQJE001: Completion Code '2', Reason '2042'

Jump to Best Answer
  • 1. MQJE001: Completion Code '2', Reason '2042'

    Posted 08-24-2018 05:33 AM

    Hi I have created one Virtual service with RR pair using IBM MQ protocol, and I deployed the service  on the Lisa server. But after one refresh its getting stop automatically. I have checked the logs, its is giving "| Trapped Message: MQJE001: Completion Code '2', Reason '2042'." this error.

    Please help me in resolving this error. Is there something that we need to modify in Lisa.

  • 2.  Re: MQJE001: Completion Code '2', Reason '2042'
    Best Answer

    Posted 08-24-2018 06:38 AM

    It's probably not something that need to be changed in LISA/DevTest. Search Google for the error, and IBM support sites are listed, saying that the queue is already open and it's in exclusive mode, which means that something else is already subscribed to that queue, and the queue is configured to only have one client.

    IBM Knowledge Center 


    So ...

    Has something already opened the queue?

    Is the queue in exclusive mode?

    How are you going to make sure that your responses come from DevTest rather than the server application?


    You say that you created the virtual service from rr pairs. Was this because:

    1. The server application doesn't exist

       in which case, you will need to investigate what else is subscribed to the queue to force this error


    2. You needed to create a virtual service in a working environment but were unable/unwilling to use proxy queues

       Changing the queues is a standard part of deployment processes, to move from one test environment to another.


    In DevTest, we introduce the concept of "proxy queues". This is a convenient short-hand way of saying "create new queues, so we can open the queues in DevTest without having a server application also opening them and causing problems like exclusive opens or other applications consuming and deleting messages before we get a chance to take copies"



  • 3.  Re: MQJE001: Completion Code '2', Reason '2042'

    Posted 08-24-2018 06:45 AM

    Thanks for the quick help.