Entity Bean Cache Invalidation issue: javax.ejb.NoSuchObjectLocalException: [EJB:010140]Bean with primary @ key: (Doc ID 1278346.1)

Last updated on JUNE 09, 2016

Applies to:

Oracle Weblogic Server - Version: 10.0 and later   [Release: and later ]
Information in this document applies to any platform.

Symptoms

The issue involves the use of a one-to-many Department-Employee CMR. Creating a new  Employee and associating the new Employee object with an existing Department results in the Departments collection of Employees getting updated. When this Transaction is rolled  back while the Employee bean is discarded the Department bean is returned back to the cache with a reference to the rolled back Employee. The stack trace will be similar to the one below:
java.rmi.RemoteException: EJB Exception: ; nested exception is:
javax.ejb.NoSuchObjectLocalException: [EJB:010140]Bean with primary key: '562950117512678' not found.: javax.ejb.NoSuchEntityException: [EJB:010140]Bean with primary key: '562950117512678' not found.
at com.da.motion.geralBusinessEntity.model.entityEJB.ETesteArmazenamentoEJB_xus5qe__WebLogic_CMP_RDBMS.__WL_loadGroup0(ETesteArmazenamentoEJB_xus5qe__WebLogic_CMP_RDBMS.java:2391)
at com.da.motion.geralBusinessEntity.model.entityEJB.ETesteArmazenamentoEJB_xus5qe__WebLogic_CMP_RDBMS.getIsDisponivel(ETesteArmazenamentoEJB_xus5qe__WebLogic_CMP_RDBMS.java:494)
at com.da.motion.geralBusinessEntity.model.entityEJB.ETesteArmazenamentoEJB_xus5qe_ELOImpl.getIsDisponivel(ETesteArmazenamentoEJB_xus5qe_ELOImpl.java:592)
at com.da.motion.infoAdmEstrutArmz.model.statelessEJB.SManterTesteArmzEJB.findTipos(SManterTesteArmzEJB.java:182)
at com.da.motion.infoAdmEstrutArmz.model.statelessEJB.SManterTesteArmz_4vm1vz_EOImpl.findTipos(SManterTesteArmz_4vm1vz_EOImpl.java:458)
at com.da.motion.infoAdmEstrutArmz.model.statelessEJB.SManterTesteArmz_4vm1vz_EOImpl_CBV.findTipos(Unknown Source)
at com.da.motion.infoAdmEstrutArmz.web.action.TesteArmzModUnAction.mostrar(TesteArmzModUnAction.java:145)
at com.da.motion.geralRoot.web.action.ActionRoot.cleanup(ActionRoot.java:1200)
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 com.da.motion.geralRoot.web.action.ActionRoot.execute(ActionRoot.java:434)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at com.da.motion.geralComum.web.classe.MotionRequestProcessor.processActionPerform(MotionRequestProcessor.java:197)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

Changes

N/A.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms