2 Replies Latest reply on Jun 8, 2006 9:32 AM by franco lazzari

    StreamCorruptedException

    franco lazzari Newbie

      Hello gentlemen,

      we are using JBossCache as a "state replicator" in a server side application. Environment is: two copy of the application running on two UNIX machines: HP UX, WebLogic 7, JBossCache 1.2.3, JDK 1.3.1 on the first machine and SunOs, Weblogic 7, JBossCache 1.2.3, JDK 1.3.1 on the other machine.

      We replicate (synchronously) a TreeCache. Of course, nodes of Treecache contains serializable objects.

      The application services requests coming from various clients. (Almost) every request modifies the "state" and the changes are then replicated.

      We see, ONLY UNDER "heavy load", the following exception:

      ####<Jun 7, 2006 1:50:27 PM CEST> <uxw10.icnet> <minosse2> <Execute
      Thread: '1' for queue: 'default'> <kernel identity> <> <010051> <EJB Exception during invocation from home: mnse.securityserver.ejb.TokenManagerEJB_bvq621_HomeI
      mpl@6d542a threw exception: org.jboss.util.NestedRuntimeException: java.io.StreamCorruptedException: Type code out of range, is 76; - nested throwable: (java.lang.IllegalArgumentException: java.io.StreamCorruptedException: Type code out of range, is 76)>
      org.jboss.util.NestedRuntimeException: java.io.StreamCorruptedException: Type code out of range, is 76; - nested throwable: (java.lang.IllegalArgumentException:
      java.io.StreamCorruptedException: Type code out of range, is 76)
      at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:3121)
      at org.jboss.cache.TreeCache.put(TreeCache.java:1762)
      at org.jboss.cache.TreeCache.put(TreeCache.java:1702)
      at mnse.securityserver.repository.RepositoryDenormalizzato.aggiornaTree(
      RepositoryDenormalizzato.java:789)
      at mnse.securityserver.repository.RepositoryDenormalizzato.insertAllButT
      oken(RepositoryDenormalizzato.java:273)
      at mnse.securityserver.repository.RepositoryDenormalizzato.checkParamete
      rsConsistency(RepositoryDenormalizzato.java:147)
      at mnse.securityserver.repository.RepositoryDenormalizzato.addEntry(Repo
      sitoryDenormalizzato.java:299)
      at mnse.securityserver.ejb.TokenManagerEJB.registra(TokenManagerEJB.java
      :234)
      at mnse.securityserver.ejb.TokenManagerEJB_bvq621_EOImpl.registra(TokenM
      anagerEJB_bvq621_EOImpl.java:529)
      at mnse.securityserver.ejb.TokenManagerEJB_bvq621_EOImpl_WLSkel.invoke(U
      nknown Source)
      at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:455)
      at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerR
      ef.java:114)
      at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:396)
      at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
      eManager.java:726)
      at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
      a:391)
      at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
      .java:30)
      at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:251)
      at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:219)
      + nested throwable: java.lang.IllegalArgumentException: java.io.StreamCorrupted
      Exception: Type code out of range, is 76
      <<no stack trace available>>

      For information, "type code" is not always the same: i saw 0, 76 and 73.

      Any hint? Or just an idea about what is happening?

      TIA
      matabo