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 Dev (Build 20111010-292359ca2a0d) VM: Java HotSpot(TM) Client VM, 20.2-b06, Java(TM) SE Runtime Environment, 1.6.0_27-b07 OS: Windows 7 Stacktrace: java.lang.NullPointerException at org.netbeans.modules.websvc.rest.wizard.fromdb.DatabaseResourceWizardIterator.generate(DatabaseResourceWizardIterator.java:295) at org.netbeans.modules.websvc.rest.wizard.fromdb.DatabaseResourceWizardIterator.access$000(DatabaseResourceWizardIterator.java:122) at org.netbeans.modules.websvc.rest.wizard.fromdb.DatabaseResourceWizardIterator$1.run(DatabaseResourceWizardIterator.java:192) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1424) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1973)
Created attachment 111797 [details] stacktrace
Steps to reproduce ?
nit sure if it's new of one of npe can be reproduced only on my system (or may be specific to build created on win platform). steps - just create web project on gf 3.1.1 with spring and generate REST from database for sample database (PRODUCT_CODE for example) with all default.
in real I just can't verify https://netbeans.org/bugzilla/show_bug.cgi?id=198346 as it'[s blocked by this one issue.
Not able to reproduce with mentioned steps. It could be some specific values used in the UI. In the latter case please provide DETAILED UI actions with entered values.
as requested: start fresh ide (no user dir/removed user dir) install junit as suggested close welcome screen invoke new|project select Java Web|Web Application next keep project name default (WebApplication9) keep project path default (C:\Users\userrr\Documents\NetBeansProjects) next press "Add.." to add a server select glassfish 3+ server type find path to gf3.1.1 (i.e. c:\glassfish3.1.1) and register next select spring framework finish on Source Packages node select 'New|Other' select Web Services|REST.. from database next select datasource "jdbc/sample" move PRODUCT_CODE to selected tables and press next set package to "p" and press finish wait REST resource confiiguration dialog will appear keep all default ("Netbeans will generate a subclass.." selected + "add jersey library..." selected + "/resources" path) and press ok. just wait for exception. I'm pretty sure it doesn't matter in this case (specific values).
one more point, ide was started with "--userdir c:\tmpr1" option
(In reply to comment #6) There is one important detail which is the reason of the bug : >move PRODUCT_CODE to selected tables and press next >set package to "p" and press finish There is third wizard panel. It is used to set package name for generated REST resources. So the second panel should not be finishable probably.
yes "and press next" should move the wizard to 3rd panel
web-main#de006162d24e
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/de006162d24e User: Denis Anisimov <ads@netbeans.org> Log: Fix for BZ#203450 - NullPointerException at org.netbeans.modules.websvc.rest.wizard.fromdb.DatabaseResourceWizardIterator.generate
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/a7a8cff84ff1 User: Sergey B. Petrov <sj-nb@netbeans.org> Log: #203450 fix fix