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. |