When does MQ throw the JMS Exception 'MQJMS1022: failed to redirect message' ?
Our application(running on JDK 1.5) is connected to MQ 7.5. While reading the message from MQ the following exception is thrown.
javax.jms.JMSException: MQJMS1022: failed to redirect message
at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironment.java:530)
at com.ibm.mq.jms.MQQueueReceiver.receiveAsync(MQQueueReceiver.java:734)
at com.ibm.mq.jms.SessionAsyncHelper.run(SessionAsyncHelper.java:269)
at java.lang.Thread.run(Thread.java:682)
There is no stack trace from our application code. Does anyone know what could be the reason. The MQ documentation is very poor and i couldn't find much info about the error.
It is a really good idea to also dump out the LinkedException. i.e.
catch (JMSException e)
{
System.err.println("getLinkedException()=" + e.getLinkedException());
System.err.println(e.getLocalizedMessage());
e.printStackTrace();
}
The LinkedException will contain the MQ Reason Code.