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.
Summary: | IllegalArgumentException: Called DataObject.find on null | ||
---|---|---|---|
Product: | javaee | Reporter: | Kenneth Ganfield <kganfield> |
Component: | Hibernate | Assignee: | Sergey Petrov <sj-nb> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | gawrik, jskrivanek, RedShadow, rogerjose81, sj-nb, sunbiz |
Priority: | P3 | ||
Version: | 7.0 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 178161 |
Attachments: |
stacktrace
stacktrace stacktrace stacktrace stacktrace stacktrace |
Description
Kenneth Ganfield
2011-05-11 16:53:01 UTC
Created attachment 108233 [details]
stacktrace
Just to provide more information. I tried to open the Hibernate wizards on a project that was not created with the Hibernate framework in the New Project wizard so the project did not have the hibernate config file or any Hibernate libraries. Created attachment 108381 [details]
stacktrace
I tried to generate the pojos and xml files for hibernate within a maven web project
a bootcamp (http://www.meetup.com/sv-web-jug/events/17462408/) attendee ran into this while experimenting with the hibernate features in NB 7.0. He had tried to use the Hibernate->Hibernate Mapping Files and POJOs from Database wizard. The first time he tried it, he had not added Hibernate to project as a Framework. He also hit the same exception after he added the Hibernate framework to the project. (I also noticed that this wizard does not have a special icon in the 'New File...' dialog, but that is pretty minor.) Created attachment 111276 [details]
stacktrace
Hibernate mapping files and POJO from database in the projects wizard
Created attachment 111277 [details]
stacktrace
tried to invoke hibernate mapping files and pojo from database on a project without any hibernate configuration (but with persistence if it have sense)
Created attachment 111584 [details]
stacktrace
To reproduce:
- create web application with GlassFish server
- open new file wizard
- choose "Hibernate|Hibernate Mapping Files and POJOs from Database" and exception is thrown
Created attachment 111994 [details]
stacktrace
Right-click on project, New Hibernate Mapping Files and POJO from database. Wizard opens, but this exception window is shown in the background
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/1904017cfdd3 User: Sergey B. Petrov <sj-nb@netbeans.org> Log: #198524 correct validation order |