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 196938

Summary: NullPointerException at com.sun.source.util.TreePath.getPath
Product: javaee Reporter: Exceptions Reporter <exceptions_reporter>
Component: CodeAssignee: Martin Janicek <mjanicek>
Status: RESOLVED INCOMPLETE    
Severity: normal CC: dkonecny, dmalecek
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 173583
Attachments: stacktrace

Description Exceptions Reporter 2011-03-21 21:57:18 UTC
This issue was reported manually by dmalecek.
It already has 2 duplicates 


Build: NetBeans IDE 6.8 (Build 201004041201)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Linux

User Comments:
GUEST: when I use "Entity Class" to create an empty entity, I get this error.




Stacktrace: 
java.lang.NullPointerException
   at com.sun.source.util.TreePath.getPath(TreePath.java:53)
   at com.sun.source.util.TreePath.getPath(TreePath.java:44)
   at com.sun.tools.javac.api.JavacTrees.getPath(JavacTrees.java:163)
   at org.netbeans.modules.j2ee.core.api.support.java.SourceUtils.classTree2TypeElement(SourceUtils.java:156)
   at org.netbeans.modules.j2ee.core.api.support.java.GenerationUtils.ensureNoArgConstructor(GenerationUtils.java:351)
   at org.netbeans.modules.j2ee.persistence.wizard.entity.EntityWizard$1.run(EntityWizard.java:256)
Comment 1 Exceptions Reporter 2011-03-21 21:57:23 UTC
Created attachment 107169 [details]
stacktrace
Comment 2 Martin Janicek 2011-09-09 10:10:35 UTC
Can you provide more specific information about how you step to reproduce this issue ?
I'm creating new Enterprise project and putting new Entity class there without any trouble.
Also tell me please which server have you used.