2 Replies Latest reply on May 22, 2007 12:40 PM by Alexander Smirnov

    Exception in Cluster Environment - java.io.NotSerializableEx

    Srinidhi Srishailan Newbie

      In the clustered environment the exception java.io.NotSerializableException: org.ajax4jsf.framework.ajax.AjaxContext is thrown.

      We are using ajax4jsf-1.1.0.jar
      Application Server - JBoss
      Web Server - Tomcat


      Any help in resolving this issue is greatly appreciated. Please find the following exception stack trace

      ERROR [org.jboss.web.tomcat.tc5.session.JBossCacheService] externalizeSessio
      n(): exception occurred externalizing session SessionBasedClusteredSession[id: gGAqkzLLvYYOBcFfie+cO
      A**.qacluster1 lastAccessedTime: 1178114764414 version: 4 lastOutdated: 0]
      java.io.NotSerializableException: org.ajax4jsf.framework.ajax.AjaxContext
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)ndererUtils.java:442
      ) java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
      at java.util.TreeMap.writeObject(TreeMap.java:2248)mlGridRendererBase.renderChildren(HtmlGri
      dRendererBasun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)HtmlGridRend
      ererBase.jasun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)ererUtils.java:442
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
      at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
      at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
      at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
      at java.util.Hashtable.writeObject(Hashtable.java:824)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
      at org.jboss.web.tomcat.tc5.session.SessionBasedClusteredSession.writeExternal(SessionBasedC
      lusteredSession.java:175)
      at org.jboss.web.tomcat.tc5.session.JBossCacheService.externalizeSession(JBossCacheService.j
      ava:1023)
      at org.jboss.web.tomcat.tc5.session.JBossCacheService.putSession(JBossCacheService.java:312)
      at org.jboss.web.tomcat.tc5.session.JBossCacheClusteredSession.processSessionRepl(JBossCache
      ClusteredSession.java:121)
      at org.jboss.web.tomcat.tc5.session.JBossCacheManager.processSessionRepl(JBossCacheManager.j
      ava:1093)
      at org.jboss.web.tomcat.tc5.session.JBossCacheManager.storeSession(JBossCacheManager.java:64
      8)
      at org.jboss.web.tomcat.tc5.session.InstantSnapshotManager.snapshot(InstantSnapshotManager.j
      ava:49)
      at org.jboss.web.tomcat.tc5.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java: