[jboss-user] [JBoss Cache] - help upgrading from 1.2.1 to 3.2.5 needed

Dirk Mallon do-not-reply at jboss.com
Thu Jun 17 10:20:15 EDT 2010


Dirk Mallon [http://community.jboss.org/people/blakkorange] replied to the discussion

"help upgrading from 1.2.1 to 3.2.5 needed"

To view the discussion, visit: http://community.jboss.org/message/548511#548511

--------------------------------------------------------------
Hallo Galder and thx for reply!

I was in Holidays so  did not answer.

i describe the situation more detailed:

productive system:
I run two Tomcats running on different servers with same webApp using hibernate on one DB.
JbossCache is second-level-cache for hibernate.
Jbosscache has no connection to DB.

testing:
to test the new jars and config i made to testprojects in eclipse similar to the productive system.
I load and save some hibernate-entities.
Got the same error as described in initial post.(full Trace at end of msg)

then i switched off serialization in treecache.xml and the error  disappeared.


1) considering the scenario i  described above:

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?



trace-----------------
(main                      CommandAwareRpcDispatcher.java:387 ) ERROR java.lang.NullPointerException
2010-06-17 16:06:54,231 (main                      CommandAwareRpcDispatcher.java:387 ) ERROR java.lang.NullPointerException
2010-06-17 16:06:54,231 (main                  AbstractFlushingEventListener.java:324 ) ERROR Could not synchronize database state with session
org.hibernate.cache.CacheException: org.hibernate.cache.CacheException: java.lang.RuntimeException: Failure to marshal argument(s)
    at org.hibernate.cache.jbc.timestamp.TimestampsRegionImpl.put(TimestampsRegionImpl.java:138)
    at org.hibernate.cache.UpdateTimestampsCache.preinvalidate(UpdateTimestampsCache.java:70)
    at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:275)
    at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:260)
    at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:179)
    at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)
    at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:51)
    at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1206)
    at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:375)
    at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:137)
    at cas.cache.test.AbstractService.save(AbstractService.java:202)
    at cas.cache.test.Starter.createSubs(Starter.java:45)
    at cas.cache.test.Starter.run(Starter.java:30)
    at cas.cache.test.Starter.main(Starter.java:21)
Caused by: org.hibernate.cache.CacheException: java.lang.RuntimeException: Failure to marshal argument(s)
    at org.hibernate.cache.jbc.util.CacheHelper.put(CacheHelper.java:216)
    at org.hibernate.cache.jbc.timestamp.TimestampsRegionImpl.put(TimestampsRegionImpl.java:136)
    ... 13 more
Caused by: java.lang.RuntimeException: Failure to marshal argument(s)
    at org.jboss.cache.marshall.CommandAwareRpcDispatcher$ReplicationTask.call(CommandAwareRpcDispatcher.java:388)
    at org.jboss.cache.marshall.CommandAwareRpcDispatcher$ReplicationTask.call(CommandAwareRpcDispatcher.java:355)
    at org.jboss.cache.util.concurrent.WithinThreadExecutor.submit(WithinThreadExecutor.java:82)
    at org.jboss.cache.marshall.CommandAwareRpcDispatcher.invokeRemoteCommands(CommandAwareRpcDispatcher.java:210)
    at org.jboss.cache.RPCManagerImpl.callRemoteMethods(RPCManagerImpl.java:744)
    at org.jboss.cache.RPCManagerImpl.callRemoteMethods(RPCManagerImpl.java:712)
    at org.jboss.cache.RPCManagerImpl.callRemoteMethods(RPCManagerImpl.java:717)
    at org.jboss.cache.interceptors.BaseRpcInterceptor.replicateCall(BaseRpcInterceptor.java:161)
    at org.jboss.cache.interceptors.BaseRpcInterceptor.replicateCall(BaseRpcInterceptor.java:135)
    at org.jboss.cache.interceptors.BaseRpcInterceptor.replicateCall(BaseRpcInterceptor.java:107)
    at org.jboss.cache.interceptors.ReplicationInterceptor.handleCrudMethod(ReplicationInterceptor.java:160)
    at org.jboss.cache.interceptors.ReplicationInterceptor.visitPutKeyValueCommand(ReplicationInterceptor.java:107)
    at org.jboss.cache.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:100)
    at org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
    at org.jboss.cache.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:131)
    at org.jboss.cache.commands.AbstractVisitor.visitPutKeyValueCommand(AbstractVisitor.java:65)
    at org.jboss.cache.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:100)
    at org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
    at org.jboss.cache.interceptors.TxInterceptor.attachGtxAndPassUpChain(TxInterceptor.java:301)
    at org.jboss.cache.interceptors.TxInterceptor.handleDefault(TxInterceptor.java:283)
    at org.jboss.cache.commands.AbstractVisitor.visitPutKeyValueCommand(AbstractVisitor.java:65)
    at org.jboss.cache.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:100)
    at org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
    at org.jboss.cache.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:178)
    at org.jboss.cache.interceptors.InvocationContextInterceptor.visitPutKeyValueCommand(InvocationContextInterceptor.java:82)
    at org.jboss.cache.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:100)
    at org.jboss.cache.interceptors.InterceptorChain.invoke(InterceptorChain.java:287)
    at org.jboss.cache.invocation.CacheInvocationDelegate.put(CacheInvocationDelegate.java:555)
    at org.hibernate.cache.jbc.util.CacheHelper.put(CacheHelper.java:214)
    ... 14 more
Caused by: java.lang.NullPointerException
    at org.jboss.cache.marshall.VersionAwareMarshaller.objectToObjectStream(VersionAwareMarshaller.java:342)
    at org.jboss.cache.marshall.VersionAwareMarshaller.objectToBuffer(VersionAwareMarshaller.java:183)
    at org.jboss.cache.marshall.VersionAwareMarshaller.objectToBuffer(VersionAwareMarshaller.java:52)
    at org.jboss.cache.marshall.CommandAwareRpcDispatcher$ReplicationTask.call(CommandAwareRpcDispatcher.java:383)
    ... 42 more
trace-----------------

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/548511#548511]

Start a new discussion in JBoss Cache at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2052]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100617/82d0be82/attachment.html 


More information about the jboss-user mailing list