glassfish
  1. glassfish
  2. GLASSFISH-12211

NullPointerException (NPE) in CommonWorkManager.java line 265

    Details

    • Issuezilla Id:
      12,211

      Description

      It is possible for CommonWorkManager to end up with a null ThreadPool.

      Because of this, the startWork() method can cause a NullPointerException (at
      line 265 in the code as of June 10, 2010) because it blindly calls a method on
      the tp instance variable. At the time of the call, tp can be null.

      tp can be null if the constructor's invocation of ConnectorRuntime#isServer()
      returns false.

      It appears to be the case that when Glassfish 3.1-SNAPSHOT is run in embedded
      mode, isServer() returns false. I don't think it should.

      To see this problem, attempt to deploy an .ear file with a valid .rar file
      inside it that attempts to start work as part of its initialization (which is
      legal according to the JCA specification). You'll see the NullPointerException
      at the point that the RA tries to start work.

      The forum discussion is here:
      http://forums.java.net/jive/thread.jspa?threadID=150303&tstart=0

        Activity

        Hide
        sirajg added a comment -
            • Issue 12210 has been marked as a duplicate of this issue. ***
        Show
        sirajg added a comment - Issue 12210 has been marked as a duplicate of this issue. ***
        Hide
        Jagadish added a comment -

        Support for .rars in embedded mode is planned for v3.1
        I shall update this issue when the support is made available.

        Show
        Jagadish added a comment - Support for .rars in embedded mode is planned for v3.1 I shall update this issue when the support is made available.
        Hide
        Jagadish added a comment -

        Made a fix and tested against latest Uber jar and a resource-adapter which uses
        "work" instances work fine.
        Fix should be available from 10-Sep-2010 nightly.

        Show
        Jagadish added a comment - Made a fix and tested against latest Uber jar and a resource-adapter which uses "work" instances work fine. Fix should be available from 10-Sep-2010 nightly.

          People

          • Assignee:
            Jagadish
            Reporter:
            ljnelson
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: