This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Queue is Sending TransactionRolledbackLocalException, even displayed Messages. why? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Queue is Sending TransactionRolledbackLocalException, even displayed Messages. why?" Watch "Queue is Sending TransactionRolledbackLocalException, even displayed Messages. why?" New topic
Author

Queue is Sending TransactionRolledbackLocalException, even displayed Messages. why?

Azrael Noor
Ranch Hand

Joined: Jul 29, 2010
Posts: 378


Please tell why it is showing this exception?






help


Regards
Azrael Noor
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9343
    
111

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.

[My Blog] [JavaRanch Journal]
Mike Zal
Ranch Hand

Joined: May 04, 2011
Posts: 144

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?


OCJP6, OCWCD5
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Queue is Sending TransactionRolledbackLocalException, even displayed Messages. why?
 
Similar Threads
Hibernate and Jboss
Transaction problem
Using Hibernate with jboss
Lazy instantiation/loading of EJB classes
Transaction not active error