My Oracle Support Banner

WLW 8.1 - LockTimedOutException when calling a stateful session bean method using EJB Control from a non-conversational web service (Doc ID 773683.1)

Last updated on FEBRUARY 18, 2020

Applies to:

Oracle Workshop for Weblogic - Version 9.1 and later
Information in this document applies to any platform.
Information in this document applies to any platform


Goal

DESCRIPTION;
Calling a stateful session bean method using the EJB Control from a non-conversational webservice method results in a
successful execution of the method, but throws the following error on the server window:

 <Error> <WLW> <000000> <Unable to remove bean instance:
weblogic.ejb20.locks.LockTimedOutException: [EJB:010107]The lock request from EJB:statefulSession with primary
key:<PK_VALUE> timed-out after waiting 500,000 ms. The transaction or thread requesting the lock
was:Thread[ExecuteThread: '9' for queue: 'weblogic.kernel.Default',5,Thread Group for Queue:
'weblogic.kernel.Default'].
        at weblogic.ejb20.locks.ExclusiveLockManager$LockBucket.lock(ExclusiveLockManager.java:533)
        at weblogic.ejb20.locks.ExclusiveLockManager.lock(ExclusiveLockManager.java:261)
        at weblogic.ejb20.manager.StatefulSessionManager.acquireLock(StatefulSessionManager.java:304)
        at weblogic.ejb20.manager.StatefulSessionManager.acquireLock(StatefulSessionManager.java:294)
        at weblogic.ejb20.manager.StatefulSessionManager.preInvoke(StatefulSessionManager.java:393)
        at weblogic.ejb20.manager.StatefulSessionManager.remove(StatefulSessionManager.java:936)
        at weblogic.ejb20.internal.StatefulEJBObject.remove(StatefulEJBObject.java:92)
        at <PACKAGE>.<IMPL_CLASS>.remove(<IMPL_CLASS>.java:127)
        at com.bea.wlw.runtime.core.control.SessionEJBControlImpl.releaseBeanInstance(SessionEJBControlImpl.jcs:165)
        at com.bea.wlw.runtime.core.control.EJBControlImpl.context_onRelease(EJBControlImpl.jcs:503)
        at com.bea.wlw.runtime.core.control.SessionEJBControlImpl.context_onRelease(SessionEJBControlImpl.jcs:84)
        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:324)
        at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:353)
        at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:420)
        at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:393)
        at com.bea.wlw.runtime.core.container.Invocable.fireEvent(Invocable.java:603)
        at com.bea.wlw.runtime.core.context.WlwThreadContext.sendEvent(WlwThreadContext.java:989)
        at com.bea.wlw.runtime.core.context.WlwThreadContext.raiseEvent(WlwThreadContext.java:919)
        at com.bea.wlw.runtime.core.container.Container.raiseContextEvent(Container.java:553)
        at com.bea.wlw.runtime.jcs.container.JcsContainer.onRelease(JcsContainer.java:520)
        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:324)
        at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:353)
        at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:420)
        at com.bea.wlw.runtime.core.container.Invocable.sendContextEvent(Invocable.java:524)
        at com.bea.wlw.runtime.jcs.container.JcsContainer.sendContextEvent(JcsContainer.java:464)
        at com.bea.wlw.runtime.core.context.WlwThreadContext.releaseResources(WlwThreadContext.java:700)
        at com.bea.wlw.runtime.core.container.Container.releaseTarget(Container.java:787)
        at com.bea.wlw.runtime.core.bean.SLSBContainerBean.invoke(SLSBContainerBean.java:117)
        at com.bea.wlwgen.CallStatefulEJBSLSBContImpl.testNoConv(CallStatefulEJBSLSBContImpl.java:30)
        at com.bea.wlwgen.StatelessContainer_6p2tcm_ELOImpl.testNoConv(StatelessContainer_6p2tcm_ELOImpl.java:99)
        at com.bea.wlwgen.CallStatefulEJBSLSBContAdpt.invokeOnBean(CallStatefulEJBSLSBContAdpt.java:56)
        at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.runAsInvoke(BaseDispatcherBean.java:160)
        at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.invoke(BaseDispatcherBean.java:54)
        at com.bea.wlw.runtime.core.bean.SyncDispatcherBean.invoke(SyncDispatcherBean.java:159)
        at com.bea.wlw.runtime.core.bean.SyncDispatcher_k1mrl8_EOImpl.invoke(SyncDispatcher_k1mrl8_EOImpl.java:100)
        at com.bea.wlw.runtime.core.dispatcher.Dispatcher.remoteDispatch(Dispatcher.java:134)
        at com.bea.wlw.runtime.core.dispatcher.Dispatcher.dispatch(Dispatcher.java:46)
        at com.bea.wlw.runtime.core.dispatcher.HttpServerHelper.exploreExec(HttpServerHelper.java:253)
        at com.bea.wlw.runtime.core.dispatcher.HttpServerHelper.executeGetRequest(HttpServerHelper.java:570)
        at com.bea.wlw.runtime.core.dispatcher.HttpServer.doGet(HttpServer.java:81)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
        at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
        at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6316)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
        at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622)
        at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
        at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
>

CONFIGURATION:
WLW 8.1

Solution

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
Goal
Solution

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