Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Exception when performing get on MQSeriesETD (4.5.3)

Exception when performing get on MQSeriesETD (4.5.3)

Exception when performing get on MQSeriesETD (4.5.3)

I'm using MQSeries natively on a queue that contains message groups flagged with a correlationid that indicates the receiver of the message.
When performing a getWithOptions, I end up with an Exception "MQJE001: Beendigungscode 2, Ursache 2033", when the queue has no matching messages.

Checking on getCurrentDepth() has no effect, as the queue almost always contains messages with different correlationids. But with an empty queue this works...

Event try'ing the get results in the same Exception message in the eway's stderr logfile. I'd like to test whether the queue has matching entries before performing a get, so I can be sure it will work without Exception.

I would appreciate any idea, the mqseries documentation itself didn't provide any useful hint...

Thanks in advance, Aki

The Queue "initialization" looks as follows:



This is the actual get:



RE: Exception when performing get on MQSeriesETD (4.5.3)

We had a similar problem of the exception being thrown when the queue is empty, to resolve the problem we did this:

catch(CollabConnException cce)
            if (!cce.getMessage().equals( "getWithOptions threw exception: MQRC_NO_MSG_AVAILABLE" ))
               EGate.collabFatal(">>> Caught CollabConnException that is not MQRC_NO_MSG_AVAILABLE.  About to re-throw the Exception");
               throw (cce);

YOu can probably catch your exception in much the same way and let the rule continue to run.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close