jsf - java.io.NotSerializableException: org.primefaces.model.DefaultStreamedContent -


I have a simple JSF 2.1 which used to work fine on Java EE6 using the primaryfaces 3.4.

When I migrated to Glassfish 4.0 and Primface 5.1, every time I assign the project to Netbeans:

java.io.NotSerializableException: org .primefaces.model.DefaultStreamedContent

java.io.NotSerializableException: org.primefaces.component.datatable.DataTable

Even if this exception was thrown So, this project has been deployed and is running properly!

What could be wrong?

is thrown when an example of a class should implement a serializable interface.

If the class that thwartes an exception is not related to a third-party library, find the class and apply a serializable interface to it.

If you do not want to serialize the objects in the class, you can mark objects to make serializable runs, ignore time objects.

You can read about it

Comments

Popular posts from this blog

Out of index C/C++ -

regex - PatternSyntaxException: while using String.ReplaceAll function in java? -

java - Projects which are accessed via multiple (different) IDEs: Ant or Maven? -