*
The moose likes JSF and the fly likes ajax4jsf - Not serializabe exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "ajax4jsf - Not serializabe exception" Watch "ajax4jsf - Not serializabe exception" New topic
Author

ajax4jsf - Not serializabe exception

Shasi Mitra
Ranch Hand

Joined: Nov 27, 2008
Posts: 101

Hi all - I'm getting the following exception. Aren't ajax4jsf classes not serializable?

app data changes : [jsf_sequence, org.apache.myfaces.application.jsp.JspStateManagerImpl.SERIALIZED_VIEW, javax.faces.request.charset]

app data removals : null

user write hit : false

max inact write hit : false

listener count hit : false

update : update sessions set

listener count : 1



cached : true

cacheId : 0001

cacheIdUpdated : false

syncFromServlet : false





[8/2/09 22:17:39:808 EDT] 00000052 SessionContex E Exception is: java.io.NotSerializableException: org.ajax4jsf.framework.ajax.AjaxViewRoot

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java(Compiled Code))

at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java(Inlined Compiled Code))

at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java(Compiled Code))

at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java(Compiled Code))

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java(Compiled Code))

at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java(Compiled Code))

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java(Compiled Code))

at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java(Compiled Code))

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java(Compiled Code))

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java(Inlined Compiled Code))

at java.util.ArrayList.writeObject(ArrayList.java(Compiled Code))

at sun.reflect.GeneratedMethodAccessor71.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))

at java.lang.reflect.Method.invoke(Method.java(Compiled Code))

at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java(Compiled Code))

at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java(Compiled Code))

at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java(Compiled Code))

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java(Compiled Code))

at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java(Compiled Code))

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java(Compiled Code))

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java(Inlined Compiled Code))

at java.util.ArrayList.writeObject(ArrayList.java(Compiled Code))

at sun.reflect.GeneratedMethodAccessor71.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))

at java.lang.reflect.Method.invoke(Method.java(Compiled Code))

at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java(Compiled Code))

at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java(Compiled Code))

at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java(Compiled Code))

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java(Compiled Code))

at java.io.O
Shasi Mitra
Ranch Hand

Joined: Nov 27, 2008
Posts: 101

Just wanted to add more data.
This error is thrown by Websphere server when it tries to save the state of an object in session to DB2 database. I believe websphere internally performs this operation.
 
jQuery in Action, 2nd edition
 
subject: ajax4jsf - Not serializabe exception