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

    NotSerializableException: javax.servlet.http.Cookie

    James Rhodes Newbie

      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.



      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)