glassfish
  1. glassfish
  2. GLASSFISH-19014

jpa coherence tests failed due to ClassCastException: TransactionServiceProperties.initRecovery

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 4.0_b50_ms4
    • Fix Version/s: 4.0_b51
    • Component/s: entity-persistence
    • Labels:
      None
    • Environment:

      REL 5 and JDK1.7.0

      Description

      JTS5012/JTS5012 tx errors in sqe coherence tests

      ogs-4.0-b50.zip

      appserver-sqe/pe/ejb/coherence/web
      The sqe coherence tests failed to insert jpa data with tx errors.

      JTS5005: Wait for resync complete interrupted|#]
      JTS5012: Unexpected error occurred when trying to begin a new transaction.

      The same tests passed on ogs-4.0-b49.zip

        Activity

        Hide
        sherryshen added a comment - - edited

        Please refer the instruction for test env
        http://aseng-wiki.us.oracle.com/asengwiki/display/ASQA/4.0+Core+Test+Instructions

        Please see hudson run with test source, steps and server.log.
        http://sqe-hudson.us.oracle.com:8080/hudson/view/Sherry_core/job/sherry-lc-dbg/
        #153, passed on b49
        #154, failed on b50 with tx error in instance log.
        http://sqe-hudson.us.oracle.com:8080/hudson/view/Sherry_core/job/sherry-lc-dbg/154/artifact/server_in1.log

        [#|2012-08-16T19:07:36.739-0700|WARNING|44.0|
        javax.enterprise.system.core.org.glassfish.kernel.event|
        _ThreadID=10;_ThreadName=Thread-2;|Exception while dispatching an event
        java.lang.ClassCastException: org.jvnet.hk2.internal.ServiceLocatorImpl
        cannot be cast to org.jvnet.hk2.component.Habitat
        at com.sun.jts.jta.TransactionServiceProperties.initRecovery(TransactionServiceProperties.java:313)

        [#|2012-08-16T19:24:25.496-0700|WARNING|44.0|
        javax.enterprise.system.core.transaction.com.sun.jts.CosTransactions|
        _ThreadID=17;_ThreadName=Thread-2;|
        JTS5012: Unexpected error occurred when trying to begin a new transaction.
        org.omg.CORBA.INTERNAL: JTS5005: Wait for resync complete interrupted vmcid: 0x0 minor code: 0 completed: No
        at com.sun.jts.CosTransactions.RecoveryManager.waitForResync(RecoveryManager.java:1479)

        #|2012-08-16T19:24:25.497-0700|SEVERE|44.0|
        javax.enterprise.resource.resourceadapter.com.sun.enterprise.resource.rm|
        _ThreadID=17;_ThreadName=Thread-2;|
        RAR5027:Unexpected exception in resource pooling
        org.omg.CORBA.INVALID_TRANSACTION: vmcid: 0x0 minor code: 4 completed: No
        at com.sun.jts.CosTransactions.CurrentImpl.begin(CurrentImpl.java:460)

        [#|2012-08-16T19:24:25.500-0700|WARNING|44.0|javax.enterprise.resource.resourceadapter.com.sun.gjc.spi|
        _ThreadID=17;_ThreadName=Thread-2;|
        RAR5114 : Error allocating connection : [Error in allocating a connection.
        Cause: org.omg.CORBA.INVALID_TRANSACTION: vmcid: 0x0 minor code: 4 completed: No]|#]

        [#|2012-08-16T19:24:25.502-0700|WARNING|44.0|org.eclipse.persistence.session.file:/export/hudson/workspace/sherry-lc-dbg/glassfish3/glassfish/nodes/localhost-sqe-domain/clustered_instance_1/applications/coherenceweb/WEB-INF/classes/_pu1|_ThreadID=17;_ThreadName=Thread-2;|
        Local Exception Stack:
        Exception [EclipseLink-4002]
        (Eclipse Persistence Services - 2.5.0.v20120704-r11776):
        org.eclipse.persistence.exceptions.DatabaseException
        Internal Exception: java.sql.SQLException: Error in allocating a connection. Cause: org.omg.CORBA.INVALID_TRANSACTION:
        vmcid: 0x0 minor code: 4 completed: No
        Error Code: 0
        Call: INSERT INTO JPAENTITYA (PKID, NAME) VALUES (?, ?)
        bind => [2 parameters bound]

        Show
        sherryshen added a comment - - edited Please refer the instruction for test env http://aseng-wiki.us.oracle.com/asengwiki/display/ASQA/4.0+Core+Test+Instructions Please see hudson run with test source, steps and server.log. http://sqe-hudson.us.oracle.com:8080/hudson/view/Sherry_core/job/sherry-lc-dbg/ #153, passed on b49 #154, failed on b50 with tx error in instance log. http://sqe-hudson.us.oracle.com:8080/hudson/view/Sherry_core/job/sherry-lc-dbg/154/artifact/server_in1.log [#|2012-08-16T19:07:36.739-0700|WARNING|44.0| javax.enterprise.system.core.org.glassfish.kernel.event| _ThreadID=10;_ThreadName=Thread-2;|Exception while dispatching an event java.lang.ClassCastException: org.jvnet.hk2.internal.ServiceLocatorImpl cannot be cast to org.jvnet.hk2.component.Habitat at com.sun.jts.jta.TransactionServiceProperties.initRecovery(TransactionServiceProperties.java:313) [#|2012-08-16T19:24:25.496-0700|WARNING|44.0| javax.enterprise.system.core.transaction.com.sun.jts.CosTransactions| _ThreadID=17;_ThreadName=Thread-2;| JTS5012: Unexpected error occurred when trying to begin a new transaction. org.omg.CORBA.INTERNAL: JTS5005: Wait for resync complete interrupted vmcid: 0x0 minor code: 0 completed: No at com.sun.jts.CosTransactions.RecoveryManager.waitForResync(RecoveryManager.java:1479) #|2012-08-16T19:24:25.497-0700|SEVERE|44.0| javax.enterprise.resource.resourceadapter.com.sun.enterprise.resource.rm| _ThreadID=17;_ThreadName=Thread-2;| RAR5027:Unexpected exception in resource pooling org.omg.CORBA.INVALID_TRANSACTION: vmcid: 0x0 minor code: 4 completed: No at com.sun.jts.CosTransactions.CurrentImpl.begin(CurrentImpl.java:460) [#|2012-08-16T19:24:25.500-0700|WARNING|44.0|javax.enterprise.resource.resourceadapter.com.sun.gjc.spi| _ThreadID=17;_ThreadName=Thread-2;| RAR5114 : Error allocating connection : [Error in allocating a connection. Cause: org.omg.CORBA.INVALID_TRANSACTION: vmcid: 0x0 minor code: 4 completed: No]|#] [#|2012-08-16T19:24:25.502-0700|WARNING|44.0|org.eclipse.persistence.session. file:/export/hudson/workspace/sherry-lc-dbg/glassfish3/glassfish/nodes/localhost-sqe-domain/clustered_instance_1/applications/coherenceweb/WEB-INF/classes/_pu1 |_ThreadID=17;_ThreadName=Thread-2;| Local Exception Stack: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.0.v20120704-r11776): org.eclipse.persistence.exceptions.DatabaseException Internal Exception: java.sql.SQLException: Error in allocating a connection. Cause: org.omg.CORBA.INVALID_TRANSACTION: vmcid: 0x0 minor code: 4 completed: No Error Code: 0 Call: INSERT INTO JPAENTITYA (PKID, NAME) VALUES (?, ?) bind => [2 parameters bound]
        Hide
        sherryshen added a comment -

        he coherence tests passed on ogs-4.0-b51-08_17_2012.zip with
        the tx fix below.

        #11813 (Aug 16, 2012 9:31:11 AM)
        55511 Habitat can't be casted to ServiceLocator any more.
        This should fix the clustered tx tests. mvatkina / detail

        Show
        sherryshen added a comment - he coherence tests passed on ogs-4.0-b51-08_17_2012.zip with the tx fix below. #11813 (Aug 16, 2012 9:31:11 AM) 55511 Habitat can't be casted to ServiceLocator any more. This should fix the clustered tx tests. mvatkina / detail

          People

          • Assignee:
            Mitesh Meswani
            Reporter:
            sherryshen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: