I am not sure why I am getting ClassCastException. It may be my local
setting and Geronimo is working fine. Any suggestion?
QueueSender producer = session.createSender(requestQueue);
Message msg = session.createTextMessage("...");
// If I comment out "setJMSReplyTo" method, message is sent OK
msg.setJMSReplyTo(replyQueue); // Gererating ClassCastException
producer.send(msg);
java.lang.ClassCastException: com.ibm.mq.connector.outbound.MQQueueProxy
cannot
be cast to com.ibm.mq.jms.MQQueue
at
com.ibm.mq.jms.MQJMSMessage.setHeaderFromMQMD(MQJMSMessage.java:899)
at
com.ibm.mq.jms.MQMessageProducer.sendInternal(MQMessageProducer.java:
1813)
at
com.ibm.mq.jms.MQMessageProducer.send(MQMessageProducer.java:1139)
at
com.ibm.mq.jms.MQMessageProducer.send(MQMessageProducer.java:1215)
at
com.ibm.mq.connector.outbound.MessageProducerWrapper.send(MessageProd
ucerWrapper.java:203)
sbyonge wrote:
>
> "2.1/20080722" build works a lot better. I can send messages now but I
> cannot set the reply queue. If I call
> TextMessage.setJMSReplyTo(replyQueue), I get the following error but this
> may be related to WMQ bug -
> http://www-1.ibm.com/support/docview.wss?rs=171&uid=swg1IZ13135. I'll
> download this patch and try again.
>
> 2008.07.22 13:58:09 MQJMS1016E an internal error has occurred. Please
> contact yo
> ur system administrator. Detail: java.lang.ClassCastException:
> com.ibm.mq.connec
> tor.outbound.MQQueueProxy cannot be cast to com.ibm.jms.JMSDestination
> javax.jms.JMSException: MQJMS1016: an internal error has occurred. Please
> contac
> t your system administrator. Detail: java.lang.ClassCastException:
> com.ibm.mq.co
> nnector.outbound.MQQueueProxy cannot be cast to com.ibm.jms.JMSDestination
> at
> com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironm
> ent.java:644)
> at
> com.ibm.mq.jms.MQMessageProducer.sendInternal(MQMessageProducer.java:
> 1779)
> at
> com.ibm.mq.jms.MQMessageProducer.send(MQMessageProducer.java:1139)
> at
> com.ibm.mq.jms.MQMessageProducer.send(MQMessageProducer.java:1215)
> at
> com.ibm.mq.connector.outbound.MessageProducerWrapper.send(MessageProd
> ucerWrapper.java:203)
>
>
>
> Kevan Miller wrote:
>>
>>
>> On Jul 21, 2008, at 6:27 PM, sbyonge wrote:
>>
>>>
>>> I am getting the same error. I downloaded from
>>> http://people.apache.org/builds/geronimo/server/binaries/2.1/20080721/geronimo-jetty6-javaee5-2.1.2-SNAPSHOT-bin.zip
>>>
>>> .
>>> Is this the right build? Maybe your fix is not included in this
>>> build and
>>> I'll try tomorrow. I could not try the build from trunk. There is no
>>> binary in 20080721 directory.
>>
>> Doesn't look like that build would have contained the fix. Try --
>> http://people.apache.org/builds/geronimo/server/binaries/2.1/20080722/
>>
>> --kevan
>>
>
>
--
View this message in context:
http://www.nabble.com/Cannot-deploy-wmq.jmsra.rar-%28WebSphere-MQ%29-tp17811963s134p18602593.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.