Lock Management

Hi Experts,
I am getting error " Unable to lock table......" when I execute any transaction in r/3. This is in IDES 4.6b.  Need valuable advice how this can be resolved.
Thanks/Hari

Dear Hari,
sounds like there is a problem with the message server/dispatcher connection. Check the trace files dev_disp and dev_ms and make sure that the dispatcher is connected to the message server (this can easily be verified by running transaction SM51). Keyword to look for in dev_disp is MBUF. The last entry should be 'MBUF state ACTIVE'. Also check that the message server process (msg_server) is up and running and was able to bind the port. Finally look in the profile for parameters rdisp/enqname and see if that points to the right server and port (which is sapms<SID>).
Regards,
Tim

Similar Messages

  • An error occurred in lock management when attempting to set a lock on table

    Hi All,
    I am getting the error 'An error occurred in lock management when attempting to set a lock on table SWWWIHEAD.'
    Sometimes the workitem is not created by the Workflow due to above error & this happens rarely but keeps coming.
    cany anyone guide or help me how to correct this problem.Is it happening due to my custom code making locks on the above table?
    Thanks in advance.
    Pls do reply

    I think you should not use any code to lock the table SWWWIHEAD.  Please let us know why you are writing code to put lock on this table.
    Thanks
    Arghadip

  • EJB Primary Key not found in lock manager - Container BUG?

    I have an EJB entity bean whose primary key class implementation is pretty simple, consisting of two strings. For the MOST part, it seems to work properly, but every so often I see the following message in my application server log.
    ####<Sep 17, 2008 10:03:27 AM EDT> <Warning> <JTA> <armantac22> <AdminServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1221660207187> <BEA-110401> <Ignoring error in afterCompletion. Object=weblogic.ejb.container.internal.TxManager$TxListener@1906466, Exception=javax.ejb.EJBException: [EJB:010108]The EJB Lock Manager has received an unlock request from EJB:PortfolioMetaData with primary key:[ObjectPK: type: PortMetaData name: PortMetaData]. However, this primary key could not be found in the Lock Manager. This indicates either an EJB container bug, or the equals and hashCode methods for the primary key class:com.armanta.ejb.ObjectPK are implemented incorrectly. Please check the equals and hashCode implementations.
    javax.ejb.EJBException: [EJB:010108]The EJB Lock Manager has received an unlock request from EJB:PortfolioMetaData with primary key:[ObjectPK: type: PortMetaData name: PortMetaData]. However, this primary key could not be found in the Lock Manager. This indicates either an EJB container bug, or the equals and hashCode methods for the primary key class:com.armanta.ejb.ObjectPK are implemented incorrectly. Please check the equals and hashCode implementations.
         at weblogic.ejb.container.locks.ExclusiveLockManager$LockBucket.unlock(ExclusiveLockManager.java:409)
         at weblogic.ejb.container.locks.ExclusiveLockManager.unlock(ExclusiveLockManager.java:170)
         at weblogic.ejb.container.manager.ExclusiveEntityManager.afterCompletion(ExclusiveEntityManager.java:723)
         at weblogic.ejb.container.manager.ExclusiveEntityManager.afterCompletion(ExclusiveEntityManager.java:667)
         at weblogic.ejb.container.internal.TxManager$TxListener.afterCompletion(TxManager.java:984)
         at weblogic.transaction.internal.ServerSCInfo.callAfterCompletions(ServerSCInfo.java:862)
         at weblogic.transaction.internal.ServerTransactionImpl.callAfterCompletions(ServerTransactionImpl.java:2913)
         at weblogic.transaction.internal.ServerTransactionImpl.afterCommittedStateHousekeeping(ServerTransactionImpl.java:2806)
         at weblogic.transaction.internal.ServerTransactionImpl.setCommitted(ServerTransactionImpl.java:2851)
         at weblogic.transaction.internal.ServerTransactionImpl.globalRetryCommit(ServerTransactionImpl.java:2650)
         at weblogic.transaction.internal.ServerTransactionImpl.globalCommit(ServerTransactionImpl.java:2570)
         at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:277)
         at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:226)
         at weblogic.ejb.container.internal.BaseEJBHome.postHomeInvoke(BaseEJBHome.java:389)
         at weblogic.ejb.container.internal.EntityEJBHome.findByPrimaryKey(EntityEJBHome.java:408)
         at com.armanta.ejb.portfolio.PortfolioMetaData_a4zvzk_HomeImpl.findByPrimaryKey(PortfolioMetaData_a4zvzk_HomeImpl.java:64)
         at com.armanta.ejb.portfolio.PortfolioMasterBean.getPortfolioMetaData(PortfolioMasterBean.java:313)
         at com.armanta.ejb.portfolio.PortfolioMaster_fmk9e8_EOImpl.getPortfolioMetaData(PortfolioMaster_fmk9e8_EOImpl.java:64)
         at com.armanta.ejb.portfolio.PortfolioMaster_fmk9e8_EOImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:517)
         at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:224)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:407)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:403)
         at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:56)
         at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:934)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
    I checked the equals and hashCode implementations and nothing pops out at me. Once this happens, the EJB seems to get messed up in the database and I lose information!
    Here is the class implementation along with its superclass. I don't see anything blatant. Sorry for the lack of indentation, my original post was indented.
    Thanks
    Eric
    public class ObjectPK extends ArmantaPK {
         private String type;
         private String name;
         private ObjectPK() {
              super();
         public ObjectPK(String type, String name) {
              super();
              this.type = type;
              this.name = name;
         public String getName() {
              return name;
         public String getType() {
              return type;
         public String toString() {
              StringBuffer buffer = new StringBuffer();
              buffer.append("[ObjectPK:");
              buffer.append(" type: ");
              buffer.append(type);
              buffer.append(" name: ");
              buffer.append(name);
              buffer.append("]");
              return buffer.toString();
         * Returns <code>true</code> if this <code>ObjectPK</code> is the same as the o argument.
         * @return <code>true</code> if this <code>ObjectPK</code> is the same as the o argument.
         public boolean equals(Object o) {
              if (this == o) {
                   return true;
              if (!super.equals(o)) {
                   return false;
              if (o == null) {
                   return false;
              if (o.getClass() != getClass()) {
                   return false;
              ObjectPK castedObj = (ObjectPK) o;
              return ((this.type == null ? castedObj.type == null : this.type
                   .equals(castedObj.type)) && (this.name == null
                   ? castedObj.name == null
                   : this.name.equals(castedObj.name)));
         * Override hashCode.
         * @return the Objects hashcode.
         public int hashCode() {
              int hashCode = super.hashCode();
              hashCode = 31 * hashCode + (type == null ? 0 : type.hashCode());
              hashCode = 31 * hashCode + (name == null ? 0 : name.hashCode());
              return hashCode;
         public Object clone() {
              ObjectPK inst = new ObjectPK();
              inst.type = this.type == null ? null : new String(this.type);
              inst.name = this.name == null ? null : new String(this.name);
              return inst;
    public abstract class ArmantaPK implements Serializable, Cloneable, Comparable {
         // Enforce compatability with future versions
         private static final long serialVersionUID = 1980721424128862564L;
         // Cache the hash code
         private transient int hash = 0;
         * Clones a primary key. Note that this is not a deep copy.
         * @return the cloned primary key
         public Object clone() throws CloneNotSupportedException {
              ArmantaPK newKey = (ArmantaPK) super.clone();
              newKey.hash = 0;
              return newKey;
         * Compare the specified object with this key for equality.
         * Implementations should return <tt>true</tt>
         * if and only if the specified object is also a key
         * of the same class and all corresponding attributes in the keys are
         * <i>equal</i>.
         * @param other the object to be compared for equality with this key.
         * @return <tt>true</tt> if the specified object is equal to this key.
         public boolean equals(Object other) {
              return other instanceof ArmantaPK;
         * This implementation only returns an empty String.
         * @return String
         public String toString() {
              return "";
         * Return the hash code value for this key. Implemented to call the
         * key's <code>computeHash</code> method and cache the result for
         * faster operation. Classes extending <code>ArmantaPK</code> should
         * only implement <code>computeHash</code>.
         * @return int
         public int hashCode() {
              if (hash == 0) {
                   hash = computeHash();
              return hash;
         * @y.exclude
         * Compute a hash code for this key. This is the method that should
         * be overridden by sub-classes.
         * @return int
         protected int computeHash() {
              return 0;
         * @y.exclude
         * After called, will force the hash code to get recomputed.
         public void rehash() {
              hash = 0;
         * Compares this <tt>ArmantaPK</tt> to another object by comparing
         * their string representations.
         * @return an integer based upon comparing the <tt>ArmantaPK</tt>s string
         * representations
         public int compareTo(Object o) {
    return toString().compareTo(o.toString());
    }

    We are experiencing a similar error after upgrading 9.2 to 9.2 MP3. We do not want to upgrade to 10g at this time. Is there a patch we can download with the fix?

  • Error in lock management

    Hi
    I am getting error in lock management when I am assiging role to user.
    when i am saving user after assiging role to user...I am getting this error"error in lock mangement"
    Regards
    Tarun

    Hi,
    Please check SAP note  https://service.sap.com/sap/support/notes/746138.
    Use transaction SM12 (client specific)to obtain the raw information and the following selection data in particular:
    Client: "#01"
    User name: "#01_002"
    Table: "#01_002"
    Argument: "#01_002".
    Check sm12 on regular basis. It may be due to a user using a Table which is causing lock. U need to forcefully log off that user id.
    Check and let us know if any issue.
    Regards
    Aveek.

  • Modules needed for ATG lock manager isolation

    Hi Currently I am deploying my complete commerce ear on the lock server instance. I would need to isolate only the components required for lock server instance. Can anyone please tell me what all modules would be required for assembling an ear for lock server instance?
    Thanks,
    Mathew.

    For lock manager server you only need DafEar.Admin and DSS modules.
    Also, you mentioned about deploying your commerce EAR on the lock server instance so just in case you want to run both on the same instance it is not a recommended way. One of the basic ATG deployment architecture consideration is that any of auxiliary server instances like global scenario server, process editor server, lock manager server etc. should not receive user requests instead page server should be the only instances accepting user requests.

  • Lock management error in bapi /SAPMP/BAPI_ROUTING_PROCESS of ECC 6.0 system

    Hello Experts,
    I am trying to use this bapi /SAPMP/BAPI_ROUTING_PROCESS for changing the routing. Am marking the change mode in import parameters of this bapi and filling the task, material allocation, sequence and operation tables with tasklist and group.
    On executing this bapi, i am getting several errors like "Header cannot be locked(lock management error) in task table and "Operation cannot be locked(lock management error) in operation table.
    Please help me out of this issue.
    Regards,
    Vijayalakshmi

    You have to fill parameter WORKAREA with the value from tcode op77

  • Intenal error in SAP lock management system

    Hi All,
    I got an error like this:
    "An internal error was found in SAP lock management system when attempting to lock an object by calling an ENQUEUE functional module".
    Can you provide me a solution as soon as possible..
    Thanks in advance,
    Sreepathi

    Hi Sreepathi,
    Usually this happen when the enque process is no longer accesible. I will schedule a system and db restart.
    Regards
    Juan
    Please reward with points if helpful

  • System Error occured during lock management in activating BI Content.

    In trying to activate BI content, 'InfoObject Actual for Netweaver Demo', on clicking install after selecting the grouping settings, i get the error message
    "System error occurred during lock management"
    What causes this problem and how do i successfully install BI content?. Please assist.

    Hi,
    The error indicates missing or inactive message/enqueue server or network problems.
    Please follow the steps below to help troubleshoot the problem
    1. Logon to each server separately and goto SM12->Extras->Diagnostics to test the connections for the enqueue server.  This will test the access of each server.
    2  Use SMGW and SM59 to test the RFC connections.  See SAP Note 47682.
    You may want to have your network administrator/Basis people test the connections & analyse the network.
    Use the message server/logon group testing tool "lgtst" (Note 64015), & the "niping" program (Note 500235) to diagnose the network.
    Have a look at attached note 124562 in order to check if you have a hostname resolution problem.
    Check your DNS / network setting that this kind of problems can not lead to blocking situations of the dispatcher.
    To avoid the blocking of the dispatcher you can set the parameter
    rdisp/reverse_name_lookup = 0 to avoid such situations.
    Best of luck.
    Rgds,
    Colum

  • Issue - A system erroe has occurred in lock management

    Dear Friends ,
    I have the below issue in my workflow .
    When i am executing the workitem from the SAP Inbox (SBWP) it is showing the below message in the status bar .
    " A system erroe has occurred in lock management " .  & not allowing me to open the workitem .
    I searched in forum  , but could not able to track the exact cause of the problem .
    Any suggestion to resolve the issue will be highly appreciated .
    Regards
    Prabhu

    Thanks for the reply .
    Usually when ever a object gets locked by some other user id it shows the message like
    " Object locked by user id "  .  Yah i have checked SM12 , there is no entries for that user .
    I think this issue is due to some other reason . Any idea please suggest .
    Regards
    Prabhu

  • ERROR - A system error has occured in lock management

    Dear All ,
    I have a major issue in my workflow in production client  .  In SWEL  there are some workflows which
    got started & then  error occured as per the message " A system error has occured in lock management " and no workitem gets created .
    This issue happened just 1 day back and still continues somtimes .
    If any one have any idea on the issue , what is the root cause of the issue , please suggest how to solve the same .
    Regards
    Prabhu

    No WF-BATCH is not locked . This issue does not happen every time , it happens some times .other wise workflow runs fine .
    I will tell you when i checked abot the error message by clicking F1 help i got the below message details-
    An error occurred in lock management when attempting to set a lock on table SWWWIHEAD.
    The data cannot be processed at the moment. The data is displayed.
    So i think there is some issue happens in updating the entry in the table which happens some times , and gets rectified automatically . But the workflow which gets affected by this error does not start .
    so any idea on the same .
    Regards
    Prabhu

  • Transpot error" system error  in lock managment"

    Hi ,
    When Iu2019m transporting  infoobjects from BI DEV to BI Q while importing its showing u201Csystem error in lock managementu201D.
    When I drill down   the error its showing the following message.
    Message no. AD025
    Diagnosis
    A system error has occurred in the lock management function.
    The system was unable to determine whether a lock entry existed for the selected object.
    System Response
    The selected object could not be locked.
    Only display mode can be used.
    Procedure
    Make a note of the error code and inform your system administrator
    And In the error its not showing specific infoobjects ,when I searched forums I got one note 928044, but I skeptic that it works .
    Please provide some inputs ASAP.
    Thanks
    chaitu

    You didn't mention whether you are seeing this error message while building the transport/request or at the time of applying on BIQ....
    Anyways, if you are seeing this message while trying to create a new transport for your infoobjects:
    Please make sure all your infoobjects are not in any other *open" requests already? That is, if you have any other requests that are still open, try "releasing" them before trying to create the new transport/request.
    Hope this helps.

  • Lock in lock manager could not be set - long text

    Hi Experts,
    We have a issue with the 124002 ID request for the ODS ZSDOD005 (request number REQU_6ROBVFEQ9SSOIJY5MDF2W9BTX).
    It has green status, but if you open the monitor, the status is red.
    If you search for more detail,  you can see the following message:
    “Lock in lock manager could not be set -> long text”
    The error refers to a lock in lock manager
    Lock in lock manager could not be set -> long text
    Message no. RSENQ009
    Diagnosis
    The lock in the lock manager could not be set.
    An attempt is being made to set the lock in include LRSENQF00 in the form set_enqueue.
    The lock table is table RSENQ_PROT_ENQ.
    An attempt was made to lock the following object:
    User/Object  = BWREMOTE/ZSDOD005
    Object_typ/Action = ODS/UPD_ODS
    Subobject  = REQU_6ROBVFEQ9SSOIJY5MDF2W9BTX
    SubSubObject = 000001
    This problem affects subsequent loads.
    The InfoPackage ZPAK_6K641H103XV0MTRBAV9Q788IS loads data to three ODS ZSDOD001, ZSDOD003 and ZSDOD005.
    None of the other ODS generated InfoPackage for 09.25.2013.
    Our BASIS support team couldn’t see locks that impact in the procedure.
    The InfoPackage ZPAK_6K641H103XV0MTRBAV9Q788IS is part of the Process Chain ZCP01 - Ventas (SD) Transaccional
    If we tried to repeat the step we had obtained the following message:
    02.10.2013 16:44:04 Job started
    02.10.2013 16:44:04 Step 001 started (program RSPROCESS, variant &0000000032648, user ID BWREMOTE)
    02.10.2013 16:44:04 Start process LOADING ZPAK_6K641H103XV0MTRBAV9Q788IS in run 7PZGWSRZS6GJGB093B9W72U5H of chain ZCP01
    02.10.2013 16:44:04 Delta request REQU_6ROBVFEQ9SSOIJY5MDF2W9BTX is incorrect in the monitor
    02.10.2013 16:44:04 A repeat needs to be requested
    02.10.2013 16:44:04 Data target ZSDOD005 still includes delta request REQU_6ROBVFEQ9SSOIJY5MDF2W9BTX
    02.10.2013 16:44:04 If the repeat is now loaded, then after the load
    02.10.2013 16:44:04 there could be duplicate data in the data targets
    02.10.2013 16:44:04 Request the repeat?
    02.10.2013 16:44:04 Last delta incorrect. A repeat must be requested. This is not possible.
    02.10.2013 16:44:05 Performing check and potential update for status control table
    02.10.2013 16:44:05 Could not set request REQU_6ROBVFEQ9SSOIJY5MDF2W9BTX in DTA ZSDOD005 to red; terminated with error 5
    02.10.2013 16:44:05 Job finished
    This issue prevents subsequent loads of data.
    It is abnormal that there is a green external status and a red one internal.
    Could you, please check why are we having this lock error?
    What are the steps to follow to avoid losing information or having it duplicated in this case?
    Thanks,
    Kiran

    Hi,
    Make sure the DSO is not changed mode when u r trying perform your activity in production system.
    if the DSO is in change mode..it will be locked for further activities to be happend on it unless again it comes back to active status.
    if it locked..you can see all the locked Objects in SM12 Tcode and proceed accordingly.
    hope this is clear for you.
    Regards
    Ramsunder.

  • System to system DB lock management

    I understand how lock management works in a given SAP system, but how does it work between SAP systems? For instance, if BI tries to update a record in the ECC DB, will ECC lock table be notified? If so, how? I was told by a SAP guy the ECC lock table would be updated but I wonder how this is done. Does BI contact ECC message server so ECC knows to make the proper locks? Or does the ECC DB somehow flag remote requests and tell ECC lock table about it? I wish the documentation would go more into system to system DB transactionsu2026
    Thanks for any help.
    J

    I don't know any scenario where the BI needs to lock entries on the ERP system to "change" them. I know such a scenario on CRM where someone is changing something in the CRM and the corresponding entry is locked on the ERP. However, this lock is not done on a database level but on an application level using the SAP own enqueue server (see transaction SM12).
    The CRM connects to the ERP using RFC and calls a function module that will lock the whole object (such as a customer).
    Markus

  • An internal error was found in the SAP lock management system when opening

    Hello SDN Experts ,
    When i am trying to open any t-ocde in my productive system
    it is displaying an error message "An internal error was found in the SAP lock management system " , not only for me but also for all the users .
    Could please tell me what colud be the problem and solution for this??
    it's very urgent .....
    Thanks in Advance !
    Siva reddy

    Hi,
    Check in SM12 if tht particular Tcode is being locked by some other person.
    Else contact your basis team. There may be some auth issues.
    Regards,
    Lalit

  • System error occur during lock managment?

    Hi all !
    When I open the adminstrator  workbench I am gettting the error " System lock occured during lock managment.
    I can open other sessions such as RSPC, RRMX etc.
    Can anyone help in this regard?
    Regards
    Durai

    Hi,
    I can suggest how to access administratoe workbench without using T.code:RSA1.
    Go to T.code RSD1 then in Menu >Environment>Object Browser via AWB.
    Try this for time being to access RSA1 and inform to BASIS guy he will solve the problem.
    Assign points if helpful
    Thanks & Regards,
    Bala

  • Layer locking management and CMS type of integration

    I'm evaluating a minimal check-in/check-out feature that would be layer based. The project i'm working on involve multiple documents, multiple layers and "composition" documents that are using layers from the master documents to create new master documents.
    I cant give too much details, but there is definitively a need to track change on a more finer grain than just document level. In a very general way, my requirements would be something like this:
    - Give a visual feeback to the user as for the Layer status and info (is locked, revision version, type, id)
    - Listen to layer selection/layer modification attempt. Update visual status. Have a dialog for check-in/check-out.
    I have evaluated quite a few things so far and i havent found a really solid solution:
    A exemple of problem i stumbled on while looking for solutions:
    The locking scheme of photoshop is giving me some problems as it cant manage the lock status of a child independently of parent layer lock status. There is some behavior that could be considered inconsistent like this one:
    - Lock child layer
    - Lock parent layer
    You can unlock the child layer (regardless of parent status), but you cant lock it back (as the parent is locked). There is a similar problem with layer coloring as it also a non-colored child will inherit from parent coloring status wich make it very hard to use layer coloring to help the user "spot" some type of layer (in my project, the layer happened to be "group" layer wich are nested, making the coloring confusing!).
    [Side note: I did some exploration with Indesign SDK and it seem to have a more open API for system integrators.. but i can understand that the history of the product and market has in alot of ways made this a "must".]
    I will have very probably to revert to layer naming to indicate my own "locking" status. (Communication with database/system to keep track of this status in regard to the document id is not a problem at this point.)
    I have looked at the ScriptEventListener first to detect for layer selection. The problem is that the listener receive a generic select event for alot of objects and just start a script without passing parameter on the object that was selected.
    I have the impression that using the SDK i could know that the Select event has been generated for a layer object (i will try this with the listener sample in SDK when i will have resolved my Codewarrior licence bug), but i have read on the forum that another user was trying to listen to draw event without success (has been commented out in the piterminology.h file... So it looks like i would not be able to prevent a user to modify a layer... (unless playing with history??).
    Anyway, i know the description here is quite vague and generic, but i would be curious to know if there is some other users that have worked on similar problem or know well the api if they have any impressions or comments. I'm aware of my own limitations.. but maybe i'm trying to do something that would be hard even for expert developper??

    Hi,
    I hadn't installed CU3 however as a test i tried installing CU4 and this didn't help. Since my first emails i have more issues that have brought a complete hault to the upgrade project.
    If i double click on a package to run it manually I basically get the same issue. This means i have no way of running any packages except throught VS.
    I've also found that regardless of the order of the software installs it still fails. It's related to SP1 of SQL and SP4 of VS.
    I'm on Server 2012. When install in the following order SQL 2012, SQL SP1, VS2012, BIDS, VS SP4 i have no problem until VS SP4 is installed. If i install VS SP4 then BIDS it also fails at the last step. If i install all the VS and BIDS software first, then
    SQL then SQL SP1 it fails at the SQL SP1 step.
    This means i could actually install everything and either ignore the SQL SP1 or the VS SP4 and i'd be fine however this is not really a solution as i will never be able to patch the software and once live this is very dangerous.
    I am still surprised there is no obvious solution to this. I'm only installing MS software on a fresh box and only installing 5 pieces of software (including the SPs). I would have though if this was an issue others would have come across it too.
    Has anyone else installed all these components and got them working on the same OS. I believe early on in my testing i installed these in Windows Server 2008 and didn't have the issue.
    Regards.
    Simon.

Maybe you are looking for