Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
3 replies Latest Post - ‏2013-09-26T07:55:28Z by Ir.AlfredKayser
AndrewatFindel
AndrewatFindel
34 Posts
ACCEPTED ANSWER

Pinned topic Custom tool gives Lock Busy for item sometimes

‏2013-07-30T14:34:16Z |


We have many custom tools but most only create or change items at the end.

We have built one that allows the user to amend an Item, it gets checked out if not already and the user input is saved to the item in the item collaboration area.
Sometimes if they go on to make a futher change we get a lock error.

We know when we are doing this we are the only user on the system and the item is only being referenced by ourselves via the custom tool. We know this in our test environment but obviously that will not be the case in live.

Lock Busy for item [16202]

The 16202 seems to be the PIM Code.

I see on the release notes for Fix Pack 4 a line in the limitations:
CR 47688 - Saving items from a custom tool generates item locks.
So it looks like someone else has been hitting the same problem perhaps.

The section of code is:
public static final String LOCK_BUSY = "Lock Busy for item [";

ExtendedValidationErrors errors1 = null;
CollaborationItem itemCA = getCollaborationItem(context,ds);
errors1 = itemCA.save();
if ( errors1 != null ) {
    validationErrors1 = errors1.getErrors().listIterator();
    while ( validationErrors1.hasNext()) {
        theError1 = (ValidationError)validationErrors1.next();
        if ( theError1.getMessage() != null && theError1.getMessage().contains(ServicesHelper.LOCK_BUSY)) {

Is there a way to release the lock?
If I open the item in PIM outside off the custom tool it still gives the lock message when I hit save.

Is there a public way of seeing the documentation for CR 47688 or can an IBM person email me it?
 

  • KaranBal
    KaranBal
    108 Posts
    ACCEPTED ANSWER

    Re: Custom tool gives Lock Busy for item sometimes

    ‏2013-08-13T01:58:56Z  in response to AndrewatFindel

    As a work around, you may try setting "release_locks_early = true" in the common.properties and then restarting the services.

    Additionally, to remove any existing stale locks in the product, refer to the following tech note: http://www-01.ibm.com/support/docview.wss?uid=swg21307221

    • AndrewatFindel
      AndrewatFindel
      34 Posts
      ACCEPTED ANSWER

      Re: Custom tool gives Lock Busy for item sometimes

      ‏2013-08-15T12:18:12Z  in response to KaranBal

      We have tried release_locks_early and it seems to do the job, we put our change live next week.

      Thanks

    • Ir.AlfredKayser
      Ir.AlfredKayser
      1 Post
      ACCEPTED ANSWER

      Re: Custom tool gives Lock Busy for item sometimes

      ‏2013-09-26T07:55:28Z  in response to KaranBal

      We have also enabled "release_locks_early" and it does seem to help.

      But what are the precise consequences of this setting? Will it hurt performance?