When ConcurrencyManager will be locked?

Hi all,
Our application server (OC4J 9.0.3) has encountered a locking problem. With the thread dump listed below, we know that our stateful session bean has been locked with TopLink (9.0.3) 's ConcurrencyManager. May I know under what condition, this manager will be locked? Thank you for the any help offered!
"ApplicationServerThread-23" prio=5 tid=0x3df478 nid=0x2b waiting on monitor [0xc2f80000..0xc2f81a00]
     at java.lang.Object.wait(Native Method)
     at java.lang.Object.wait(Object.java:415)
     at oracle.toplink.internal.helper.ConcurrencyManager.acquire(Unknown Source)
     at oracle.toplink.publicinterface.Session.beginTransaction(Unknown Source)
     at oracle.toplink.publicinterface.UnitOfWork.beginTransaction(Unknown Source)
     at oracle.toplink.publicinterface.UnitOfWork.internalExecuteQuery(Unknown Source)
     at oracle.toplink.publicinterface.Session.executeQuery(Unknown Source)
     at oracle.toplink.publicinterface.Session.executeQuery(Unknown Source)
     at oracle.toplink.publicinterface.Session.executeNonSelectingCall(Unknown Source)
Thanks and regards,
William

Hi Douglas,
Thanks for your kindly advice. Hope the following replies can explain the case in more details.
[qoute]
1. Why are you using a database session per session bean versus a shared server session? Creating a new session for each SB can be expensive.
[qoute]
Our systems runs on a cluster, and we have difficult to synchronize the session cache among different JVM with Toplink 9.0.3. Therefore we choose to use database session per session bean to make sure that we will not have stale data due to cache synchronization problem. To minize the cost paid for the session bean creation, the session bean we used is stateful. It handles all the requests coming from a single user.
>
2. Are you sure you have a dedicated/isolated database session per SB? Getting your database session from the SessionManager will return the same singleton database session on each request.
We creates the session object via the oracle.toplink.sessions.Project object instead of SessionManager. Since the Project object are created with object reflection, I believe all database session object created are isolated.
>
3. Are you sure you do not intentionally or unintentionally have multiple threads accessing the same database session and/or UnitOfWork? Similar to #2
All business logics are executed with the stateful session bean which has a dedicated database session. Since the session bean is stateful, we also have to sychronize all the access to this bean. Unless our application developer has made some silly mistakes to acquire the database session from another stateful session bean and override it with the one our framework provided, it is unlikely we have multiple threads accessing the same database session. Anyway, I will double check this with our application developers as it is the only available possible cause of the error.
[qoute]
As to your issue about not being able to acquire any additional SFSB from the container once the lock has occurred. There is nothing in TopLink that can prevent a session bean from being returned by the container. Is there anything in the full thread dump that indicates container threads are blocked?
With the full thread dump, we noticed that the EJB container (OC4J 9.0.3) was trying to release a timeout stateful session bean.
"TaskManager" prio=5 tid=0x807678 nid=0x12 waiting for monitor entry [0xc3f81000..0xc3f81a00]
     at com.evermind.server.ejb.AbstractEJBObject.isInCall(AbstractEJBObject.java:90)
     at com.evermind.server.ejb.StatefulSessionEJBHome.removeTimedOutSessions(StatefulSessionEJBHome.java:115)
     at com.evermind.server.ejb.EJBTask.run(EJBTask.java:58)
     at com.evermind.util.TaskManager.run(TaskManager.java:181)
     at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:798)
     at java.lang.Thread.run(Thread.java:479)We suspected that, due to the lock (Object.wait()) occurred with the TopLink, the EJB container cannot release the SFSB successfully. And hence, it blocks the EJB container to return new stateful session bean.
"ApplicationServerThread-16" prio=5 tid=0x36d3f0 nid=0x21 waiting for monitor entry [0xc3680000..0xc3681a00]
     at com.evermind.server.ejb.StatefulSessionEJBHome.getNextID(StatefulSessionEJBHome.java:37)
     at com.evermind.server.ejb.StatefulSessionEJBObject.<init>(StatefulSessionEJBObject.java:40)
     at com.evermind.server.ejb.RemoteStatefulSessionEJBObject.<init>(RemoteStatefulSessionEJBObject.java:16)
     at
...BTW, I am not really familar with EJB. Could we call "Object.wait()" within a session bean?
Moreover, could the TopLink was waiting for a return from database? Could the problem we encountered with be related to database row lock?
Thanks and regards,
William

Similar Messages

  • Is it safe to update iphone 4 to ios 5? I bought it from Apple Store UK but I live in Turkey. The phone is simfree. Is it possible that when I update it, it will be locked? If so how can I fix it?

    People say that even the Iphone 4 is factory unlocked, when you update it to ios 5, it will be locked and there is no solution for that. I use ios 4.3.3 I hope you can help me. Thank you so much. Gizem.

    If it is an officially unlocked iPhone, you can use any supported SIM.
    Follow these steps to upgrade: iOS 5: Updating your device to iOS 5

  • Phone will not lock when charging

    My phone will not Lock when charging through the computer or the wall socket. the screen will go dim only. it is ok in regular use

    Hey sajidkhan,
    Make sure Auto-Lock is not set to Never.
    Goto Settings> General >Auto-lock.
    Auto-Lock is described on page 97 of the iPhone User Guide.
    http://manuals.info.apple.com/en/iPhoneUserGuide.pdf
    Jason

  • If I have an unlocked iPhone 4 and want to upgrade to ios7, will it lock on me when installed?

    If I have an unlocked iPhone 4 and want to upgrade to ios7, will it lock on me when installed?

    Hi,
    No, you can upgrade and your device (not your OS version) will stay unlocked.
    Hope that helps.

  • Is there a setting that disables vibration while i am using my phone but allow my notification to continue to roll down AND enable vibration only when my phone is locked.

    The problem is that I want to be able to read the notifications that roll down but the vibration is very very annoying when i hold the phone in my hands or put it on a hard surface. I am in a group convo and when i am using my phone on an app, and still wish to see what my friends send through the notification that rolls down, my phone will vibrate. And with each notification that rolls down, my phone vibrates. So when my friends spam in the group or are having a very lively conversation, my phone will vibrate non-stop and it gets annoying because it makes a buzzing sound and its very annoying when i am holding it. also, i do not wish to turn vibration off entirely because then i wont be able to be notified when my phone is locked. is there a setting for this?
    if there isnt then i actually really hope apple would include an option like this in their settings. it would be incredibly helpful for me. and maybe some other people, i guess?

    Tap on the screen to get the camera to autofocus.  If the image looks clear to you, but the app isn't accepting it, it's a problem with the app.  Delete it and reinstall it.  If the issue persists, contact the app developer.

  • My iphone3g its ben having a lot of problems i it will not lock i open a game and it will go to im  ipod im probly going to get a new one but i would like to know what is rong

    my iphone3 its ben havin g a lot of problems it will not lock i open a game and
    it will go to ipod  im going to get a new one but i would like to know what is rong with it

    Yeah, and it didn't work.
    I had problems when I updated to iOS 5 (lost all my apps - a few of my friends had the same problem) and when there was an update to iOS 4 (camera wouldn't work). The iOS 5 issue was sorted by backup (but I lost the app data) but for the iOS 4 issue I had to return my iPod to get a new one.

  • HT5858 i have an iPhone 4s, when I tried to use control center to skip songs ( or signs) or when my phone is locked, i double press the home screen, i also can't skip songs. what's going on?

    i have an iPhone 4s, when I tried to use control center to skip songs (>> or << signs) or when my phone is locked, i double press the home screen, i also can't skip songs. what's going on? please help me. i know the skip is being pressed because the sign lit up, but the song didn't skip. please help. thank you.

    I am having the same problem with my Iphone 4. After update the phone will not control audio from the control center (Friend with Iphone 4S is having same issue). Tried to reset phone and it started working "once". Next time I tried to use the control center it didn't work again. Their needs to be some kind of a fix for this?

  • We are running 3 batches parallel(a.ksh,b.ksh,c.ksh parallel ) .if a.ksh will complete then d.ksh will start('d' start when 'a' will terminate successfully) and we have to handle error for all jobs ( if some job got aborted during runtime) ?

    we are running 3 batches parallel(a.ksh,b.ksh,c.ksh parallel ) .if a.ksh will complete then d.ksh will start('d' start when 'a' will terminate successfully) and we have to handle error for all jobs ( if some job got aborted during runtime) ?

    Moderator Action:
    You already asked this question, two days earlier.
    https://forums.oracle.com/thread/2585158
    Stay with your original post.   Deliberate multiple posting is the same as spamming the forums.
    This new post is locked.

  • When my z2 is locked unable to see notification icons

    Hi all
    when my z2 is locked I am unable to see notification icons, like missed calls, messages and emails. Please help me

    Hi Andy1374, welcome to the community!
    If you can't remember your passcode then you can do one of the following:
    Run a software repair on the handset (this will delete all user data)
    or Log into my Xperia (if you have previously set it up) > Locate the device > Press Lock > Enter code > now a different unlock box should appear on your screen > enter the code. 
    To run a software repair: 
    Download PC Companion or Bridge for Mac.
    Running the software repair on PC Companion:
    1. Install and open PC Companion then select Support Zone.
    2. Phone Software Update.
    3. Start.
    4. Repair Phone
    5. Continue
    6. Accept data removal
    7. Next
    8. Wait for prepare
    9. Select Phone
    10. Follow the connection steps
    Running the software repair on Bridge for Mac:
    1. Launch Bridge for MAC without the handset connected.
    2. On the Main Window select "Xperia > Repair Xperia
    Device".
    3. Ensure the phone is charged and select "Ok" in the
    following window.
    4. Select Continue on the following page.
    5. Wait until the initialising step is finished the
    continue as below.
    6 . Select your model of phone from the list that appears
    7. Follow the connection steps that appear, ensuring that
    you are holding the relevant button down before during and
    after the connection phase until the update/repair begins.
     - Official Sony Xperia Support Staff
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

  • HT1766 what do i do when my phone is locked and it says to connect to itunes?

    what do i do when my phone is locked and it says to connect to itunes?

    If You Are Locked Out Or Have Forgotten Your Passcode
    iTunes 10 for Mac- Update and restore software on iPod, iPhone, or iPad
    iPhone, iPad, iPod touch: Wrong passcode results in red disabled screen
    iOS- Understanding passcodes
         If you have forgotten your Restrictions code, then follow the instructions
         below but DO NOT restore any previous backup. If you do then you will
         simply be restoring the old Restrictions code you have forgotten. This
         same warning applies if you need to restore a clean system.
    A Complete Guide to Restore or Recover Your iDevice (if You Forget Your Passcode)
    If you need to restore your device or ff you cannot remember the passcode, then you will need to restore your device using the computer with which you last synced it. This allows you to reset your passcode and re-sync the data from the device (or restore from a backup). If you restore on a different computer that was never synced with the device, you will be able to unlock the device for use and remove the passcode, but your data will not be present. Refer to Updating and restoring iPhone, iPad and iPod touch software.
    Try restoring the iOS device if backing up and erasing all content and settings doesn't resolve the issue. Using iTunes to restore iOS devices is part of standard isolation troubleshooting. Restoring your device will delete all data and content, including songs, videos, contacts, photos, and calendar information, and will restore all settings to their factory condition.
    Before restoring your iOS device, Apple recommends that you either sync with iTunes to transfer any purchases you have made, or back up new data (data acquired after your last sync). If you have movie rentals on the device, see iTunes Store movie rental usage rights in the United States before restoring.
    Follow these steps to restore your device:
         1. Verify that you are using the latest version of iTunes before attempting to update.
         2. Connect your device to your computer.
         3. Select your iPhone, iPad, or iPod touch when it appears in iTunes under Devices.
         4. Select the Summary tab.
         5. Select the Restore option.
         6. When prompted to back up your settings before restoring, select the Back Up
             option (see in the image below). If you have just backed up the device, it is not
             necessary to create another.
         7. Select the Restore option when iTunes prompts you (as long as you've backed up,
             you should not have to worry about restoring your iOS device).
         8. When the restore process has completed, the device restarts and displays the Apple
             logo while starting up:
               After a restore, the iOS device displays the "Connect to iTunes" screen. For updating
              to iOS 5 or later, follow the steps in the iOS Setup Assistant. For earlier versions of
              iOS, keep your device connected until the "Connect to iTunes" screen goes away or
              you see "iPhone is activated."
         9. The final step is to restore your device from a previous backup.
    If you can not restore your device then you will need to go to recovery mode.
    Placing your device into recovery mode:
    Follow these steps to place your iOS device into recovery mode. If your iOS device is already in recovery mode, you can proceed immediately to step 6.
         1. Disconnect the USB cable from the iPhone, iPad, or iPod touch, but leave the other end
             of the cable connected to your computer's USB port.
         2. Turn off the device: Press and hold the Sleep/Wake button for a few seconds until the
             red slider appears, then slide the slider. Wait for the device to turn off.
              If you cannot turn off the device using the slider, press and hold the Sleep/Wake
              and Home buttons at the same time. When the device turns off, release the Sleep/Wake
              and Home buttons.
         3. While pressing and holding the Home button, reconnect the USB cable to the device.
             The device should turn on. Note: If you see the screen pictured below, let the device
             charge for at least ten minutes to ensure that the battery has some charge, and then
             start with step 2 again.
         4. Continue holding the Home button until you see the "Connect to iTunes" screen.
             When this screen appears you can release the Home button.
         5. If necessary, open iTunes. You should see the following "recovery mode" alert:
         6. Use iTunes to restore the device.
    If you don't see the "Connect to iTunes" screen, try these steps again. If you see the "Connect to iTunes" screen but the device does not appear in iTunes, see this article and its related links.
    Additional Information:
    Note: When using recovery mode, you can only restore the device. All user content on the device will be erased, but if you had previously synced with iTunes on this computer, you can restore from a previous backup. See this article for more information.

  • Shouldn't push work even when your phone is locked and "sleeping"?

    I thought that was the whole point to get an instant notification?
    It seems to me like i get a bunch of email notifications a few seconds after I unlock it but otherwise it sits there and does nothing...
    This is over wifi right now I don't have a data plan.

    I'm having the exact same issue with my 16gb 3Gs.
    Push emails will arrive at seemingly random times (sometimes not at all) when the screen is locked.
    If I unlock the screen and wait 2-3 seconds e-mail will arrive.
    I do have a data plan (Well I'm supposed to) with Vodafone in the UK. Is this a fault with the iphone or is there something else that is causing this ?
    Thanks in adavnce.

  • Please add 'Decline' button when the phone is locked in ios7

    A must required feature is not available in ios7 though the same was available in previous version.
    Pls add the 'Decline' option for rejecting the incoming calls. the new features like message/remind me are not so much helpful for us.
    Thanks!

    You can disconnect an incoming call by pressing the sleep/wake button twice when the screen is locked.
    This seems quiet helpful to me as sometimes(though rarely) the call might get disconnected when its lying in your pocket or when you try to take the iPhone out of your pocket during an incoming call.
    Apple Will never do anything for no reason.
    CHEERS!

  • HT6058 When can we have Reject option for a call when the screen is locked?

    Its very annoying that we cannot REJECT a call when we want when the phone is locked . When will we have this fixed?

    Tell Apple you'd like to see this on the Lock Screen:
    http://www.apple.com/feedback/iphone.html

  • What happens if the exception occurs in a thread when it has a lock

    what happens if the exception occurs in a thread when it has a lock
    on object. Is the lock released ?

    Rastogha wrote:
    ok so lock is released if we are putting code in try-catch block. . right ?
    1) But suppose what abt runtime exceptions which i am not catching. It doesn't matter what kind of exception it is. The lock is released when control is transferred outside the sync block.
    2)Also the thread will be suspended in both the cases or not ( both cases mean for runtime exception and checked exception)Again, the kind of exception doesn't matter. Whether you're in a sync block or not doesn't matter: When an exception occurs, control transfers to the nearest catch block that can handle it. If you don't provide a handler for it, the thread terminates.
    If something is not clear, post code that shows the specific situations you're curious about. Make sure you use the CODE button or [code] and [/code] tags.

  • Out of curiosity: Will Activation Lock still work after an iPhone auto-erases on the 10th failed passcode attempt?

    Believe me, I'm no chicken when it comes to security. Using a combination of a strong alphanumeric passcode laced with non-Latin homoglyphs, Activation Lock (which Find My iPhone automatically enables), a disabled Siri when the phone is locked, a disabled Control Center when the phone is locked (both of those are security risks due to Airplane Mode), and Data Protection (erase phone after 10 failed passcode attempts), there's no doubt someone other than me is going to have a real hard time trying to use my device...
    ... Or so it seems. I've been digging through the Apple support articles to find out what exactly Activation Lock does, and I noticed that if someone goes into Settings -> General -> Reset -> Erase All Content and Settings and erases the device in a seemingly authorized manner, Activation Lock gets disabled with it. However, if someone else tries to erase it, or if it's erased remotely, then it will still display the Activation Lock message and require login with the username and passcode used to log in initially. Here's the real issue, though: Not one of those articles mentions what happens when you have Data Protection enabled and Data Protection happens to get set off by a thief attempting to brute force one's passcode, and how nicely Activation Lock plays with it. Does anyone else have that information, just in case?

    While I have yet to confirm this with Apple, my understanding is that the auto-erase wil leave the Activation Lock intact. AL wouldn't be of much use if a thief could get around it by just entering in the wrong passcode multiple times. You'll forgive me though, I trust, if I don't try to test this with my own device.
    Regards.

Maybe you are looking for

  • Can I set up a new iPhone using an old iPod backup?

    The support articles cover backing up and then restoring from backup but only on like devices. I just got my first iPhone and I need to set it up with my old iPod data. iTunes didn't cue me when I plugged it in and just set up the phone as a new phon

  • How to avoid JMS validation when starting weblogic server

    Hi All, When starting up WebLogic server, it will validate JMS destinations one by one for deployed applications. If I don't connect the VPN, then these JMS destinations are not reachable, and WebLogic Server will spend a lot of time to try connectin

  • Copy Billing plan from Contract to Sales Order

    Dear Expert,              We created the Contract with Billing plan related to specific "WBS "Element". Then, tried to create the sales order with reference to that Contract. But billing plan details maintained in contract is not getting copied to sa

  • APEX link to external source

    Hi, I was wondering if APEX had the functionality to link to external applications such as Digital Paper? Right now, im my APEX application & Digital Paper Application, every viaduct is indexed by a Reference Number. Can I link my APEX record to pict

  • PLAN_TABLE location

    (9.2) PLAN_TABLE was created originally in SYS but it is not accessible (there is no grants). So everybody created its own plan tables in different schemas, also TOAD_PLAN_TABLEs. As part of maintenance I have removed all plan tables (except in SYS -