6 Replies Latest reply on Mar 1, 2010 7:07 AM by Ilya Shaikovsky

    java.io.NotSerializableException by using DataScroller

    Eugene Bessel Newbie

      Hello Everyone,

       

      I took, the class DataScrollerBean from example

      http://livedemo.exadel.com/richfaces-demo/richfaces/dataTableScroller.jsf?tab=usage&cid=5068036

       

      and implement it in mycode.

       

      so when I start the application I get the error:

       

      SCHWERWIEGEND: Error Rendering View[/pages/extendedDatatable.xhtml]
      java.io.NotSerializableException: de.fsd.bean.DataScrollerBean
          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.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 java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
          at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
          at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
          at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
          at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
          at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
          at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
          at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
          at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
          at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
          at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
          at com.sun.faces.renderkit.ResponseStateManagerImpl.writeState(ResponseStateManagerImpl.java:281)
          at javax.faces.render.ResponseStateManager.writeState(ResponseStateManager.java:166)
          at org.ajax4jsf.application.AjaxStateManager.writeState(AjaxStateManager.java:296)
          at org.ajax4jsf.application.AjaxStateManager.writeState(AjaxStateManager.java:258)
          at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:622)
          at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
          at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
          at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
          at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
          at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)

       

      I use extendedDataTable and columns. that's why my data array looks like List<ArrayList<String>>

       

      do you have any Idea why this exception occurs??

       

      thank you