[infinispan-issues] [JBoss JIRA] Commented: (ISPN-552) Tree facade caches cannot be configured with lazy deserialization

Galder Zamarreno (JIRA) jira-events at lists.jboss.org
Tue Jul 27 05:09:33 EDT 2010


    [ https://jira.jboss.org/browse/ISPN-552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12541157#action_12541157 ] 

Galder Zamarreno commented on ISPN-552:
---------------------------------------

In fact, in a single node situation it would not fail without the if statement in MV constructor. So, I'm leaning towards adding the if but with the marshaller indicating what's marshallable. So Marshaller.java would contain:

/* Check whether the object is marshallable as per the rules of this marshaller */
boolean isMarshallable(Object o);

> Tree facade caches cannot be configured with lazy deserialization
> -----------------------------------------------------------------
>
>                 Key: ISPN-552
>                 URL: https://jira.jboss.org/browse/ISPN-552
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Marshalling, Tree API
>    Affects Versions: 4.0.0.Final, 4.1.0.CR2
>            Reporter: Galder Zamarreno
>            Assignee: Galder Zamarreno
>             Fix For: 4.1.0.Final
>
>
> Creating a tree module facade for a cache configured with lazy deserialization does not work:
> ava.io.NotSerializableException: Marshalled values can only wrap Objects that are serializable!  Instance of class org.infinispan.tree.NodeKey won't Serialize.
>     at org.infinispan.marshall.MarshalledValue.<init>(MarshalledValue.java:66)
>     at org.infinispan.interceptors.MarshalledValueInterceptor.createMarshalledValue(MarshalledValueInterceptor.java:223)
>     at org.infinispan.interceptors.MarshalledValueInterceptor.visitGetKeyValueCommand(MarshalledValueInterceptor.java:127)
>     at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:58)
>     at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:118)
>     at org.infinispan.interceptors.TxInterceptor.enlistReadAndInvokeNext(TxInterceptor.java:171)
>     at org.infinispan.interceptors.TxInterceptor.visitGetKeyValueCommand(TxInterceptor.java:162)
>     at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:58)
>     at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:118)
>     at org.infinispan.interceptors.CacheMgmtInterceptor.visitGetKeyValueCommand(CacheMgmtInterceptor.java:83)
>     at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:58)
>     at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:118)
>     at org.infinispan.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:48)
>     at org.infinispan.interceptors.InvocationContextInterceptor.handleDefault(InvocationContextInterceptor.java:34)
>     at org.infinispan.commands.AbstractVisitor.visitGetKeyValueCommand(AbstractVisitor.java:87)
>     at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:58)
>     at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:118)
>     at org.infinispan.interceptors.BatchingInterceptor.handleDefault(BatchingInterceptor.java:72)
>     at org.infinispan.commands.AbstractVisitor.visitGetKeyValueCommand(AbstractVisitor.java:87)
>     at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:58)
>     at org.infinispan.interceptors.InterceptorChain.invoke(InterceptorChain.java:269)
>     at org.infinispan.CacheDelegate.containsKey(CacheDelegate.java:189)
>     at org.infinispan.tree.TreeStructureSupport.exists(TreeStructureSupport.java:51)
>     at org.infinispan.tree.TreeCacheImpl.createRoot(TreeCacheImpl.java:364)
>     at org.infinispan.tree.TreeCacheImpl.<init>(TreeCacheImpl.java:47)
>     at org.infinispan.tree.TreeCacheFactory.createTreeCache(TreeCacheFactory.java:37)
>     at com.varolii.copperhead.app.core.cache.CacheService.start(CacheService.java:56)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the infinispan-issues mailing list