MyException - 我的异常网
当前位置:我的异常网» Java Web开发 » java.io.NotSerializableException:   org.apa

java.io.NotSerializableException:   org.apache.myfaces.

www.MyException.Cn  网友分享于:2013-11-27  浏览:227次
为什么我JSF的页面总是报这个错误?
2007-08-27   13:43:08,218   Exiting   serializeView   -   Could   not   serialize   state:   org.apache.myfaces.el.MethodBindingImpl
java.io.NotSerializableException:   org.apache.myfaces.el.MethodBindingImpl
at   java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
at   java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1245)
at   java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1069)
at   java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1245)
at   java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1069)
at   java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
at   java.util.ArrayList.writeObject(ArrayList.java:569)
at   sun.reflect.GeneratedMethodAccessor279.invoke(Unknown   Source)
at   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at   java.lang.reflect.Method.invoke(Method.java:585)
at   java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:890)
at   java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1333)
at   java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
at   java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
at   java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1245)

这是什么意思?

------解决方案--------------------
没有序列化异常,让你的类实现java.io.Serializable接口就可以了
------解决方案--------------------
java.io.NotSerializableException: org.apache.myfaces.el.MethodBindingImpl

文章评论

软件开发程序错误异常ExceptionCopyright © 2009-2015 MyException 版权所有