IBM Support

PI59667: IllegalArgumentException encountered while setting fields during readObject() in XDF

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

  • IllegalArgumentException encountered while setting fields
    during readObject() in XDF
    
    
    Stack trace similar to this can be seen during the error
    
    Caused by:
    com.ibm.websphere.objectgrid.ObjectGridRuntimeException:
    java.lang.reflect.InvocationTargetException
     at
    com.ibm.ws.objectgrid.plugins.io.dataobject.values.ValueDataImpl
    .getObject(ValueDataImpl.java:391)
     at com.ibm.ws.objectgrid.DiffMap.get(DiffMap.java:1061)
     at
    com.ibm.ws.objectgrid.ObjectMapImpl.get(ObjectMapImpl.java:451)
     ... 2 more
    Caused by:
    com.ibm.websphere.objectgrid.ObjectGridRuntimeException:
    java.lang.reflect.InvocationTargetException
     at
    com.ibm.ws.objectgrid.xdf.serializers.javaStream.GenericJavaSeri
    alizer2.deserializeObject(GenericJavaSerializer2.java:227)
     at
    com.ibm.ws.objectgrid.xdf.XDFSerializerPlugin.inflateDataObject(
    XDFSerializerPlugin.java:363)
     at
    com.ibm.ws.objectgrid.plugins.io.dataobject.values.ValueDataImpl
    .getObject(ValueDataImpl.java:383)
     ... 4 more
    Caused by: java.lang.reflect.InvocationTargetException
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessor
    Impl.java:60)
     at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod
    AccessorImpl.java:37)
     at java.lang.reflect.Method.invoke(Method.java:611)
     at
    com.ibm.ws.objectgrid.xdf.serializers.javaStream.GenericJavaSeri
    alizer2.deserializeObject(GenericJavaSerializer2.java:222)
     ... 6 more
    Caused by:
    com.ibm.websphere.objectgrid.ObjectGridRuntimeException:
    CWOBJ6339E: The conversion of type java.lang.Float to type int
    failed.
     at
    com.ibm.ws.objectgrid.xdf.JavaFieldAccess.set(JavaFieldAccess.ja
    va:53)
     at
    com.ibm.ws.objectgrid.xdf.XDFField.setFieldValue(XDFField.java:5
    12)
     at
    com.ibm.ws.objectgrid.xdf.serializers.FloatSerializer.deserializ
    eFieldToObject(FloatSerializer.java:44)
     at
    com.ibm.ws.objectgrid.xdf.serializers.GenericClassSerializer.des
    erializeFieldsToObject(GenericClassSerializer.java:307)
     at
    com.ibm.ws.objectgrid.xdf.serializers.javaStream.XDFObjectInputS
    treamV2Impl.defaultReadObject(XDFObjectInputStreamV2Impl.java:10
    9)
     at java.util.HashMap.readObject(HashMap.java:950)
     ... 11 more
    Caused by: java.lang.IllegalArgumentException: Can not set int
    field java.util.HashMap.threshold to java.lang.Float
     at
    sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentExcep
    tion(UnsafeFieldAccessorImpl.java:158)
     at
    sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentExcep
    tion(UnsafeFieldAccessorImpl.java:162)
     at
    sun.reflect.UnsafeIntegerFieldAccessorImpl.set(UnsafeIntegerFiel
    dAccessorImpl.java:92)
     at java.lang.reflect.Field.set(Field.java:670)
     at
    com.ibm.ws.objectgrid.xdf.JavaFieldAccess.set(JavaFieldAccess.ja
    va:42)
     ... 16 more
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  WebSphere eXtreme Scale users using         *
    *                  eXtreme Data Format (XDF) with data objects *
    *                  that implement java.io.Serializable and     *
    *                  have a readObject() method which invokes    *
    *                  java.io.ObjectInputStream.defaultReadObject *
    *                  (                                           *
    *                  ).                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION: If multiple XDF descriptors exist for   *
    *                      an object the incorrect one may be      *
    *                      used during deserialization.            *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    While XDF is invoking
    java.io.ObjectInputStream.defaultReadObject() the incorrect
    XDF descriptor may be used if multiple descriptors exist for
    the object class. java.lang.IllegalArgumentException
    exceptions may occur when setting fields if the descriptors
    have a different field ordering.
    

Problem conclusion

  • An interim fix is available for this APAR upon request.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI59667

  • Reported component name

    WS EXTREME SCAL

  • Reported component ID

    5724X6702

  • Reported release

    860

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-03-23

  • Closed date

    2016-03-29

  • Last modified date

    2016-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

    WS EXTREME SCAL

  • Fixed component ID

    5724X6702

Applicable component levels

  • R860 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSTVLU","label":"WebSphere eXtreme Scale"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"860","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
30 August 2016