IBM Support

IJ55602: A SERIALIZATION MISMATCH BETWEEN JAVA 8 AND NEWER VERSIONS CAN CAUSE STREAMCORRUPTEDEXCEPTION DURING DESERIALIZATION OF DATE.

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: None
    .
    Stack Trace:
    com.ibm.CORBA.iiop.ServerDelegate.dispatchInvokeHandler(ServerDe
    legate.java:638)
        at
    com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerDelegate.java:5
    08)
        at com.ibm.rmi.iiop.ORB.process(ORB.java:613)
        at com.ibm.CORBA.iiop.ORB.process(ORB.java:1584)
        at
    com.ibm.rmi.iiop.Connection.doRequestWork(Connection.java:3190)
        at com.ibm.rmi.iiop.Connection.doWork(Connection.java:3051)
        at
    com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:64)
        at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:118)
        at
    com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1909)
    Caused by: java.io.StreamCorruptedException: Default data must
    be read first
        at
    com.ibm.rmi.io.IIOPInputStream.readLong(IIOPInputStream.java:132
    5)
        at java.util.Date.readObject(Date.java:1343)
    .
    

Local fix

Problem summary

  • A serialization compatibility issue arises due to differing
    behaviors between Java 8 and later Java versions. Newer Java
    versions use defaultWriteObject() during serialization, while
    Java 8 expects deserialization to proceed through the
    readObject() method rather than relying solely on
    defaultReadObject() when java.util.Date is involved. This
    mismatch leads to incompatibility when exchanging serialized
    objects between these Java versions and Java 8 throws
    "java.io.StreamCorruptedException: Default data must be read
    first".
    

Problem conclusion

  • The behavior is controlled by the
    com.ibm.CORBA.suppressDefaultWriteObjectException property,
    which defaults to false and should be configured in the
    orb.properties file.
    * When set to false and defaultWriteObject is used, a
    StreamCorruptedException is thrown with the message: "Default
    data must be read first."
    * When set to true, the exception is suppressed, and a warning
    is logged with the same message in the Orb logs.
    .
    This APAR will be fixed in the following Releases:
    .
    IBM Semeru Runtimes
    IBM SDK, Java Technology Edition
       8    SR8 FP55  (8.0.8.55)
    .
    Downloads and supplementary documentation can be found at the
    following locations:
    - For non z/OS operating systems:
      - IBM Semeru Runtimes, Version 11 and later
        https://www.ibm.com/semeru-runtimes/downloads/
      - IBM SDK, Java Technology Edition, Version 8
        https://www.ibm.com/support/pages/java-sdk-downloads/
    - For the z/OS operating system:
      - Java SDK Products on z/OS
        https://www.ibm.com/support/pages/java-sdk-products-zos
    

Temporary fix

Comments

APAR Information

  • APAR number

    IJ55602

  • Reported component name

    JAVA CLASS LIBS

  • Reported component ID

    620700130

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2025-08-18

  • Closed date

    2025-08-19

  • Last modified date

    2025-08-19

  • 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

[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SSNVBF","label":"Runtimes for Java Technology"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]

Document Information

Modified date:
19 August 2025