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.
While testing bug 180583 I got completely different errors. I created new Web Project and used Entity from DB wizard to generate entities for all DBs from sample DB. The operation was very slow - several minutes and I noticed that IDE output contained dozens to exceptions: INFO [com.sun.tools.javac.processing.JavacProcessingEnvironment]: Annotation processing error: java.lang.IllegalArgumentException: sibling == null org.netbeans.modules.java.source.parsing.OutputFileManager.getFileForOutput(OutputFileManager.java:183) [...] I followed with EJBs from Entity wizard and similarly the process was even slower. The same exceptions were thrown and after a while OutOfMemory exception was thrown. IDE log with exceptions attached. Product Version = NetBeans IDE Dev (Build 100407-2b6de6b17c30) (#2b6de6b17c30) Operating System = Linux version 2.6.24-24-generic running on i386 Java; VM; Vendor = 1.6.0_17; Java HotSpot(TM) Client VM 14.3-b01; Sun Microsystems Inc.
Created attachment 96827 [details] IDE log
I saw these exceptions before but without OutOfMemory.
I will look at this.
If it will be hard to do something on ap side, may be disabling ap processing during entity generation can help.
I've fixed the exceptions. The OOM is PermGen, right? Probably eclipselink does lots of intern, I've downloaded sources to take a look.
One question, does the wizard all modification using runModifiacationtask or does it also some changes without the lock?
main code for entity from db generation is located in org.netbeans.modules.j2ee.persistence.wizard.fromdb.JavaPersistenceGenerator::runImpl() and looks like main generation is with runModificationTask usage. But can't say if something is done without a lock, need to verify.
Disabling EclipseLink annotation processor (via project's UI) make the problem go away.
fixed in jet-main: d200ddfcf9aa
Integrated into 'main-golden', will be available in build *201004090201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/d200ddfcf9aa User: Tomas Zezula <tzezula@netbeans.org> Log: #183613:Entity From DB / EJBs from Entity generators are broken