This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Build: NetBeans IDE Dev (Build 200810240201) VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-rc2-b32 OS: Windows XP, 5.1, x86 User Comments: wobster: still getting null pointer exception during generation of JSF classes from JPA Stacktrace: java.lang.NullPointerException at org.netbeans.modules.web.jsf.wizards.JSFClientGenerator$.run(JSFClientGenerator.java:911) at org.netbeans.modules.web.jsf.wizards.JSFClientGenerator$.run(JSFClientGenerator.java:908) at org.netbeans.api.java.source.JavaSource.runUserActionTaskImpl(JavaSource.java:680) at org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource.java:607) at org.netbeans.modules.web.jsf.wizards.JSFClientGenerator.generateConverter(JSFClientGenerator.java:907) at org.netbeans.modules.web.jsf.wizards.JSFClientGenerator.generateJSFPages(JSFClientGenerator.java:349)
Created attachment 72600 [details] stacktrace
"eneration of JSF classes from JPA" issue.
Most likely, one of your entities lacks a getter method for the id field. Please clean, zip, and attach the project so I can take a look.
It would be nice if the tool did not throw a NPE when it could not find a getter for a given field. It'd be preferable to pop a dialog box that informed the user that the field requires a JavaBeans style getter. In my case, I had some code where the bean did not follow the JavaBean pattern exactly and caused the NPE. (I fixed the problem and the bug went away.)
OK, will add it to the planning document.