Im getting ClassCastException while invoking the EJB of its own module. This Exception is occuring only in the following case.
1) Application A has EJB E, invoking E from application A works perfectly.
2) Another Application B invokes EJB E of Application A, which is also works perfectly.
3) After performing the above case(Case 2) once again im trying to perform the case 1, which provides the ClassCastException for me.
Please help me to identify what may be the possible cause for this problem.
Note: There is no duplicate copy of Home class(which causes ClassCastException) in both Application A and B.
NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
This topic has been locked.
4 replies Latest Post - 2012-09-21T11:27:45Z by SandeepWilliams
Pinned topic ClassCastException for incompatible EJB stub.
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2012-09-21T11:27:45Z at 2012-09-21T11:27:45Z by SandeepWilliams
Kevan 0600009FFB121 Posts
Dilipscreen 060001VY9C2 PostsACCEPTED ANSWER
Re: ClassCastException for incompatible EJB stub.2009-09-18T07:14:58Z in response to KevanHi Kevan,
Please find the Exception details from SystemErr.log
9/17/09 16:33:40:567 YEKST0000004a SystemErr R java.lang.ClassCastException: org.omg.stub.javax.ejb._EJBHome_Stub incompatible with com.polaris.collateral.services.commonentity.CommonEntityServiceHome
9/17/09 16:33:40:580 YEKST0000004a SystemErr R at com.polaris.collateral.control.SMSDetails.getDate_MB(SMSDetails.java:902)
9/17/09 16:33:40:580 YEKST0000004a SystemErr R at com.polaris.collateral.control.SMSDetails.getSMSDetails(SMSDetails.java:756)
SandeepWilliams 2700029Y4P1 PostACCEPTED ANSWER
Re: ClassCastException for incompatible EJB stub.2012-09-21T11:27:45Z in response to DilipscreenHi I am also receiving the same problem. I have a created a listener and if listener receives more than one message some time it works and some time it gives error with message
R Exception com.nyl.agentadmin.bo._CaseSsbHome_Stub incompatible with com.nyl.agentadmin.bo.CaseSsbHome**
R Exception com.nyl.agentadmin.bo._ProcessSsbHome_Stub incompatible with com.nyl.agentadmin.bo.ProcessSsbHome**