Losing SFSB after exception thrown - how can I avoid this?

I am using Sun Java System Application Server 9.0
I am using a State Full Session Bean (SFSB) via a Remote Business Interface. In this SFSB I do a �try/catch� to perform an update on an entity with child entities. My catches look for an OptimisticLockException and any other exception. When Oracle throws an OptimisticLockException the catch does not recognize this and catches the any other exception. In both case another exception is thrown, see below for the code. But when this happens the SFSB is destroyed and no longer available causing the client to fail when it tries to use one of the SFSB�s business interface methods.
Can anyone please tell me how I avoid losing the SFSB or how to reload it automatically and quickly?
A plus would be can you tell me why the Oracle exception is not caught by the correct catch? The full exception is oracle.toplink.essentials.exceptions.OptimisticLockException and I have no idea whether is a subclass of another exception type.
} catch (OptimisticLockException ole) {
     Debug.debugPrintln("OrderControllerBean.updateOrder() - optimistic lock exception: " + ole.getMessage());
     throw new EntityAlreadyUpdatedDeleted("Order number: "
                    + oldOrderHeader.getOrderNumber()
                    + "cannot be updated because it has changed or been deleted since you last looked at it");
} catch (Exception ex) {
     Debug.debugPrintln("OrderControllerBean.updateOrder() - other exception persist failed orderNumber: "
                    + oldOrderHeader.getOrderNumber()
                    + " exception: " + ex.getMessage());
     throw new EJBException(ex);
Many thanx����.
Edited by: jdraven on Mar 27, 2008 11:06 PM

No worries!
Thank you for sharing the solution to your problem with the community!
Kameralina
Ask NI (ni.com/ask)
Search The KnowledgeBase
NI Developer Zone
Measure It. Fix It. ni.com/greenengineering/
NI Vision ni.com/vision/

Similar Messages

  • When I create an email signature, the text I type is repeated twice in the actual email sent (above and below a line).  How can I avoid this?

    When I create an email signature, the text I type is repeated twice in the actual email sent (above and below a line).  How can I avoid this?

    Try validating your installed fonts and fixing any errors that show up. To do this see this article: http://reviews.cnet.com/8301-13727_7-20085570-263/safari-in-os-x-lion-replacing- text-with-block-a-characters/

  • I have some chrages on my debit card by error how can i avoid this charges

    i have some charges in my debit card by error how can i avoid this charges.... i reset my password as an email said with that resert the charges won´t be reflected in my account?

    See Recover your iTunes library from your iPod or iOS device.
    tt2

  • I am trying to make a iphoto book but every time i click on a single photo or folder it opens up a new book. How can I avoid this? This is iphoto 10.

    I am trying to make a iphoto book but every time i click on an individual photo (or folder) it opens up a new book. How can i avoid this?

    Export the slideshow out of iPhoto as a QT movie file via the Export button in the lower toolbar.  Select Size = Medium or Large.
    Open iDVD, select a theme and drag the exported QT movie file into the open iDVD window being careful to avoid any drop zones.
    Follow this workflow to help assure the best quality video DVD:
    Once you have the project as you want it save it as a disk image via the File ➙ Save as Disk Image  menu option. This will separate the encoding process from the burn process. 
    To check the encoding mount the disk image, launch DVD Player and play it.  If it plays OK with DVD Player the encoding is good.
    Then burn to disk with Disk Utility or Toast at the slowest speed available (2x-4x) to assure the best burn quality.  Always use top quality media:  Verbatim, Maxell or Taiyo Yuden DVD-R are the most recommended in these forums.
    If iDVD was not preinstalled on your Mac you'll have to obtain it by purchasing a copy of the iLife 09 disk from a 3rd party retailer like Amazon.com: ilife 09: Software or eBay.com.  Why, because iDVD (and iWeb) was discontinued by Apple over a year ago. 
    Why iLife 09 instead of 11?
    If you have to purchase an iLife disc in order to obtain the iDVD application remember that the iLife 11 disc only provides  themes from iDVD 5-7.  The Software Update no longer installs the earlier themes when starting from the iLIfe 11 disk nor do any of the iDVD 7 updaters available from the Apple Downloads website contain them. 
    Currently the only sure fire way to get all themes is to start with the iLife 09 disc:
    This shows the iDVD contents in the iLife 09 disc via Pacifist:
    You then can upgrade from iDVD 7.0.3 to iDVD 7.1.2 via the updaters at the Apple Downloads webpage.
    NOTE:  If you're running iPhoto 9.5 the export options will be different.
    OT

  • Some snaps show up as black screens when I try to view them as single pictures.Even when I run them in slideshows they show up as black screens.These are jpeg files.How can I avoid this happening?

    Some snaps show up as black screens when I try to view them as single pictures.Even when I run them in slideshows they show up as black screens.These are jpeg files.How can I avoid this happening?

    There are several possible causes for the Black Screen issue
    1. Permissions in the Library: Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Include the option to check and repair permissions.
    2. Minor Database corruption: Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild.
    3. A Damaged Photo: Select one of the affected photos in the iPhoto Window and right click on it. From the resulting menu select 'Show File (or 'Show Original File' if that's available). Will the file open in Preview? If not then the file is damaged. Time to restore from your back up.
    4. A corrupted iPhoto Cache: Trash the com.apple.iPhoto folder from HD/Users/Your Name/Library/ Caches...
    5. A corrupted preference file: Trash the com.apple.iPhoto.plist file from the HD/Users/ Your Name / library / preferences folder. (Remember you'll need to reset your User options afterwards. These include minor settings like the window colour and so on. Note: If you've moved your library you'll need to point iPhoto at it again.)
    If none of these help:
    As a Test:
    Hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Create Library'
    Import a few pics into this new, blank library. Is the Problem repeated there?

  • HOW CAN I AVOID THIS ERROR MESAGE WHILE TRYING TO EXPORT AN IPHOTO SLIDESHOW:  The operation couldn't be completed. (OSStatus error -61.)

    HOW CAN I AVOID THIS ERROR MESAGE WHILE TRYING TO EXPORT AN IPHOTO SLIDESHOW:  The operation couldn’t be completed. (OSStatus error -61.)

    Hello,
    I believe the issue was the external HD I purchased was not formatted for Mac . . . once I took care of that - all went well!  The slide show transferred and the surprise 70th birthday party was a huge sucess.  Thank you everyone!

  • The customized settings on my toolbar periodically disappear, and I have to re-set them. How can I avoid this nuisance?

    The customized settings on my toolbar periodically disappear, and I have to re-set them. How can I avoid this nuisance?

    If you mean you're about to perform a restore from a backup to a new device, it depends on the app.  Some will retain their passwords, some will not.  That's my experience.

  • I am trying to make a one to one reservation at a closer Apple store in Denver but each time I put my password in it kicks me over to the retail store where I purchased the one to one service. How can I avoid this?

    I am trying to make a one to one reservation with my new MacBook Air at a retail store of my choosing but each time I put in my password it kicks me over to the Apple store where I purchased the one to one service. How can I avoid this and reserve at the store of my choice?

    I would try the 'old fashioned way, the telephone.
    Ciao.

  • I find 'plugin-container.exe' takes up 68-91% of my CPU and effectively hangs my machine; how can I avoid this, from happening?

    I find 'plugin-container.exe' takes up 68-91% of my CPU and effectively hangs my machine; how can I avoid this, from happening?

    You can disable the plug-in container for one or two plug-ins, or for all the plug-ins it works for. <br />
    http://kb.mozillazine.org/Plugin-container_and_out-of-process_plugins

  • Iphone4  when im talking to someone i always press the mute button how can i avoid this?

    While on the phone i always press the mute or hold button while talking to someone how can i avoid this its driving me crazy so i end up just using speaker phone

    If you have a case on the phone, take it off. It may be interfering with the proximity sensor.  If you have a screen protector, take it off. It may be interfering with the proximity sensor.  Make sure you actually old the phone against your ear. if you hold it away from your ear, the proximity sensor may not be able to tell that you have it up to your face.

  • Stockbroker states that "invalid session" message is due to brownser how can I avoid this?

    I tried to cover a short sale while trading online. Could not execute the trade. Got a message in red "invalid session". Broker tech support stated that it was not their software, it was cause by the browser, Firefoz 5.0 running on Windows XP. How can I avoid this?

    That is not very easy to answer, because the cause of the corruption is unknown.<br />
    In severe cases you may even need to delete the file cookies.sqlite that stores the cookies.<br />
    There is also a possibility that security software or cleanup software is causing such problems.
    If you've never seen it before then it may not happen again, but it is not that difficult to remove the cookies in such a case.
    See also:
    *https://support.mozilla.com/kb/Clear+Recent+History

  • How do know which services use up my data on my tablet? 2:How can I avoid this?

    How do know which services use up my data on my tablet? 2:How can I avoid this?

        @mwbail2,
    Great question! Managing your data usage is definitely important. You can view what apps are using data by going to Settings and then Mobile data on your phone. There is will show you the apps using data.
    If you want to avoid the data usage on the apps you want to make sure you close out the apps when not in use. You can also make sure that they are not automatically updating whenever there is a new update to the app. To do this simply go to the Play Store and select Menu. Then go to Settings and there you will see the option to change the auto update to update over wifi only.
    If you want to complete turn off data, just go to Settings and then mobile network and turn it off. Keep me posted if you need further assistance.
    JohnB_VZW
    Follow us on Twitter @VZWSupport

  • How can i solve this Exception that "How can i solve this exception that "End of stack trace from previous location where exception was thrown" in Windows phone 8.

    Hi Sir/Mam,
    Please give me solution for this problem.I tried this in all ways for solve this problem like i checked my all class objects cleared or not when leaving current page to come to before page.
    This Exception came at After saved data in the wp8 device database,then it is coming to back page(when i navigate to another page) then that navigated page running and go to "Public Asyn Void Listmenu()" method ,in this method again retrieve the
    data from database after getting this data,it shows this Exception.
    Note :-This Exception came in WP8 Device only,not in Emulator.In the Emulator it is working fine.
    My Exception:-
    Exception:- System.Exception.Exception.HRESULT:0*80040015
    at
    System.Runtime.CompliterServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at
    System.Runtime.ComplierServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at
    System.Runtime.ComplierServices.TaskAwaiter'1.GetResult()
    at
    _10Min._10MinUserPages.<checkStatusAndSavedDataExistinFormTable>d_e3.MoveNext()
    End of stack trace from previous location where exception was thrown
    at
    system.runtime.Compilerservices.TaskAwater.throwForNonSuccess(Task task)
    at
    System.Runtime.compilerservices.TaskAwaiter.HandlerNonSuccessAndDebuggerNotification(Task task)
    at
    System.Runtime.ComplierServices.TaskAwaiter'1.GetResult()
    at
    _10Min._10MinUserPages.<listmenu>d_8.MoveNext().
    How can i solve this problem please help me. I am suffering from 1 week days with this problem.
    Please help me.any one.
    Thanks & Regards,
    SrinivaaS.

    Is the flow of code to the point where exception occurs:
    1) Data saved in Db
    2) Navigated back
    3)Navigated to another page
    4) Method ListMenu() is called(as soon as navigated to page in step 3) to retrieve the saved data from db & exception occurs.
    Can you paste here the definition of ListMenu(), also does the exception occurs as soon as db is accessed inside this method or else.
    http://developer.nokia.com/community/wiki/Using_Crypto%2B%2B_library_with_Windows_Phone_8

  • I need to override a certificate error in version 31 - I don't see the old choice to add exception. How can I do this?

    I work in a test environment and need to override the security error in new version 31, but it does not seem to be available. How can I do this?
    Secure Connection Failed
    An error occurred during a connection to shopdeluxe-bnb.uat.deluxe.com. Issuer certificate is invalid. (Error code: sec_error_ca_cert_invalid)

    Options/Preferences > Advanced > Certificates > "Add Exception" is where you can add a local cert. There was also a new ca cert [https://blog.mozilla.org/security/2014/04/24/exciting-updates-to-certificate-verification-in-gecko/] If there are any issues please file a bug.
    [Self-signed certificates make your data safe from eavesdroppers, but say nothing about who the recipient of the data is. This is common for intranet websites that aren't available publicly. ] via [https://support.mozilla.org/en-US/kb/secure-connection-failed-error-message].
    This may be helpful as well: [https://support.mozilla.org/en-US/questions/1002237]

  • Old operating systems allowed you to click on recipients when sending emails without adding a comma after each address. Now with the new and improved system, I have to stop and add a comma after each name. How can I avoid this?

    With the new OSX system, whenever I send an email with multiple recipients, I need to physically add a comma after each address. I never needed to do that with all the other older systems, it was done automatically. How can I fix this frustrating glitch?

    option discovered in preferences. Really this and any feature that moves deletes or edits a users data should as far as possible be OFF BY DEFAULT. It shouldn't by default and without the users specific say do this dangerous and unnecessary thing without even letting the user know what it's doing!!! And then cause me a few hours (as i'm new to mac) searching for the option so as to switch it off. If i hadn't noticed the status cage declaring that it was copying files then i might never have twigged that this insane thing was occurring. And if i hadn't of noticed i would have been left maintaining the contents of the folder i copied the files to, the folder which as far as i was informed and so believed was also the location of the music files i was playing. How does Apple justify this 'genius' piece of software non-design? Surely it will hurt no one if this was off by default for new users - overall at least i dare say it would cause a lot less distress in the future for the unsuspecting public at large. Thanks for the support.

Maybe you are looking for

  • Program to look for texts in reports (like EWK1)

    Hi, i need to look for a remote function used in crm but tx EWK1 doesn't exist in CRM, is there any program or report similar ?? thanks in advance !!

  • How to change the name or have no name for an iCloud email alias

    I had MobileMe on the iPhone with alias email addresses and I liked how it didn't attach any "name" to an alias. For example, I had MainUserName, then for aliases I would have [email protected], [email protected], etc. When I sent an email from my iP

  • Solaris 10 on Virtual Machine

    Hi all, I installed Solaris 10 on VM (VMWare). For installing some application I need to partition disk like shown below (I added SCSI disk, 12 GB from VM settings): DISKS:c2t0d0(12000) SLICE:root:/:1024:-:-:-:c2t0d0s0:- SLICE:swap:swap:512:-:-:-:c2t

  • Substr and instr for variables assginement in a csv file

    Hi gurus Belows is my input csv file like with no fixedl enght vinput_file: WESTERN SAHARA,Moroccan Dirham,MAD,504,2, YEMEN,Yemeni Rial,YER,886,2, ZAMBIA,Zambian Kwacha,ZMW,967,2, ZIMBABWE,Zimbabwe Dollar,ZWL,932,2, and i want to assign 3 letter alph

  • [SOLVED] conditional xrandr command in .xinitrc

    Hi, I've got a 1366x768 laptop screen and a 1280x1024 external monitor hooked up via VGA. When I start awesome WM, my VGA one isn't recognized automatically, so I've added the following to my .xinitrc: xrandr --output VGA1 --mode 1280x1024 There are