java.lang.ClassCastException: Cannot narrow remote object kodo.persistence.jdbc.JPAConnectionFactory@87c04c1 to kodo.persistence.KodoEntityManagerFact

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by 666705, 1 year ago
Cannot narrow remote object kodo.persistence.jdbc.JPAConnectionFactory@87c04c1 to kodo.persistence.KodoEntityManagerFact
via Oracle Community by user10422382, 6 months ago
Cannot narrow remote object com.bea.netuix.application.manager.persistence.jdbc.PortalPresentationManager_4ekhk0_HomeImp l@11ef9a9 to com.bea.netuix.application.manager.persistence.PortalPresentationManagerHome
via Oracle Community by 666705, 1 year ago
Cannot narrow remote object weblogic.rmi.internal.BasicRemoteRef - hostID: '5337880647112897730S:127.0.0.1:[7001,7001,-1,-1,-1,-1,-1]:wl_server:examplesServer', oid: '302', channel: 'null' to com.titan.travelagent.TravelAgentRemote
via Oracle Community by 735220, 1 year ago
Cannot narrow remote object weblogic.rmi.internal.CollocatedRemoteRef - hostID: '2312115593058688131S:10.77.8.112:domain:myserver', oid: '589', channel: 'null' to mycompany.services.base.adminservice.AdminServiceHome
via Terracotta by fdourado, 1 year ago
Cannot narrow remote object [BaseRemoteObject] home: weblogic.ejb.container.internal.StatelessEJBHomeImpl@16fbbd4 to javax.ejb.EJBHome
via terracotta.org by Unknown author, 2 years ago
Cannot narrow remote object [BaseRemoteObject] home: weblogic.ejb.container.internal.StatelessEJBHomeImpl@16fbbd4 to javax.ejb.EJBHome
java.lang.ClassCastException: Cannot narrow remote object kodo.persistence.jdbc.JPAConnectionFactory@87c04c1 to kodo.persistence.KodoEntityManagerFact
at weblogic.corba.server.naming.ReferenceHelperImpl.narrow(ReferenceHelperImpl.java:206)
at weblogic.rmi.extensions.PortableRemoteObject.narrow(PortableRemoteObject.java:88)
at weblogic.iiop.PortableRemoteObjectDelegateImpl.narrow(PortableRemoteObjectDelegateImpl.java:32)
at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137)
at kodo.persistence.KodoPersistence.createEntityManagerFactory(KodoPersistence.java:242)
at com.lodh.dummy.jpa.JPA.initPersistence(JPA.java:50)
at com.lodh.dummy.ejb.session.DummyServicesBean.ejbCreate(DummyServicesBean.java:26)
at com.lodh.dummy.ejb.session.DummyServices_e0s58w_Impl.ejbCreate(DummyServices_e0s58w_Impl.java:150)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at weblogic.ejb.container.pool.StatelessSessionPool.createBean(StatelessSessionPool.java:172)
at weblogic.ejb.container.pool.StatelessSessionPool.getBean(StatelessSessionPool.java:104)
at weblogic.ejb.container.manager.StatelessManager.preInvoke(StatelessManager.java:143)
at weblogic.ejb.container.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:213)
at weblogic.ejb.container.internal.StatelessEJBObject.preInvoke(StatelessEJBObject.java:64)
at com.lodh.dummy.ejb.session.DummyServices_e0s58w_EOImpl.sayHello(DummyServices_e0s58w_EOImpl.java:41)
at com.lodh.dummy.ejb.session.DummyServices_e0s58w_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:517)
at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:224)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:407)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:403)
at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:56)
at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:934)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.