Skip to main content

IV07506: ABSTRACTCOLLECTION.TOARRAY THROWS ARRAYINDEXOUTOFBOUNDSEXCEPTION IN CONCURRENT ENVIRONMENT


Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Error Message: ArrayIndexOutOfBoundsException in
    AbstractCollection.toArray() because the toArray
    method is not designed to handle a concurrent problem.
    .
    Stack Trace: Exception in thread "Thread-17"
    java.lang.ArrayIndexOutOfBoundsException
            at
    java.util.AbstractCollection.toArray(AbstractCollection.java:353
    )
            at CHMTest$ArrayRunnable.run(CHMTest.java:26)
            at java.lang.Thread.run(Thread.java:736)
    .
    

Local fix

  • N/A
    

Problem summary

  • The problem is caused by using AbstractCollection.toArray in
    concurrent environment.
    

Problem conclusion

  • This defect will be fixed in:
    6.0.1 SR1
    6.0.0 SR10
    .
    When there are two or more threads, it is possible a collection
    grows during toArray is called. The original design doesn't
    handle this case and the returned array
    is not long enough to contain all the items in collection,
    as result, indexoutofbound exception is thrown.
    toArray is changed to handle concurrent "add/remove"
    cases.
    .
    To obtain the fix:
    Install build 20110925 or later
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV07506

  • Reported component name

    JAVA CLASS LIBS

  • Reported component ID

    620700130

  • Reported release

    600

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-09-10

  • Closed date

    2011-09-26

  • Last modified date

    2011-09-26

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    JAVA CLASS LIBS

  • Fixed component ID

    620700130

Applicable component levels

  • R600 PSY

       UP

Rate this page:

(0 users)Average rating

Copyright and trademark information

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

Rate this page:


(0 users)Average rating

Add comments

Document information

Runtimes for Java Technology

Java Class Libraries


Software version:
6.0


Reference #:
IV07506


Modified date:
2011-09-26

Translate my page

Content navigation