Fixes are available
APAR status
Closed as program error.
Error description
A WebSphere MQ v7 JMS application receiving a message from a temporary queue or topic gets a ClassCastException similar to: java.lang.ClassCastException : com.ibm.msg.client.jms.internal.JmsTemporaryQueueImpl incompatible with com.ibm.mq.jms.MQQueue at com.ibm.mq.jms.MQQueueReceiver.getQueue(MQQueueReceiver.java:98) when calling getQueue() or getTopic() . ADDITIONAL KEYWORDS: JmsTemporaryQueueImpl
Local fix
Problem summary
**************************************************************** USERS AFFECTED: This issue affects users of the WebSphere MQ v7 JMS client calling MQQueueReceiver.getQueue(), MQQueueBrowser.getQueue() or MQTopicSubscriber.getTopic() when receiving a message from a temporary queue or topic. Platforms affected: All Distributed (iSeries, all Unix and Windows) +Java **************************************************************** PROBLEM SUMMARY: The problem occurred because the common client code held a JmsTemporaryQueue if the queue was a temporary one, and a JmsQueue if it was not. In the non-temporary case, the returned queue could be cast to an MQQueue; JmsTemporaryQueue did not inherit from MQQueue and so could not be cast correctly.
Problem conclusion
When one of the methods showing the problem obtains a temporary queue or topic from the common client code, this will be wrapped in a MQTemporaryQueue or MQTemporaryTopic wrapper class to ensure that the returned class type is correct. --------------------------------------------------------------- The fix is targeted for delivery in the following PTFs: v7.0 Platform Fix Pack 7.0.1.0 -------- -------------------- Windows U200306 AIX U823774 HP-UX (PA-RISC) U823665 HP-UX (Itanium) U823667 Solaris (SPARC) U823772 Solaris (x86-64) U824344 iSeries tbc_p700_0_1_0 Linux (x86) U823664 Linux (x86-64) U823773 Linux (zSeries) U823668 Linux (Power) U823666 The latest available maintenance can be obtained from 'WebSphere MQ Recommended Fixes' http://www-1.ibm.com/support/docview.wss?rs=171&uid=swg27006037 If the maintenance level is not yet available, information on its planned availability can be found in 'WebSphere MQ Planned Maintenance Release Dates' http://www-1.ibm.com/support/docview.wss?rs=171&uid=swg27006309 ---------------------------------------------------------------
Temporary fix
Comments
APAR Information
APAR number
IC60797
Reported component name
WMQ WINDOWS V7
Reported component ID
5724H7220
Reported release
700
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2009-04-16
Closed date
2009-04-30
Last modified date
2010-01-13
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
WMQ WINDOWS V7
Fixed component ID
5724H7220
Applicable component levels
R700 PSY
UP
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSDEZSF","label":"IBM WebSphere MQ Managed File Transfer for z\/OS"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]
Document Information
Modified date:
31 March 2023