Skip to Content
0
Former Member
Mar 09, 2009 at 10:46 AM

Sesion LockException

70 Views

Hi

While executing a web dynpro application which uses adaptive RFC models, I encountered the following exception:

com.sap.tc.webdynpro.services.session.LockException: Thread HTTP Worker [4] failed to acquire exclusive lock on client session ClientSession(id=(J2EE8518000)ID0200294550DB11707589215029835099End) due to thread HTTP Worker [2]. The details of the locking thread are shown in the following stacktrace.

at com.sap.mw.rfc.driver.CpicDriver.nativeCpic_coxread(Native Method)

at com.sap.mw.rfc.driver.CpicDriver.cpic_coxread(CpicDriver.java:992)

at com.sap.mw.rfc.driver.CpicDriver.coxread(CpicDriver.java:229)

at com.sap.mw.rfc.driver.RfcTypeDirectCpic.read(RfcTypeDirectCpic.java:38)

at com.sap.mw.rfc.engine.RfcIoOpenCntl.ab_rfcread(RfcIoOpenCntl.java:304)

... 127 more

On going through the trace what I could make out was that since the RFC was taking unexpectedly longer time, it resulted in active request holding the lock for longer than expected. Could there be other possible reasons?

Also, SSO is configured for portal-backend. Could changing some setting there could help? Should the bapi be looked into to perform better or tehre are some ways from portal end as well? Please suggest some pointers .

Priyanka