Board index JavaServer Faces General OrganigramNode is not Serializable

OrganigramNode is not Serializable

Components, Ajax Framework, Utilities and More.


Posts: 5
Hello,

i wanted to use the organigram-sample from the showcase for some tests and just copied 1:1.

Now i getting the Error :

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


If i use transient, the error is disappearing but i will get a Nullpointerexeption.

was there a change about OrganigramNode between 6.0.15 and 6.0.8?

Thanks for help!
using PF 6.0.15 / Tomcat v.8.0


Posts: 102
Organigram Node is an interface not a class.

/**
 * Model for a node in the organigram component.
 */
public interface OrganigramNode
{


So whatever implementation of OrganigramNode you are using must not be Serializable?
PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces 6.0 / PF Extensions 6.0.0


Posts: 5
Im just copied the sample code from showcase and they using DefaultOrganigramNode
using PF 6.0.15 / Tomcat v.8.0


Posts: 102
I just looked in GitHub and DefaultOrganigramNode has never been Serializable.

https://github.com/primefaces/primefaces/blob/master/src/main/java/org/primefaces/model/DefaultOrganigramNode.java

Did you change a scope of your bean from @RequestScoped to @SessionScoped or @ViewScoped? The latter two scopes require items to be Serializable.
PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces 6.0 / PF Extensions 6.0.0

tandraschko PrimeFaces Core Developer

Posts: 3047
Location: Bavaria, DE

Always Bet On Prime (+ Extensions)!

Thomas Andraschko
PrimeFaces Developer | PrimeFaces Extensions Founder
Apache OpenWebBeans PMC | Apache DeltaSpike PMC | Apache MyFaces PMC

Personal Blog: http://tandraschko.blogspot.de/


Posts: 5
tandraschko wrote:
https://github.com/primefaces/primefaces/issues/2095 ;)


Great! How can i use the new version? or did i have do wait until a new release ?
using PF 6.0.15 / Tomcat v.8.0

tandraschko PrimeFaces Core Developer

Posts: 3047
Location: Bavaria, DE

build by source ;) a 6.1-RC1 will be released in 1-2 weeks.
Always Bet On Prime (+ Extensions)!

Thomas Andraschko
PrimeFaces Developer | PrimeFaces Extensions Founder
Apache OpenWebBeans PMC | Apache DeltaSpike PMC | Apache MyFaces PMC

Personal Blog: http://tandraschko.blogspot.de/


Return to General