1 Reply Latest reply on Oct 15, 2003 2:48 AM by joda

    CMP Blob problem

    stscit04 Newbie

      Hi,

      I am using Jboss 3.2.1 / CMP with mySQL.
      I have an CMP Bean with an CMP field
      of type Object (I store pdf-files there).
      If I try to load the CMP bean I get the following
      error:

      java.sql.SQLException: Unable to load to deserialize result: java.io.StreamCorruptedException: invalid stream header

      at org.jboss.ejb.plugins.cmp.jdbc.JDBCUtil.convertToObject(JDBCUtil.java:747)

      at org.jboss.ejb.plugins.cmp.jdbc.JDBCUtil.getResult(JDBCUtil.java:372)

      at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.loadArgumentResults(JDBCAbstractCMPFieldBridge.java:369)

      at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.loadInstanceResults(JDBCAbstractCMPFieldBridge.java:322)

      at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:190)

      at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:83)

      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadEntity(JDBCStoreManager.java:632)

      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadEntity(JDBCStoreManager.java:614)

      at org.jboss.ejb.plugins.CMPPersistenceManager.loadEntity(CMPPersistenceManager.java:386)

      The Database contains the Object, but I cant get it out....
      I have no clue what I am doing wrong, any
      help would be appreciated!

      Thanks

      Stefan