0 Replies Latest reply on Oct 22, 2001 12:10 PM by Samir Kakkar

    Help with Serialization Failure Exception

    Samir Kakkar Newbie

      Hi, I am running JBoss-2.4.0_Tomcat-3.2.3, I have created a CMP bean with some fields which it stores in a byte[](stored as Jdbc type JAVA_OBJECT in jaws.xml). I am using hypersonic as the default db. The problem i am having is when i first create the bean and populate it, everything works fine, but after a period of inactivity when the server is hit, It gives me the following error( stack trace at bottom of message), My question is is there any setting in jboss.xml or jaws.xml which i can change to stop this from happening. This server used to be as stable as a rock before but since i added in a new byte[] field it crashes about every 10 minutes. Thanks in advance for any help.
      -Samir
      **********************************************
      [JAD] TRANSACTION ROLLBACK EXCEPTION:Load failed; nested exception is:
      java.sql.SQLException: Serialization failure: InputStream does not cont
      in a serialized object; nested exception is:
      java.rmi.ServerException: Load failed; nested exception is:
      java.sql.SQLException: Serialization failure: InputStream does not cont
      in a serialized object
      [JAD] java.rmi.ServerException: Load failed; nested exception is:
      [JAD] java.sql.SQLException: Serialization failure: InputStream does not cont
      in a serialized object
      [JAD] java.sql.SQLException: Serialization failure: InputStream does not contai
      a serialized object
      [JAD] at org.hsql.Trace.getError(Trace.java:124)
      [JAD] at org.hsql.Trace.getError(Trace.java:115)
      [JAD] at org.hsql.Trace.error(Trace.java:130)
      [JAD] at org.hsql.ByteArray.deserialize(ByteArray.java:58)
      [JAD] at org.hsql.jdbcResultSet.getObject(jdbcResultSet.java:712)
      [JAD] at org.jboss.pool.jdbc.ResultSetInPool.getObject(ResultSetInPool.java:5
      4)
      [JAD] at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.getResultObject(JDBCComm
      nd.java:405)
      [JAD] at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.getResultObject(JDBCComm
      nd.java:504)
      [JAD] at org.jboss.ejb.plugins.jaws.jdbc.JDBCLoadEntityCommand.loadOneEntity(
      DBCLoadEntityCommand.java:219)
      [JAD] at org.jboss.ejb.plugins.jaws.jdbc.JDBCLoadEntityCommand.handleResult(J
      BCLoadEntityCommand.java:176)
      [JAD] at org.jboss.ejb.plugins.jaws.jdbc.JDBCQueryCommand.executeStatementAnd
      andleResult(JDBCQueryCommand.java:59)
      [JAD] at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.
      ava:160)
      [JAD] at org.jboss.ejb.plugins.jaws.jdbc.JDBCLoadEntityCommand.execute(JDBCLo
      dEntityCommand.java:147)
      [JAD] at org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.loadEntity(JAWSPer
      istenceManager.java:156)
      [JAD] at org.jboss.ejb.plugins.CMPPersistenceManager.loadEntity(CMPPersistenc
      Manager.java:365)
      [JAD] at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(Entity
      ynchronizationInterceptor.java:263)
      [JAD] at org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanc
      Interceptor.java:256)
      [JAD] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.j
      va:133)
      [JAD] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterce
      torCMT.java:481)
      [JAD] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:
      9)
      [JAD] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor
      java:128)
      [JAD] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
      [JAD] at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:349)
      [JAD] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPCo
      tainerInvoker.java:483)
      [JAD] at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.invokeContainer(G
      nericProxy.java:335)
      [JAD] at org.jboss.ejb.plugins.jrmp.interfaces.EntityProxy.invoke(EntityProxy
      java:133)
      [JAD] at $Proxy9.getMidletName(Unknown Source)
      [JAD] at com.mot.provisioning.servlets.DownLoadApplication.performDownloadLis
      (DownLoadApplication.java:330)
      [JAD] at com.mot.provisioning.servlets.DownLoadApplication.performTask(DownLo
      dApplication.java:389)
      [JAD] at com.mot.provisioning.servlets.DownLoadApplication.doGet(DownLoadAppl
      cation.java:50)
      [JAD] at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
      [JAD] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      [JAD] at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:
      05)
      [JAD] at org.apache.tomcat.core.Handler.service(Handler.java:287)
      [JAD] at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:37
      )
      [JAD] at org.apache.tomcat.core.ContextManager.internalService(ContextManager
      java:812)
      [JAD] at org.apache.tomcat.core.ContextManager.service(ContextManager.java:75
      )
      [JAD] at org.apache.tomcat.service.http.HttpConnectionHandler.processConnecti
      n(HttpConnectionHandler.java:213)
      [JAD] at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java
      416)
      [JAD] at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.jav
      :501)
      [JAD] at java.lang.Thread.run(Thread.java:484)
      ******************************.