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 193800 - [70cat] NullPointerException at org.netbeans.api.java.source.JavaSource.<init>
Summary: [70cat] NullPointerException at org.netbeans.api.java.source.JavaSource.<init>
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
: 193089 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-12-24 21:08 UTC by dheffelfinger
Modified: 2011-01-25 06:08 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 173299


Attachments
stacktrace (2.30 KB, text/plain)
2010-12-24 21:08 UTC, dheffelfinger
Details
stacktrace (2.21 KB, text/plain)
2011-01-24 18:42 UTC, Sergey Petrov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dheffelfinger 2010-12-24 21:08:24 UTC
Build: NetBeans IDE Dev (Build 201012150001)
VM: Java HotSpot(TM) 64-Bit Server VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02
OS: Linux

Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.api.java.source.JavaSource.<init>(JavaSource.java:347)
   at org.netbeans.api.java.source.JavaSource._create(JavaSource.java:212)
   at org.netbeans.api.java.source.JavaSource.create(JavaSource.java:190)
   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 dheffelfinger 2010-12-24 21:08:27 UTC
Created attachment 104485 [details]
stacktrace
Comment 2 Sergey Petrov 2010-12-25 09:56:40 UTC
is there a way to reproduce?
Comment 3 Sergey Petrov 2010-12-28 14:33:46 UTC
*** Bug 193089 has been marked as a duplicate of this bug. ***
Comment 4 Exceptions Reporter 2011-01-21 15:21:43 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=173299
Comment 5 Sergey Petrov 2011-01-24 18:42:33 UTC
Created attachment 105311 [details]
stacktrace

generate Customer with DiscountCode
refactor/rename Customer to Customer2
try update (Entities from db) Customer and DiscountCode
got exception on 'finish'
Comment 7 Quality Engineering 2011-01-25 06:08:36 UTC
Integrated into 'main-golden', will be available in build *201101250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/e2ed5965e382
User: Sergey B. Petrov <sj-nb@netbeans.org>
Log: #193800 - first part, default name is based on existent now, exception rate should be lower now