wsit
  1. wsit
  2. WSIT-1496

Error persisting branch record for branch 'BranchRecord:globalXid=null':

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.1
    • Component/s: transaction
    • Labels:
      None
    • Environment:

      Linux, Glassfish v3.1 latest, Metro latest nightly

      Description

      I observed this exception while running transaction tests in the SQE workspace [Sun Internal].
      Test Name: Function Tx04

      When I run the Tx04 test with the latest versions of glassfish 3.1 and metro 2.1 nightly builds, I see this exception in the server log.

      #|2010-11-29T19:36:22.426+0530|INFO|glassfish3.1|com.sun.metro.tx|_ThreadID=15;_ThreadName=Thread-1;|error persisting branch BranchRecord:globalXid=null: java.io.FileNotFoundException: null/1291039582425-0 (No such file or directory)|#]

      [#|2010-11-29T19:36:22.427+0530|SEVERE|glassfish3.1|com.sun.metro.tx|_ThreadID=15;_ThreadName=Thread-1;|WSAT4500: Error persisting branch record for branch 'BranchRecord:globalXid=null':
      java.io.FileNotFoundException: null/1291039582425-0 (No such file or directory)
      at java.io.FileOutputStream.open(Native Method)
      at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
      at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
      at com.sun.xml.ws.tx.at.internal.WSATGatewayRM.persistBranchRecord(WSATGatewayRM.java:492)
      at com.sun.xml.ws.tx.at.internal.WSATGatewayRM.persistBranchIfNecessary(WSATGatewayRM.java:515)
      at com.sun.xml.ws.tx.at.internal.WSATGatewayRM.prepare(WSATGatewayRM.java:294)
      at com.sun.jts.jtsxa.OTSResourceImpl.prepare(OTSResourceImpl.java:268)
      at com.sun.jts.CosTransactions.RegisteredResources.distributePrepare(RegisteredResources.java:555)
      at com.sun.jts.CosTransactions.TopCoordinator.prepare(TopCoordinator.java:1864)
      at com.sun.jts.CosTransactions.CoordinatorTerm.commit(CoordinatorTerm.java:357)
      at com.sun.jts.CosTransactions.TerminatorImpl.commit(TerminatorImpl.java:250)
      at com.sun.jts.CosTransactions.CurrentImpl.commit(CurrentImpl.java:623)
      at com.sun.jts.jta.TransactionManagerImpl.commit(TransactionManagerImpl.java:319)
      at com.sun.enterprise.transaction.jts.JavaEETransactionManagerJTSDelegate.commitDistributedTransaction(JavaEETransactionManagerJTSDelegate.java:183)
      at com.sun.enterprise.transaction.JavaEETransactionManagerSimplified.commit(JavaEETransactionManagerSimplified.java:869)
      at com.sun.enterprise.transaction.UserTransactionImpl.commit(UserTransactionImpl.java:208)
      at transaction.usertransaction.client.TestClient.tx401(TestClient.java:276)
      at transaction.usertransaction.web.ServletClient.run(ServletClient.java:56)
      at transaction.usertransaction.web.ServletClient.doGet(ServletClient.java:39)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
      at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1534)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
      at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
      at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
      at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:326)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)
      at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:228)
      at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:817)
      at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:718)
      at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1007)
      at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
      at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
      at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
      at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
      at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
      at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
      at java.lang.Thread.run(Thread.java:662)

      #]

      [#|2010-11-29T19:36:22.430+0530|WARNING|glassfish3.1|javax.enterprise.system.core.transaction.com.sun.jts.CosTransactions|_ThreadID=15;_ThreadName=Thread-1;|JTS5031: Exception [java.lang.RuntimeException: javax.transaction.xa.XAException: XAER_RMERR : A resource manager error has occured in the transaction branch. Error persisting branch BranchRecord:globalXid=null] on Resource [prepare] operation.|#]

      1. server.log
        130 kB
        Sreekanth
      2. server.log
        186 kB
        Sreekanth
      3. server.log
        99 kB
        Sreekanth

        Activity

        Hide
        paul_parkinson added a comment -

        Please try with 6613 metro revision if you can. I have not confirmed with your test case but will do so today.

        Show
        paul_parkinson added a comment - Please try with 6613 metro revision if you can. I have not confirmed with your test case but will do so today.
        Hide
        Sreekanth added a comment -

        Hi Paul,
        I will try that with revison 6613 now.Do let me know if you face any difficulties running tests with the test bundle I provided.

        Show
        Sreekanth added a comment - Hi Paul, I will try that with revison 6613 now.Do let me know if you face any difficulties running tests with the test bundle I provided.
        Hide
        Martin Matula added a comment -

        Paul, have you been able to try the test case? Sony reported in today's p-team the issue is still there even with the latest build. He said he would reopen, but instead of waiting for him I am reopening now, since you will be gone soon.

        Show
        Martin Matula added a comment - Paul, have you been able to try the test case? Sony reported in today's p-team the issue is still there even with the latest build. He said he would reopen, but instead of waiting for him I am reopening now, since you will be gone soon.
        Hide
        paul_parkinson added a comment -

        no, I'm afraid I've been unable to reproduce and the test build failed for me. Sreekanth said he would send the app itself so that I can test but I haven't received it as of yet.

        Show
        paul_parkinson added a comment - no, I'm afraid I've been unable to reproduce and the test build failed for me. Sreekanth said he would send the app itself so that I can test but I haven't received it as of yet.
        Hide
        Marek Potociar added a comment -

        The fix for the issue was delivered into GF yesterday. Latest nightly build of GF 3.1 should already contain the fix. Please verify.

        Show
        Marek Potociar added a comment - The fix for the issue was delivered into GF yesterday. Latest nightly build of GF 3.1 should already contain the fix. Please verify.

          People

          • Assignee:
            Marek Potociar
            Reporter:
            Sreekanth
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: