My Oracle Support Banner

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

Last updated on OCTOBER 29, 2019

Applies to:

Oracle WebLogic Server - Version 10.0 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: '5xxx' not found.: javax.ejb.NoSuchEntityException: [EJB:010140]Bean with primary key: '5xxx' not found.
at my.package.geralBusinessEntity.model.entityEJB.MyEJB_xus5qe__WebLogic_CMP_RDBMS.__WL_loadGroup0(MyEJB_xus5qe__WebLogic_CMP_RDBMS.java:2391)
at my.package.geralBusinessEntity.model.entityEJB.MyEJB_xus5qe__WebLogic_CMP_RDBMS.getIsDisponivel(MyEJB_xus5qe__WebLogic_CMP_RDBMS.java:494)
at my.package.geralBusinessEntity.model.entityEJB.MyEJB_xus5qe_ELOImpl.getIsDisponivel(MyEJB_xus5qe_ELOImpl.java:592)
at my.package.MyInfo.model.statelessEJB.MySMEJB.findTipos(MySMEJB.java:182)
at my.package.MyInfo.model.statelessEJB.MySM_4vm1vz_EOImpl.findTipos(MySM_4vm1vz_EOImpl.java:458)
at my.package.MyInfo.model.statelessEJB.MySM_4vm1vz_EOImpl_CBV.findTipos(Unknown Source)
at my.package.MyInfo.web.action.MyAction.mostrar(MyAction.java:145)
at my.package.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 my.package.geralRoot.web.action.ActionRoot.execute(ActionRoot.java:434)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at my.package.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

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.