OrganigramNode is not Serializable

Components, Ajax Framework, Utilities and More.
Post Reply
vitalij.kochno
Posts: 6
Joined: 10 Feb 2017, 16:09

17 Feb 2017, 13:11

Hello,

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

Now i getting the Error :

Code: Select all

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

User avatar
Melloware
Posts: 205
Joined: 22 Apr 2013, 15:48

17 Feb 2017, 14:10

Organigram Node is an interface not a class.

Code: Select all

/**
 * 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.1 / PF Extensions 6.1.0

vitalij.kochno
Posts: 6
Joined: 10 Feb 2017, 16:09

17 Feb 2017, 14:32

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

User avatar
Melloware
Posts: 205
Joined: 22 Apr 2013, 15:48

17 Feb 2017, 14:44

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

https://github.com/primefaces/primeface ... mNode.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.1 / PF Extensions 6.1.0

tandraschko
PrimeFaces Core Developer
Posts: 3154
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

17 Feb 2017, 15:04

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/

vitalij.kochno
Posts: 6
Joined: 10 Feb 2017, 16:09

17 Feb 2017, 15:18

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: 3154
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

17 Feb 2017, 15:29

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/

Post Reply
  • Information
  • Who is online

    Users browsing this forum: Bing [Bot] and 7 guests