No externally managed transaction is currently active for this thread

Got the following exception after updating an entity bean and call persist method. Code the given below the exception.
Exception [TOPLINK-23010] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.TransactionException
Exception Description: No externally managed transaction is currently active for this thread
public Object persistEntity(Object entity) {
em.flush();
em.persist(entity);
return entity;
private void modifyUser (Iuser user, String newHandle, Hashtable userDetails) throws UnknownException, WarningException {
if (user == null) {
throw new WarningException (new CatalogHelper("ITOOLS_000015", "to modify a user"));
boolean handleUpdate = false;
if ((newHandle != null) && !newHandle.equals("^\\s*$")) {
handleUpdate = true;
String oldHandle = user.getUserhandle();
if (handleUpdate && oldHandle.equalsIgnoreCase(newHandle)) {
handleUpdate = false;
if (!handleUpdate && (userDetails == null) || (userDetails.size() == 0)) {
return;
if (handleUpdate) {
userDetails.put("userhandle", newHandle);
IToolsUtil.validateInputData("iuser", userDetails, false);
if (handleUpdate) {
userDetails.remove("userhandle");
System.out.println("handleUpdate " + handleUpdate);
// For User admin, handle, isactive, isadmin cannot be changed.
if (oldHandle.equals("admin")) {
if (handleUpdate) {
throw new WarningException (new CatalogHelper("ITOOLS_000045", "Handle"));
String active = (String)userDetails.get("isactive");
if ((active != null) && !active.equals("Yes")) {
throw new WarningException (new CatalogHelper("ITOOLS_000045", "Is Active"));
String admin = (String)userDetails.get("isadmin");
if ((admin != null) && !admin.equals("Yes")) {
throw new WarningException (new CatalogHelper("ITOOLS_000045", "Is Admin"));
System.out.println("user transaction started");
if (handleUpdate) {
FinderMethods fm = new FinderMethods();
try {
fm.findByUserHandle(em, newHandle);
throw new WarningException (new CatalogHelper("ITOOLS_000043", newHandle));
} catch (ObjectNotFoundException onfe) {
user.setUserhandle(newHandle);
System.out.println("User handle modified");
} catch (SQLException se) {
se.printStackTrace();
throw new UnknownException (new CatalogHelper("ITOOLS_100000", new Object[]{"modifyUser", se.getMessage()}));
String lname = (String)userDetails.get("userlname");
if (lname != null) {
user.setUserlname(lname);
String fname = (String)userDetails.get("userfname");
if (fname != null) {
user.setUserfname(fname);
String email = (String)userDetails.get("useremail");
if (email != null) {
user.setUseremail(email);
String passwd = (String)userDetails.get("userpasswd");
if (passwd != null) {
user.setUserpasswd(passwd);
String active = (String)userDetails.get("isactive");
if (active != null) {
user.setIsactive(active);
String admin = (String)userDetails.get("isadmin");
if (admin != null) {
user.setIsactive(admin);
System.out.println("details are updated");
persistEntity(user);
System.out.println("committed");
How to resolve this issue? I am using Jdeveloper 10.1.3.0.4 (SU4)
regds
-raju

The stack trace is given below. This exception is occured at "em.flush()" method. I even tried removing em.flush() method. Even then I got the same exception.
I tried a different way of overcome this problem. Used UserTransaction instance say "ut" before create / modify the entity bean and later comitted. In that case I am not getting any exceptions. However, commit is happening only when new instance is created, commit works, but modification of an existing instance, commit is not working. Looks like there is some serious problem with EJB 3.0 in OC4J. Basic functionality is not working.
Stack trace when flush method is called:
Local Exception Stack:
Exception [TOPLINK-23010] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.TransactionException
Exception Description: No externally managed transaction is currently active for this thread
     at oracle.toplink.exceptions.TransactionException.externalTransactionNotActive(TransactionException.java:98)
     at oracle.toplink.internal.ejb.cmp3.transaction.base.JTATransactionWrapper.checkForTransaction(JTATransactionWrapper.java:39)
     at oracle.toplink.internal.ejb.cmp3.base.EntityManagerImpl.checkForTransaction(EntityManagerImpl.java:322)
     at oracle.toplink.internal.ejb.cmp3.base.EntityManagerImpl.getActiveUnitOfWork(EntityManagerImpl.java:314)
     at oracle.toplink.internal.ejb.cmp3.base.EntityManagerImpl.flush(EntityManagerImpl.java:164)
     at com.itools.vs.model.session.AdminSessionBean.persistEntity(AdminSessionBean.java:57)
     at com.itools.vs.model.session.AdminSessionBean.createUser(AdminSessionBean.java:124)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:585)
     at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
     at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
     at java.lang.Thread.run(Thread.java:595)
Stack trace when persist method is called:
Local Exception Stack:
Exception [TOPLINK-23010] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.TransactionException
Exception Description: No externally managed transaction is currently active for this thread
     at oracle.toplink.exceptions.TransactionException.externalTransactionNotActive(TransactionException.java:98)
     at oracle.toplink.internal.ejb.cmp3.transaction.base.JTATransactionWrapper.checkForTransaction(JTATransactionWrapper.java:39)
     at oracle.toplink.internal.ejb.cmp3.base.EntityManagerImpl.checkForTransaction(EntityManagerImpl.java:322)
     at oracle.toplink.internal.ejb.cmp3.base.EntityManagerImpl.getActiveUnitOfWork(EntityManagerImpl.java:314)
     at oracle.toplink.internal.ejb.cmp3.base.EntityManagerImpl.persist(EntityManagerImpl.java:74)
     at com.itools.vs.model.session.AdminSessionBean.persistEntity(AdminSessionBean.java:57)
     at com.itools.vs.model.session.AdminSessionBean.createUser(AdminSessionBean.java:123)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:585)
     at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
     at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
     at java.lang.Thread.run(Thread.java:595)

Similar Messages

  • Exchange Web Services are not currently available for this request because none of the Client Access Servers in the destination site could process the request.

    Hi,
    I am using EWS Java APIs and passing OAuth tokens to fetch data from office 365 mailboxes.
    Because I am developing Web APIs I preferred using "Application Permissions" defined in Azure active directory application for Office 365, and used "client credential flow" OAuth flow to fetch OAuth token specific to application which will
    allow "Have full access via EWS to all mailboxes in the organisation".
    After fetching token with the procedure specified in the document "http://blogs.msdn.com/b/exchangedev/archive/2015/01/21/building-demon-or-service-apps-with-office-365-mail-calendar-and-contacts-apis-oauth2-client-credential-flow.aspx"
    I passed this token to EWS Java APIs,
    it gave me error saying:
    microsoft.exchange.webservices.data.ServiceResponseException: Exchange Web Services are not currently available for this request because none of the Client Access Servers in the destination site could process the request.
    I tried similar thing with EWS managed APIs for .net. Got similar error.
    Can anyone provide some help and direction to resolve this error.
    Thanks & Best Regards,
    Pranjal

    I see you found an answer with the X-AnchorMailbox header on StackOverflow:
    http://stackoverflow.com/questions/29554724/exchange-web-services-are-not-currently-available-for-this-request-because-none

  • Mac OS X 10.7 drivers for HP LaserJet 1300: installation at the "Add Printer" process ended, every time, with message "Currently drivers for this printer are UNavailable..."!   PLEASE HELP?

    APPLE [see Apple Support's Article HT 3669] says Mac OS X 10.7 (Lion) has drivers for this Printer. 
    But, every time I've tried installing it to my Mac Book Pro (which came with OS X 10.7), it does recognize that the Printer (connected via USB cable) is HP LaserJet 1300 -- in fact, right below, this statement appears: "The drivers for this Printer are available...".  But, when it comes to the actual process of downloading, the "Add Printer" window -- after 20+ minutes of its "searching" for the drivers -- always ends with the message: "Currently drivers for this printer are UNavailable... contact the manufacturer."!!!  (Can you imagine? Apple says it's available... but its own "Add Printer" process says it's UNavailable!)
    I went to HP's support site, and it, too, says that drivers for this Printer are available!  -- see the 2 links:
      http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01664444&lc=en&cc=us&dlc=en &product=4152639
      http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02915680&tmp_track_link=ot_ faqs/top_issues/en_us/c02915680/loc:4&cc=us&dlc=en&lc=en&product=4152639#N507
    Can somebody help me?  Would very much appreciate it.

    You haven't installed any of the Photoshop updates for CS5.
    Go download and install the updates.

  • Quick view is currently unavailable for this item

    There must be something set up wrong because when I go into Itunes "reccomendations for you" every item that I try to see using quick view always comes up with the same message " Quick view is currently unavailable for this item". perhaps someone had the same problem and found a solution. itunes for Windows in a windows 8 machine.

    Same here. I actually had this problem a few iTunes versions ago, and it lasted for a year or so. I don't even remember what I did or what happened that fixed it. Wish I could recall. I can't view any quick views for my Genius Recommendations in the iTunes store.

  • KDE. network manager "No agents were available for this request"

    I think there might be a bug with the networkmanagement plasmoid.
    Not sure if this is the right place to post it, or if maybe I should take this to the KDE forms¿??
    Anyway, took me quite a while to reproduce this, but it seems that with WPA wireless connections, when setting the "store connection secrets" to: "in secure storage (encrypted)", and then trying to edit the connection, an error is displayed with the following:
    "No agents were available for this request"
    im running kdeplasma-applets-networkmanagement 1:0.9.0.5-1 with its marked dependencies.
    Can anyone explain why this is happening?
    Am I missing something (agent??) in order to be able to store secrets in an encrypted file?
    Cheers.

    Use net-profiles.  arch linux wiki recommended that i think. Anyways, kde network manager lose connection every 1 minutes( in 2 machines i have tested ubuntu and arch linux).

  • How do I get a list of current activations for my license?

    We have a company license which we use for multiple installs.  Over time, we have replaced and/or reimaged PCs and reinstalled and activated the software.  We just started getting a warning that license have been exceeded.  We were unaware it needed to be deactivated on decommissioned machines.  How do we get a list of activated machines and reconcile that with the machines which have had it removed or been reimaged and activated again?

    Hi,
    There is not tool available for external use to keep check of your activations.
    You have to manually keep track or you may contact customer service to check activation count on product.
    Regards,
    Ajlan Huda.

  • Opem Item Management needs to be activated for GL Account

    Hi Friends,
    While creating GL A/c (Loss Claims Recoverble) not select Open item management.
    I want to update the GL A/c with Open item management selection button in GL master.
    While running program : RFSEPA02 giving Message as
    "Do not use the report program to set up open item management for the account.
    Create a new account with the correct account assignment. Post your items to the new account. If you want to use the original account number, you must bring the account balance to zero, change the account assignment, and repost the items. You can remove the old items by archiving the documents."
    and coming out of the program execution mode.
    What shall I do.
    Regards,
    Suresh
    Edited by: Suresh Kumar on Sep 26, 2008 3:39 PM

    Hi,
    What is the process to revert line items to become account value Zero.(0),
    Again how can we repost line items to the same account.
    My idea is to revert entries through : F-02, is there any other way to revert open items.
    Regards,
    Suresh

  • HT1222 is there a virus currently active for mac.

    I was told there is a virus that can get in to the mac system by downloading internet files. Is this known to be true by any one else?

    Not a virus, but a trojan.
    Two Helpful Links Regarding Flashback Trojan
    A link to a great User Tip about the trojan: Flashback Trojan User Tip
    A related link in the tip to a checker: Malware Checker Dowload Link
    A Google search can reveal a variety of alternatives on how the remove the trojan should your computer get infected. This can get you started.
    You can check yourself:
    Open the Terminal application in the Utilities folder. Paste the following command lines into the Terminal at the prompt. Press RETURN after each
    defaults read ~/.MacOSX/environment DYLD_INSERT_LIBRARIES
    defaults read /Applications/Safari.app/Contents/Info LSEnvironment
    defaults read /Applications/Firefox.app/Contents/Info LSEnvironment
    You are not infected if each command returns output which includes, "does not exist."
    This should remove it if present: Anti Flashback-Trojan 1.0.1

  • Need answer for this thread

    I have a standard report..
    RM06BA00
    when i run this report it is runing properly,
    the fileds are displaying properly
    My requirment  is when i run a new zreport based on that old report...
    I have created a zreport...
    I need to get a additional field "LONG  TEXT DESCRIPTION " to be displayed on the report as a collumm....
    i have tried it using the function-module read_text....
    But i am unable to get the parameters to pass into the table internal-table
    i am unable to get the final internal table....
    can anybody provide the solution to me....

    Hai Nagaraj,
    What to do with the table STXH...
    I opened the table stxh...
    what should i do with it....
    can u explain me once....
    i could not understand at all...
    what to do with that table....

  • Container-managed / bean-managed transaction demarcation

    I am trying to make sure I understand container-managed and bean-managed transaction demarcation and in particular where you have one bean calling another bean. What happens where one of the beans has container-managed transaction demarcation and the other bean-managed transaction demarcation. In fact the initial question to ask is, is this allowed?
    Lets use an application scenario to illustrate the issue. The application has a payment transaction. Payments can be received in one of two ways:
    1. As a payment at a branch where the individual payment is processed on a client application and resulting in the processing of a single payment transaction.
    2. As a batch of payments received from a bank containing, potentially, thousands of payment transactions.
    The proposed implementation for this uses two session beans. The first is a Payment session bean that implements the business logic as appropriate calling entity beans to persist the change. The second is a BatchPayment session bean. This processes the batch of payment transactions received from the bank. The BatchPayment reads through the batch of payments from a bank calling the Payment session bean for each payment transaction.
    Lets look at the transactional properties of both session beans. In order to support the client application the Payment session bean can implicitly enforce transactional integrity and is therefore set to container-managed transaction demarcation. However the BatchPayment session bean will want to explicitly specify transaction demarcation for performance reasons. The transactional "commit" process is relatively expensive. When processing a large batch of transactions rather than performing a commit after every transaction is processed we want to perform the commit after a number of transactions have been processed. For example, we may decide that after every 100 transactions have been processed we commit. The processing will have a shorter elapsed time as we have not had to perform 99 commit processes. So the BatchPayment session bean will want to explicitly specify its transaction demarcation and will therefore be defined with bean-managed transaction demarcation.
    How would this be implemented? A possible solution is:
    Payment session bean implemented with container-managed transaction demarcation with transaction scope set to Required.
    BatchPayment session bean implemented with bean-managed transaction demarcation with transaction scope set to Required.
    When the client application is run it calls the Payment bean and the container-managed transaction demarcation ensures the transactional integrity of that transaction.
    When a BatchPayment process is run it explicitly determines the transaction demarcation. Lets say that after every 100 Payment transactions (through 100 calls to the Payment session bean) have been processed the BatchPayment bean issues a commit. In this scenario however we have mixed container-managed and bean-managed transaction demarcation. Hence my original question. Can container-managed and bean-managed transaction demarcation be mixed? If not how is it possible to implement the requirements as described above?
    Thanks for any thoughts.
    Paul

    BatchPayment session bean implemented with bean-managed transaction demarcation with transaction scope set to Required.Didn't quite understand this sentence.... if it's BMT it has no declarative transaction attributes such as "Required"....
    Anyway, first of all I'll have to ask, Why at all would you want to commit in the middle of the business method? to get as much through as possible before a potential crash? :-)
    Can container-managed and bean-managed transaction demarcation be mixed?Yes, of course. Just remember that the "direction" you are refering to ->
    a BMT SB that propagates it's transaction to a method in a CMT SB that is demarcated with "Required" is the simplest case. If it were "reversed", or for that matter any BMT that might be called within an active transaction context must perform logic to manipulate the transaction state. For instance(and most common case), checking to see if a transaction is active and if so not to do anything(just use the one that is already active).
    If not how is it possible to implement the requirements as described above?You could also implement this scenario with CMTs all the way through. your BatchPayment SB could consist of two methods, one (say, execute(Collection paymentsToExecute) ) with "Supports", and another(say executeBatchUnit(Collection paymentsToExecute, int beginIndex, int endIndex) ) with "RequiresNew".
    then have the first just call the other with indexes denoting each time a group of payments.
    Still, it does seem more suitable using BMT for these kind of things.....
    Hope this helped....

  • How to create transaction or screen variant for custom tcode in module pool

    Hi,
              I have one module pool program with custome tcode ,i want to create transaction or screen variant for this tcode.Next time when we run this tcode we need a variant for this tcode.
    I tried by using of SHD0 but it is working only for standred tcodes.Is there any possibilty please help me.
    thanks,
    Lavanya.

    Hi,
    you created a Custom Tcode for ur module pool Pgm..if u execute the Tcode in the output screen give the input details and press Save Option then variant will be created. Then you can use that variant.
    otherwise.. while creating a Tcode..
    select an option for Tcode type Tranasction With variant ..there u will provide the variant for ur Tcode ( which is already created ).
    Regards,
    PraVeen.

  • I am getting this message when trying to connect with itunes ''this version of itunes has not currently been localised for this language. please run the english version'' what does this mean?

    i cannot open itunes on my windows lap top. am getting error message saying it is not currently localised for this language. run english version'. I am cofused as I have been using itunes on my lap top successfully for last 2 years?! Any ideas. jac

    Let's try a repair install of iTunes.
    Restart the PC first.
    If you're using Vista or 7, now head into your Uninstall a program control panel, select "iTunes" and then click "Repair".
    If you're using XP, head into your Add or Remove Programs control panel, select "iTunes", and click "Change". Select "Repair" and click "Next" as per the following screenshot:
    Can you launch your iTunes now?

  • Current drivers for a satellite A75-S209

    I went to the Toshiba website and attempted to get the drivers/ software I need for recovery and I was instructed that they no longer provide for this machine.   Can someone pleas direct me to the correct location for current drivers for this laptop.  I went directly to the video card manufacture and was informed that I must get the drivers from the laptop builder.  Please help as I have exhausted all my resources
    Regards,
    jeffcorr

    all the xp drivers are here. toshiba doesnt support it to run on anything over xp sp3. www.csd.toshiba.com/cgi-bin/tais/support/jsp/modelContent.jsp?ct=DL&os=&category=&moid=835416&rpn=PS...
    -civicman4-
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Post all info about your laptop and version of windows. We are working on it but still do not have the powers to read your mind.

  • Reconciliation amount must be less than the balance due for this tran

    Hi,
    I received the error below when creating an outgoing payment for the invoices.
    "Reconciliation amount must be less than the balance due for this transaction."
    I have found this thread from Forum "Reconciliation amount must be less than the balance due for this trans " but that was posted in 2009 Jul.
    The database version I am using is 2007B PL 13.
    Kindly suggest if you know the solution for 2007b PL 13 for the above mentioned error.
    Thank you.
    Regards,
    Yadana

    Hi Yadana,
    The solution from that thread is still valid for you. Your version is as early as 2008.
    Thanks,
    Gordon

  • Unique id for calling thread

    A stored proc can be called by any of the say 200 threads from within a pool of java connections that all sign on with say USER1. Another similar pool can call the same proc that are signed on with USER2. Inside the proc I need to store some SYS_CONTEXT info and retrive it within the same call. I cannot use a package HEADER variable beacuse this is not private to the thread. I cannot use a global variable in the package BODY because between storing the value in the BDY global variable and retrieving it another thread can call the same proc and access the BODY global variable.
    I decide to store in the info ina SYS_CONTEXT using a unique identifier for this thread as the ATTRIBUTE and the info in the VALUE. To compose the unique id for this thread I can issue the following SQl. Which combo will guarantee me a unique id for tis thread that called the stored proc. The calls are synchronous meaning once a thread obtains a connection from the pool to call the stored proc it does not give it up until the proc completes and returns a result to the thread.
    SELECT
    SYS_CONTEXT('USERENV','SESSIONID')
    ,SYS_CONTEXT('USERENV','SESSION_USER')
    ,SYS_CONTEXT('USERENV','SESSION_USERID')
    , ,SYS_CONTEXT('USERENV','SID')
    ,SYS_CONTEXT('USERENV','HOST')
    ,SYS_CONTEXT('USERENV','INSTANCE')
    INTO
    v_sessionid
    ,v_session_user
    ,v_session_userid
    ,v_host
    ,v_instance
    FROM
    DUAL
    ;

    Please don't abuse the forums by posting in many places.
    General Database Discussions

Maybe you are looking for

  • SDN not working in Firefox 1.5.0.4

    hello sdn people, i would love to use SDN in my favourite browser, however this is what happens in mozilla firefox 1.5.0.4: SDN seems to be loaded, i even get the SDN icon in the adress bar, but then it gets trapped in an endless loop and reloads the

  • How do I assign images to grid cells based on their random number value?

    Hello everyone!      I need a good point (or shove) in the correct direction. Background      I've created (with previous help from this forum) a 12 x 9 random number grid which cycles through the numbers 1 to 9 a total of twelve times each. I've the

  • CSS Style Sheet Link Recursive Error?

    I am trying to link a css style sheet to a new root file. When I try to link the css sheet I get an error - A recursive style import was found while trying to add Check Magazine.css. Please resolve this error by editing the file in an external text e

  • Can't eject disk after rsync

    I have an rsync script that runs from a Firewire backup disk. When it is finished running it prints: <pre class="jive-pre">logout Process completed] </pre> If I try to eject the disk I get error message: "The disk is in use and cannot be ejected. Try

  • BAPI to Change Contract

    Hi All, I have a requirement to change the configuration of contract items in bulk. We have more than 600 contract numbers which contains more than 300 items each. Performing a BDC for VA42 does the requirement by changing the configuration of the co