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

[GSS](7.4.z) JBEAP-27222 NPE still remains

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 7.4.21.GA
    • 7.4.19.GA
    • JCA
    • None
    • False
    • None
    • False
    • Hide
      1. start postgresql by podman.
      2. add module and jdbc driver by CLI.
      3. add xa datasource by CLI.
      4. stop postgresql.
      5. WARN message can be checked.
      // CLI at step.2
      [disconnected /] module add --name=org.postgresql --resources=/path/to/postgresql-42.7.4.jar --dependencies=javax.transaction.api,sun.jdk,ibm.jdk,javaee.api,javax.api
      
      /subsystem=datasources/jdbc-driver=postgresql:add(driver-name=postgresql,driver-module-name=org.postgresql,driver-xa-datasource-class-name=org.postgresql.xa.PGXADataSource)
      
      // CLI at step.3
      xa-data-source add --name=PostgresXADS --jndi-name=java:jboss/datasources/PostgresXADS --driver-name=postgresql --user-name=username --password=password --background-validation=true --background-validation-millis=10000 --check-valid-connection-sql="select 1" --exception-sorter-class-name=org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLExceptionSorter --pool-prefill=true --initial-pool-size=1 --min-pool-size=2 --max-pool-size=4 --xa-datasource-properties={"ServerName"=>"localhost","PortNumber"=>"5432","DatabaseName"=>"test"}
      Show
      start postgresql by podman. add module and jdbc driver by CLI. add xa datasource by CLI. stop postgresql. WARN message can be checked. // CLI at step.2 [disconnected /] module add --name=org.postgresql --resources=/path/to/postgresql-42.7.4.jar --dependencies=javax.transaction.api,sun.jdk,ibm.jdk,javaee.api,javax.api /subsystem=datasources/jdbc-driver=postgresql:add(driver-name=postgresql,driver-module-name=org.postgresql,driver-xa-datasource- class- name=org.postgresql.xa.PGXADataSource) // CLI at step.3 xa-data-source add --name=PostgresXADS --jndi-name=java:jboss/datasources/PostgresXADS --driver-name=postgresql --user-name=username --password=password --background-validation= true --background-validation-millis=10000 --check-valid-connection-sql= "select 1" --exception-sorter- class- name=org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLExceptionSorter --pool-prefill= true --initial-pool-size=1 --min-pool-size=2 --max-pool-size=4 --xa-datasource-properties={ "ServerName" => "localhost" , "PortNumber" => "5432" , "DatabaseName" => "test" }

      Although JBEAP-27222 is done, it seems NPE is still produced at SemaphoreConcurrentLinkedDequeManagedConnectionPool class.

      7.4.19 produces the following WARN message.

      09:43:21,474 WARN  [org.jboss.jca.core.connectionmanager.pool.validator.ConnectionValidator] (ConnectionValidator) IJ000602: ConnectionValidator ignored unexpected runtime exception: java.lang.NullPointerException
          at org.jboss.ironjacamar.impl@1.5.18.Final-redhat-00001//org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreConcurrentLinkedDequeManagedConnectionPool.validateConnections(SemaphoreConcurrentLinkedDequeManagedConnectionPool.java:1490)
          at org.jboss.ironjacamar.impl@1.5.18.Final-redhat-00001//org.jboss.jca.core.connectionmanager.pool.validator.ConnectionValidator$ConnectionValidatorRunner.run(ConnectionValidator.java:285)
          at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
          at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
          at java.base/java.lang.Thread.run(Thread.java:829)
      

              lvydra Lukas Vydra
              rhn-support-mkawakam Manabu Kawakami
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: