Discussions

EJB programming & troubleshooting: InputStream does not contain a serialized object

  1. InputStream does not contain a serialized object (2 messages)

    I created a table in Oracle 8.1.7 which has a BLOB field, then I use Weblogic 7.0 to create a CMP EntityBean, and set the type of the BLOB field to "java.lang.Object" and dbms-column-type is OracleBlob.

    Then I write a HashMap object into this field and it seems works fine, But when I try to read the field, I got the error:
    java.io.StreamCorruptedException: InputStream does not contain a serialized object

    Anybody has get this error before? How can I solve this?
    Thanks
  2. if the read is an resultSet class its not serializable. write your own class which extens that resultset and impl serializable and use it in your bean.
  3. It seems that there is a bug in Weblogic 7.0 when handling Oracle BLOB/CLOB, I download Weblogic 7.0 SP1 and this issue was solved.