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 129546 - NPE when trying to rename a visweb-controlled jsp
Summary: NPE when trying to rename a visweb-controlled jsp
Status: VERIFIED DUPLICATE of bug 128871
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: _ potingwu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-07 14:02 UTC by Kirill Sorokin
Modified: 2008-03-13 16:36 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 Kirill Sorokin 2008-03-07 14:02:42 UTC
Steps to reproduce:

- create a new web application
- click on the Page1.jsp to activate the inline editor
- enter a new name and press Enter

The below NPE occurs and the page is not renamed.

java.lang.NullPointerException
	at org.netbeans.modules.refactoring.javascript.RetoucheUtils.getClasspathInfoFor(RetoucheUtils.java:414)
	at org.netbeans.modules.refactoring.javascript.ui.RenameRefactoringUI.<init>(RenameRefactoringUI.java:142)
	at
org.netbeans.modules.refactoring.javascript.ui.RefactoringActionsProvider$2.createRefactoringUI(RefactoringActionsProvider.java:112)
	at
org.netbeans.modules.refactoring.javascript.ui.RefactoringActionsProvider$NodeToFileObjectTask.run(RefactoringActionsProvider.java:408)
	at org.netbeans.modules.refactoring.javascript.ui.RefactoringActionsProvider.doRename(RefactoringActionsProvider.java:122)
	at org.netbeans.modules.refactoring.api.impl.ActionsImplementationFactory.doRename(ActionsImplementationFactory.java:69)
	at org.netbeans.modules.refactoring.spi.impl.RenameAction.performAction(RenameAction.java:62)
	at
org.netbeans.modules.refactoring.spi.impl.RefactoringGlobalAction$ContextAction.actionPerformed(RefactoringGlobalAction.java:177)
	at org.netbeans.modules.visualweb.project.jsfloader.JsfJspDataNode.setName(JsfJspDataNode.java:290)
	at org.openide.nodes.FilterNode.setName(FilterNode.java:482)
	at org.openide.explorer.view.TreeViewCellEditor.editingStopped(TreeViewCellEditor.java:137)
	at javax.swing.AbstractCellEditor.fireEditingStopped(AbstractCellEditor.java:124)
	at javax.swing.DefaultCellEditor$EditorDelegate.stopCellEditing(DefaultCellEditor.java:334)
	at javax.swing.DefaultCellEditor.stopCellEditing(DefaultCellEditor.java:219)
	at javax.swing.DefaultCellEditor$EditorDelegate.actionPerformed(DefaultCellEditor.java:351)
	at javax.swing.JTextField.fireActionPerformed(JTextField.java:487)
	at javax.swing.JTextField.postActionEvent(JTextField.java:668)
	at javax.swing.JTextField$NotifyAction.actionPerformed(JTextField.java:783)
	at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1576)
	at javax.swing.JComponent.processKeyBinding(JComponent.java:2772)
	at javax.swing.JComponent.processKeyBindings(JComponent.java:2807)
	at javax.swing.JComponent.processKeyEvent(JComponent.java:2735)
	at java.awt.Component.processEvent(Component.java:5360)
	at java.awt.Container.processEvent(Container.java:2010)
	at java.awt.Component.dispatchEventImpl(Component.java:4050)
	at java.awt.Container.dispatchEventImpl(Container.java:2068)
	at java.awt.Component.dispatchEvent(Component.java:3885)
	at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1826)
	at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:681)
	at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:938)
	at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:810)
	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:645)
	at java.awt.Component.dispatchEventImpl(Component.java:3923)
	at java.awt.Container.dispatchEventImpl(Container.java:2068)
	at java.awt.Window.dispatchEventImpl(Window.java:1791)
	at java.awt.Component.dispatchEvent(Component.java:3885)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
	at org.netbeans.core.TimeableEventQueue.dispatchEvent(TimeableEventQueue.java:104)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 1 Petr Blaha 2008-03-07 15:14:02 UTC

*** This issue has been marked as a duplicate of 128871 ***
Comment 2 Kirill Sorokin 2008-03-13 16:36:58 UTC
Verified duplicate.