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 - NullPointerException at com.sun.source.util.TreePath.getPath
Summary: NullPointerException at com.sun.source.util.TreePath.getPath
Status: RESOLVED INCOMPLETE
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Martin Janicek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-21 21:57 UTC by Exceptions Reporter
Modified: 2011-10-03 07:39 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 173583


Attachments
stacktrace (7.90 KB, text/plain)
2011-03-21 21:57 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
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.