6 Replies Latest reply on Nov 5, 2002 11:40 PM by Stephen Coy

    Unable to load to deserialize result

    Eric Chow Newbie

      Hello,

      My simple EJB example that worked in JBoss3.0 but failed in JBoss3.0.1/JBoss3.0.2/JBoss3.0.3.

      My EJB(CMP) just for keeping some message.
      The datatype in DB is BLOB and in EJB is Object.

      When I retrieve the EJB, some exception raised as following:
      =====================================================
      2002-10-24 17:26:20,330 ERROR [org.jboss.ejb.plugins.LogInterceptor] EJBException, causedBy:
      java.sql.SQLException: Unable to load to deserialize result: java.io.StreamCorruptedException: invalid stream header
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCUtil.convertByteArrayToObject(JDBCUtil.java:612)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCUtil.getResult(JDBCUtil.java:311)
      at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.loadArgumentResults(JDBCAbstractCMPFieldBridge.java:350)
      at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.loadInstanceResults(JDBCAbstractCMPFieldBridge.java:304)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:147)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:62)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadEntity(JDBCStoreManager.java:572)
      at org.jboss.ejb.plugins.CMPPersistenceManager.loadEntity(CMPPersistenceManager.java:410)
      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.loadEntity(CachedConnectionInterceptor.java:353)
      at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:262)
      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
      at org.jboss.ejb.plugins.EntityReentranceInterceptor.invoke(EntityReentranceInterceptor.java:90)
      at org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:152)
      at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:107)
      at org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:69)
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:107)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:178)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)
      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:130)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:203)
      at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:493)
      at org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLocalContainerInvoker.java:301)
      at org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38)
      at $Proxy45.getName(Unknown Source)
      at eric.forum.tag.MessageTag.doStartTag(MessageTag.java:116)
      at org.apache.jsp.show$jsp._jspService(show$jsp.java:102)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:366)
      at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:332)
      at eric.share.charset.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:71)
      at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:324)
      at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:276)
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:577)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1674)
      at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:544)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1624)
      at org.mortbay.http.HttpServer.service(HttpServer.java:875)
      at org.jboss.jetty.Jetty.service(Jetty.java:541)
      at org.mortbay.http.HttpConnection.service(HttpConnection.java:785)
      at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:935)
      at org.mortbay.http.HttpConnection.handle(HttpConnection.java:802)
      at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:200)
      at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:294)
      at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:743)
      at java.lang.Thread.run(Thread.java:536)
      2002-10-24 17:26:20,490 WARN [org.jboss.jbossweb] WARNING: Error
      javax.ejb.EJBException: Internal error getting results for field member name; CausedByException is:
      Unable to load to deserialize result: java.io.StreamCorruptedException: invalid stream header
      at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.loadArgumentResults(JDBCAbstractCMPFieldBridge.java:360)
      at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.loadInstanceResults(JDBCAbstractCMPFieldBridge.java:304)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:147)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:62)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadEntity(JDBCStoreManager.java:572)
      at org.jboss.ejb.plugins.CMPPersistenceManager.loadEntity(CMPPersistenceManager.java:410)
      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.loadEntity(CachedConnectionInterceptor.java:353)
      at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:262)
      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
      at org.jboss.ejb.plugins.EntityReentranceInterceptor.invoke(EntityReentranceInterceptor.java:90)
      at org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:152)
      at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:107)
      at org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:69)
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:107)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:178)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)
      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:130)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:203)
      at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:493)
      at org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLocalContainerInvoker.java:301)
      at org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38)
      at $Proxy45.getName(Unknown Source)
      at eric.forum.tag.MessageTag.doStartTag(MessageTag.java:116)
      at org.apache.jsp.show$jsp._jspService(show$jsp.java:102)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:366)
      at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:332)
      at eric.share.charset.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:71)
      at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:324)
      at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:276)
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:577)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1674)
      at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:544)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1624)
      at org.mortbay.http.HttpServer.service(HttpServer.java:875)
      at org.jboss.jetty.Jetty.service(Jetty.java:541)
      at org.mortbay.http.HttpConnection.service(HttpConnection.java:785)
      at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:935)
      at org.mortbay.http.HttpConnection.handle(HttpConnection.java:802)
      at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:200)
      at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:294)
      at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:743)
      at java.lang.Thread.run(Thread.java:536)
      java.sql.SQLException: Unable to load to deserialize result: java.io.StreamCorruptedException: invalid stream header
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCUtil.convertByteArrayToObject(JDBCUtil.java:612)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCUtil.getResult(JDBCUtil.java:311)
      at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.loadArgumentResults(JDBCAbstractCMPFieldBridge.java:350)
      at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.loadInstanceResults(JDBCAbstractCMPFieldBridge.java:304)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:147)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:62)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadEntity(JDBCStoreManager.java:572)
      at org.jboss.ejb.plugins.CMPPersistenceManager.loadEntity(CMPPersistenceManager.java:410)
      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.loadEntity(CachedConnectionInterceptor.java:353)
      at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:262)
      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
      at org.jboss.ejb.plugins.EntityReentranceInterceptor.invoke(EntityReentranceInterceptor.java:90)
      at org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:152)
      at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:107)
      at org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:69)
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:107)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:178)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)
      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:130)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:203)
      at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:493)
      at org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLocalContainerInvoker.java:301)
      at org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38)
      at $Proxy45.getName(Unknown Source)
      at eric.forum.tag.MessageTag.doStartTag(MessageTag.java:116)
      at org.apache.jsp.show$jsp._jspService(show$jsp.java:102)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:366)
      at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:332)
      at eric.share.charset.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:71)
      at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:324)
      at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:276)
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:577)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1674)
      at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:544)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1624)
      at org.mortbay.http.HttpServer.service(HttpServer.java:875)
      at org.jboss.jetty.Jetty.service(Jetty.java:541)
      at org.mortbay.http.HttpConnection.service(HttpConnection.java:785)
      at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:935)
      at org.mortbay.http.HttpConnection.handle(HttpConnection.java:802)
      at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:200)
      at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:294)
      at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:743)
      at java.lang.Thread.run(Thread.java:536)

      2002-10-24 17:26:20,660 INFO [org.jboss.jbossweb] Error: javax.ejb.EJBException: Internal error getting results for field member name; CausedByException is:
      Unable to load to deserialize result: java.io.StreamCorruptedException: invalid stream header

      ========================================================


      Environment:
      1. JBoss3.0.3
      2. JDK1.4.1_01
      3. Win 98
      4. MySQL 3.23.47 for Win98


      And also enclose the jbosscmp-jdbc.xml for reference.


      Best regards,
      Eric

        • 1. Re: Unable to load to deserialize result
          Eric Chow Newbie

          my EJB files and jbosscmp-jdbc.xml

          • 2. Re: Unable to load to deserialize result
            Stephen Coy Novice

            The chances are good that this will work in 3.0.4.
            I've just done a lot of rework in this area in order to make it work with Oracle.
            I'll have a look at getting my test case to work with MySQL, but I can't promise when.

            • 3. Re: Unable to load to deserialize result
              Eric Chow Newbie

              Hi Scoy,

              I have just tested in JBoss3.0.4.
              The result is same.

              The following are the exception messages:
              ==============================================
              2002-11-05 17:38:07,160 ERROR [org.jboss.ejb.plugins.LogInterceptor] TransactionRolledbackLocalException, causedBy:
              java.sql.SQLException: Unable to load to deserialize result: java.io.EOFException
              at org.jboss.ejb.plugins.cmp.jdbc.JDBCUtil.convertToObject(JDBCUtil.java:747)
              at org.jboss.ejb.plugins.cmp.jdbc.JDBCUtil.getResult(JDBCUtil.java:360)
              at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.loadArgumentResults(JDBCAbstractCMPFieldBridge.java:359)
              at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.loadInstanceResults(JDBCAbstractCMPFieldBridge.java:312)
              at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:147)
              at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:62)
              at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadEntity(JDBCStoreManager.java:572)
              at org.jboss.ejb.plugins.CMPPersistenceManager.loadEntity(CMPPersistenceManager.java:410)
              at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.loadEntity(CachedConnectionInterceptor.java:353)
              at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:251)
              at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
              at org.jboss.ejb.plugins.EntityReentranceInterceptor.invoke(EntityReentranceInterceptor.java:90)
              at org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:163)
              at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:107)
              at org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:69)
              at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:107)
              at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:178)
              at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)
              at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:130)
              at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:204)
              at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:493)
              at org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLocalContainerInvoker.java:301)
              at org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38)
              at $Proxy31.getMessage(Unknown Source)
              at eric.share.ejb.dbmessage.DBMessageManagerEJB.getMessage(DBMessageManagerEJB.java:205)
              at eric.share.ejb.dbmessage.DBMessageManagerEJB.getMessage(DBMessageManagerEJB.java:196)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:660)
              at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
              at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:77)
              at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:107)
              at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:178)
              at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)
              at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:130)
              at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:204)
              at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:313)
              at org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLocalContainerInvoker.java:301)
              at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:81)
              at $Proxy30.getMessage(Unknown Source)
              at eric.share.tag.DBMessageTag.doEndTag(DBMessageTag.java:110)
              at org.apache.jsp.dbmessageshow$jsp._jspService(dbmessageshow$jsp.java:110)
              at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
              at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
              at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:366)
              at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:341)
              at eric.share.charset.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:71)
              at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:333)
              at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:285)
              at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:581)
              at org.mortbay.http.HttpContext.handle(HttpContext.java:1687)
              at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:544)
              at org.mortbay.http.HttpContext.handle(HttpContext.java:1637)
              at org.mortbay.http.HttpServer.service(HttpServer.java:875)
              at org.jboss.jetty.Jetty.service(Jetty.java:543)
              at org.mortbay.http.HttpConnection.service(HttpConnection.java:806)
              at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:956)
              at org.mortbay.http.HttpConnection.handle(HttpConnection.java:823)
              at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:203)
              at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:290)
              at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:743)
              at java.lang.Thread.run(Thread.java:536)
              2002-11-05 17:38:07,220 ERROR [org.jboss.ejb.plugins.LogInterceptor] EJBException, causedBy:
              javax.ejb.TransactionRolledbackLocalException: Internal error getting results for field member message; CausedByException is:
              Unable to load to deserialize result: java.io.EOFException; CausedByException is:
              Internal error getting results for field member message; CausedByException is:
              Unable to load to deserialize result: java.io.EOFException
              at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:224)
              at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:178)
              at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)
              at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:130)
              at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:204)
              at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:493)
              at org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLocalContainerInvoker.java:301)
              at org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38)
              at $Proxy31.getMessage(Unknown Source)
              at eric.share.ejb.dbmessage.DBMessageManagerEJB.getMessage(DBMessageManagerEJB.java:205)
              at eric.share.ejb.dbmessage.DBMessageManagerEJB.getMessage(DBMessageManagerEJB.java:196)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:660)
              at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
              at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:77)
              at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:107)
              at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:178)
              at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)
              at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:130)
              at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:204)
              at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:313)
              at org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLocalContainerInvoker.java:301)
              at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:81)
              at $Proxy30.getMessage(Unknown Source)
              at eric.share.tag.DBMessageTag.doEndTag(DBMessageTag.java:110)
              at org.apache.jsp.dbmessageshow$jsp._jspService(dbmessageshow$jsp.java:110)
              at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
              at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
              at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:366)
              at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:341)
              at eric.share.charset.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:71)
              at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:333)
              at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:285)
              at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:581)
              at org.mortbay.http.HttpContext.handle(HttpContext.java:1687)
              at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:544)
              at org.mortbay.http.HttpContext.handle(HttpContext.java:1637)
              at org.mortbay.http.HttpServer.service(HttpServer.java:875)
              at org.jboss.jetty.Jetty.service(Jetty.java:543)
              at org.mortbay.http.HttpConnection.service(HttpConnection.java:806)
              at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:956)
              at org.mortbay.http.HttpConnection.handle(HttpConnection.java:823)
              at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:203)
              at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:290)
              at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:743)
              at java.lang.Thread.run(Thread.java:536)
              javax.ejb.EJBException: Internal error getting results for field member message; CausedByException is:
              Unable to load to deserialize result: java.io.EOFException
              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:312)
              at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:147)
              at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:62)
              at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadEntity(JDBCStoreManager.java:572)
              at org.jboss.ejb.plugins.CMPPersistenceManager.loadEntity(CMPPersistenceManager.java:410)
              at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.loadEntity(CachedConnectionInterceptor.java:353)
              at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:251)
              at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
              at org.jboss.ejb.plugins.EntityReentranceInterceptor.invoke(EntityReentranceInterceptor.java:90)
              at org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:163)
              at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:107)
              at org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:69)
              at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:107)
              at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:178)
              at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)
              at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:130)
              at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:204)
              at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:493)
              at org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLocalContainerInvoker.java:301)
              at org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38)
              at $Proxy31.getMessage(Unknown Source)
              at eric.share.ejb.dbmessage.DBMessageManagerEJB.getMessage(DBMessageManagerEJB.java:205)
              at eric.share.ejb.dbmessage.DBMessageManagerEJB.getMessage(DBMessageManagerEJB.java:196)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:660)
              at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
              at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:77)
              at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:107)
              at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:178)
              at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)
              at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:130)
              at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:204)
              at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:313)
              at org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLocalContainerInvoker.java:301)
              at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:81)
              at $Proxy30.getMessage(Unknown Source)
              at eric.share.tag.DBMessageTag.doEndTag(DBMessageTag.java:110)
              at org.apache.jsp.dbmessageshow$jsp._jspService(dbmessageshow$jsp.java:110)
              at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
              at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
              at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:366)
              at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:341)
              at eric.share.charset.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:71)
              at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:333)
              at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:285)
              at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:581)
              at org.mortbay.http.HttpContext.handle(HttpContext.java:1687)
              at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:544)
              at org.mortbay.http.HttpContext.handle(HttpContext.java:1637)
              at org.mortbay.http.HttpServer.service(HttpServer.java:875)
              at org.jboss.jetty.Jetty.service(Jetty.java:543)
              at org.mortbay.http.HttpConnection.service(HttpConnection.java:806)
              at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:956)
              at org.mortbay.http.HttpConnection.handle(HttpConnection.java:823)
              at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:203)
              at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:290)
              at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:743)
              at java.lang.Thread.run(Thread.java:536)
              java.sql.SQLException: Unable to load to deserialize result: java.io.EOFException
              at org.jboss.ejb.plugins.cmp.jdbc.JDBCUtil.convertToObject(JDBCUtil.java:747)
              at org.jboss.ejb.plugins.cmp.jdbc.JDBCUtil.getResult(JDBCUtil.java:360)
              at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.loadArgumentResults(JDBCAbstractCMPFieldBridge.java:359)
              at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.loadInstanceResults(JDBCAbstractCMPFieldBridge.java:312)
              at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:147)
              at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:62)
              at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadEntity(JDBCStoreManager.java:572)
              at org.jboss.ejb.plugins.CMPPersistenceManager.loadEntity(CMPPersistenceManager.java:410)
              at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.loadEntity(CachedConnectionInterceptor.java:353)
              at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:251)
              at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
              at org.jboss.ejb.plugins.EntityReentranceInterceptor.invoke(EntityReentranceInterceptor.java:90)
              at org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:163)
              at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:107)
              at org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:69)
              at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:107)
              at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:178)
              at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)
              at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:130)
              at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:204)
              at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:493)
              at org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLocalContainerInvoker.java:301)
              at org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38)
              at $Proxy31.getMessage(Unknown Source)
              at eric.share.ejb.dbmessage.DBMessageManagerEJB.getMessage(DBMessageManagerEJB.java:205)
              at eric.share.ejb.dbmessage.DBMessageManagerEJB.getMessage(DBMessageManagerEJB.java:196)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:660)
              at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
              at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:77)
              at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:107)
              at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:178)
              at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)
              at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:130)
              at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:204)
              at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:313)
              at org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLocalContainerInvoker.java:301)
              at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:81)
              at $Proxy30.getMessage(Unknown Source)
              at eric.share.tag.DBMessageTag.doEndTag(DBMessageTag.java:110)
              at org.apache.jsp.dbmessageshow$jsp._jspService(dbmessageshow$jsp.java:110)
              at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
              at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
              at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:366)
              at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:341)
              at eric.share.charset.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:71)
              at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:333)
              at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:285)
              at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:581)
              at org.mortbay.http.HttpContext.handle(HttpContext.java:1687)
              at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:544)
              at org.mortbay.http.HttpContext.handle(HttpContext.java:1637)
              at org.mortbay.http.HttpServer.service(HttpServer.java:875)
              at org.jboss.jetty.Jetty.service(Jetty.java:543)
              at org.mortbay.http.HttpConnection.service(HttpConnection.java:806)
              at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:956)
              at org.mortbay.http.HttpConnection.handle(HttpConnection.java:823)
              at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:203)
              at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:290)
              at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:743)
              at java.lang.Thread.run(Thread.java:536)
              2002-11-05 17:38:07,380 ERROR [eric.share.tag.DBMessageTag] javax.ejb.EJBException: null; CausedByException is:
              Internal error getting results for field member message; CausedByException is:
              Unable to load to deserialize result: java.io.EOFException; CausedByException is:
              Internal error getting results for field member message; CausedByException is:
              Unable to load to deserialize result: java.io.EOFException



              Bets regards,
              Eric

              • 4. Re: Unable to load to deserialize result
                Stephen Coy Novice

                G'Day again,

                I've run the test suite against mysql and blobs work fine. Clobs are a different story.

                Are you using the latest JDBC drivers from the mysql web site?

                Or are you trying to recover data written using JBoss 3.0.0? If this is the case, unfortunately the object marshalling/unmarshalling was changed in an incompatible way in (I think) 3.0.1. There's not much I can do about this, but I believe that it was done for a good reason.

                Steve

                • 5. Re: Unable to load to deserialize result
                  Eric Chow Newbie

                  I am using mm.mysql-2.0.14

                  • 6. Re: Unable to load to deserialize result
                    Stephen Coy Novice

                    That's the same as I've used.

                    You didn't answer my other question.