Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
JSP - A mailing list about Java Server Pages specification and reference
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
-none-

-none-

2007-08-14       - By itchy75

 Back
Hi,

I've got an serialization exception when my object is replicated in the cluster.

This exception only occurs when replication is called after a put in the cache.
For example, if I start the second cache afer the first cache in cluster has
been initialized, everything is well replicated at startup without any
exceptions.

I try to serialize my object with java standard serialization and it's working.
 

I make sure that the object contains only serializable object.

I use JBoss server 4.0.5 and JBoss Cache 1.4.0SP1.

Does anyone know why this type of exception is raised or know how to fix it ?

Thanks.

Exception during replication  :

On the server which received the object :

 | 08:32:20,142 INFO  [VersionAwareMarshaller] Caught exception unmarshalling
stream with specific versioned marshaller class org.jboss.cache.marshall.Tr
 | eeCacheMarshaller140.  Attempting to try again with legacy marshaller class
org.jboss.cache.marshall.LegacyTreeCacheMarshaller
 | 08:32:20,147 ERROR [RpcDispatcher] exception=java.io
.StreamCorruptedException: invalid stream header
 |

On the server which send the object


 | 08:32:20,172 INFO  [TxInterceptor] There was a problem handling this request
 | java.io.StreamCorruptedException: invalid stream header
 |         at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream
.java:753)
 |         at java.io.ObjectInputStream.<init>(ObjectInputStream.java:268)
 |         at org.jboss.invocation.MarshalledValueInputStream.<init>
(MarshalledValueInputStream.java:74)
 |         at org.jboss.cache.marshall.VersionAwareMarshaller
.objectFromByteBuffer(VersionAwareMarshaller.java:184)
 |         at org.jgroups.blocks.RpcDispatcher.handle(RpcDispatcher.java:203)
 |         at org.jgroups.blocks.RequestCorrelator.handleRequest
(RequestCorrelator.java:615)
 |         at org.jgroups.blocks.RequestCorrelator.receiveMessage
(RequestCorrelator.java:512)
 |         at org.jgroups.blocks.RequestCorrelator.receive(RequestCorrelator
.java:326)
 |         at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.handleUp
(MessageDispatcher.java:722)
 |         at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.access$300
(MessageDispatcher.java:554)
 |         at org.jgroups.blocks.MessageDispatcher$1.run(MessageDispatcher
.java:691)
 |         at java.lang.Thread.run(Thread.java:595)
 |




View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic
&p=4073876#4073876

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode
=reply&p=4073876
__ ____ ____ ____ ____ ____ ____ ____ ____ ____
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user

©2008 junlu.com - Jax Systems, LLC, U.S.A.