glassfish
  1. glassfish
  2. GLASSFISH-12896

Recovery handler does not find resources to recover

    Details

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

      Operating System: All
      Platform: Macintosh

    • Issuezilla Id:
      12,896

      Description

      See test v2/appserv-tests/devtests/transaction/ee/cli. To execute
      recover-transaction logic, call 'ant build setup run-recover' - it fails because
      recovery while returning success, didn't find resources to recover.

      This output means table query failed:
      Processing line: java.sql.SQLTransactionRollbackException: A lock could not be
      obtained within the time requested

        Issue Links

          Activity

          Hide
          Jagadish added a comment -

          I tried latest nightly b14-08-04-10.

          The test fails, but no exception w.r.t derby is seen.

          Also, the exception does not have anything to do with resources. It may be
          because, two processes are trying to use the database.

          You may have to analyze the lock table :
          http://wiki.apache.org/db-derby/LockDebugging

          Also, please avoid using "sys.systables" as validation-table option as it is a
          system table.

          Show
          Jagadish added a comment - I tried latest nightly b14-08-04-10. The test fails, but no exception w.r.t derby is seen. Also, the exception does not have anything to do with resources. It may be because, two processes are trying to use the database. You may have to analyze the lock table : http://wiki.apache.org/db-derby/LockDebugging Also, please avoid using "sys.systables" as validation-table option as it is a system table.
          Hide
          Jagadish added a comment -

          Created an attachment (id=4639)
          attaching server.log, console.log, domain.xml, derby.log

          Show
          Jagadish added a comment - Created an attachment (id=4639) attaching server.log, console.log, domain.xml, derby.log
          Hide
          marina vatkina added a comment -

          Sorry, I didn't mention that it needs to be tested on rev 39394 or later.

          Show
          marina vatkina added a comment - Sorry, I didn't mention that it needs to be tested on rev 39394 or later.
          Hide
          Shalini added a comment -

          Fixing the part where common classloader can be used to try to load a datasource
          or driver class when loading of the class fails. If the class cannot be loaded,
          the default datasource (javax.sql.DataSource) will be used.

          Sending
          connectors/connectors-runtime/src/main/java/com/sun/enterprise/connectors/util/ClassLoadingUtility.java
          Sending
          connectors/connectors-runtime/src/main/java/com/sun/enterprise/connectors/util/ResourcesUtil.java
          Sending
          connectors/connectors-runtime/src/main/resources/com/sun/logging/enterprise/resource/resourceadapter/LogStrings.properties
          Transmitting file data ...
          Committed revision 39419.

          Transferring the issue to Marina as there some more failures while executing the
          test case.

          Show
          Shalini added a comment - Fixing the part where common classloader can be used to try to load a datasource or driver class when loading of the class fails. If the class cannot be loaded, the default datasource (javax.sql.DataSource) will be used. Sending connectors/connectors-runtime/src/main/java/com/sun/enterprise/connectors/util/ClassLoadingUtility.java Sending connectors/connectors-runtime/src/main/java/com/sun/enterprise/connectors/util/ResourcesUtil.java Sending connectors/connectors-runtime/src/main/resources/com/sun/logging/enterprise/resource/resourceadapter/LogStrings.properties Transmitting file data ... Committed revision 39419. Transferring the issue to Marina as there some more failures while executing the test case.
          Hide
          Shalini added a comment -

          -> Marina

          Show
          Shalini added a comment - -> Marina
          Hide
          marina vatkina added a comment -

          Fixing NPE in OTSResourceImpl:

          Sending jts/src/main/java/com/sun/jts/jtsxa/OTSResourceImpl.java
          Transmitting file data .
          Committed revision 39441.

          Show
          marina vatkina added a comment - Fixing NPE in OTSResourceImpl: Sending jts/src/main/java/com/sun/jts/jtsxa/OTSResourceImpl.java Transmitting file data . Committed revision 39441.

            People

            • Assignee:
              marina vatkina
              Reporter:
              marina vatkina
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: