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 228934 - NullPointerException at org.netbeans.api.java.source.JavaSource.<init>
Summary: NullPointerException at org.netbeans.api.java.source.JavaSource.<init>
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 7.3
Hardware: All All
: P4 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-24 08:28 UTC by Exceptions Reporter
Modified: 2016-07-07 08:56 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 193810


Attachments
stacktrace (1.25 KB, text/plain)
2013-04-24 08:28 UTC, Exceptions Reporter
Details
stacktrace (1.25 KB, text/plain)
2014-09-27 00:23 UTC, emiddio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2013-04-24 08:28:30 UTC
This bug was originally marked as duplicate of bug 205617, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.3 (Build 201302132200)
VM: Java HotSpot(TM) Client VM, 20.12-b01, Java(TM) SE Runtime Environment, 1.6.0_37-b06
OS: Windows 7

User Comments:
GUEST: <Please provide a description of the problem or the steps to reproduce>

netneans create entitty from database crash save entty file.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.api.java.source.JavaSource.<init>(JavaSource.java:353)
   at org.netbeans.api.java.source.JavaSource._create(JavaSource.java:213)
   at org.netbeans.api.java.source.JavaSource.create(JavaSource.java:191)
   at org.netbeans.modules.j2ee.persistence.wizard.fromdb.JavaPersistenceGenerator$Generator.runImpl(JavaPersistenceGenerator.java:516)
   at org.netbeans.modules.j2ee.persistence.wizard.fromdb.JavaPersistenceGenerator$Generator.run(JavaPersistenceGenerator.java:385)
   at org.netbeans.modules.j2ee.persistence.wizard.fromdb.JavaPersistenceGenerator.generateBeans(JavaPersistenceGenerator.java:215)
Comment 1 Exceptions Reporter 2013-04-24 08:28:32 UTC
Created attachment 133744 [details]
stacktrace
Comment 2 Sergey Petrov 2013-04-24 09:46:57 UTC
If it's not random and is reproducible for some tables always, please provide your schema/sql script.
Comment 3 Sergey Petrov 2013-06-21 13:42:30 UTC
sorry, need to downgrade for now to P4 as I see not enough information to fix the issue. exception is valid but it's unclear what is the cause.
please provide some steps, if it's create or update entities, and if possible, please provide db schema. or I just have to wait for more reports to et more information, will ad also some additional logging here.
Comment 4 Quality Engineering 2013-06-26 02:34:15 UTC
Integrated into 'main-golden', will be available in build *201306252301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/8a06421ff250
User: Sergey B. Petrov <sj-nb@netbeans.org>
Log: #228934 extend log
Comment 5 emiddio 2014-09-27 00:23:08 UTC
Created attachment 149550 [details]
stacktrace

not sure
Comment 6 Martin Balin 2016-07-07 08:56:39 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss