Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-1358

JDBC Object Store problem with Mariadb55

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 7.0.0.ER1
    • 7.0.0.DR11
    • Transactions
    • None

    Description

      When configuring transactions to use Mariadb55 Datasource as a JDBC Object store, server fails to start with error:

      13:56:51,485 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([("subsystem" => "transactions")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.txn.ArjunaRecoveryManager" => "org.jboss.msc.service.StartException in service jboss.txn.ArjunaRecoveryManager: WFLYTX0005: Recovery manager create failed
          Caused by: java.lang.NullPointerException"}}
      

      Steps to reproduce:
      1. Create Mariadb55 JDBC driver module. Module archived directory is attached.
      2. Add driver into configuration xml.
      3. Create Datasource pointing to Mariadb55 database and using driver configured a a module.
      4. Configure transactions to use jdbc-store the added Datasource. standalone.xml is attached.
      5. Server fails to start. server.log is attached.

      config xml file part:

              <subsystem xmlns="urn:jboss:domain:datasources:4.0">
                  <datasources>
                      <datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true">
                          <connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE</connection-url>
                          <driver>h2</driver>
                          <security>
                              <user-name>sa</user-name>
                              <password>sa</password>
                          </security>
                      </datasource>
                      <datasource jta="false" jndi-name="java:jboss/datasources/jdbc-store" pool-name="JDBCObjectStore" enabled="true" use-java-context="true">
                          <connection-url>jdbc:mariadb://db22.mw.lab.eng.bos.redhat.com:3306/dballo17</connection-url>
                          <driver>module_mariadb.jar</driver>
                          <security>
                              <user-name>dballo17</user-name>
                              <password>dballo17</password>
                          </security>
                      </datasource>
                      <drivers>
                          <driver name="h2" module="com.h2database.h2">
                              <xa-datasource-class&gt;org.h2.jdbcx.JdbcDataSource</xa-datasource-class&gt;
                          </driver>
                          <driver name="module_mariadb.jar" module="mariadb_jar"/>
                      </drivers>
                  </datasources>
              </subsystem>
      
              <subsystem xmlns="urn:jboss:domain:transactions:3.0">
                  <core-environment>
                      <process-id>
                          <uuid/>
                      </process-id>
                  </core-environment>
                  <recovery-environment socket-binding="txn-recovery-environment" status-socket-binding="txn-status-manager"/>
                  <coordinator-environment enable-tsm-status="true"/>
                  <jdbc-store datasource-jndi-name="java:jboss/datasources/jdbc-store"/>
              </subsystem>
      

      Attached necessary info:
      1. server.log
      2. Module zip to extract in $JBOSS_HOME/modules/system/layers/base
      3. standalone.xml

      Notes:
      The same steps works for other databases.
      When step 4. is not executed server starts successfully, so module is recognized.

      Attachments

        1. mariadb_jar.zip
          271 kB
        2. server.log
          27 kB
        3. standalone.xml
          21 kB

        Issue Links

          Activity

            People

              thjenkin@redhat.com Tom Jenkinson
              hhovsepy@redhat.com Hayk Hovsepyan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: