Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Queue is Sending TransactionRolledbackLocalException, even displayed Messages. why?

 
Azrael Noor
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Please tell why it is showing this exception?






help
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like a classloader issue. If you have any jar files containing javax.jms.* classes in your deployed application packaging, then remove such jars from the deployed application.
 
Mike Zal
Ranch Hand
Posts: 144
Fedora Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Azrael Noor wrote:
java.lang.ClassCastException: org.jboss.mq.SpyMessage cannot be cast to javax.jms.TextMessage


It seems like the message type you are sending is not the same kind you expect to receive. What code is generating the messages?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic