Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-2346

HttpSessionBean causes error during HTTP session replication

    XMLWordPrintable

    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

      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.

        Attachments

          Activity

            People

            Assignee:
            mkouba Martin Kouba
            Reporter:
            mkouba Martin Kouba
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: