Question

2
Replies
1713
Views
Brahmesh@ Member since 2013 146 posts
Capgemini
Posted: 4 years ago
Last activity: 2 years 7 months ago
Closed

Lock Gone Exception

Lock Gone exception is being logged in logs , Below is the use case details.

>> Try to upload the spreadsheet through model dialog .

>> performing obj-save on work page in post activity of model dialog , but it's giving an error for 1 object out of 50 objects.

we haven't heard any compliance from the user while processing the object but exception was logged in logs.

Generally it occurs when trying to perform obj save on unlocked object, but how to identify when lock is being released for an object.  Any possible scenario to cause this exception?

I'm going to do two things to get rid of this exception  ,

>> Remove obj-save and external commit on work object instance from post activity so submitModelFlowAction will take care of work object transaction operation.

>> if object changes needs to be save on fly then we do obj-Refresh-Lock if lock is not held on object.

Please suggest here if any suggestion to get rid of below exception.

2016-06-02 20:39:36,709 [http-/0.0.0.0:8080-6] (  internal.access.DatabaseImpl)  -  The deferred save failed with the following exception;com.pega.pegarules.pub.database.LockGoneException: Save, Delete or Commit has failed because lock "ABC-XYZ-NNN-WORK-TEST C-05" is not held;From: (unknown) ; at com.pega.pegarules.data.internal.access.Saver.checkRequiredLock(Saver.java:1355); at com.pega.pegarules.data.internal.access.Saver.saveDeferred(Saver.java:365);

at com.pega.pegarules.data.internal.access.DatabaseImpl.saveDeferred(DatabaseImpl.java:4947);

at com.pega.pegarules.data.internal.access.DatabaseImpl.saveDeferred(DatabaseImpl.java:4931);

at com.pegarules.generated.activity.ra_action_importspreadsheet_dfb785878d3a745556314bd4e8dd5b5b.step19_circum0(ra_action_importspreadsheet_dfb785878d3a745556314bd4e8dd5b5b.java:1438); at com.pegarules.generated.activity.ra_action_importspreadsheet_dfb785878d3a745556314bd4e8dd5b5b.perform(ra_action_importspreadsheet_dfb785878d3a745556314bd4e8dd5b5b.java:369); at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3500); at com.pegarules.generated.callActivity_071017_xvj4o_pyNDBZ4Gy293rekg.callActivity07_10_17(callActivity_071017_xvj4o_pyNDBZ4Gy293rekg.java:122); at com.pegarules.generated.callActivity_071017_xvj4o_pyNDBZ4Gy293rekg.invoke(callActivity_071017_xvj4o_pyNDBZ4Gy293rekg.java:82); at com.pega.pegarules.generation.internal.library.LibraryRuntime.resolveAndinvokeFunctionViaReflection(LibraryRuntime.java:133); at com.pega.pegarules.generation.internal.library.LibraryRuntime.invokeLibraryRuntime(LibraryRuntime.java:110); at com.pega.pegarules.session.internal.mgmt.Executable.invokeLibraryRuntime(Executable.java:8954); at com.pega.pegarules.priv.generator.LibrarySupport.resolveAndInvokeFunctionViaReflection(LibrarySupport.java:181); at com.pegarules.generated.pega_rules_utilities.callActivity(pega_rules_utilities.java:1619); at com.pegarules.generated.flowaction.ra_action_uploadspreadsheet_e64bccd1c992134689f5164acdc3ea6e.RunFlowActionActivity_circum0(ra_action_uploadspreadsheet_e64bccd1c992134689f5164acdc3ea6e.java:392); at com.pegarules.generated.flowaction.ra_action_uploadspreadsheet_e64bccd1c992134689f5164acdc3ea6e.perform(ra_action_uploadspreadsheet_e64bccd1c992134689f5164acdc3ea6e.java:72); at com.pega.pegarules.session.internal.mgmt.Executable.doAction(Executable.java:3305); at com.pegarules.generated.activity.ra_action_pxperformflowaction_eafc82729edb7106a8de2a224fc038c3.step7_circum0(ra_action_pxperformflowaction_eafc82729edb7106a8de2a224fc038c3.java:954); at com.pegarules.generated.activity.ra_action_pxperformflowaction_eafc82729edb7106a8de2a224fc038c3.perform(ra_action_pxperformflowaction_eafc82729edb7106a8de2a224fc038c3.java:199); at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3500); at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10521); at com.pegarules.generated.activity.ra_action_submitmodalflowaction_f7d707316189fc4dfed3c875e0810b79.step12_circum0(ra_action_submitmodalflowaction_f7d707316189fc4dfed3c875e0810b79.java:1596); at com.pegarules.generated.activity.ra_action_submitmodalflowaction_f7d707316189fc4dfed3c875e0810b79.perform(ra_action_submitmodalflowaction_f7d707316189fc4dfed3c875e0810b79.java:265); at

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

System Administration Data Integration
Moderation Team has archived post
Share this page LinkedIn