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 189370 - IllegalArgumentException: Called DataObject.find on null
Summary: IllegalArgumentException: Called DataObject.find on null
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 6.x
Hardware: All All
: P4 normal with 1 vote (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-11 06:08 UTC by mudzakkir
Modified: 2016-07-07 08:55 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 169253


Attachments
stacktrace (1.46 KB, text/plain)
2010-08-11 06:08 UTC, mudzakkir
Details
stacktrace (1.46 KB, text/plain)
2010-08-11 06:14 UTC, mudzakkir
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mudzakkir 2010-08-11 06:08:17 UTC
Build: NetBeans IDE 6.8 (Build 200912041610)
VM: Java HotSpot(TM) Client VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02
OS: Windows XP

User Comments:
mudzakkir: Generate Entity Class From Database




Stacktrace: 
java.lang.IllegalArgumentException: Called DataObject.find on null
   at org.openide.loaders.DataObject.find(DataObject.java:491)
   at org.netbeans.modules.j2ee.core.api.support.java.GenerationUtils.createDataObjectFromTemplate(GenerationUtils.java:197)
   at org.netbeans.modules.j2ee.core.api.support.java.GenerationUtils.createClass(GenerationUtils.java:161)
   at org.netbeans.modules.j2ee.core.api.support.java.GenerationUtils.createClass(GenerationUtils.java:125)
   at org.netbeans.modules.j2ee.persistence.wizard.fromdb.JavaPersistenceGenerator$Generator.runImpl(JavaPersistenceGenerator.java:393)
   at org.netbeans.modules.j2ee.persistence.wizard.fromdb.JavaPersistenceGenerator$Generator.run(JavaPersistenceGenerator.java:351)
Comment 1 mudzakkir 2010-08-11 06:08:20 UTC
Created attachment 101293 [details]
stacktrace
Comment 2 mudzakkir 2010-08-11 06:14:12 UTC
Created attachment 101294 [details]
stacktrace
Comment 3 Sergey Petrov 2011-02-02 16:34:46 UTC
please provide some steps to reproduce and if it's reproducible with fresh ide or somehow customized ide.
Looks like nb can't find CLASS_TEMPLATE and it cause this npe, if class template was deleted/modified it may be the case, may be installation is corrupted or some necessary modules removed.

there are a lot "WARNING [org.netbeans.modules.project.libraries.LibrariesStorage]: Cannot load library from file org-netbeans-api-project-libraries" warnings at startup, it may mean  there is some global problem with nb.

also there a lot of "Jar file C:\Documents and Settings\sk1u00e7\.netbeans\6.8\modules\xxxxxx.jar doesn't exists. Skip checking xxxxxxx", as it contain 6.8 it may be a problem with importing of old nb home, for proper evaluation and reassigning to proper component it's good to have more information.
Comment 4 Sergey Petrov 2011-02-02 16:37:28 UTC
most comments above are based on latest report but information is required for any case.
Comment 5 Martin Balin 2016-07-07 08:55:33 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