glassfish
  1. glassfish
  2. GLASSFISH-5195

IndexOutOfBounds Exception during longevity testing

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: V3
    • Fix Version/s: V3
    • Component/s: jca
    • Labels:
      None
    • Environment:

      Operating System: Solaris
      Platform: Sun

    • Issuezilla Id:
      5,195

      Description

      GlassFish V3 B10d
      JDK1.5.0_15 B034

      When running a longevity test using a web application called Nilebookstore on
      B10d, after about 68 hours into the run, I am seeing the following exceptions.
      The run completed 3 days. The test was done on a single instance with load of
      100 users. This generated about 55% cpu usage on the system. The only change
      done was increase the request-processing request-timeout-in-seconds="120".
      Everything else was default settings.
      [#|2008-06-21T11:58:26.462-0700|SEVERE|GlassFish10.0|null|_ThreadID=12;_ThreadName=Thread-4;|Exception
      in thread "connector-runtime" |#]

      [#|2008-06-21T11:58:26.471-0700|SEVERE|GlassFish10.0|null|_ThreadID=12;_ThreadName=Thread-4;|java.lang.IndexOutOfBoundsException:
      Index: 0, Size: 0|#]

      [#|2008-06-21T11:58:26.473-0700|SEVERE|GlassFish10.0|null|_ThreadID=12;_ThreadName=Thread-4;|
      at java.util.ArrayList.RangeCheck(ArrayList.java:546)|#]

      [#|2008-06-21T11:58:26.475-0700|SEVERE|GlassFish10.0|null|_ThreadID=12;_ThreadName=Thread-4;|
      at java.util.ArrayList.remove(ArrayList.java:389)|#]

      [#|2008-06-21T11:58:26.477-0700|SEVERE|GlassFish10.0|null|_ThreadID=12;_ThreadName=Thread-4;|
      at
      com.sun.enterprise.resource.pool.datastructure.ListDataStructure.getResource(ListDataStructure.java:106)|#]

      [#|2008-06-21T11:58:26.478-0700|SEVERE|GlassFish10.0|null|_ThreadID=12;_ThreadName=Thread-4;|
      at
      com.sun.enterprise.resource.pool.resizer.Resizer.removeIdleAndInvalidResources(Resizer.java:168)|#]

      [#|2008-06-21T11:58:26.480-0700|SEVERE|GlassFish10.0|null|_ThreadID=12;_ThreadName=Thread-4;|
      at
      com.sun.enterprise.resource.pool.resizer.Resizer.resizePool(Resizer.java:99)|#]

      [#|2008-06-21T11:58:26.482-0700|SEVERE|GlassFish10.0|null|_ThreadID=12;_ThreadName=Thread-4;|
      at com.sun.enterprise.resource.pool.resizer.Resizer.run(Resizer.java:83)|#]

      [#|2008-06-21T11:58:26.483-0700|SEVERE|GlassFish10.0|null|_ThreadID=12;_ThreadName=Thread-4;|
      at java.util.TimerThread.mainLoop(Timer.java:512)|#]

      [#|2008-06-21T11:58:26.485-0700|SEVERE|GlassFish10.0|null|_ThreadID=12;_ThreadName=Thread-4;|
      at java.util.TimerThread.run(Timer.java:462)|#]

        Activity

        Hide
        jfarcand added a comment -

        Looks like a database connection pool issue. Re-assign to Binod.....

        Show
        jfarcand added a comment - Looks like a database connection pool issue. Re-assign to Binod.....
        Hide
        binod added a comment -

        Re-assign to Jagadesh

        Show
        binod added a comment - Re-assign to Jagadesh
        Hide
        Jagadish added a comment -

        seems to be a synchronization issue.

        if (free.size() > 0) {
        synchronized (free)

        { resource = free.remove(0); }

        }

        has to be

        synchronized (free) {
        if (free.size() > 0)

        { resource = free.remove(0); }

        }

        Show
        Jagadish added a comment - seems to be a synchronization issue. if (free.size() > 0) { synchronized (free) { resource = free.remove(0); } } has to be synchronized (free) { if (free.size() > 0) { resource = free.remove(0); } }
        Hide
        Jagadish added a comment -

        setting appropriate category

        Show
        Jagadish added a comment - setting appropriate category
        Hide
        Jagadish added a comment -

        Fix will be available in b13 - v3 express

        r21136 | jr158900 | 2008-06-26 10:59:41 +0530 (Thu, 26 Jun 2008) | 7 lines
        Changed paths:
        M
        /trunk/v3/connectors/connectors-runtime/src/main/java/com/sun/enterprise/resource/pool/datastructure/ListDataStructure.java

        Show
        Jagadish added a comment - Fix will be available in b13 - v3 express r21136 | jr158900 | 2008-06-26 10:59:41 +0530 (Thu, 26 Jun 2008) | 7 lines Changed paths: M /trunk/v3/connectors/connectors-runtime/src/main/java/com/sun/enterprise/resource/pool/datastructure/ListDataStructure.java
        Hide
        meenap added a comment -

        Ran the test again on B13. The test passed 24X3 successfully and did not see
        these exceptions. Marking bug as verified.

        Show
        meenap added a comment - Ran the test again on B13. The test passed 24X3 successfully and did not see these exceptions. Marking bug as verified.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: