HOWTO: query inflight JTA transactions in the store persistent programmatically

Hello
We are trying to work on a way, in a non-clustered, work, environment if there are transactions waiting/inflight JTA in the persistent store when the server is not running. (With a running server, it would be easy, just ask the MBeans JTA).

The reason for which we need is: at least some automated directed data JTA power managed server upgrade scripts and custom. If the operator stopped the server, perhaps with Force Shutdown or simply by killing the process. And now wants to restart:
for an Instance of WLS with inflight JTA transactions, the server will attempt to recover the in-flight transactions, which could take a long time and be understood by the operator as a blocking of the server.
At which point, the operator is likely to do exactly the wrong thing: recreating the domain of the server, including the persistent store and therefore lose all flight operations.

So ideally, we would have either a java, wlst or based on a shell-script how to query the persistent store to find out if there are flight operations. We can then warn the operator, or manually move the file somewhere else.

We thought of two ways to do:

(a) use weblogic.store.Admin to dump the store as xml. The problem is, we don't know what parts there are empty, and what strings to search by program to find flight operations.

(b) enable DebugJTARecovery on the server and restart it as a test, and then search your messages for recovery. Tedious and complicated.

(c) there must be a method of MBean undocumented than the administration Console used to allow migration to a persistent store. Any tips?

Some information resources that we consulted that have not delivered the answers

http://download.Oracle.com/docs/CD/E12840_01/WLS/docs103/JTA/trxman.html#wp1043084

Transactions For recovery has Failed Non-Clustered Server basically said to copy the file, recreate the server and hope

http://download.Oracle.com/docs/CD/E13222_01/WLS/docs92/config_wls/store.html#wp1149755

Description of the weblogic.store.Admin utility command-line options.

There was formerly a utility in the WLS 8.1 days, which would dump an ascii representation of the tlog file. It does not seem to have been replaced.

Thank you, Richard

WLS administration console uses the runtime mbeans to find pending JTA transactions, so that won't be useful to you if you want this info in offline mode. When the console migrates, it does by using the MigratableServiceCoordinatorRuntimeMBean, which encapsulates the details of the migration of jta.

Tags: Fusion Middleware

Similar Questions

  • After the update of the app, can not read the store persistent on some devices

    Hello

    I have a problem in an application I was able to reproduce in a simple test application.

    The test application writes some info in the persistent store, then can read back and it seems to work fine.

    If I change the version number of the application, then download the new version (by downloading a jad file in the browser), he invites me to replace the old version w / the new version, which I confirmed. After you download the new version of the app, he invites me to reboot the device, what I'm doing.

    On most of the devices I tested this, after the reboot, when I run the app update, it works as expected - it can read the value written in the store persistent by the earlier version of the application.

    However, on some devices, it is unable to do.

    Debugging a bit, the error occurs when you try to get the object persistent via:

    PersistentObject po1 = PersistentStore.getPersistentObject(MY_KEY);
    

    This survey line an exception - exception message is simply 'null '. I don't know what is precisely the type of exception since it is a static method should not throw any exception that as far as I know, so I'm just catching a generic java.lang.Exception.

    The same - in the version update of the application, if the software tries to write to the store persistent by using the ID of the object, the result is the same - the call to getPersistentObject throws an exception "null".

    Note that I'm not changing anything this either on the object that is saved in the persistent store, and I'm not changing the identifier of object between the versions of the application.

    A device on which I can reproduce this issue systematically is a Blackberry 9800 (Torch) running 6.0 Bundle 2647.

    Any advice or suggestions how to debug this appreciated.

    I tried to reproduce this on a Blackberry 9800 (Torch) running 6.0 Bundle 2647, identical to what noted you above but find the code example you posted worked well.  Were there other changes between the versions other than increment the version number?

    Is - what happens on multiple devices or just one?  If it is just a device you can try to reload the software of the device in case anything is damaged.

  • How to clear the store persistent on the handheld for my application

    Hey. Final tests and I want to erase the persistent store info my app wrote a previous installation. When I download, install a new version of my application, it does not erase the persistent store. How do this manually on BB, TKS.

    J

    If all you're concerned about is when you upgrade, use the same key and just use destroyPersistentObject on your first departure to the top?

  • How to store and retrieve long values in the store persistent

    Hello

    In my application I want to store and retrieve long values in the persistent store that I used with Longvector and all is well, but LongVector is supported for operating system > = 4.6

    I need to work my request in 4.5 also, can any one infrom me what are the other alternatives, I have to get my pls any abstract requirement...

    Vector v = new Vector();
    fill vector
    Long premierElement = (Long) v.firstElement ();
    myLong long = firstElement.longValue ();

  • JTA transaction is not present or the operation is not in Active state

    Hello

    I am trying to execute an asynchronous bpel process. the bpel process has 5 calls to OSB and takes about 100 seconds for completion. The OSB in the BPEL calls take 90 seconds to complete. At the end of the BPEL process, after completion, I get the following error:

    [2010-07-22 01:56:44] BPEL process instance completed "1220007"
    [2010-07-22 01:56:44] There is a system exception during execution of the BPEL instance, the reason is "JTA transaction is not present or the operation is not in Active state. The current JTA transaction is not present or is not in Active state, when processing activity or instance '1 220 007 '. The reason is the performance of this '1220007' for instance 'BPELProcess1' process is supposed to be in a jta transaction, but the transaction is not present or in Active state, please enable debugging application server transaction logs for more information... Please see your administrator about this error. ". Please check the log file of errors for more infromation. Please try to use bpel error handlers to catch errors in your bpel process. If it is an exception system, please report it to your system administrator. Administrator could perform a manual recovery of the last non-idempotent or point of dehydration activity instance.

    We do not want to increase the properties of transaction-timeout in the Transaction Server - manager .xml or the orion-ejb - jar.xml, since we have other projects with synchronous process running on the same server.

    Can someone please suggest a solution to this problem Besides not to increase the transaction time-out?

    It's because our BPEL process took more time allotted for JTA transaction.

    Check transaction timeout in j2ee/config/transaction-manager.xml.

    If you use the idempotent or control point (all that forces of dehydration) before the time specified above, you get the error.

    While BPEL actually continues execution, he cannot commit to store of dehydration after cancellation timeout and forces.

    -Sridhar

  • JMS provider does not participate in the user JTA Transaction

    Hello

    I use a JTA on WebLogic 8.1 user Transaction. Under the operation, I have two datasources viz SQL Server Database, and Tibco EMS. The database is involved in the distributed transaction, while this isn't the JMS provider.

    I set up the XAQueueConnectionFactory in the foreign JMS on WebLogic servers. I use this factory to create the QueueConnection, then the QueueSession and the QueueSender. I use no transactional QueueSession, so, he participated in the JTA transaction. However, I have noticed that the message send operation outside the transaction. Ideally, the message should be sent only when the JTA transaction is committed, but the message is sent immediately after you call the code, and I see the message even if the JTA transaction is rollbacked.

    I also tried to use the XAQueueConnection and XAQueueSession but no luck. Can someone please?

    Published by: user10749653 on December 30, 2008 16:25

    Please post an excerpt of your code create session and send messages and the descriptor. I wonder if call you commit (you say with transaction) somewhere and if you declare the factory connections such as resource-ref. In the case where you did not declare the CF as a resource, and not call validation, I expect that your messages are not visible to the receiver because the resource would not be allowed to enroll in the transaction. Proper enlistment is guaranteed when you use a XA(Queue|) Topic:) ConnectionFactory and resource-ref it. The transactional and ACK session settings are ignored in global transactions.

  • My computer was stolen from an authorized Apple store, but the store refuses to adequately replace my computer. What should I do?

    Good afternoon

    I bought my macbook in-store London´s Regent Street and went to visit Colombia. My computer broke down and so I went in an authorized Apple store, INext in Santa Marta. Here is their website: www.inextstore.com.co

    On 27 January, after three months of waiting for a spare part (who said they originally would take a week or two to find), I was told the part couldn t be found, and they offered to buy me my computer. I said, I think about it but smelled something suspicious, and returned to the store a few days later to get my computer and the money back guarantee, when another Member of staff told me that it had been stolen on 16 January, that is before the day where they offered to buy my computer! This means that during ten days after the flight, they don't warn me the flight and even tried to hide from me. So, I realized that they had lied to me.

    Whatever it is, they offered me a second hand computer to replace my only, but they want to keep the money I paid in advance for the repair, as they claim that my computer was not working. I can't trust them more that they have already lied to me, and they could give me a computer of second hand with no original parts. As of today, they still have the money I paid for the replacement part that never happened and I Don t have a computer.

    Nobody knows, outside to report them to the authorities, if there is anything else I can do? I already wrote to Apple to let them know about the behavior of their authorized dealer, but any additional siggestions would be great.

    Thank you!

    It's very awkward, Zorba777.   You talk about a country that does not have the kind of laws for the protection of consumers that you will find in the United Kingdom (or USA).   And I imagine that the legal side would be difficult to implement, too.   Anyway...

    Advisor Apple was a good idea.   Apple needs to know these things.

    If you were there as a tourist, talk to their tourist Office.

    If you have a receipt for any of this transaction and was assured, approach your insurers.

    If this last road is taken, you must first report the matter as the theft to local police (and get a report number).

    Your insurers will require the it.

    Good luck.

  • error code (-3212) itunes could not connect to the store, make sure your network connection is active and try again. Can someone please tell me how to proceed? __

    error code (-3212) itunes could not connect to the store, make sure your network connection is active and try again. Can someone tell me please how to do this?

    Hi vivasiousv,

    1 when was the last time it was working fine?

    2. did you of recent changes on the computer?

    See the links in the Apple Web site and try the steps mentioned below.

    http://discussions.Apple.com/message.jspa?MessageID=6096760

    http://discussions.Apple.com/message.jspa?MessageID=8436848

    For additional support post your query in the Apple discussion.

    http://discussions.Apple.com/category.jspa?categoryID=150

    I hope this helps!

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • When I run the Xbox 360 MW3 Chaos Collection Pack app, it reads 'Enter multiplayer and launch of the store to purchase new content, games and Premium Elite subscriptions'.

    Original title: Xbox 360

    I downloaded and purchased the Collection of MW3 Chaos Pack. When I in Chaos mode, it reads"enter multiplayer and launch of the store to buy new content, games and subscriptions Premium Elite. "Help PleaseXBOX 360

    Hi Dgkskr24,

    The question you posted would be better suited in the Xbox Forums. I would recommend posting your query in the Xbox Forums.

     

    Xbox 360 support

    http://support.Xbox.com/en-us/Xbox-360/browse?XR=shellnav

     

    Collections of Modern Warfare 3

    http://forums.Xbox.com/xbox_forums/b/community_blog/archive/2012/08/03/modern-warfare-3-collections-3-amp-4-dated.aspx

    I hope this helps.

  • tried to create an account with xbox (software on my computer) and it won't let me download anything from there. Is there a setting I need to change or take it back to the store?

    I just bought a new laptop about 4 days ago. It came with 10 Windows. The problem I have is, it does not download anything. I tried to share a youtube video, and it wouldn't let me. I tried to create an account with xbox (software on my computer), and it won't let me download anything from here. Is there a setting I need to change or take it back to the store?

    Thank you

    Michelle

    Hi Michelle,

    Thanks for posting your query on the Microsoft Community.

    According to the description, I understand that you are unable to download anything.

    I would like to know some information.

    1. You are connected to the internet?

    2. You get no matter what error code or error message?

    Please check the date and time system and check if it is up-to-date.

    If it is not set correctly, please follow the link to change the date and time:

    http://Windows.Microsoft.com/en-us/Windows-8/clock-out-of-sync

    I suggest you follow the steps to run the internet connection Troubleshooter:

    Follow the steps below:

    (a) affects Windows and x together and select Control Panel.
    (b) click on troubleshooting.
    (c) click show all in the left side panel.
    (d) click on Internet connections.
    (e) follow the on-screen instructions to resolve this problem.

    Hope this information helps. Please let us know if you need any other help with Windows in the future. We will be happy to help you.

  • Applications, including the store are neither answer nor opening

    Original title: facing problem.

    My windows applications do not react or opening... What is the problem... including windows store, news, weather... and everything... Please help me...

    Hi Iza,

    Thanks for posting your query in Microsoft Community.

    • You receive an error message/code?
    • Using a proxy connection?
    • What security software is installed on the computer?

    This could be due to several reasons such as file system missing or corrupt, any conflict of third party software, firewall etc. We can try the following methods and check.

    Method 1: Clean the cache to the Store and check

    Press Windows key + R, type wsreset.exe and click OK

    If you see an empty black window, close it and try to launch the store or any other application

    Method 2: Solving the problems of the App running

    The App troubleshooting tool can automatically identify and fix problems with applications and store.

    Troubleshooting applications

    Method 3: Turn off the proxy connection if you use

    Press Windows key + R, type inetcpl.cpl , and then press OK

    Click on the connections tab, and then click LAN settings

    Uncheck the option use a proxy server for your LAN

    Click OK

    Method 4: Put the computer in a clean boot state and check

    To help resolve the error and other messages, you can start Windows by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    Place your system in the clean boot state helps determine if third-party applications or startup items are causing the problem. You must follow the steps in the article mentioned below to perform a clean boot.

    How to perform a clean boot in Windows

    Note: see 'How do I reset the computer to start normally after a boot minimum troubleshooting' to reset the computer starts normally after troubleshooting.

    Method 5: Try the suggestions in the article below:

    Note: Please ignore convenience store Apps.

    Solve problems with a soft

    Hope this information is useful. Please feel free to answer in the case where you are facing in the future other problems with Windows.

  • Skype, the store do not work

    I have laptop acer with windows 8.

    After some problems in my laptop and fix that I am unable to run Skype and store in my laptop.

    There are other software also like fresh paint, also works now does not.

    What should I do to solve this problem.

    Check a solution (but it is unable to resolve the issue) at http://answers.microsoft.com/en-us/windows/forum/windows_8-windows_store/cannot-access-windows-8-app-store-or-any-app/022ddcd0-271e-4635-b5b9-00beeec885f4

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_8-windows_store/Windows-store-is-not-working/f7435a90-43d6-4784-bb86-35650a539f33

    After downloading applications to check the error message found cache problem ' ms-windows-store: PurgeCaches.» The App has not begun. "

    Date and time are correct.

    Help, please.

    Thanks in advance.

    Vipin Hello,

    Thanks for posting your query on Microsoft Community forum.

    I would appreciate your efforts to try a few before steps troubleshooting to post on the forum. I need additional information in order to better understand the issue.

    1. You are connected with a local account or a Microsoft account?
    2. Did recent changes (hardware or software) on your computer?

    If after trying the steps mentioned in the thread above don't help, try some measures more provided below.

    Method 1:

    I suggest to go through the link and follow the given procedure. Here is the link for your reference.

    What to do if you have problems with a soft

    http://Windows.Microsoft.com/en-GB/Windows-8/what-troubleshoot-problems-app

    After the execution of the method 1 try to open applications to be updated.

    Method 2

    If the problem persists I suggest you to try the steps mentioned below and see if it works for you.

    Make sure that the (UAC) user account control is enabled.

    Press the Windows key and from the splash screen, type "UAC" and on the right, select settings.
    Select change user account control settings and check here.

    Method 3:

    If you are using a connection through proxy, then try to disable the proxy and then check if the problem persists.

    Follow the steps to disable the proxy:

    1. Open Internet Explorer
    2. Click the Tools button, and then click Internet Options
    3. Click the Connections tab, and then click LAN settings
    4. Uncheck the Server Proxy use.
    5. Click on apply then Ok to save the changes.

    Now, check if you have access to app store.

    Hope it would help. If problem persists always post back with the current state of your computer and the result of the proposed suggestion, we will be happy to help you.

    Thank you.

  • try to download the new 8.1 Windows but when I go to the store - must be an administrator to perform action

    I am connected to my administrator account and trying to download the new Windows 8.1 but when I go to the store to download, which is also signed on my Microsoft account, he pushes me with an error saying that I must be an administrator to complete the operation. I shut down the computer and logged on. Also, I lowered my UAC setting and retried still no luck. I thought about it and tripped by preferences but have had no luck. Any suggestions...?

    Marissa

    Former title : administrator account

    Hi Marissa,

    Thanks for posting your query on the Microsoft Community Forum and I can understand the level of frustration through which you leave.

    I would be grateful if you can provide us with the following information to help us better understand the issue.

    1. All other updates installed on your computer?
    2. (KB2919442) update is installed on your computer?
    3. Are other features of this new update work well like minimizing the window, the button / stop etc.?

    8.1 update Windows (KB2919355) is an important update of Windows include improvements that will facilitate your favorite applications and settings to find and use, and offer more familiar mouse and keyboard options.

    There are a few prerequisites for this update must be installed:

    • Before installing update 8.1 for Windows (KB2919355) Please make sure that KB2919442 is installed.
          
      KB2919442 is the sine qua non of 8.1 to Windows Update.

    For more information, please see the Microsoft Article.
         
    Battery service made available for Windows RT 8.1 8.1 of Windows and Windows Server R2 2012: March 2014.
    http://support.Microsoft.com/kb/2919442/en-us

    • Temporarily disable the security software during the installation of Windows Update 8.1 to avoid conflict situations.

    Important note: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you need to disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network, while your antivirus software is disabled, your computer is vulnerable to attack.

    You can check the link below for the updates are installed on your computer.

    Windows Update: frequently asked Questions

    http://Windows.Microsoft.com/en-us/Windows-8/Windows-Update-FAQ

    If it helps, try the methods and see them below.

     

    Method 1:

    I suggest you to run the Windows Update Troubleshooter:

     

    Problems with installing updates

    http://Windows.Microsoft.com/en-in/Windows/troubleshoot-problems-installing-updates#1TC=Windows-8

    Restart the computer once after running the troubleshooter. Check to see if that fixes the problem.

     

    Method 2:

    If the problem persists, I suggest you run clean boot.

    Make your system clean boot State helps determine if third-party applications or startup items are causing the problem. You must follow the steps in the article mentioned below to perform a clean boot.

    How to perform a clean boot in Windows

    http://support.Microsoft.com/kb/929135/en-us

     

    Note: refer to "How to reset the computer to start normally after a boot minimum troubleshooting" to prepare the computer to start as usual after a repair.

     

    Additional information:

    For more information on this update, you can refer to the Microsoft article.

    Install the latest update of Windows 8.1

    http://Windows.Microsoft.com/en-us/Windows-8/install-latest-update-Windows-8-1

     

    Hope it would help. If the problem still persists, post back with the current state of your computer and the result of the proposed suggestion, we will be happy to help you.

    Thank you.

  • Is it still possible to use Microsoft Points in the store of Windows 8?

    Title.

    Hello

    I want to tell you that Microsoft Points are the currency of the stores and online Xbox Live Marketplace, games for Windows Marketplace, Windows Live Gallery, Xbox music video. Therefore, impossible to use Microsoft points in Windows 8 store.

    Also check the link for more information:

    Microsoft Points
    http://www.Xbox.com/en-us/live/microsoftpoints

     
    Hope that answers your query. You can write back to us for other queries/problems related to windows and we will be happy to help you further.
  • Impossible to update, cannot unlock the drive, may not reach the store, nothing on the start screen

    Symptoms...
    1. After several months of work perfectly, I made a mistake (details below) and attempted to retrieve a previous Restore Point.
    2. the system always starts ok, and some things work.  However...
    3. some applications don't work anymore, for example, Logitech SetPoint.
    4 files Explorer remember settings and defaults to each invocation.
    5. various Windows settings have been lost.
    6. the Windows 8 start screen has only 'Start' and my login ID.
    7. I can't update the system or re-install the system.
    8. "change system settings" does absolutely nothing.
    9. I got error messages saying my system disk is locked and I need to unlock it, but I can't do it.  None of my disks is BitLocker on, and I can't find any other meaning of "locked".  The message is "the drive where Windows is installed is locked. Unlock the drive, and then try again. »
    10. I suspect some programs of Windows 8 system are corrupt or lost, but the OS is clearly still Windows 8 in appearance and behavior.
    What I tried...
    1 clean the registry with various cleaners.
    2. checked with Windows Update, the software has been completely updated.
    3. the Windows troubleshooting diagnostic tool has not helped.
    4. the same problems occur in Mode without failure.
    5. always had problems after a clean boot.
    6 sfc/scannow (as admin) did not help.
    7. I can't do a simple Refresh or reset because I can't go to the store.
    8. out of desperation, I tried updating to Windows 8.1 Overview, but it doesn't have to say that my system disk is locked.  I couldn't find sort of the 'unlock'  BitLocker is off anyway.
    9. I downloaded the installation of window package 8, created an ISO file and burned a DVD.  Tried to repair and regeneration, but both failed.  Once more, the error message said that my system disk is locked.
    10. I am very reluctant to throw my applications, I have over a hundred installed.  In any case, I'm afraid that if I format the system drive, I won't be able to install Windows 8 in all.
    How it all started: I made a mistake...
    I installed the Gavotte RamDisk and then tried to delete it, forgetting that I needed to run 'as administrator '.  This does not, without saying why, so I removed with Control Panel etc.  Once I did, things started to go wrong.  Previous restore points did not help, and after floundering about in frustration and growing desperation, I ended up here where I am now.
    The system...
    1 MSI motherboard (Z87 - G43)
    2. 2 x 4 GB Corsair Vengeance RAM (CMZ8GX3M2A1600C8)
    3. three SATA drives, each with two partitions
    4 DVD burner
    5 external USB floppy
    6. two analog monitors, one connected via a digital-to-analog converter (powered)
    7 keyboard and mouse Logitech wireless
    8. USB printer cable
    9 LAN with another PC of Windows 8 that works properly
    10. access to on and old XP laptop
    WHAT CAN I DO?  I HIT THE BUFFERS!
    The Solution
    ========
    The result was much better than I expected.
    If you take the road to Microsoft to fix the system, it offers a 'Refresh' or 'remove all and reinstall '.  These two failed because they require access to Microsoft Store.  However, there is a middle path to fix, as long as you have a product key, which re - install Windows 8 as if it were an 'upgrade '.
    The process is described quite well here:
    http://www.TechRepublic.com/blog/Windows-and-Office/quick-tip-download-a-new-copy-of-the-Windows-8-upgrade-ISO/
    In summary, download the upgrade of widows 8 components and create a picture ISO of DVD, you must burn it to a DVD.  Then, you use this disk to re - install Windows 8.  The great thing about this is that it offers keep your files and settings.  (However, as it is an 'upgrade' it does not provide the option to install on another partition.)
    In my case, it worked much better than I expected.  Most of the Windows settings, I thought were lost forever, have been restored.  It's as if she restored settings that he did not know that there :).  Instead of spending hours putting my system after re-setup, I was able to relax, take an evening away from the PC!
    Thanks to the person who responded to my original query.

Maybe you are looking for

  • Why do I get popup Facebook security risk?

    I get this pop up on facebook. Only the secure content is moved that the risk show all content.  How can I get this to stop the spread upward.

  • How to enable access to the Task Manager

    I can't find where I have activate the Task Manager no matter who can help me?

  • The icons are missing, and I have problem open some of them.

    PRE-INSTALLED SHORTCUTS ARE ALSO SIMPLY MISSING, LIKE NETFLIX, ETC.  I HAVE TO GO IN ONE OF THE RECORDED PROGRAMS, I DOWNLOADED TO GET EVEN ON THE WEB, PUT THE ADDRESS INTO THE SEARCH BAR.  I'M SO CONFUSED.  Help, please.  COMPUTER IS NOT EVEN 2 WEEK

  • Problem with Windows 7 and Vista Dual Boot Config

    Hello all hope someone can help I'm currently decided to create a duel using Windows 7 boot configuration and windows vista here is the problem 7 in dock on the c drive and vista is on the d boot in 7 this info is correct, however vista boot indeed q

  • Missing calendar items

    I can't see the appointment on the calendar on my Palm Z22. I have recurring events that have disappeared, the doctors disappeared nominations as I entered, etc.. When I have hotsync as they appear on the Palm Desktop, but not on the Z22. When I try