IBM Support

IV20281: JAVA 6 XMLENCODER EXCEPTION

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Error Message: java.lang.Exception: failed to write expression:
    HashSet=Class.new();
    .
    Stack Trace: java.lang.Exception: failed to write expression:
    HashSet=Class.new();
            at java.beans.Encoder.writeExpression(Encoder.java:367)
            at
    java.beans.XMLEncoder.writeExpression(XMLEncoder.java:956)
            at
    java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.j
    ava:117)
            at java.beans.Encoder.writeObject(Encoder.java:386)
            at
    java.beans.XMLEncoder.writeObject(XMLEncoder.java:974)
            at java.beans.Encoder.writeExpression(Encoder.java:365)
            at
    java.beans.XMLEncoder.writeExpression(XMLEncoder.java:956)
            at
    java.beans.UtilMapPersistenceDelegate.initialize(UtilMapPersiste
    nceDeleg
    ate.java:43)
            at
    java.beans.PersistenceDelegate.initialize(PersistenceDelegate.ja
    va:60)
            at
    java.beans.DefaultPersistenceDelegate.initialize(DefaultPersiste
    nceDeleg
    ate.java:103)
            at
    java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.j
    ava:114)
            at java.beans.Encoder.writeObject(Encoder.java:386)
            at
    java.beans.XMLEncoder.writeObject(XMLEncoder.java:974)
            at java.beans.Encoder.writeExpression(Encoder.java:365)
            at
    java.beans.XMLEncoder.writeExpression(XMLEncoder.java:956)
            at
    java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.j
    ava:117)
            at java.beans.Encoder.writeObject(Encoder.java:386)
            at
    java.beans.XMLEncoder.writeObject(XMLEncoder.java:974)
            at XMLEncoderTest.main(XMLEncoderTest.java:18)
    Caused by: java.util.ConcurrentModificationException
            at
    java.util.HashMap$AbstractMapIterator.checkConcurrentMod(HashMap
    .java:12
    2)
            at
    java.util.HashMap$AbstractMapIterator.makeNext(HashMap.java:127)
            at java.util.HashMap$KeyIterator.next(HashMap.java:200)
            at
    java.beans.UtilCollectionPersistenceDelegate.initialize(UtilColl
    ectionPe
    rsistenceDelegate.java:37)
            at
    java.beans.PersistenceDelegate.initialize(PersistenceDelegate.ja
    va:60)
            at
    java.beans.DefaultPersistenceDelegate.initialize(DefaultPersiste
    nceDeleg
    ate.java:103)
            at
    java.beans.PersistenceDelegate.initialize(PersistenceDelegate.ja
    va:60)
            at
    java.beans.DefaultPersistenceDelegate.initialize(DefaultPersiste
    nceDeleg
    ate.java:103)
            at
    java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.j
    ava:114)
            at java.beans.Encoder.writeObject(Encoder.java:386)
            at
    java.beans.XMLEncoder.writeObject(XMLEncoder.java:974)
            at java.beans.Encoder.writeExpression(Encoder.java:365)
            ... 18 more
    .
    

Local fix

Problem summary

  • The problem is caused when
    java.beans.UtilCollectionPersistenceDelegate.initialize use
    iterator.next to a collection and the collection is modified at
    the same time.
    

Problem conclusion

  • This defect will be fixed in:
    6.0.0 SR11
    6.0.1 SR4
    .
    UtilCollectionPersistenceDelegate has been updated to prevent
    the java.util.ConcurrentModificationException
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV20281

  • 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

    2012-04-26

  • Closed date

    2012-04-30

  • Last modified date

    2012-08-30

  • 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



Document information

More support for: Runtimes for Java Technology
Java Class Libraries

Software version: 6.0

Reference #: IV20281

Modified date: 2012-08-30