Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting error in my MDB

 
NitinMrt Agarwal
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Experts,

I am getting following error after deploying my MDB.

[3/16/09 9:43:11:560 SGT] 000000e9 ServerSession W WMSG0031E: Exception processing JMS Message for MDB ArchiveGMCDocMessageBean, JMSDestination jms/DoxterFrGmcStmtReq : javax.ejb.EJBException: See nested exception; nested exception is: java.lang.ClassCastException: com.juliusbaer.mdb.archive.ArchiveGMCDocMessageBean
java.lang.ClassCastException: com.juliusbaer.mdb.archive.ArchiveGMCDocMessageBean
at com.ibm.ejs.container.EJSHome.createBeanO(EJSHome.java:921)
at com.ibm.ejs.container.EJSHome.createBeanO(EJSHome.java:1030)
at com.ibm.ejs.container.activator.UncachedActivationStrategy.atActivate(UncachedActivationStrategy.java:84)
at com.ibm.ejs.container.activator.Activator.activateBean(Activator.java:597)
at com.ibm.ejs.container.EJSContainer.preInvokeActivate(EJSContainer.java:3525)
at com.ibm.ejs.container.EJSContainer.preInvoke(EJSContainer.java:2923)
at com.ibm.ejs.container.EJSContainer.preInvoke(EJSContainer.java:2851)
at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrapper.java:92)
at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrapper.java:132)
at com.ibm.ejs.jms.listener.ServerSession.run(ServerSession.java:481)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
javax.ejb.EJBException: See nested exception; nested exception is: java.lang.ClassCastException: com.juliusbaer.mdb.archive.ArchiveGMCDocMessageBean
at com.ibm.ejs.container.EJSHome.createBeanO(EJSHome.java:921)
at com.ibm.ejs.container.EJSHome.createBeanO(EJSHome.java:1030)
at com.ibm.ejs.container.activator.UncachedActivationStrategy.atActivate(UncachedActivationStrategy.java:84)
at com.ibm.ejs.container.activator.Activator.activateBean(Activator.java:597)
at com.ibm.ejs.container.EJSContainer.preInvokeActivate(EJSContainer.java:3525)
at com.ibm.ejs.container.EJSContainer.preInvoke(EJSContainer.java:2923)
at com.ibm.ejs.container.EJSContainer.preInvoke(EJSContainer.java:2851)
at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrapper.java:92)
at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrapper.java:132)
at com.ibm.ejs.jms.listener.ServerSession.run(ServerSession.java:481)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
Caused by: java.lang.ClassCastException: com.juliusbaer.mdb.archive.ArchiveGMCDocMessageBean
... 11 more

[3/16/09 9:43:11:587 SGT] 000000e9 ExceptionUtil E CNTR0019E: EJB threw an unexpected (non-declared) exception during invocation of method "onMessage". Exception data: java.rmi.RemoteException: com.juliusbaer.mdb.archive.ArchiveGMCDocMessageBean; nested exception is:
java.lang.ClassCastException: com.juliusbaer.mdb.archive.ArchiveGMCDocMessageBean
at com.ibm.ejs.container.EJSHome.createBeanO(EJSHome.java:925)
at com.ibm.ejs.container.EJSHome.createBeanO(EJSHome.java:1030)
at com.ibm.ejs.container.activator.UncachedActivationStrategy.atActivate(UncachedActivationStrategy.java:84)
at com.ibm.ejs.container.activator.Activator.activateBean(Activator.java:597)
at com.ibm.ejs.container.EJSContainer.preInvokeActivate(EJSContainer.java:3525)
at com.ibm.ejs.container.EJSContainer.preInvoke(EJSContainer.java:2923)
at com.ibm.ejs.container.EJSContainer.preInvoke(EJSContainer.java:2851)
at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrapper.java:92)
at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrapper.java:132)
at com.ibm.ejs.jms.listener.ServerSession.run(ServerSession.java:481)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
Caused by: java.lang.ClassCastException: com.juliusbaer.mdb.archive.ArchiveGMCDocMessageBean
at com.ibm.ejs.container.EJSHome.createBeanO(EJSHome.java:921)
... 10 more

[3/16/09 9:43:11:590 SGT] 000000e9 LocalTranCoor E WLTC0017E: Resources rolled back due to setRollbackOnly() being called.
[3/16/09 9:43:11:592 SGT] 000000e9 ServerSession W WMSG0031E: Exception processing JMS Message for MDB ArchiveGMCDocMessageBean, JMSDestination jms/DoxterFrGmcStmtReq : javax.ejb.EJBException: See nested exception; nested exception is: java.lang.ClassCastException: com.juliusbaer.mdb.archive.ArchiveGMCDocMessageBean
java.lang.ClassCastException: com.juliusbaer.mdb.archive.ArchiveGMCDocMessageBean
at com.ibm.ejs.container.EJSHome.createBeanO(EJSHome.java:921)
at com.ibm.ejs.container.EJSHome.createBeanO(EJSHome.java:1030)
at com.ibm.ejs.container.activator.UncachedActivationStrategy.atActivate(UncachedActivationStrategy.java:84)
at com.ibm.ejs.container.activator.Activator.activateBean(Activator.java:597)
at com.ibm.ejs.container.EJSContainer.preInvokeActivate(EJSContainer.java:3525)
at com.ibm.ejs.container.EJSContainer.preInvoke(EJSContainer.java:2923)
at com.ibm.ejs.container.EJSContainer.preInvoke(EJSContainer.java:2851)
at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrapper.java:92)
at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrapper.java:132)
at com.ibm.ejs.jms.listener.ServerSession.run(ServerSession.java:481)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
javax.ejb.EJBException: See nested exception; nested exception is: java.lang.ClassCastException: com.juliusbaer.mdb.archive.ArchiveGMCDocMessageBean
at com.ibm.ejs.container.EJSHome.createBeanO(EJSHome.java:921)
at com.ibm.ejs.container.EJSHome.createBeanO(EJSHome.java:1030)
at com.ibm.ejs.container.activator.UncachedActivationStrategy.atActivate(UncachedActivationStrategy.java:84)
at com.ibm.ejs.container.activator.Activator.activateBean(Activator.java:597)
at com.ibm.ejs.container.EJSContainer.preInvokeActivate(EJSContainer.java:3525)
at com.ibm.ejs.container.EJSContainer.preInvoke(EJSContainer.java:2923)
at com.ibm.ejs.container.EJSContainer.preInvoke(EJSContainer.java:2851)
at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrapper.java:92)
at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrapper.java:132)
at com.ibm.ejs.jms.listener.ServerSession.run(ServerSession.java:481)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
Caused by: java.lang.ClassCastException


Please help me out to relove the issue.

Thanks.
 
Amit Ghorpade
Bartender
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Nitin Mrt " welcome to Javaranch
please check your private messages for an important administrative matter. You can check them by clicking the My Private Messages link above.
 
Paul Pacheco
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting the exact same error with the same stack trace.

What did you do to fix it?
 
Jean Baro
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

I am facing the exact same issue.

Does any one have the answer for it?

Cheers
 
Ankush Khandekar
Greenhorn
Posts: 1
Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am facing the same issue.

Does any one have any solution for it?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic