<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
help upgrading from 1.2.1 to 3.2.5 needed
</h3>
<span style="margin-bottom: 10px;">
reply from <a href="http://community.jboss.org/people/blakkorange">Dirk Mallon</a> in <i>JBoss Cache</i> - <a href="http://community.jboss.org/message/548511#548511">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hallo Galder and thx for reply!</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I was in Holidays so  did not answer.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>i describe the situation more detailed:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>productive system:</p><p>I run two Tomcats running on different servers with same webApp using hibernate on one DB.</p><p>JbossCache is second-level-cache for hibernate.</p><p>Jbosscache has no connection to DB.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>testing:</p><p>to test the new jars and config i made to testprojects in eclipse similar to the productive system.</p><p>I load and save some hibernate-entities.</p><p>Got the same error as described in initial post.(full Trace at end of msg)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>then i switched off serialization in treecache.xml and the error  disappeared.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>1) considering the scenario i  described above:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>What configurations in treecache.xml are necessary to  match our needs(two cache-instances syncronizing permanently after  changes in one of them). Do we need serialization?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>trace-----------------</p><p>(main                      CommandAwareRpcDispatcher.java:387 ) ERROR java.lang.NullPointerException<br/>2010-06-17 16:06:54,231 (main                      CommandAwareRpcDispatcher.java:387 ) ERROR java.lang.NullPointerException<br/>2010-06-17 16:06:54,231 (main                  AbstractFlushingEventListener.java:324 ) ERROR Could not synchronize database state with session<br/>org.hibernate.cache.CacheException: org.hibernate.cache.CacheException: java.lang.RuntimeException: Failure to marshal argument(s)<br/>    at org.hibernate.cache.jbc.timestamp.TimestampsRegionImpl.put(TimestampsRegionImpl.java:138)<br/>    at org.hibernate.cache.UpdateTimestampsCache.preinvalidate(UpdateTimestampsCache.java:70)<br/>    at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:275)<br/>    at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:260)<br/>    at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:179)<br/>    at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)<br/>    at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:51)<br/>    at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1206)<br/>    at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:375)<br/>    at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:137)<br/>    at cas.cache.test.AbstractService.save(AbstractService.java:202)<br/>    at cas.cache.test.Starter.createSubs(Starter.java:45)<br/>    at cas.cache.test.Starter.run(Starter.java:30)<br/>    at cas.cache.test.Starter.main(Starter.java:21)<br/>Caused by: org.hibernate.cache.CacheException: java.lang.RuntimeException: Failure to marshal argument(s)<br/>    at org.hibernate.cache.jbc.util.CacheHelper.put(CacheHelper.java:216)<br/>    at org.hibernate.cache.jbc.timestamp.TimestampsRegionImpl.put(TimestampsRegionImpl.java:136)<br/>    ... 13 more<br/>Caused by: java.lang.RuntimeException: Failure to marshal argument(s)<br/>    at org.jboss.cache.marshall.CommandAwareRpcDispatcher$ReplicationTask.call(CommandAwareRpcDispatcher.java:388)<br/>    at org.jboss.cache.marshall.CommandAwareRpcDispatcher$ReplicationTask.call(CommandAwareRpcDispatcher.java:355)<br/>    at org.jboss.cache.util.concurrent.WithinThreadExecutor.submit(WithinThreadExecutor.java:82)<br/>    at org.jboss.cache.marshall.CommandAwareRpcDispatcher.invokeRemoteCommands(CommandAwareRpcDispatcher.java:210)<br/>    at org.jboss.cache.RPCManagerImpl.callRemoteMethods(RPCManagerImpl.java:744)<br/>    at org.jboss.cache.RPCManagerImpl.callRemoteMethods(RPCManagerImpl.java:712)<br/>    at org.jboss.cache.RPCManagerImpl.callRemoteMethods(RPCManagerImpl.java:717)<br/>    at org.jboss.cache.interceptors.BaseRpcInterceptor.replicateCall(BaseRpcInterceptor.java:161)<br/>    at org.jboss.cache.interceptors.BaseRpcInterceptor.replicateCall(BaseRpcInterceptor.java:135)<br/>    at org.jboss.cache.interceptors.BaseRpcInterceptor.replicateCall(BaseRpcInterceptor.java:107)<br/>    at org.jboss.cache.interceptors.ReplicationInterceptor.handleCrudMethod(ReplicationInterceptor.java:160)<br/>    at org.jboss.cache.interceptors.ReplicationInterceptor.visitPutKeyValueCommand(ReplicationInterceptor.java:107)<br/>    at org.jboss.cache.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:100)<br/>    at org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)<br/>    at org.jboss.cache.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:131)<br/>    at org.jboss.cache.commands.AbstractVisitor.visitPutKeyValueCommand(AbstractVisitor.java:65)<br/>    at org.jboss.cache.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:100)<br/>    at org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)<br/>    at org.jboss.cache.interceptors.TxInterceptor.attachGtxAndPassUpChain(TxInterceptor.java:301)<br/>    at org.jboss.cache.interceptors.TxInterceptor.handleDefault(TxInterceptor.java:283)<br/>    at org.jboss.cache.commands.AbstractVisitor.visitPutKeyValueCommand(AbstractVisitor.java:65)<br/>    at org.jboss.cache.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:100)<br/>    at org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)<br/>    at org.jboss.cache.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:178)<br/>    at org.jboss.cache.interceptors.InvocationContextInterceptor.visitPutKeyValueCommand(InvocationContextInterceptor.java:82)<br/>    at org.jboss.cache.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:100)<br/>    at org.jboss.cache.interceptors.InterceptorChain.invoke(InterceptorChain.java:287)<br/>    at org.jboss.cache.invocation.CacheInvocationDelegate.put(CacheInvocationDelegate.java:555)<br/>    at org.hibernate.cache.jbc.util.CacheHelper.put(CacheHelper.java:214)<br/>    ... 14 more<br/>Caused by: java.lang.NullPointerException<br/>    at org.jboss.cache.marshall.VersionAwareMarshaller.objectToObjectStream(VersionAwareMarshaller.java:342)<br/>    at org.jboss.cache.marshall.VersionAwareMarshaller.objectToBuffer(VersionAwareMarshaller.java:183)<br/>    at org.jboss.cache.marshall.VersionAwareMarshaller.objectToBuffer(VersionAwareMarshaller.java:52)<br/>    at org.jboss.cache.marshall.CommandAwareRpcDispatcher$ReplicationTask.call(CommandAwareRpcDispatcher.java:383)<br/>    ... 42 more</p><p>trace-----------------</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/548511#548511">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Cache at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2052">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>