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 142347 - JRuby:V3:NPE occurs when click at Test menu
Summary: JRuby:V3:NPE occurs when click at Test menu
Status: RESOLVED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Rake (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Martin Krauskopf
URL:
Keywords: REGRESSION
: 142469 142843 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-07-31 02:01 UTC by davisn
Modified: 2008-08-05 07:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description davisn 2008-07-31 02:01:48 UTC
NullPointerException occurs when click at Test menu at a Rails JRuby project

Steps to Reproduce:
1. Install NB6.5 Trunk (07/30/2008) build
2. Having mySQL 5.1 server installed (on the same machine with NB 6.5) 
3. Start mySQL 5.1 server 
4. Create a new connection to mySQL 5.1 server with information below:
      Name: MySQL (Connector/J Driver)
      Host: localhost
      Port: 3306
      Database: test or mysql
      User Name: <root> 
      Password: <iplanet>
5. Connect to mySQL database 
6. Create a new project by selecting Ruby > Ruby on Rails Application > click Next > Finish (use Glassfish V3 for
runtime server)
7. Right-click at the RailApplication, select Run menu
Note:
   The application is running
8. Right-click at the RailApplication, select Test menu
BUG:
   Exception occurs with error message listed below (messages.log file attached)
java.lang.NullPointerException
	at org.netbeans.modules.ruby.rubyproject.rake.RakeRunner.doStandardConfiguration(RakeRunner.java:317)
	at org.netbeans.modules.ruby.rubyproject.rake.RakeRunner.getExecutionDescriptors(RakeRunner.java:257)
	at org.netbeans.modules.ruby.rubyproject.rake.RakeRunner.run(RakeRunner.java:222)
	at org.netbeans.modules.ruby.rubyproject.rake.RakeRunner.run(RakeRunner.java:172)
	at org.netbeans.modules.ruby.railsprojects.RailsActionProvider.invokeAction(RailsActionProvider.java:267)
	at org.netbeans.modules.project.ui.actions.ProjectAction.actionPerformed(ProjectAction.java:129)
	at org.netbeans.modules.project.ui.actions.LookupSensitiveAction.actionPerformed(LookupSensitiveAction.java:160)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
	at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1170)
	at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1211)
	at java.awt.Component.processMouseEvent(Component.java:6038)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
	at java.awt.Component.processEvent(Component.java:5803)
	at java.awt.Container.processEvent(Container.java:2058)
	at java.awt.Component.dispatchEventImpl(Component.java:4410)
	at java.awt.Container.dispatchEventImpl(Container.java:2116)
	at java.awt.Component.dispatchEvent(Component.java:4240)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
	at java.awt.Container.dispatchEventImpl(Container.java:2102)
	at java.awt.Window.dispatchEventImpl(Window.java:2429)
	at java.awt.Component.dispatchEvent(Component.java:4240)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Comment 1 _ pcw 2008-07-31 02:37:55 UTC
--> ruby/rails.  This NPE is visible regardless of server.
Comment 2 Martin Krauskopf 2008-07-31 08:25:37 UTC
Seems to be regression of #7e01d866b08a which tries to fix another regression. Test welcomed in such case.
Comment 3 Martin Krauskopf 2008-07-31 10:15:54 UTC
Changeset: #41c3cbe5b47f
Comment 4 Quality Engineering 2008-07-31 15:45:01 UTC
Integrated into 'main-golden', available in build *200807311401* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/41c3cbe5b47f
User: Martin Krauskopf <mkrauskopf@netbeans.org>
Log: #142347: JRuby:V3:NPE occurs when click at Test menu
Comment 5 Martin Krauskopf 2008-07-31 20:21:44 UTC
*** Issue 142469 has been marked as a duplicate of this issue. ***
Comment 6 Martin Krauskopf 2008-08-05 07:45:38 UTC
*** Issue 142843 has been marked as a duplicate of this issue. ***