Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-17840

ISPN000559 - Serialization error when sharing a session in a cluster

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 27.0.1.Final, 28.0.0.Beta1
    • Clustering, JSF
    • None
    • Hide

      Test app, server configuration, and full log attached. The test app is a WAR with Jakarta Security, a secure page, a login page, and an error page. When a session is started on one node, the error is logged but not propagated to the app.

      Show
      Test app, server configuration, and full log attached. The test app is a WAR with Jakarta Security, a secure page, a login page, and an error page. When a session is started on one node, the error is logged but not propagated to the app.
    • Workaround Exists
    • Hide

      Replace #{session.foo} with #{request.session.foo}

      Show
      Replace #{session.foo} with #{request.session.foo}
    • ---
    • ---

      Infinispan is producing a serialization error when trying to synchronize a session between two nodes in a cluster. The stack trace seems to be caused by lambda expressions in an internal CDI class, not related to the test app itself. The standalone-ha.xml attached is from 28.0.0.Beta1, but I also observed the issue on 27.0.1.Final.

      ISPN000559: Cannot marshall 'class org.infinispan.marshall.protostream.impl.MarshallableUserObject': java.io.NotSerializableException: com.sun.faces.cdi.SessionProducer$$Lambda$1316/0x0000000801755098 

        1. myweb.zip
          7 kB
        2. server.log
          80 kB
        3. standalone-ha.xml
          34 kB

            pferraro@redhat.com Paul Ferraro
            fabiogsilva Fábio Silva (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: