Uploaded image for project: 'JBoss Transaction Manager'
  1. JBoss Transaction Manager
  2. JBTM-3817

Store initialisation code does not report the reason for failures

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.0.1.Final
    • 7.0.0.Final
    • Transaction Core
    • None
    • Hide

      Remove the dependency "org.h2.jdbcx.JdbcDataSource" or "org.slf4j:slf4j-api" in the appropriate quickstart (ArjunaJTA/object_store/pom.xml) for example.

      Show
      Remove the dependency "org.h2.jdbcx.JdbcDataSource" or "org.slf4j:slf4j-api" in the appropriate quickstart (ArjunaJTA/object_store/pom.xml) for example.
    • Hide

      Enable the "ARJUNA" logger (see commonI18NLogger).

      Show
      Enable the "ARJUNA" logger (see commonI18NLogger).
    • Report the underlying cause of a failure to initialise the object store.

      If the store initialisation code fails due to an java.lang.reflect.InvocationTargetException then the original cause is lost making it difficult to diagnose the underlying cause. See, for example, performance PR's 170 and 172 which failed because of "ClassNotFoundException: org.h2.jdbcx.JdbcDataSource" and "missing dependency on SLF4J artifact org.slf4j:slf4j-api", respectively.  We report both of these failures in the same way with a message saying that the store initialisation failed without any reason, eg

      Caused by: com.arjuna.ats.arjuna.exceptions.FatalError: ARJUNA012391: Could not initialize object store 'null' of type 'com.arjuna.ats.internal.arjuna.objectstore.hornetq.HornetqObjectStoreAdaptor'
          at com.arjuna.ats.arjuna.objectstore.StoreManager.initStore (StoreManager.java:145)
          at com.arjuna.ats.arjuna.objectstore.StoreManager.getActionStore (StoreManager.java:96)

      This issue is asking for the underlying cause to be reported.

              rhn-engineering-mmusgrov Michael Musgrove
              rhn-engineering-mmusgrov Michael Musgrove
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: