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 193089

Summary: NullPointerException at org.netbeans.api.java.source.JavaSource.<init>
Product: javaee Reporter: supachai
Component: PersistenceAssignee: Sergey Petrov <sj-nb>
Status: RESOLVED DUPLICATE    
Severity: normal CC: romilsonpc
Priority: P3    
Version: 7.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 171413
Attachments: stacktrace

Description supachai 2010-12-09 05:03:10 UTC
Build: NetBeans IDE 7.0 M2 (Build 201010151251)
VM: Java HotSpot(TM) Client VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02
OS: Windows 7

User Comments:
GUEST: I'm generation Entity calsses from datatbase (2 tables)

GUEST: generating entities form a database




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.api.java.source.JavaSource.<init>(JavaSource.java:349)
   at org.netbeans.api.java.source.JavaSource._create(JavaSource.java:214)
   at org.netbeans.api.java.source.JavaSource.create(JavaSource.java:192)
   at org.netbeans.modules.j2ee.persistence.wizard.fromdb.JavaPersistenceGenerator$Generator.runImpl(JavaPersistenceGenerator.java:493)
   at org.netbeans.modules.j2ee.persistence.wizard.fromdb.JavaPersistenceGenerator$Generator.run(JavaPersistenceGenerator.java:376)
   at org.netbeans.modules.j2ee.persistence.wizard.fromdb.JavaPersistenceGenerator.generateBeans(JavaPersistenceGenerator.java:210)
Comment 1 supachai 2010-12-09 05:03:14 UTC
Created attachment 103786 [details]
stacktrace
Comment 2 Sergey Petrov 2010-12-10 09:24:11 UTC
looks like class file can't be found, is it always reproducible? if yes, please add more steps.
Comment 3 Sergey Petrov 2010-12-28 14:33:46 UTC

*** This bug has been marked as a duplicate of bug 193800 ***