[infinispan-issues] [JBoss JIRA] (ISPN-9344) org.infinispan.commons.marshall.NotSerializableException when use DeltaSpike
Tristan Tarrant (JIRA)
issues at jboss.org
Tue Jul 3 14:00:00 EDT 2018
[ https://issues.jboss.org/browse/ISPN-9344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13600377#comment-13600377 ]
Tristan Tarrant commented on ISPN-9344:
---------------------------------------
To be fair this is not a problem with Infinispan, but the fact that you are expecting to marshall something which is not serializable. We could probably just ignore WeakReferences, but the behaviour would be undefined.
> org.infinispan.commons.marshall.NotSerializableException when use DeltaSpike
> ----------------------------------------------------------------------------
>
> Key: ISPN-9344
> URL: https://issues.jboss.org/browse/ISPN-9344
> Project: Infinispan
> Issue Type: Bug
> Affects Versions: 9.2.4.Final
> Environment: Wildfly 13.0.0.Final (Infinispan 9.2.4)
> Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)
> Apache DeltaSpike: 1.8.2
> {code:java}
> <dependency>
> <groupId>org.apache.deltaspike.modules</groupId>
> <artifactId>deltaspike-jsf-module-api</artifactId>
> <version>1.8.2</version>
> <scope>compile</scope>
> </dependency>
> <dependency>
> <groupId>org.apache.deltaspike.modules</groupId>
> <artifactId>deltaspike-jsf-module-impl</artifactId>
> <version>1.8.2</version>
> <scope>runtime</scope>
> </dependency>
> {code}
> Reporter: Andrey Grigoriev
> Assignee: Galder Zamarreño
>
> I have project on Wildfly 10, and I use DeltaSpike JSF Module (For @WindowScoped bean). When I migrate to Wildfly 13 we have some errors:
> {code:java}
> ERROR [org.infinispan.interceptors.impl.InvocationContextInterceptor] (default task-2) ISPN000136: Error executing command PrepareCommand, writing keys [SessionCreationMetaDataKey(G7Xi_IuajeE1_Nh517GPjinnDh24LkWB1G8wn0TN),
> SessionAttributesKey(G7Xi_IuajeE1_Nh517GPjinnDh24LkWB1G8wn0TN), SessionAccessMetaDataKey(G7Xi_IuajeE1_Nh517GPjinnDh24LkWB1G8wn0TN)]:
> org.infinispan.commons.marshall.NotSerializableException: java.lang.ref.WeakReference
> Caused by: an exception which occurred:
> in field org.jboss.weld.bean.builtin.BeanManagerProxy.reloaderRef
> in object org.jboss.weld.bean.builtin.BeanManagerProxy at f0640946
> in field org.apache.deltaspike.core.util.context.ContextualStorage.beanManager
> in object org.apache.deltaspike.core.util.context.ContextualStorage at 1664c5af
> in object org.apache.deltaspike.core.util.context.ContextualStorage at 1664c5af
> in field org.apache.deltaspike.core.impl.scope.AbstractBeanHolder.storageMap
> in object org.apache.deltaspike.core.impl.scope.window.WindowBeanHolder at 1c45f46e
> in field org.jboss.weld.contexts.SerializableContextualInstanceImpl.instance
> in object org.jboss.weld.contexts.SerializableContextualInstanceImpl at 2a240ffd
> in object org.jboss.weld.contexts.SerializableContextualInstanceImpl at 2a240ffd
> {code}
> I asked DeltaSpike team about this, but they say that it is Infinispan problem:
> {code:java}
> <@struberg> seems like a weld bug if an injected BeanManager is not Serializable
> <@struberg> or the serialisation logic in Infinispan cannot deal with it
> < manovotn> hmm I can see BeanManagerProxy there, which is Weld's serializable BM version, so I would say it's Infinispan problem
> < manovotn> I would try asking there first
> <@struberg> point is, I don't think it's a DeltaSpike problem
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the infinispan-issues
mailing list