This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Getting class cast exception in JBOSS  RSS feed

 
karimkhan pathan
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ima getting a class cast exception when i try to cast javax.jms.objectmessage to my local interface.
the error trace is this ..
Exception in thread "Thread-172"
2008-10-30 05:00:07,132 ERROR [STDERR] java.lang.ClassCastException: com.tanlamobile.mms.dr.EAIFDRAdapter
2008-10-30 05:00:07,132 ERROR [STDERR] at com.tanlamobile.mms.dr.MerchantNotificationConsumerThread.onMessage(MerchantNotificationConsumerThread.java:38)

onMessage is just a method with a receiving a javax.jms.Message object from a message consumer.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!