Fixes are available
APAR status
Closed as program error.
Error description
A WebSphere MQ classes for JMS application was using the WebSphere MQ V6.0.2.1 classes for JMS to send JMS messages which had originated from non-WebSphere MQ JMS provider, which was working without fault. The WebSphere MQ classes for JMS was upgraded to version 6.0.2.9, and then when the JMS application attempted to send a message to the WebSphere MQ queue, it received the following 'ClassCastException' exception: java.lang.ClassCastException: progress.message.jimpl.Queue at com.ibm.mq.jms.MQJMSMessage.setHeaderFromMQMD(MQJMSMessage .java:985) at com.ibm.mq.jms.MQMessageProducer.sendInternal(MQMessagePro ducer.java:1813) at com.ibm.mq.jms.MQMessageProducer.send(MQMessageProducer.ja va:1139) at com.ibm.mq.jms.MQMessageProducer.send(MQMessageProducer.ja va:1215) and the message was not sent to the WebSphere MQ queue.
Local fix
Problem summary
**************************************************************** USERS AFFECTED: This problem affects users of WebSphere MQ V6 classes for JMS, who are sending messages to WebSphere MQ which have originated from a non-WebSphere MQ JMS provider, and the JMSReplyToQueue is populated with a non-WebSphere MQ formatted value. Platforms affected: All Distributed (iSeries, all Unix and Windows) +Java +Java zOS **************************************************************** PROBLEM SUMMARY: When the WebSphere MQ V6 classes for JMS sends a message to a WebSphere MQ queue, it attempts to populate the the fields of the WebSphere MQ message with values from the JMS message. One of these fields is the JMQReplyTo field, which provides JMS provider specific data about a JMS Destination. APAR IZ15279: http://www.ibm.com/support/docview.wss?uid=swg1IZ15279 introduced a code change which was included in WebSphere MQ v6.0.2.4 classes for JMS such that if the ReplyToQmgr name was not specified on the JMS message, the ReplyToQmgr name was populated with the local queue manager name when sending a message to the WebSphere MQ queue. This code change involved the casting of the JMSReplyTo field to a "MQQueue" object, which resulted in a ClassCastException if the JMSReplyTo field had not originated from the WebSphere MQ messaging provider, for example where JMS message had been consumed from a non-IBM JMS messaging provider before the attempt was made to send it to WebSphere MQ.
Problem conclusion
The WebSphere MQ classes for JMS has been changed to prevent the ClassCastException from occurring when a message does not have a WebSphere MQ compatible JMSReplyTo value. This permits the WebSphere MQ v6 classes for JMS to once again send messages to WebSphere MQ queues where the message has originated from a non-WebSphere MQ messaging provider. --------------------------------------------------------------- The fix is targeted for delivery in the following PTFs: v6.0 Platform Fix Pack 6.0.2.12 -------- -------------------- Windows U200331 AIX U842074 HP-UX (PA-RISC) U842208 HP-UX (Itanium) U842213 Solaris (SPARC) U842209 Solaris (x86-64) U842216 iSeries tbc_p600_0_2_12 Linux (x86) U842210 Linux (x86-64) U842215 Linux (zSeries) U842211 Linux (Power) U842212 Linux (s390x) U842214 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
IV14091
Reported component name
WMQ LIN X86 V6
Reported component ID
5724H7204
Reported release
602
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2012-01-25
Closed date
2012-04-29
Last modified date
2012-04-29
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 LIN X86 V6
Fixed component ID
5724H7204
Applicable component levels
R602 PSY
UP
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSFKSJ","label":"WebSphere MQ"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.0.2","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]
Document Information
Modified date:
31 March 2023