IBM Support

PM23340: UTFDATAFORMATEXCEPTION IS THROWN WHEN SERIALIZING AN ENTITY WHICH CONTAINS A STRING ATTRBUTE OF LENGTH GREATER THAN 64K.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • An entity loaded in ObjectGrid and when try
    to retrieve the same from ObjectGrid, getting the
    exception java.io.UTFDataFormatException. This will happen
    only if the data for the attribute (of type String) is very
    long. During serialization, this error will be thrown if the
    length is more than 65535.
    
    Exception = com.ibm.websphere.projector.ProjectorException
    Source =
    com.ibm.ws.objectgrid.event.ClientGetResponseSystemEvent.writeOb
    ject
    probeid = 118
    Stack Dump = com.ibm.websphere.projector.ProjectorException:
    IOException while serializing Tuple
    com.ibm.ws.projector.ProjectorImpl.serializeTuple(ProjectorImpl.
    java:936)
    com.ibm.ws.objectgrid.map.BaseMap$BaseMapObjectTransformer.seria
    lizeValue(BaseMap.java:4629)
    Caused by: java.io.IOException: Unable to write tuple attribute
    0, type=string at
    com.ibm.ws.projector.TupleImpl.writeAttributes(TupleImpl.java:88
    5)
    com.ibm.ws.projector.TupleImpl.getBytes(TupleImpl.java:655)
    com.ibm.ws.projector.ProjectorImpl.serializeTuple(ProjectorImpl.
    java:934)
    Caused by: java.io.UTFDataFormatException
    java.io.ObjectOutputStream$BlockDataOutputStream.writeUTF(Object
    OutputStream.java:2064)
    java.io.ObjectOutputStream$BlockDataOutputStream.writeUTF(Object
    OutputStream.java:1907)
    java.io.ObjectOutputStream.writeUTF(ObjectOutputStream.java:839)
    com.ibm.ws.projector.TupleImpl.writeAttributes(TupleImpl.java:82
    9)
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of WebSphere eXtreme Scale who    *
    *                  use Entity Manager API's and have an        *
    *                  Entity that has a String attribute that     *
    *                  exceeds 64K length.                         *
    ****************************************************************
    * PROBLEM DESCRIPTION: A UTFDataFormatException exception      *
    *                      results when serializing an Entity.     *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The ObjectOutputStream.writeUTF method in the Java API throws a
    UTFDataFormatException exception if a String attribute is
    greater than 64K in length.
    

Problem conclusion

  • The code has been updated to prevent UTFDataFormatException
    exceptions from occurring.
    
    An interim fix will be provided for the Version 6.1.0.5
    release of
    eXtreme Scale.
    A future cumulative fix will be provided for releases 7.0 and
    7.1. This fix must be applied to both the client
    and server side of eXtreme Scale. If an interim fix is applied o
    only
    one side, an java.io.EOFException exception results.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM23340

  • Reported component name

    XD EXTREME SCAL

  • Reported component ID

    5724J3402

  • Reported release

    610

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-09-27

  • Closed date

    2010-10-29

  • Last modified date

    2010-10-29

  • 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

    XD EXTREME SCAL

  • Fixed component ID

    5724J3402

Applicable component levels

  • R610 PSY

       UP

  • R700 PSY

       UP

  • R710 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":"6.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
23 September 2020