Topic
  • 4 replies
  • Latest Post - ‏2012-09-21T11:27:45Z by SandeepWilliams
Dilipscreen
Dilipscreen
2 Posts

Pinned topic ClassCastException for incompatible EJB stub.

‏2009-09-17T10:00:32Z |
Hi,
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.
Updated on 2012-09-21T11:27:45Z at 2012-09-21T11:27:45Z by SandeepWilliams
  • Kevan
    Kevan
    121 Posts

    Re: ClassCastException for incompatible EJB stub.

    ‏2009-09-17T17:25:56Z  
    Can you post details about the ClassCastException? i.e. the class name + stacktrace?

    --kevan
  • Dilipscreen
    Dilipscreen
    2 Posts

    Re: ClassCastException for incompatible EJB stub.

    ‏2009-09-18T07:14:58Z  
    • Kevan
    • ‏2009-09-17T17:25:56Z
    Can you post details about the ClassCastException? i.e. the class name + stacktrace?

    --kevan
    Hi Kevan,

    Please find the Exception details from SystemErr.log

    9/17/09 16:33:40:567 YEKST 0000004a 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 YEKST 0000004a SystemErr R at com.polaris.collateral.control.SMSDetails.getDate_MB(SMSDetails.java:902)
    9/17/09 16:33:40:580 YEKST 0000004a SystemErr R at com.polaris.collateral.control.SMSDetails.getSMSDetails(SMSDetails.java:756)
  • SystemAdmin
    SystemAdmin
    2233 Posts

    Re: ClassCastException for incompatible EJB stub.

    ‏2009-09-21T03:29:33Z  
    Hi Kevan,

    Please find the Exception details from SystemErr.log

    9/17/09 16:33:40:567 YEKST 0000004a 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 YEKST 0000004a SystemErr R at com.polaris.collateral.control.SMSDetails.getDate_MB(SMSDetails.java:902)
    9/17/09 16:33:40:580 YEKST 0000004a SystemErr R at com.polaris.collateral.control.SMSDetails.getSMSDetails(SMSDetails.java:756)
    Can you upload a simple application that can reproduce your problem?
  • SandeepWilliams
    SandeepWilliams
    1 Post

    Re: ClassCastException for incompatible EJB stub.

    ‏2012-09-21T11:27:45Z  
    Hi 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**