0 Replies Latest reply on Mar 24, 2006 9:25 PM by peter

    Unable to load to deserialize result:

    peter Apprentice

      Hi


      I got the following error when cmp is used.

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


      jboss-4.0.3sp1 and postgresql 8.1 are used.

      Following is my xdoclet code:


      /**
      * @ejb.persistence column-name="content" jdbc-type="blob" jdbc_type="BLOB"
      * @ejb.transaction type="Supports"
      * @jboss.load-group name="g1"
      * @ejb.interface-method
      * @ejb.value-object match="metainfo"
      */
      public abstract byte[] getContent();


      the exception is :



      2006-03-25 10:18:50,522 INFO [STDOUT] javax.ejb.FinderException: Find failed: javax.ejb.EJBException: Internal error getting results for field member htmlcode; CausedByException is:
      Unable to load to deserialize result: java.io.StreamCorruptedException: invalid stream header
      2006-03-25 10:18:50,525 INFO [STDOUT] at org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractQueryCommand$EagerCollectionFactory.createCollection(JDBCAbstractQueryCommand.java:780)
      2006-03-25 10:18:50,525 INFO [STDOUT] at org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractQueryCommand.execute(JDBCAbstractQueryCommand.java:250)
      2006-03-25 10:18:50,526 INFO [STDOUT] at org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractQueryCommand.execute(JDBCAbstractQueryCommand.java:128)
      2006-03-25 10:18:50,526 INFO [STDOUT] at org.jboss.ejb.plugins.cmp.jdbc.JDBCFindEntitiesCommand.execute(JDBCFindEntitiesCommand.java:40)
      2006-03-25 10:18:50,526 INFO [STDOUT] at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.findEntities(JDBCStoreManager.java:598)
      2006-03-25 10:18:50,526 INFO [STDOUT] at org.jboss.ejb.plugins.CMPPersistenceManager.findEntities(CMPPersistenceManager.java:322)
      2006-03-25 10:18:50,527 INFO [STDOUT] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.findEntities(CachedConnectionInterceptor.java:245)
      2006-03-25 10:18:50,527 INFO [STDOUT] at org.jboss.ejb.EntityContainer.findLocal(EntityContainer.java:649)
      2006-03-25 10:18:50,527 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2006-03-25 10:18:50,527 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      2006-03-25 10:18:50,527 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      2006-03-25 10:18:50,528 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:324)
      2006-03-25 10:18:50,528 INFO [STDOUT] at org.jboss.invocation.Invocation.performCall(Invocation.java:345)


      ....



      Please help

      Thanks
      yang