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.
Build: NetBeans IDE 6.5 Beta (Build 200808111757) VM: Java HotSpot(TM) Client VM, 1.5.0_09-b01, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_09-b01 OS: Windows XP, 5.1, x86 User Comments: Hi, I tried to create a reverse engineering configuration file, just like in this Tutorial: http://wiki.netbeans.org/HibernateAndWebApp#section-HibernateAndWebApp-UsingNetBeansForBuildingHibernateBasedWebApplications Thanks Stacktrace: java.lang.NullPointerException at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:86) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2005) at org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfiguration.java:40) at org.netbeans.modules.hibernate.wizards.HibernateRevengWizard.generateClasses(HibernateRevengWizard.java:329) at org.netbeans.modules.hibernate.wizards.HibernateRevengWizard.instantiate(HibernateRevengWizard.java:448) at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(TemplateWizard.java:1023)
Created attachment 69537 [details] stacktrace
HI, Can you post the entire stack trace please ? I am sure there would be another set of stack trace before the one attached to this issue and that would be the root cause. And have you established the database connection before trying creating the Reverse Engg. file as suggested in that tutorial ? Thanks.
Hi, there is another Stacktrace but it disappear so qwick that i didn't see it.It is an Exception: Access denied 'root'@'localhost'(using password:YES)==> but i don't use any Password for de database...And yes the connection to the database was established before i tried to creat the Reverse Engg.
Hi, the Privileges for the User Root wasent set. After setting, Everything works :-)
Reopening - reproduced in NetBeans IDE 6.5 RC2 (Build 200810270001) http://statistics.netbeans.org/exceptions/detail.do?id=139355
To be taken up in 7.0 release.
Build: NetBeans IDE Dev (Build 081208) VM: Java HotSpot(TM) 64-Bit Server VM, 1.6.0_07-b06-57, Java(TM) SE Runtime Environment, 1.6.0_07-b06-153 OS: Mac OS X, 10.5.5, x86_64 User Comments: exception raised while generation POJOs from Sakila sample database Stacktrace: java.lang.NullPointerException at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:86) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2005) at org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfiguration.java:40) at org.netbeans.modules.hibernate.wizards.HibernateRevengWizard.generateClasses(HibernateRevengWizard.java:332) at org.netbeans.modules.hibernate.wizards.HibernateRevengWizard.instantiate(HibernateRevengWizard.java:459) at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(TemplateWizard.java:1016)
Created attachment 74703 [details] stacktrace
I'm not able to workaround this issue in latest build. Should be fixed for M1.
working for me in 6.5 FCS with the same database, marking as regression
Will look into this.
Hi Honza, Can you please attach the full IDE log ? I believe there should be another stacktrace with the root cause. Thanks, -Vadiraj
Not able to reproduce by normal flow.. Asked Honza for help.
as the steps already mentioned are not 100% reproducible, I've found slightly different steps to reproduce the same exception: -create new project -create hibernate.cfg with a wrong db password -start the wizard -you are prompted for the correct password, list of tables is retrived -select tables -finish the wizard -NPE, nothing created
Fixed: (added database connection verification before calling reverse engg. processor) http://hg.netbeans.org/main/rev/1f1d25cc805f
v.
As a workaround for this issue. include the hibernate.connection.password in hibernate.cfg.xml
Build: NetBeans IDE 6.5 (Build 200811100001) VM: Java HotSpot(TM) Client VM, 11.0-b16, Java(TM) SE Runtime Environment, 1.6.0_11-b03 OS: Windows XP, 5.1, x86 User Comments: Stacktrace: java.lang.NullPointerException at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:86) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2005) at org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfiguration.java:40) at org.netbeans.modules.hibernate.wizards.HibernateRevengWizard.generateClasses(HibernateRevengWizard.java:332) at org.netbeans.modules.hibernate.wizards.HibernateRevengWizard.instantiate(HibernateRevengWizard.java:459) at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(TemplateWizard.java:1016)
Created attachment 78345 [details] stacktrace