jsf - java.io.NotSerializableException: org.primefaces.model.DefaultStreamedContent -
i have simple jsf 2.1 used work fine on java ee 6 using primefaces 3.4.
when migrated glassfish 4.0 , primefaces 5.1 i've got next exceptions each time redeploy project on netbeans:
java.io.notserializableexception: org.primefaces.model.defaultstreamedcontent
java.io.notserializableexception: org.primefaces.component.datatable.datatable
even if exception thrown, project deployed , run correctly!
what wrong?
notserializableexception thrown when instance of class must implement serializable interface.
if class throws exception not belong third-party library, find class , create implement serializable interface.
if not want serialize objects in class, can mark objects transient, create serializable runtime ignore objects.
you can read here
jsf primefaces jsf-2.2
No comments:
Post a Comment