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

NPE in SemaphoreConcurrentLinkedQueueManagedConnectionPool

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: