java.lang.ClassCastException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Remote EJB handle issues on a cluster
    via by 3004,
    • java.lang.ClassCastException: cannot assign instance of com.steleus.nsp.business.queryexec.ejb.NSPQueryExecution_hbnwvk_EOImpl_813_WLStub to field com.steleus.nsp.common.gui.controller.service.ListService.qeRemote of type com.steleus.nsp.business.queryexec.ejb.NSPQueryExecutionRemote in instance of com.steleus.nsp.common.gui.controller.service.ListService at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:108) at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:137) at weblogic.cluster.replication.ReplicationManager_813_WLStub.update(Unknown Source) at weblogic.cluster.replication.ReplicationManager.updateSecondary(ReplicationManager.java:811) at weblogic.servlet.internal.session.ReplicatedSessionData.syncSession(ReplicatedSessionData.java:490) at weblogic.servlet.internal.session.ReplicatedSessionContext.sync(ReplicatedSessionContext.java:184) at weblogic.servlet.internal.ServletRequestImpl.syncSession(ServletRequestImpl.java:2471) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3679) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178) Caused by: java.lang.ClassCastException: cannot assign instance of com.steleus.nsp.business.queryexec.ejb.NSPQueryExecution_hbnwvk_EOImpl_813_WLStub to field com.steleus.nsp.common.gui.controller.service.ListService.qeRemote of type com.steleus.nsp.business.queryexec.ejb.NSPQueryExecutionRemote in instance of com.steleus.nsp.common.gui.controller.service.ListService at java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(ObjectStreamClass.java:1885) at java.io.ObjectStreamClass.setObjFieldValues(ObjectStreamClass.java:1076) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1851) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324) at java.util.HashMap.readObject(HashMap.java:1006) at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:838) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1746) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324) at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:120) at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:117) at weblogic.cluster.replication.ReplicationManager_WLSkel.invoke(Unknown Source) at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:477) at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144) at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415) at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)

    Users with the same issue

    johnxfly
    54 times, last one,
    bpbhat77
    2 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    14 more bugmates