Fixes are available
APAR status
Closed as program error.
Error description
If a WebSphere MQ Version 7 Java Message Service (JMS) application uses a temporary destination to create an MQMessageProducer, MQQueueSender or MQTopicSubscriber and then calls either getDestination(), getQueue() or getTopic() (as appropriate), a ClassCastExeption will be thrown for the domain- specific methods. For the domain-independent methods, the class returned might cause ClassCastExceptions to be thrown later.
Local fix
Problem summary
**************************************************************** USERS AFFECTED: This issue affects affect WebSphere MQ Version 7 Java Message Service (JMS) applications that create a com.ibm.mq.jms.MQMessageProducer (or domain specific subclasses) for a com.ibm.mq.jms.MQTemporaryDestination (or a subclass), and then makes either a getDestination(), getQueue() or getTopic () call. Platforms affected: All Distributed (iSeries, all Unix and Windows) +Java **************************************************************** PROBLEM SUMMARY: When an MQTemporaryDestination is used as the destination to create an MQMessgeProducer, it is held internally as a JMSDestination implementation (a "Common Client" destination). On a getDestination() call, this is not turned back into an MQDestination when it is returned. In the case of getQueue() or getTopic() calls, the returned destination is cast to an MQQueue or MQTopic as appropriate before being returned and a ClassCastException is thrown because the class being returned is of the wrong type.
Problem conclusion
The getDestination(), getQueue() and getTopic() methods on MQMessageProducer, MQQueueSender and MQTopicPublisher respectively have been changed to recreate objects of the correct type rather than Common Client objects, allowing them to be cast correctly. --------------------------------------------------------------- The fix is targeted for delivery in the following PTFs: v7.0 Platform Fix Pack 7.0.0.1 -------- -------------------- Windows U200301 AIX U821414 HP-UX (PA-RISC) U820765 HP-UX (Itanium) U821296 Solaris (SPARC) U820766 Solaris (x86-64) U820880 iSeries tbc_p700_0_0_1 Linux (x86) U821407 Linux (x86-64) U821295 Linux (zSeries) U821294 Linux (Power) U820881 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
IC58382
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
2008-10-13
Closed date
2008-10-27
Last modified date
2009-03-10
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