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.

Bug 177372 - NullPointerException at org.netbeans.modules.ruby.railsprojects.database.ConfigurableRailsAdapter.railsGenerationParam
Summary: NullPointerException at org.netbeans.modules.ruby.railsprojects.database.Conf...
Status: NEW
Alias: None
Product: ruby
Classification: Unclassified
Component: Rails (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: issues@ruby
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-22 06:22 UTC by hjuskewycz
Modified: 2011-01-28 20:13 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 156727


Attachments
stacktrace (1.41 KB, text/plain)
2009-11-22 06:22 UTC, hjuskewycz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hjuskewycz 2009-11-22 06:22:38 UTC
Build: NetBeans IDE 6.8 Beta (Build 200910212001)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.1-b02-90, Java(TM) SE Runtime Environment, 1.6.0_15-b03-219
OS: Mac OS X, 10.6.2, x86_64

User Comments:
GUEST: your crappy software is not working well on snow leopard

GUEST: Trying to create a new rails application after updating ruby to 1.9.1 and and to 2.3.3



Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.ruby.railsprojects.database.ConfigurableRailsAdapter.railsGenerationParam(ConfigurableRailsAdapter.java:94)
        at org.netbeans.modules.ruby.railsprojects.RailsProjectGenerator.createProject(RailsProjectGenerator.java:114)
        at org.netbeans.modules.ruby.railsprojects.ui.wizards.NewRailsProjectWizardIterator.instantiate(NewRailsProjectWizardIterator.java:180)
        at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(TemplateWizard.java:1016)
        at org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:588)
        at org.openide.loaders.TemplateWizard.instantiateNewObjects(TemplateWizard.java:409)
Comment 1 hjuskewycz 2009-11-22 06:22:42 UTC
Created attachment 91483 [details]
stacktrace
Comment 2 Tomas Danek 2009-11-24 06:29:27 UTC
The same happend to me in RC1:

java.lang.NullPointerException
	at org.netbeans.modules.ruby.railsprojects.database.ConfigurableRailsAdapter.railsGenerationParam(ConfigurableRailsAdapter.java:94)
	at org.netbeans.modules.ruby.railsprojects.RailsProjectGenerator.createProject(RailsProjectGenerator.java:114)
	at org.netbeans.modules.ruby.railsprojects.ui.wizards.NewRailsProjectWizardIterator.instantiate(NewRailsProjectWizardIterator.java:180)
	at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(TemplateWizard.java:1016)
	at org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:588)
	at org.openide.loaders.TemplateWizard.instantiateNewObjects(TemplateWizard.java:409)
	at org.openide.loaders.TemplateWizardIterImpl.instantiate(TemplateWizardIterImpl.java:253)
	at org.openide.loaders.TemplateWizardIteratorWrapper.instantiate(TemplateWizardIteratorWrapper.java:165)
	at org.openide.WizardDescriptor.callInstantiateOpen(WizardDescriptor.java:1538)
	at org.openide.WizardDescriptor.callInstantiate(WizardDescriptor.java:1495)
	at org.openide.WizardDescriptor.access$1700(WizardDescriptor.java:127)
[catch] at org.openide.WizardDescriptor$Listener$2$1.run(WizardDescriptor.java:2066)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:602)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1084)
Comment 3 Tomas Danek 2009-11-24 06:37:40 UTC
ok, i have the exact steps, it is mostly likely the well known problem on OS X's JDK 6 with comboboxes:
- on panel three of New rails project wizard click "specify DB information directly"
- in combo is by default selected "mysql (jdbc)" adapter, jdbc checkbox is disabled
- click on combo, and select "mysql (jdbc)" adapter again
- notice that jdbc checkbox gets enabled
- proceed by next
- click finish -> NPE
Comment 4 Erno Mononen 2009-11-24 08:27:28 UTC
Thanks for the steps. Indeed this is caused by that Apple JDK bug, will need to workaround it.