I forgot to mention that the NullPointerException is on the GetItems call in AbstractController.
James Stover
stoverje@icloud.com
Begin forwarded message:
From: stoverje@icloud.com
Subject: NullPointerException in AbstractController
Date: June 14, 2013 10:02:23 AM EDT
To: troubleshooting@discussion.nbpfcrudgen.p.re.sf.net
I am working on a project in NetBeans 7.3 with PrimeFaces 3.4 and I am using GlassFish 3.1.2.2 and using PostgreSQL 9.1.
The PrimeFaces CRUD generator has been working pretty well. But, I had to add a new table (simple table for books based on ISBN number) with no foreign key relationships defined or anything right now. Should be a simple, no brainer. But, I generated the Entity Class for the new table only. Then, I generated the PrimeCRUD files for the new entity only. In my haste, I stupidly forgot about the files overwriting my index.xhtml and appmenu.xhtml. I purposely told it to create a differently named bundle so it didn't overwrite my current and highly edited bundle file!
This may be with the NetBeans Entity Class generator and nothing to do with PrimFaces CRUD generator.
Anyway, since generating the new classes for the new entity (Book), if I do not do a complete Clean & Build every time, then when I try to run the list.xhtml for the new Book entity, I always get a NullPointerException in the AbstractController class??? But, I do a Clean & Build, all will run fine!
I am not sure what has happened cause this issue. I had no problem at all prior to creating the classes for the new entity.
Thanks,
James Stover
stoverje@icloud.com
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hm. Sounds very odd indeed. I have recently released a version where specifying the bundle name actually also creates such a matching bundle variable entry in faces-config.xml. But I can't help with the overriding of the index.xhtml. Sorry. What I could do (and I am sharing this idea here) is to automatically create a backup index.xhtml if the files already exists.
Regarding the NullPointerException, this may have something to do with the Glassfish deployment?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Btw, it would probably be a good idea if you posted in the forum directly via the SourceForge web site rather than replying to or forwarding an email. You just created a new topic in the forum with the same subject as before + "Fwd:" in front... Just an FYI.
Last edit: Kay Wrobel 2013-06-30
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I forgot to mention that the NullPointerException is on the GetItems call in AbstractController.
James Stover
stoverje@icloud.com
Begin forwarded message:
Hm. Sounds very odd indeed. I have recently released a version where specifying the bundle name actually also creates such a matching bundle variable entry in
faces-config.xml. But I can't help with the overriding of the index.xhtml. Sorry. What I could do (and I am sharing this idea here) is to automatically create a backup index.xhtml if the files already exists.Regarding the NullPointerException, this may have something to do with the Glassfish deployment?
Btw, it would probably be a good idea if you posted in the forum directly via the SourceForge web site rather than replying to or forwarding an email. You just created a new topic in the forum with the same subject as before + "Fwd:" in front... Just an FYI.
Last edit: Kay Wrobel 2013-06-30