IllegalStateException thread tries to release exclusive lock LockingManager

Hello,
I'm having this error,
java.lang.IllegalStateException: Illegal state: thread tries to release exclusive lock on ApplicationSession which it hasn't acquired! Details: LockingManager(ThreadID:89, threadName: HTTP Worker @1298613650, session lock: null, current request: company.com.pe/wd_hrsolmovpil_v1/Wdhrsolmovpilv1)
Any of my web dynpros, even the uwl doesn't work.
This happened after I tried to deploy project. Everything was working fine, but now ... I have this. I've restarted the server, but nothing happens.
Please, anyone knows how to solve this? Any ideas?
Regards
SU

Hello,
The problem was because the WAS has the parameter DefaultExpirationTime seted in -1 of all the Web Dynpros (sap.com/tcwddispwda). It only accepts positive values. I had to login through Telnet and execute the parameter,
add webdynpro
MANAGE_WD_APP_PROPS sap.com/tcwddispwda
Thanks & Regards
SU

Similar Messages

  • How to release an exclusive lock

    Hi,
    I don't know, how to release a lock, after locking exclusive.
    We're locking our BOPF Object like this:
    o_task_srv_mngr->retrieve(
            exporting
              iv_fill_data            = abap_false
              iv_node_key             =  /cenitapm/if_bo_pw_task_c=>sc_node-pwtsk  " Node
              it_key                  =   t_key  " Key Table
              iv_edit_mode            = /bobf/if_conf_c=>sc_edit_exclusive
            importing
              eo_message              = o_message
    Now how do I release the lock again?
    I know, It is released after a save of the transaction manager, but how do i achieve an unlocking without that save?
    Regards David

    After some investigation, I came to following result:
    Locks are released on commit or rollback.
    So if I want to release an exclusive lock, I have to rollback everything in the current session.
    After feeling limited by this design in the first place, I now think, this is a great way to secure my data integrity.
    I only want to release an exclusive lock if I don't want to save my data, or if I want to save it ;)
    I just have to ensure, all data not belonging to the actual transaction is saved before setting an exclusive lock to another object.
    So thumbs up for the designer of this concept.

  • Failed to acquire exclusive lock on client session - Webdynpro

    Anyone experience this below intermittent error on Webdynpro - e.g. Display Leave Summary functions ?  If user retry/revisit the same screen again. it will be working fine.
    Having some hard to to get thread dump at those short and intermittent moment.
    Any suggestions are welcome.
    Found this note below but doubt it will help at this moment.
    Web Dynpro error page, known error situations, error codes
    SAP Note Number: 1113811 
    NW/EP 7.0 SPS13
    #2#sap.com/pb/PageBuilder#com.sap.tc.webdynpro.services.session.LockException: Thread SAPEngine_Application_Thread[impl:3]_21 failed to acquire exclusive lock on client session ClientSession(id=(J2EE11441500)ID1662520351DB00529024001059157699End_1898143411). Existing locks: LockingManager(ThreadName:SAPEngine_Application_Thread[impl:3]_21, exclusive client session lock: ClientSessionLock(SAPEngine_Application_Thread[impl:3]_16), shared client session locks: ClientSessionSharedLockManager([]), app session locks: ApplicationSessionLockManager([]), current request: sap.com/pb/PageBuilder).Hint: Take a thread dump of the server node to find the blocking thread that causes the problem.
         at com.sap.tc.webdynpro.clientserver.session.ClientSession$LockingManager.lock(ClientSession.java:1511)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:233)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:150)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)

    Hi,
    Check this,
    ESS SC Import Problem
    Thanks and Regards,
    gopal.sattiraju

  • Failed to acquire exclusive lock on client session ClientSession

    HI all.
    when I login the Portal as a MSS role,I want to see about the data of employee(about 20000 employee).
    some page can't open succeed.The error:
    500   Internal Server Error
      SAP NetWeaver Application Server 7.00/Java AS 7.00 
    Failed to process request. Please contact your system administrator.
    Error Summary
    While processing the current request, an exception occured which could not be handled by the application or the framework.
    If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
    Root Cause
    The initial exception that caused the request to fail, was:
       com.sap.tc.webdynpro.services.session.LockException: Thread SAPEngine_Application_Thread[impl:3]_27 failed to acquire exclusive lock on client session ClientSession(id=(DSAPBPRD_DPP_01)ID2006199550DB11722229503911854949End_53412655). Existing locks: LockingManager(ThreadName:SAPEngine_Application_Thread[impl:3]_27, exclusive client session lock: ClientSessionLock(SAPEngine_Application_Thread[impl:3]_29), shared client session locks: ClientSessionSharedLockManager([]), app session locks: ApplicationSessionLockManager([]), current request: sap.com/pb/PageBuilder).Hint: Take a thread dump of the server node to find the blocking thread that causes the problem.
        at java.lang.Throwable.<init>(Throwable.java:56)
        at com.sap.exception.BaseException.<init>(BaseException.java:145)
        at com.sap.tc.webdynpro.services.exceptions.WDException.<init>(WDException.java:61)
        at com.sap.tc.webdynpro.services.exceptions.WDException.<init>(WDException.java:54)
        at com.sap.tc.webdynpro.clientserver.session.ClientSession$LockingManager.lock(ClientSession.java:1511)
        ... 20 more
    Edited by: cui joe on Jun 16, 2009 5:36 AM

    HI,thanks very much.
    Because our data is very huge,so some leader login the system will get the error.I check the st22,It realy found the error:
    Time limit exceeded.
    The program "SAPLRHDB" has exceeded the maximum permitted runtime without
    interruption and has therefore been terminated.
    If I should increase the system profile parameter "rdisp/max_wprun_time"?
    Can else I should turn other parameter?

  • Error: the database could not be exclusively locked to perform the operation in sql server 2008 ?

    I am trying to rename the database but i am getting below exception while doing it-->
    Error: the database could not be exclusively locked to perform the operation.(Microsoft Sql Server,Error 5030)
    Thanks.

    as mentioned earlier by both these users just wait for all the connections to go and then try- it will succed
    or else if it is dev\Uat environment & you can kill the conenctions - make the changes (use this as last option)
    i was just wondering if you are connected to the same DB? If yes change your context to master(means connect to master DB ) and then issue this command.
    Sarabpreet Singh Anand
    Blog ,
    Personal website
    This posting is provided , "AS IS" with no warranties, and confers no rights.
    Please remember to click "Mark as Answer" and "Vote as Helpful" on posts that help you. This can be beneficial to other community members reading the thread.

  • What happens if the exception occurs in a thread when it has a lock

    what happens if the exception occurs in a thread when it has a lock
    on object. Is the lock released ?

    Rastogha wrote:
    ok so lock is released if we are putting code in try-catch block. . right ?
    1) But suppose what abt runtime exceptions which i am not catching. It doesn't matter what kind of exception it is. The lock is released when control is transferred outside the sync block.
    2)Also the thread will be suspended in both the cases or not ( both cases mean for runtime exception and checked exception)Again, the kind of exception doesn't matter. Whether you're in a sync block or not doesn't matter: When an exception occurs, control transfers to the nearest catch block that can handle it. If you don't provide a handler for it, the thread terminates.
    If something is not clear, post code that shows the specific situations you're curious about. Make sure you use the CODE button or [code] and [/code] tags.

  • Kill a session and release all locks immediatly

    Hi,
    How to kill a session and release all locks immediately.
    Thank you
    AK

    > Actually I am working on development envrionment (Not
    production) with oracle 10g DB. What heppened is that
    I needed to replace a stored DB Package, but I
    couldn't even when I am the only connected user.
    A read lock is placed on data dictionary objects when used - that prevents someone else from changing that data dictionary object and in effect pull the carpet from beneath the feet of the process using that object.
    When trying to replace a package, it will fail if another session is busy using that package.
    As for being the only user on the database and still running into this problem - there could have been a DBMS_JOB executing that package.
    > I killed all sessions, and even next day still the
    locks are there from a session I killed 1 day
    before!
    Unusual. But a killed session can take 24+ hours to rollback. A rollback is often a lot more time consuming than the elapsed run-time of the session at the time it was killed.
    Back with Oracle 8i and prior, it was not uncommon to see a killed session lingering forever until the instance was bounced. But I have not yet seen this in 10G.
    Suggest that when you run into this situation again, you monitor the killed session to determine just what it is doing (looking at its current wait states and events) - and whether it is indeed hanging and not releasing any locks that should have been released.

  • Self tuning threads are not releasing even though server running fine.

    One of the cluster instance is running fine and serving the requests with good response but there self tuning threads are not releasing .I am not seeing any stuck threads in logs and no errors. why threads are not releasing.How we can troubleshoot this issue. May I know what are the cause of this.

    Arun thanks for your quick response
    Here is the threads details
    Active Execute Threads 192     
    Execute Thread Total Count 222
    ExecuteThreadIdleCount 190     
    QueueLength 0
    PendingUserRequestCount 0
    completed request count 36659285
    HoggingThreadCount     1     
    StandbyThreadCount 30     
    Throughput 7.5     
    More number of threads are waiting for lock
    Here is the sample thread dump.
    "[ACTIVE] ExecuteThread: '218' for queue: 'weblogic.kernel.Default (self-tuning)'" waiting for lock weblogic.work.ExecuteThread@faf757 WAITING
         java.lang.Object.wait(Native Method)
         java.lang.Object.wait(Object.java:474)
         weblogic.work.ExecuteThread.waitForRequest(ExecuteThread.java:156)
         weblogic.work.ExecuteThread.run(ExecuteThread.java:177)
    "[ACTIVE] ExecuteThread: '217' for queue: 'weblogic.kernel.Default (self-tuning)'" waiting for lock weblogic.work.ExecuteThread@12c34ef WAITING
         java.lang.Object.wait(Native Method)
         java.lang.Object.wait(Object.java:474)
         weblogic.work.ExecuteThread.waitForRequest(ExecuteThread.java:156)
    some threads are blocked
    ExecuteThread: '9' for queue: 'weblogic.socket.Muxer'" waiting for lock java.lang.String@1f39d37 BLOCKED
         weblogic.socket.DevPollSocketMuxer.processSockets(DevPollSocketMuxer.java:93)
         weblogic.socket.SocketReaderRequest.run(SocketReaderRequest.java:29)
         weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:42)
         weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
         weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
    "ExecuteThread: '8' for queue: 'weblogic.socket.Muxer'" waiting for lock java.lang.String@1f39d37 BLOCKED
         weblogic.socket.DevPollSocketMuxer.processSockets(DevPollSocketMuxer.java:93)
         weblogic.socket.SocketReaderRequest.run(SocketReaderRequest.java:29)
         weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:42)
         weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
         weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
         weblogic.work.ExecuteThread.run(ExecuteThread.java:177)
    "[STANDBY] ExecuteThread: '11' for queue: 'weblogic.kernel.Default (self-tuning)'" waiting for lock weblogic.work.ExecuteThread@1bd18aa WAITING
         java.lang.Object.wait(Native Method)
         java.lang.Object.wait(Object.java:474)
         weblogic.work.ExecuteThread.waitForRequest(ExecuteThread.java:156)
         weblogic.work.ExecuteThread.run(ExecuteThread.java:177)

  • Dont want exclusive lock on Shared Object

    Hi,
    I have created a shared object, but by default it seems to be having exclusive lock. I want it to work so that it should be possible to add data or delete data from it by anyone anytime without any locking. Please let me know how I can do this. Is there some property I need to set?
    Thanks for reading

    Yes I have already created shared area and everything is working fine. I have the following statement
    myshmhandle = zsd_zvi2d_area=>attach_for_write( ).
    This statment locks the area handle and if another program or another user tries to again execute the statement above it gives and exception. CX_SHM_EXCLUSIVE_LOCK_ACTIVE. I want it to work in such a way that locking doesnt place at all. Because the way I m adding and removing data, its with a unique key so there is no chance of one instance or user overwriting other persons data

  • My phone will not turn on, i have tried to hold the lock button and home button down but nothing at all will pop up....

    I have tried to hold the lock and home button down at the same time and nothing will pop up.....

    You need to hold both button until you see the apple logo and then release, try doing it with the phone plugged to the wall charger.

  • If can think the thread safe variable as another lock method

    Hello,
    Assuming that there are two threads, using a thread safe variable as a signal condition. When the 1st thread calling the GetPointerToVarName() to do something, at the "same time", the 2nd thread need to call  GetPointerToVarName() to modify something, I'd like to know if the 2nd thread can continue the work until the 1st thread call the ReleasePointerToVarName()?
    David

    Thread safe variables can only be accessed by one thread at a time, so while the first one is holding the pointer, the second one waits until the pointer is released.
    This is more rigid than using thread locks, in that a thread could call CmtTryToGetLock remaining free to run even if the lock cannot be acquired (supposing running without the locked object makes sense).
    But it is not clear to me from your question whether you actually want thread safe variable functions to lock or are afraid they will do so...
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Releasing a locked object.

    Hi,
    Is there any way to release a table, locked by oracle, explicitly from SQL prompt?
    A code is performing an update on a table. The commit statement is missing in the code, and another application is trying to insert/update the same table locked by the earlier application. This is resulting the application to hang. is there any way to release the lock explicitly via SQL prompt.
    How the DBMS_lock work in this situation.
    Thanks,
    Jaikanth / Ravi.

    Since forcing a process to release a lock that it is holding would invalidate the transaction, the only way that I know of to force a process holding a lock to release it is to kill that process. Normally the process should either perform an explicit commit, or should terminate normally and peform an implicit commit.

  • Exclusive locks on IFS tables

    We have a servlet application that accesses IFS 9.0.1.1 via the IFS API.
    We are having a problem where sessions are putting an exclusive lock on certain SYS_LOBnnnnnnnnn objects which (in turn) prevents other sessions from gaining an exclusive lock on the ODM_DOCUMENT table.
    Today, the following statement (issued by some IFS API call) was causing an exclusive lock which was never released:
    update odm_document set READBYOWNER := 1 where id = :2
    This statement put an exclusive lock on the SYS_LOB0000046893C00006$$ object and that lock was never released and we had to kill the session.
    Any guidance would be appreciated. Thanks.

    The mappings when run does acquire an exclusive lock on the target table and yes it does only when it is run in set based mode, this is absolutely true. If you run a mapping in set based mode and loading some data in millions it takes an exclusive lock on the target table. You can verify it by querying the v$lock table, or by using the session browser in any of SQL querying tools.
    The problem can be overcome by running in row based mode as suggested by you, but when data volume is huge I dont think the row based mode gives a satisfactory preformance.
    Anyways, thanks for all your suggestions. Lets see if I can find any other way out.

  • Java.lang.IllegalStateException: SafeNamedCache was explicitly released

    Is this a bug?
    Map (asdf): cache test
    &lt;distributed-scheme&gt;
    &lt;!--
    To use POF serialization for this partitioned service,
    uncomment the following section
    &lt;serializer&gt;
    &lt;class-
    name&gt;com.tangosol.io.pof.ConfigurablePofContext&lt;/class-
    name&gt;
    &lt;/serializer&gt;
    --&gt;
    &lt;scheme-name&gt;example-distributed&lt;/scheme-name&gt;
    &lt;service-name&gt;DistributedCache&lt;/service-name&gt;
    &lt;backing-map-scheme&gt;
    &lt;local-scheme&gt;
    &lt;scheme-ref&gt;example-binary-backing-map&lt;/scheme-ref&gt;
    &lt;/local-scheme&gt;
    &lt;/backing-map-scheme&gt;
    &lt;autostart&gt;true&lt;/autostart&gt;
    &lt;/distributed-scheme&gt;
    Map (test): put A alpha
    null
    Map (test): list
    A = alpha
    Map (test): destroy
    Map (test): list
    2009-01-20 13:27:30.012/112.098 Oracle Coherence GE 3.4.1/407 &lt;Error&gt; (thread=main, member=2):
    java.lang.IllegalStateException: SafeNamedCache was explicitly released
    at com.tangosol.coherence.component.util.SafeNamedCache.ensureRunningNamedCache(SafeNamedCache.CDB:23)
    at com.tangosol.coherence.component.util.SafeNamedCache.getRunningNamedCache(SafeNamedCache.CDB:1)
    at com.tangosol.coherence.component.util.SafeNamedCache.entrySet(SafeNamedCache.CDB:1)
    at com.tangosol.coherence.component.application.console.Coherence.doList(Coherence.CDB:71)
    at com.tangosol.coherence.component.application.console.Coherence.processCommand(Coherence.CDB:442)
    at com.tangosol.coherence.component.application.console.Coherence.run(Coherence.CDB:39)
    at com.tangosol.coherence.component.application.console.Coherence.main(Coherence.CDB:3)
    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:597)
    at com.tangosol.net.CacheFactory.main(CacheFactory.java:1317)
    Map (test):

    Excuse me David.
    I got same problem developing a daemon (on the same coherence configuration) where i simply insert pof into cache and release. When at the same time (new instance of cache from Factory) call a get all values system crash with this stacktrace :
    [2011-09-09 14:39:56,969] [ERROR] [Paline-WebService-Client] - SafeNamedCache was explicitly released
    java.lang.IllegalStateException: SafeNamedCache was explicitly released
    at com.tangosol.coherence.component.util.SafeNamedCache.ensureRunningNamedCache(SafeNamedCache.CDB:23)
    at com.tangosol.coherence.component.util.SafeNamedCache.getRunningNamedCache(SafeNamedCache.CDB:1)
    at com.tangosol.coherence.component.util.SafeNamedCache.get(SafeNamedCache.CDB:1)
    at cotral.engine.live.bpengine.rpchandler.ControllerUtilities.printPalineStatus(ControllerUtilities.java:243)
    at cotral.engine.live.bpengine.rpchandler.PalineController.execute(PalineController.java:205)
    at cotral.engine.live.bpengine.rpchandler.PalineController.execute(PalineController.java:98)
    at org.apache.xmlrpc.XmlRpcServer$Worker.executeInternal(XmlRpcServer.java)
    at org.apache.xmlrpc.XmlRpcServer$Worker.execute(XmlRpcServer.java)
    at org.apache.xmlrpc.XmlRpcServer.execute(XmlRpcServer.java)
    at org.apache.xmlrpc.WebServer$Connection.run(WebServer.java)
    at org.apache.xmlrpc.WebServer$Runner.run(WebServer.java)
    at java.lang.Thread.run(Thread.java:619)
    Can you help me?

  • Object directory entry when trying to release TR

    Dear experts
    I have a problem when trying to release my TR in Development to Testing.It prompts me an error "Not all objects in the request could be locked. Do you want to release them anyway?"
    Then I viewed the error and the error says:
    "Object XXX requires a directory entry"
    Do you have any idea how to go around this problem?
    Thanking you in advance
    Wan

    Hi,
    Check the Authorizations and Owner. What is the Message you are getting?.
    Check
    Re: Transport
    Re: When releasing a transp. req.not all object in the request could  be locked
    Thanks
    Reddy
    Edited by: Surendra Reddy on Jun 23, 2010 9:10 AM

Maybe you are looking for

  • How do i add a line to header on a template

    I created a template and on that template i want a line to print before and after the heading. How do i add this. I see i have access to change the fonts, and the colors, but not how i can add something into this area. Help

  • IDoc to XI u0096 Outbound IDoc

    hi Experts, Please let me know how to post IDOC to XI in R/3 Sender System? Please help Sourabh

  • Is it possible to have sub-folder events inside an event on iPhoto?

    Is it at all possible to have an Event (eg. Pets) then have sub-events inside that event (eg. Dog, Cat etc.) in iPhoto? I can't seem to find anything... Any help greatly appreciated.

  • Regarding Message no RSTRAN 543

    Hi, while I'm moving the trasnport from dev to Q, i got error Message No RSTRAN 543...has anyone come across this...its a BI7.0 system Message was edited by:         bwuser

  • Beta 9.2 - WLP patch available

    All - A WLP patch is available to the Beta 9.2 installer. The patch addresses a couple of key issues. To download the patch, start here: http://commerce.bea.com/showproduct.jsp?family=WLPORTAL&major=9.2&minor=-1&DL=www_WL-Portal-Beta_icon, and be sur