Uploaded image for project: 'IronJacamar'
  1. IronJacamar
  2. JBJCA-1257

NPE in SemaphoreConcurrentLinkedQueueManagedConnectionPool

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 1.0.32.Final
    • 1.0.31.Final
    • Core
    • None

      With SemaphoreConcurrentLinkedQueueManagedConnectionPool, if creating a new connection fails with exception, logging this

      log.throwableWhileAttemptingGetNewGonnection(clw.getConnectionListener(), t);
      

      https://github.com/ironjacamar/ironjacamar/blob/1.0/core/src/main/java/org/jboss/jca/core/connectionmanager/pool/mcp/SemaphoreConcurrentLinkedQueueManagedConnectionPool.java#L398

      causes NPE since clw == null. This way, the NPE is eventually swallowed on https://github.com/ironjacamar/ironjacamar/blob/1.0/core/src/main/java/org/jboss/jca/core/connectionmanager/pool/mcp/SemaphoreConcurrentLinkedQueueManagedConnectionPool.java#L437 and only generic ResourceException (without much info) is thrown.

              jpederse@redhat.com Jesper Pedersen
              rvansa1@redhat.com Radim Vansa (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: