Locking an object problem

We are customizing our Plumtree Portal 5.0.2 to all the gadgets developers to send an HTTP header called "Refresh-all","Gadget Name". When this header is sent the portal should refresh the gadget provided in the header to flush it's content. The only problem that we are facing now is storing the changes made to the Gadget Admin Settings
here's the code
IPTObjectManager objectManager = (IPTObjectManager) ptSession.GetGadgets();
IPTGadget gadgetToRefresh = (IPTGadget)objectManager.Open(portletID,false);
IPTServerContext serverContext = (IPTServerContext)gadgetToRefresh.GetInterfaces("IPTServerContext");
serverContext.LockObject();
serverContext.Store();
serverContext.UnlockObject();
When the logged in user is not an admin this gives an error and PTSpy reported that the user doesn't have enough priviliges to lock the object. the ptSession is the current user session retrieved by the function GetUserSession()
Any proposed work around or any way to get an admin session will be great
TIA

We are customizing our Plumtree Portal 5.0.2 to all the gadgets developers to send an HTTP header called "Refresh-all","Gadget Name". When this header is sent the portal should refresh the gadget provided in the header to flush it's content. The only problem that we are facing now is storing the changes made to the Gadget Admin Settings
here's the code
IPTObjectManager objectManager = (IPTObjectManager) ptSession.GetGadgets();
IPTGadget gadgetToRefresh = (IPTGadget)objectManager.Open(portletID,false);
IPTServerContext serverContext = (IPTServerContext)gadgetToRefresh.GetInterfaces("IPTServerContext");
serverContext.LockObject();
serverContext.Store();
serverContext.UnlockObject();
When the logged in user is not an admin this gives an error and PTSpy reported that the user doesn't have enough priviliges to lock the object. the ptSession is the current user session retrieved by the function GetUserSession()
Any proposed work around or any way to get an admin session will be great
TIA

Similar Messages

  • Error "Problem occured locking WS object" while activating Proxy

    Hi All,
    I have move an Inbout proxy to a different Client(QA system) and in QA system that proxy shows incative.
    When i tried to activate that proxy/service in Sproxy, getting error "Problem occured locking WS object".
    Proxy was active in development system and was working fine without any error.
    Please provide some help, what need to be done to fix this issue
    Thanks
    Harshit

    Hi Harshit,
    Try with the following steps in sequence:
    1. Re-genarate the proxy in Development - Create a New Transport Reuest.
    2. Transport the Proxy from PI Dev to PI OA
    3. Confirm the Proxy in PI QA and then, transport the re-generated Request from ECC Dev to ECC QA.
    Regards,
    Pranav.

  • Locking of objects between service calls

    Hello,
    Is there any practial way to lock an object (for example a loan) with one service so that it stays locked until another service commits the transaction and releases the lock? The service is a RFC function module that will be called by a web application. My problem is that when I use the standard ENQUEUE function the lock dissappears as soon as the first service is finished.
    Also, if one service would create a lock of an object and another one starts the update task, they probably wouldn't be in the same LUW, would that be a problem? If so, is there a solution?
    Thank you and kind regards,
    Steffen

    Steffen:
    In the locking service use the _SCOPE parameter value of 3 in your enqueue function call. This retains the lock after the first service (locking process) ends. The second service that does the update can then dequeue the lock after the update is processed.
    No problem with setting & freeing locks in different LUW, as the SAP locking mechanism is co-operative (i.e. software controlled) rather than database controlled. Just make sure that you use a standard SAP enqueue function so that other unrelated processes will honor the lock set by your first service.
    Regards,
    D.

  • Mail 6.1 locks up, other problem

    After updating to 10.8.2, my Mail application locks up after clicking on the reply arrow within an existing email in a thread.  It happened twice, I used Force Quit and reopened, then repaired permissions in Disk Utility, tried again, it locked up again, simply quit the application and restarted.  But it keeps locking up.
    While I can move the cursor around and switch to another application, I cannot access anything in the existing  email thread window.  However, I can look at other emails from the main window.  Very weird.
    To be even more descriptive, I can open an individual email and respond to that.  But when I try to respond to an email that is in the right sidebar as part of a thread, that's where it locks up.  Problem is repeatable every time I try it.
    I have a 21.5 inch iMac, mid-2010 with 4 GB memory, 3.6 Ghz Core i5.  No plugins or software that interacts with Mail.  Never had a real software problem after upgrades (yep, lucky!), Mac user since 1986.  Have not contacted Applecare since I can work around this problem for a while, and don't want to load up the system during what could be a heavy period for support.
    Steve
    p.s. -- while minor, I have another problem with jpeg attachments.  There is an option to add photos to iPhoto from a Mail message, but it no longer works after upgrading to 10.8.2.  I have to download all photos into the Downloads folder, open iPhoto and drag files into that application.  I regularly use the short cut directly from Mail, and noticed this right away.  I have iPhoto 9.4.

    Are you using multiple accounts?  If so then I may have the solution.
    My accounts were set up within mail preferences on 10.8.1.  When I upgraded to 10.8.2 Mail froze, nothing I did would unfreeze it.  So after I return my new MacBook and got a new one the same thing happened again! 
    Here is what I did this time:
    1)     Create a new user profile
    2)     Put in your main iCloud log in
    3)     Do not add your other iCloud adresses using Mail instead go to System Preferences and Mail, Contacts, Calendars and add them there
    Please note this will not work on your existing log in as when you go to System Preferences your old email accounts will cause it to crash as well as mail.
    What might have been easier is if Apple had got mail to come up with a message like 'iCloud accounts should be added through system preferences' instead of crashing every time.  Of course it does make you wonder why mail even has a preferences with an option to add accounts?!
    Hope this helps.

  • Lock Selected objects

    Hi
    Any one please help me to use lock option in javascript
    i want to lock selected objects
    Thank
    APPU

    surendarappu wrote:
    help me to hide instead of lock
    To modify/change the code provided by Muppet Mark, from locking to hiding, see the following:
    // Change this line...
    // selectList[i].locked = true;
    // To the following...
    selectList[i].hidden = true;
    You could also change the two references of "lockSelection" for the function name and call, to something like "hideSelection" to avoid confusion as well if needed.
    * Was this helpful?

  • FM to find user who locked the object using enqueue...

    Hello,
    How can I find name of user who enqueued the lock object in ABAP ?
    Regards,
    Jainam.

    Hi Jainam,
    See the SAP documentation, e.g. [FAQ - Lock concepts|http://help.sap.com/saphelp_NW04/helpdata/en/cb/168237d30d974be10000009b38f8cf/content.htm]:
    How can I find out who is currently holding the ungranted lock? In other words, how can check the program after an ENQUEUE to determine which use is currently holding the lock so that I can let him or her know?                                 
    This graphic is explained in the accompanying text Answer
    When the ENQUEUE_... function module is returned, the name of the lock owner is listed in SY-MSGV1.
    If you don't want to attempt to lock an object and just check who might own a lock use function module ENQUEUE_READ. Lots of comments in the forum...
    Cheers, harald

  • Should we lock the object

    Hi , i have a question , if i want to insert the data Concurrency, what should i do ? whether i should to lock the object,and to read or write?if you know the answer ,tell me,thanks!

    See:
    http://www.oracle.com/technology/documentation/berkeley-db/je/TransactionGettingStarted/index.html

  • Index creation error. Can't lock configuration object.

    Hi,
    My Trex it is giving me a lot of trouble. I am not able to create index with the Trex Search and Classification service (the message I get is==> Index could not be created: null)
    The defaulttrace says:
    #1.5 #0017A4F64A4801160000003200001F7000043C109F857E90#1191942000781#com.sap.workflow#sap.com/irj#com.sap.workflow#Guest#0####9fd2cf80767011dc9b4f0017a4f64a48#Thread[ThreadPool.Worker4,5,SAPEngine_Application_Thread[impl:3]_Group]##0#0#Error#1#/Applications/Workflow/General#Plain###TaskSchedulerDeadline.run()#
    #1.5 #0017A4F64A4801160000003300001F7000043C109F859265#1191942000797#com.sap.workflow#sap.com/irj#com.sap.workflow.#Guest#0####9fd2cf80767011dc9b4f0017a4f64a48#Thread[ThreadPool.Worker4,5,SAPEngine_Application_Thread[impl:3]_Group]##0#0#Error##Plain###LockConfigException: Cannot lock configuration object "config://local/com.sap.workflow/scheduler/task" without a valid user ID.
    at com.sapportals.config.fwk.data.ConfigLockManager.lock(ConfigLockManager.java:516)
    at com.sapportals.config.fwk.data.ConfigLockManager.lock(ConfigLockManager.java:265)
    at com.sapportals.config.fwk.data.Configurable.lock(Configurable.java:184)
    at com.sapportals.config.fwk.data.ConfigPlugin.getAndLockConfigurable(ConfigPlugin.java:452)
    at com.sap.workflow.cfg.AbstractConfiguration.setValue(AbstractConfiguration.java:313)
    at com.sap.workflow.es.scheduler.TaskSchedulerDeadline.run(TaskSchedulerDeadline.java:86)
    at com.sapportals.wcm.service.scheduler.SchedulerEntry.run(SchedulerEntry.java:174)
    at com.sapportals.wcm.service.scheduler.crt.PoolWorker.run(PoolWorker.java:108)
    at java.lang.Thread.run(Thread.java:534)
    What means the message "Cannot lock configuration object "config://local/com.sap.workflow/scheduler/task" without a valid user ID."?
    Have I to do something abut configuration, users, permissions??
    The version is 7.00 patch 57
    Operation system is WServer 2003SR2 Enterprise Edition (En)
    I have installed the TREX HTTP server
    In Monitoring I see a green light for http server, index server, name server, queue server
    I am so confused, don't know wich way to turn.
    Any help will be appreciated.
    Thanks in advance.
    Guillermo.

    Hi,
    It was an error caused by permissions.
    By mistake the repository /taxonomies was manipulated by an user and the permissions were changed.
    After it the portal wasn't able to create new folders under that repository.
    Regards.

  • Moving group/layer/artboard with locked child objects

    In CS5, you could move a group/layer/artboard along with all of the child objects, even if some of the objects are locked.  But in CS6 the locked objects remain unmoved.
    Is there a way to change this behaviour?
    TIA

    I don't know about this convwersation I found some interesting things that might suggest that this is intentional.
    For one if you lock an object(s) in a group in CS 6and try to target the group you will only select the unlocked objects in the group  and effects will only be applied to the unlocked objects. But if you have objects and groups locked ( even if the objects are in groups) and you taarget the layer it will only slect the unlocked objects in the layer and or groups and transforms and effects will only be applies the those objects but if you select the layer using the selection area in the layer then eveything on that layer will be selected and transforms and effects will be applied to everything in the layer.
    I think this is intended to work this way but I think the groups should also worrk this way adding power to the layers panel and more meaning to the target feature.

  • Locked out - permissions problem - List Fetching instead of my name under Get Info

    locked out - permissions problem - List Fetching instead of my name under Get Info - can nott unlock files and some apps

    For 10.7, hold down Command R at Startup and you get recovery Mode Utilities.
    Choose Disk Utility. Select your Hard drive. Check the SMART Status for "Verified. Select the Boot Volume, by default it is "Macintosh HD".Run REPAIR disk. If it completes without incident, run Repair Permissions as well.
    You can also hold down Option at Startup, and Choose Recovery HD as the boot device. It gets you to the same place in Utilities.

  • Locks on objects

    When are locks on objects in a change request released

    Hai,
    Gothrough the following link,
    http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm
    How to Create Lock Object :
    Lock objects:
    Lock objects are use in SAP to avoid the inconsistancy at the time of data is being insert/change into database.
    SAP Provide three type of Lock objects.
    Read Lock(Shared Locked)
    protects read access to an object. The read lock allows other transactions read access but not write access to
    the locked area of the table
    Write Lock(exclusive lock)
    protects write access to an object. The write lock allows other transactions neither read nor write access to
    the locked area of the table.
    Enhanced write lock (exclusive lock without cumulating)
    works like a write lock except that the enhanced write lock also protects from further accesses from the
    same transaction.
    You can create a lock on a object of SAP thorugh transaction SE11 and enter any meaningful name start with EZ Example EZTEST_LOCK.
    Use: you can see in almost all transaction when you are open an object in Change mode SAP could not allow to any other user to open the same object in change mode.
    Example: in HR when we are enter a personal number in master data maintainance screen SAP can't allow to any other user to use same personal number for changes.
    Technicaly:
    When you create a lock object System automatically creat two function module.
    1. ENQUEUE_<Lockobject name>. to insert the object in a queue.
    2. DEQUEUE_<Lockobject name>. To remove the object is being queued through above FM.
    You have to use these function module in your program.
    first one is used to lock the table
    second one used to removing lock on the table.
    lock Table
    CALL FUNCTION 'ENQUEUE_E_TABLE'
    EXPORTING
    tabname = table_name
    EXCEPTIONS
    foreign_lock = 1
    system_failure = 2
    OTHERS = 3.
    Unlock Table
    CALL FUNCTION 'DEQUEUE_E_TABLE'
    EXPORTING
    tabname = table_name.
    Hope this will help to you....
    Regards,
    Harish

  • How to lock PI objects at customer?

    Hi,
    apart from locking SWC, ( making objects not modifiable ) is there any other way to lock PI objects permenantly before giving it to customer?
    regards,
    venkat.

    Venkat,
    This is already discussed in this threads:
    XI Authorisation only for  display
    XI Authorisation only for  display
    Security roles needed for IR and ID access
    Please go through them.
    Regards,
    ---Satish

  • Essbase corruption / Locked Object Problem

    Hi,(Using Essbase 6.5.1)Trying to delete an Essbase application / database. Says it cannot delete because an object is in a locked state. Object doesn't exist. Created an object with the same name (tried the object to be an outline, rules file, & calc script), then tried to lock, then unlock. Still after this process, it insists on the same object name being locked. Also, a dump of the security file shows no such object (or any in the Essbase app/db in question) to be locked at all.We want to totally flush the app/db in question and then recreate it with no locks/corruption. We tried to purge the Essbase security file and start fresh, but when Essbase starts up again, it shows NO APPLICATIONS as existing only the sample ones that come with the product. Maybe we can never use this specific Essbase app/db name combination again. Help!

    I ran into this problem a couple of times when I first took over as Essbase admin and had to clean out the old apps; frustrating isn't it?!The one thing I found to work is using a MaxL command to delete the application.Login to MaxL and use 'drop application APP-NAME cascade force'The main thing here is the key word 'force' I found that, in my environment at least, using the word force blows through any locks, even the ones on objects that don't exist.The key word cascade is telling MaxL to drop the databases too.Post back and let me know if it works.Good LuckHappy Holidays.....

  • Lock object problem on custom table

    Hi all.
    I am having a bit of an issue with a lock object on a home made table. We're using the UWL and a custom IView to display an extended invoice. No problem releasing the workitem lock, just the table entry lock.
    I can see the lock in SM12. Tried dequeue/dequeue all RFCs from backend, no luck.
    The lock is set from a custom RFC. This RFC succesfully releases the lock when used in SAPGUI, and we have an RFC enabled wrapper around it. However, once used in the portal, the locks aren't released. My suspicion is that it has to do with sessions and I can't see a way to control that since dynpro uses a connection pool IIRC.
    Anyone have any ideas on how to solve this?

    Small correction if you are not aware. Do not create your custom tables in APPS schema? Custom tables are supposed to created in custom schema such as XXPO and a synonym created for the table in APPS schema.
    When creating an EO, you do not need to provide the schema name. You would need to enter only the table name.
    Hope this helps.

  • Lock Objects Problem while updating entries in custom table

    Hi Friends,
    Iam updating a custom table ztable from internal table entries.
    ie : Modify ZTABLE from table ITAB.
    Now the entries are updating and inserting perfectly..
    But my problem is i need to use lock objects before doing this..
    I have created a lock obect EZTABLE with all th ekey fields of the table.. ie : it has 2 key fields
    item & matnr .
    Now how to use lock objects here.. do i need to loop the internal table and use enque & deque function module each and every time in loop or use it out side the loop..
    Can any one explain me this..
    Regards,
    Kumar

    hi kumar,
    **check if the equipment is already locked by user, if yes, trigger a mail
                CALL FUNCTION 'ENQUEUE_EIEQUI'
                 EXPORTING
                MODE_EQUI            = 'E'
                MANDT                = SY-MANDT
                   equnr                = lv_equi_temp
                X_EQUNR              = ' '
                _SCOPE               = '2'
                _WAIT                = ' '
                _COLLECT             = ' '
                 EXCEPTIONS
                   foreign_lock         = 1
                   system_failure       = 2
                   OTHERS               = 3.
                IF sy-subrc <> 0.
                  lv_subrc1 =  sy-subrc.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
                ELSE.
                  CALL FUNCTION 'DEQUEUE_EIEQUI'
                   EXPORTING
                MODE_EQUI       = 'E'
                MANDT           = SY-MANDT
                     equnr           =  lv_equi_temp
                X_EQUNR         = ' '
                _SCOPE          = '3'
                _SYNCHRON       = ' '
                _COLLECT        = ' '
                ENDIF.
    try like this to check if the object is locked....
    u can also use
    call function 'ENQUEUE,.
    do the needful changes update the database then commit work
    then call function 'DEQUEUE'
    hope this helps,
    tanmaya

Maybe you are looking for