File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Queue is Sending TransactionRolledbackLocalException, even displayed Messages. why?

 
Azrael Noor
Ranch Hand
Posts: 384
  • 0
  • 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: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • 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
  • 0
  • 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?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic