ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » NullTraceAdapter ClassCastException with WASTraceAdapter

Post new topic  Reply to topic
 NullTraceAdapter ClassCastException with WASTraceAdapter « View previous topic :: View next topic » 
Author Message
steffi2
PostPosted: Sat Nov 14, 2009 6:16 am    Post subject: NullTraceAdapter ClassCastException with WASTraceAdapter Reply with quote

Apprentice

Joined: 04 Sep 2009
Posts: 31

So, we tried to enable trace logging with the JMS jar. The native java mq logging seems to work but when we tried it with the JMS layer we ended up getting a ClassCastException and it seems that NullTraceAdapter is not a WASTraceAdapter so why would it be written this way in the first place?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sat Nov 14, 2009 5:47 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

You should try to find out why you got a ClassCastException and check your Message either against the class you expect or keep it's handling to the more generic javax.jms.Message Iface.

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
steffi2
PostPosted: Wed Nov 18, 2009 4:43 am    Post subject: Reply with quote

Apprentice

Joined: 04 Sep 2009
Posts: 31

On this occasion the classcastexception is coming from within mqs jms jar
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Nov 18, 2009 7:08 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

steffi2 wrote:
On this occasion the classcastexception is coming from within mqs jms jar


Sure but why? Are you trying to access a BytesMessage as TextMessage?? (Even if it just to log some content)...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » NullTraceAdapter ClassCastException with WASTraceAdapter
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.