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.
When generating entities for (part of) my database schema I receive the following error: "Unexpected error while generating the <problemTable> entity class" I will attach the database schema and the logfile.
Created attachment 37004 [details] Sample schema which returns error when generating an entity for table AG
Created attachment 37005 [details] Error messages
I forgot to mention that the attached database schema was from an Oracle 10g database.
Nice report. Please also specify: - the version of the Oracle JDBC driver you are using - which table(s) you generate entity classes for - whether the error is always reproducible Taking over.
The last time I tried was with Oracle JDBC Driver version 10.2.0.1.0XE against an Oracle XE database (I also had the same problem with Oracle 10g R1 with Oracle JDBC 10.2.0.1.0). I was generating the AG table; when selecting that one from the Wizard it automatically picks A and B as well (dependent objects). I have tried this in total for about 5 or 6 times against several database instances (with the same test schema). The steps are always the same: - Create a new web project - Add the Oracle Driver to the projects class path - Run the "Create entities from database" wizard - In the table selection step, pick the AG table (with the dependency check box checked it automatically selects A and B as well) - After finishing the wizard, Netbeans starts generating the classes and returns with the error. The generated files are A.java (which seems fine), Ag.java (only contains a constructor) and AgPK.java (only a constructor as well).
Could this be this be related to issue 92031? http://www.netbeans.org/issues/show_bug.cgi?id=92031 I don't see the NullPointerException in the stack trace of this issue that is in the stack trace for the other issue, but it seems like it could be related.
Triggered by the comment on a possibly related issue that has been resolved by Netbeans 5.5.1 I downloaded it and tested in it. The entities that could not be generated in Netbeans 5.5, could be generated in Netbeans 5.5.1. Besides the test case, I also generated the complete schema without any error message. So with Netbeans 5.5.1 the issue is solved.
Great to hear, so marking this as fixed, since everything in 5.5.1 is also in trunk (6.0).