Skip to main content

IV20281: JAVA 6 XMLENCODER EXCEPTION


Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

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

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 #:
IV20281


Modified date:
2012-08-30

Translate my page

Content navigation