classcastexception « weblogic « Java Enterprise Q&A





1. ClassCastException When Calling an EJB Remotely that Exists on Same Server    stackoverflow.com

I have 2 ejbs. Ejb-A that calls Ejb-B. They are not in the same Ear. For portability Ejb-B may or may not exist on the same server. (There is an external ...

2. java.lang.ClassCastException in WebLogic 10.3.3 after recompile    stackoverflow.com

While editing some code a developer noticed this error after a recompile in Weblogic 10.3.3. And the underlying object is a DimensionLabel. And we tried this in Weblogic 9.2 and ...

3. Weblogic ClassCastException    stackoverflow.com

I am getting the following exception from WebLogic console.

java.lang.ClassCastException: weblogic.xml.jaxp.RegistryDocumentBuilderFactory cannot be cast to oracle.xml.jaxp.JXDocumentBuilderFactory
I am using oracle.xml.jaxp.JXDocumentBuilderFactory inside my JCA adapter and when I invoke methods on JCA adapter connection, ...

4. weblogic ClassCastException when redeploy    stackoverflow.com

I was successfully running an web application on weblogic 10.3.2. But when I redeploy on console or hotdeploy (by changing the class in web-inf/classes), it throws the classcastexception like below.

 ...

6. classcastexception in our web app in weblogic 8.1 after 2 or 3 week of run    forums.oracle.com

We have an enterprise Web application (we use EJB also) running in weblogic 8.1 and jdk 1.4 . After 10 or 15 days our web application fails with this exception. com.my.api.MyAPIException: com.my.api.MyAPIException: at com.my.provider.dealer.TMDealerManager.getCPMSDealer(TMDealerManager.java:51) at com.my.offermanagement.webapp.action.InitSelfServeAction.perform(InitSelfServeAction.java:243) Caused by java.lang.ClassCastException at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:108) at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:290) at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:248) at com.my.eas.equipment.ejb.EquipmentHelper_wc9pab_EOImpl_816_WLStub.getCPMSDealerByKBDealerCode(Unknown Source) at sun.reflect.GeneratedMethodAccessor238.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.my.provider.EJBInvocationHandler.invoke0(EJBInvocationHandler.java:167) at com.my.provider.EJBInvocationHandler.invoke(EJBInvocationHandler.java:121) at $Proxy15.getCPMSDealerByKBDealerCode(Unknown ...