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

HttpSessionBean causes error during HTTP session replication

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.4.3.Final, 3.0.0.Final
    • 3.0.0.CR1, 2.4.2.SP1
    • None
    • 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

            mkouba@redhat.com Martin Kouba
            mkouba@redhat.com Martin Kouba
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: