MQ

MQ

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Facing 3155 Error with MQ client version 9.3

    Posted Wed March 12, 2025 10:13 AM

    Below are Error Details

    During execution of the specified method an exception was thrown by another component.
     
    See the linked exception for more information.
     
    IBM.XMS.XMSException: CWSMQ0006E: An exception was received during the call to the method wmgsubscriptionEngine.OpenOurablesubscription
     
    ( #3): CompCode: 2, Reason: 3155.
     
    During execution of the specified method an exception was thrown by another component.
     
    See the linked exception for more information.
     
    at IBM.XMS.Client.WMQ.MqV6Impl.WmqSubscriptionEngine.OpenDurableSubscription(wmqV6Sessions


    ------------------------------
    Sandeep Bongale
    ------------------------------


  • 2.  RE: Facing 3155 Error with MQ client version 9.3

    Posted Wed March 12, 2025 05:53 PM

    Hi Sandeep,

    MQ Reason code 3155 means MQRCCF_SUBSCRIPTION_IN_USE. This may be all you need to know but in case it doesn't help, remember that you can use IBM MQ administrative commands to see which durable subscriptions currently have an active connection associated with them, i.e. are "in use".

    You can issue MQSC commands like the ones below, with a tool such as runmqsc (or your favourite other MQSC tool if you have one).

    DISPLAY SBSTATUS('your-sub-name') ACTCONN

    Then using the value returned in the ACTCONN attribute, find the last 16 characters (substring starting at 33 for length 16) and issue this command

    DISPLAY CONN(last-part-of-actconn) ALL

    The APPLTAG attribute in this output will show you the application name, the USERID field will show you the user it is running under. If it is running over a network connection, the CHANNEL and CONNAME fields will also be relevant. If it is locally bound, the PID and TID will help to narrow it down to the actual process on the machine.

    Cheers,
    Morag



    ------------------------------
    Morag Hughson
    MQ Technical Education Specialist
    MQGem Software Limited
    Website: https://www.mqgem.com
    ------------------------------



  • 3.  RE: Facing 3155 Error with MQ client version 9.3

    Posted Mon March 17, 2025 02:36 AM
    HI ,
    I am using IBM 9.1.0.7 client and MQ server version is 9.3 this issue is started when IBM MQ server is updated to 9.3
    i am using .net application to connect the server 
    can you please provide details of sample code to how the MQ server id application gets restarted using the same channel.
    Currently it showing 3155 subscription is in use showing
    if change the channel name it get connect successfully.but existing client and it subscription remain there 
    Please suggest.
    Thanks
    Sandeep






  • 4.  RE: Facing 3155 Error with MQ client version 9.3

    Posted Mon March 17, 2025 05:40 AM

    Hi Sandeep,

    I don't know what sample code you want - it sounds like your problem is that there is already an instance of your application running using that subscription hence the MQRCCF_SUBSCRIPTION_IN_USE (3155). If that instance of the application is not supposed to be running, then perhaps you can stop it so that your instance can run instead.

    If it's not another instance of your application, then perhaps you need to make sure that your subscription names are unique for each application?

    Have you used the commands I suggested to discover where this extra instance of the application came from?

    I don't know why using a different channel name allowed your application to start - but perhaps the channel name forms part of your subscription name? Without seeing any of your output from the commands I suggested, I would have no way of knowing and could only guess.

    Cheers,
    Morag



    ------------------------------
    Morag Hughson
    MQ Technical Education Specialist
    MQGem Software Limited
    Website: https://www.mqgem.com
    ------------------------------



  • 5.  RE: Facing 3155 Error with MQ client version 9.3

    Posted Thu March 20, 2025 08:41 AM
    Hi Morag
    I am using IBM MQ client 9.1.0.7 and the server is having version 9.3 in my .net application. I have IBM.XMS dll to handle to code of create connection client subscription and etc but
    It shows 3155 subscriptions in use. As check in MQ  document there is no any separate reconnect method if subscription is already there.so why it is showing 315 error.

    Can you please arrange any .net developer who can help me out to check the issue.

    Thanks
    Sandeep





  • 6.  RE: Facing 3155 Error with MQ client version 9.3

    Posted Fri March 21, 2025 05:55 AM

    Hi Sandeep,

    Have you determined which application currently has your subscription in use? Your post here suggests you don't think that the subscription is in use - you ask how to reconnect to it. I believe you are getting reason code MQRCCF_SUBSCRIPTION_IN_USE (3155) because there is an application currently running that is connected to the subscription. When your instance of the application tries to connect to the subscription it is refused because it is not allowed to have more than one application connected to the subscription at a time.

    Please can you review my original answer and discover the application that currently has hold of your subscription.

    Your replies suggest you think that your application code can somehow be changed to allow you to reconnect to a subscription that is already being used by another application. What do you imagine should happen to the other application if this happened?

    Cheers,
    Morag



    ------------------------------
    Morag Hughson
    MQ Technical Education Specialist
    MQGem Software Limited
    Website: https://www.mqgem.com
    ------------------------------



  • 7.  RE: Facing 3155 Error with MQ client version 9.3

    Posted Fri March 21, 2025 08:07 AM
    HI Marag

    I am using Durable Subscription to connect. As i said before,It started After updating the MQ server with version 9.3.if suppose the the MQ server having maintenance activity or application is restarted at client side it should connect automatically with existing subscription as we existing subscription are there.but it won't connect.No other application using this subscriptions
    Please suggest 

    Thanks





  • 8.  RE: Facing 3155 Error with MQ client version 9.3

    Posted Thu March 20, 2025 08:43 AM

    Also I updated the MQ client to 9.3.0.17 but still having 3155 Subscription is in use issue.
    Thanks
    Sandeep





  • 9.  RE: Facing 3155 Error with MQ client version 9.3

    Posted Fri March 21, 2025 08:41 PM

    You've provided very little information for us to help you. 

    Did you do as Morag suggested, and determine the subscription ID and connection ID? 

    When you executed the application, did you look in the system log for errors?  Did you look in the errors directory for dumps, traces, or FFSTs?

    Use MQSC commands to display the subscription STATUS, and post the results here. 

    Use MQSC commands to display the connection STATUS, and post the results here.

    Use MQSC commands to display your queue manager attributes, and post the results here.

    ReasonCode MQRCCF_SUBSCRIPTION_IN_USE (3155) seems to suggest that the pub/sub engine could not complete putting the publication to the subscription.

    I'd suggest that you open a PMR with IBM for further diagnosis help.



    ------------------------------
    bruce2359
    Consultant/trainer
    CTTECH - Computer & Telecommunications Technology
    West Coast, almost
    000-000-0000
    ------------------------------