Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><code>@ViewScoped</code> beans are stored in HTTP session. Any objects which are stored in the HTTP session needs to implement <a href="http://java.sun.com/javase/6/docs/api/java/io/Serializable.html" rel="nofollow noreferrer"><code>Serializable</code></a>. See also <a href="https://stackoverflow.com/questions/4832386/jsf-managed-bean-causing-java-io-notserializableexception-during-tomcat-deployme">JSF managed bean causing java.io.NotSerializableException during Tomcat deployment</a> and <a href="https://stackoverflow.com/questions/2294551/java-io-writeabortedexception-writing-aborted-java-io-notserializableexception">java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException</a>.</p> <p>The <code>NotSerializableException</code> is usually self-explaining since it mentions the full qualified name of the class which needs to be serialized as well, but can't be since it doesn't implement <code>Serializable</code>. </p> <p>However, in this particular case the name seems to indicate an autogenerated class, most likely autogenerated by the EJB container and thus completely out of your control.</p> <p>I've never seen this problem before and Google also doesn't seem to give much about this problem. Based on the stacktrace you're using Glassfish v3, so I'd suggest to post an <a href="https://glassfish.dev.java.net/servlets/ProjectIssues" rel="nofollow noreferrer">issue</a> about that. In the meanwhile your best bet is probably to set the JSF view state saving to the server side instead.</p> <hr> <p><strong>Update</strong>: a similar problem in MyFaces suggests a JSF impl specific issue of using wrong classloader during deserialization. Upgrading the JSF impl should solve the problem: <a href="https://stackoverflow.com/questions/7761622/ejb-in-viewscoped-managedbean-causes-java-io-notserializableexception">@EJB in @ViewScoped @ManagedBean causes java.io.NotSerializableException</a>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload