IBM Support

IV44500: NULLPOINTEREXCEPTION WHEN USING JAVA.BEANS.XMLENCODER WITH COLLECTIONS.SYNCHRONIZEDLIST AFTER APPLYING IZ85781

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Error Message: Customer is using XMLEncoder to serialize
    synchronized List created by
    Collections.synchronizedList(ArrayList) and gets
    NullPointerException.
    .
    Stack Trace: Failure in class java.lang.NullPointerException
    
    Exception in thread "main" java.lang.NullPointerException
    
     at
    
    java.beans.UtilCollectionsPersistenceDelegate.mutatesTo(UtilColl
    ectionsP
    ersistenceDelegate.java:59)
    
     at
    
    java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.j
    ava:118)
     at java.beans.Encoder.writeObject(Encoder.java:425)
    
     at java.beans.XMLEncoder.writeObject(XMLEncoder.java:1009)
    
     at Test.testEncoder(Test.java:19)
    
     at Test.main(Test.java:8)
    .
    N/A
    

Local fix

  • Use ArrayList to serialize instead of generating synchronized
    List by Collections.synchronizedList(ArrayList).
    

Problem summary

  • The crash occurs when verifying "dead code" in classes that have
    been stored in the shared classes cache using the StackMapTable
    attribute.
    

Problem conclusion

  • The JVM has been updated to properly handle dead code in classes
    stored in the shared classes cache.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV44500

  • 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

    2013-06-19

  • Closed date

    2013-07-29

  • Last modified date

    2013-10-21

  • 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

  • R700 PSY

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSCVQ3Y","label":"Java Class Libraries"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.0","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
21 October 2013