OrganigramNode is not Serializable

UI Components for JSF
Post Reply
vitalij.kochno
Posts: 15
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 11.0.4 / Tomcat v.7.0

Melloware
Posts: 3716
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 Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

vitalij.kochno
Posts: 15
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 11.0.4 / Tomcat v.7.0

Melloware
Posts: 3716
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 Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

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

17 Feb 2017, 15:04

Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

vitalij.kochno
Posts: 15
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 11.0.4 / Tomcat v.7.0

tandraschko
PrimeFaces Core Developer
Posts: 3979
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.
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 26 guests