1 Reply Latest reply on Jul 21, 2008 9:44 AM by bezdomny

    NotSerializableException: javax.servlet.http.Cookie

    bezdomny

      I'm getting the following exception when one of my nodes is trying to replicate to another. Am I mission a config option? It seems that cookies would be Serializable. I've gotten around the type of exception with some of my other Objects by making the serializable, but obviously that is impossible in this case.

      Has anyone else seen this behaviour? I'm really new to jboss clustering so I may be doing something wrong.

      Thanks!

      B

      ERROR [org.jboss.web.tomcat.service.session.JBossCacheService] externalizeSession(): exception occurred externalizing session SessionBasedClusteredSession[id: PSJByxuaf3ycpL9K9Y1E1g**.node1 lastAccessedTime: 1216647130202 version: 5 lastOutdated: 0]
      java.io.NotSerializableException: javax.servlet.http.Cookie
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
      at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
      at java.util.HashMap.writeObject(HashMap.java:1001)
      at sun.reflect.GeneratedMethodAccessor161.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)

        • 1. Re: NotSerializableException: javax.servlet.http.Cookie
          bezdomny

          Oh and I'm using this as my jboss-web config:
          <replication-config>
          <replication-trigger>SET_AND_NON_PRIMITIVE_GET</replication-trigger>
          <replication-granularity>SESSION</replication-granularity>
          <replication-field-batch-mode>true</replication-field-batch-mode>
          </replication-config>

          and I have the web application marked as distributable in the web.xml.