Details
-
Type:
Bug
-
Status: Resolved (View Workflow)
-
Priority:
Major
-
Resolution: Done
-
Affects Version/s: 3.0.0.CR1, 2.4.2.SP1
-
Fix Version/s: 2.4.3.Final, 3.0.0.Final
-
Component/s: None
-
Labels:None
-
Steps to Reproduce:
- use @Inject HttpSession
- trigger HTTP session replication
-
Git Pull Request:
Description
A bean instance of HttpSessionBean is an javax.servlet.http.HttpSession implementation and it does not necessarily have to be serializable.
As a result, the replication fails on WildFly 10.1:
12:35:23,854 ERROR [org.infinispan.remoting.rpc.RpcManagerImpl] (default task-9) ISPN000073: Unexpected error while replicating: org.infinispan.commons.marshall.NotSerializableException: io.undertow.servlet.spec.HttpSessionImpl Caused by: an exception which occurred: in field instance in object java.util.HashMap@b0fc3f56 in object org.wildfly.clustering.marshalling.jboss.SimpleMarshalledValue@b0fc3f56 in object org.infinispan.commands.write.PutKeyValueCommand@cccf79d3 in object org.infinispan.commands.tx.PrepareCommand@b483fa21
The bean scope should not be @SessionScoped or the bean instance must be some kind of serializable proxy.