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.

Bug 195642 - NullPointerException at org.netbeans.modules.j2ee.persistence.wizard.jpacontroller.JpaControllerGenerator.addImplementsClause
Summary: NullPointerException at org.netbeans.modules.j2ee.persistence.wizard.jpacontr...
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 6.x
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords: RANDOM
: 198373 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-02-18 06:21 UTC by Sergey Petrov
Modified: 2012-02-03 16:39 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 176775


Attachments
stacktrace (1.94 KB, text/plain)
2011-02-18 06:21 UTC, Sergey Petrov
Details
stacktrace (2.08 KB, text/plain)
2011-11-29 12:04 UTC, Sergey Petrov
Details
stacktrace (2.08 KB, text/plain)
2011-11-29 19:43 UTC, javydreamercsw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Petrov 2011-02-18 06:21:13 UTC
Build: NetBeans IDE Dev (Build 110217-7d71f2c735cb)
VM: Java HotSpot(TM) Client VM, 17.0-b17, Java(TM) SE Runtime Environment, 1.6.0_21-b07
OS: Windows 7

User Comments:
sj-nb: generate jsf from entity on web project on weblogic with framework added via jsf from entity wizard and pu created by the wizard.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.j2ee.persistence.wizard.jpacontroller.JpaControllerGenerator.addImplementsClause(JpaControllerGenerator.java:219)
   at org.netbeans.modules.j2ee.persistence.wizard.jpacontroller.JpaControllerGenerator.generateJpaController(JpaControllerGenerator.java:167)
   at org.netbeans.modules.j2ee.persistence.wizard.jpacontroller.JpaControllerIterator.generateJpaControllers(JpaControllerIterator.java:255)
   at org.netbeans.modules.web.jsf.wizards.PersistenceClientIterator$1$1.run(PersistenceClientIterator.java:215)
   at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:125)
   at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:566)
Comment 1 Sergey Petrov 2011-02-18 06:21:18 UTC
Created attachment 106137 [details]
stacktrace
Comment 2 Sergey Petrov 2011-02-18 10:44:43 UTC
there was 'class was changed/ save - yes/no' dialg during generation, may be ide get some changes as external and cause the problem. tried with new project without any problems, need more investigation.
Comment 3 Sergey Petrov 2011-04-11 13:54:10 UTC
>p4 one report so far, only from me, may be development related. need to collect more statistics.
Comment 4 Sergey Petrov 2011-10-11 12:32:57 UTC
*** Bug 198373 has been marked as a duplicate of this bug. ***
Comment 5 Sergey Petrov 2011-11-29 12:04:14 UTC
Created attachment 113614 [details]
stacktrace

use script from issue 205625 to generate netities, generate controllers for all entities at once.
Comment 6 Exceptions Reporter 2011-11-29 12:04:20 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=176775
Comment 7 Sergey Petrov 2011-11-29 17:29:08 UTC
I have this issue with McAfee on and do not have with McAfee off, seems also do not have if generate in a folder added to exclutions, during generation i got some "changes" dialogs and later got npe  with on access scanning on.
Comment 8 javydreamercsw 2011-11-29 19:43:17 UTC
Created attachment 113638 [details]
stacktrace

During JPA controller generation.
Comment 9 Sergey Petrov 2011-11-30 15:12:22 UTC
all 6 reports are from win 7, also some refer to approx 150 entities etc, some to 32, the issue seems specific to win7 and relatively big entities set.
Comment 10 Sergey Petrov 2012-02-03 16:39:52 UTC
http://hg.netbeans.org/web-main/rev/e7c92c7d468d use refresh fo if got null javasource, seems working in my case but may cause some random slowness (as initial issue is random also)