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 128871 - NPE org.netbeans.modules.refactoring.javascript.RetoucheUtils.getClasspathInfoFor
Summary: NPE org.netbeans.modules.refactoring.javascript.RetoucheUtils.getClasspathInf...
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
: 129546 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-02-29 19:34 UTC by _ krystyna
Modified: 2009-02-27 14:26 UTC (History)
2 users (show)

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 _ krystyna 2008-02-29 19:34:42 UTC
NetBeans IDE Dev (Build 20080229164811)
Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19
System: Windows XP version 5.1


-created VW project, 2 pages and link page 1 to 2
-in PageFlow editor, attempt rename of Page2.jsp

>get NPE. Can't recover easily: can't cancel or change back. Have to quite project.


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.netbeans.modules.web.jsf.navigation.Page.setName(Page.java:135)
        at org.netbeans.modules.web.jsf.navigation.graph.PageFlowScene$PageNodeTextFieldInplaceEditor.setText
(PageFlowScene.java:647)
        at org.netbeans.modules.visual.action.TextFieldInplaceEditorProvider.notifyClosing
(TextFieldInplaceEditorProvider.java:132)
        at org.netbeans.modules.visual.action.TextFieldInplaceEditorProvider.notifyClosing
(TextFieldInplaceEditorProvider.java:58)
        at org.netbeans.modules.visual.action.InplaceEditorAction.closeEditor(InplaceEditorAction.java:163)
        at org.netbeans.modules.visual.action.TextFieldInplaceEditorProvider$1.keyPressed
(TextFieldInplaceEditorProvider.java:98)
        at java.awt.Component.processKeyEvent(Component.java:5999)
        at javax.swing.JComponent.processKeyEvent(JComponent.java:2799)
        at java.awt.Component.processEvent(Component.java:5818)
        at java.awt.Container.processEvent(Container.java:2058)
        at java.awt.Component.dispatchEventImpl(Component.java:4413)
        at java.awt.Container.dispatchEventImpl(Container.java:2116)
        at java.awt.Component.dispatchEvent(Component.java:4243)
        at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1848)
        at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:697)
        at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:962)
        at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:834)
        at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:661)
        at java.awt.Component.dispatchEventImpl(Component.java:4285)
        at java.awt.Container.dispatchEventImpl(Container.java:2116)
        at java.awt.Window.dispatchEventImpl(Window.java:2440)
        at java.awt.Component.dispatchEvent(Component.java:4243)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
        at org.netbeans.core.TimeableEventQueue.dispatchEvent(TimeableEventQueue.java:104)
[catch] 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)
INFO [org.netbeans.modules.uihandler.Installer]: findIdentity: 05834516e-e573-4680-bde7-494de69c927b
INFO [org.netbeans.modules.uihandler.Installer]
java.net.SocketTimeoutException: Read timed out
        at java.net.SocketInputStream.socketRead0(Native Method)
        at java.net.SocketInputStream.read(SocketInputStream.java:129)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
        at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:687)
        at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:632)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1000)
        at org.netbeans.modules.uihandler.Installer.uLogs(Installer.java:690)
        at org.netbeans.modules.uihandler.Installer.uploadLogs(Installer.java:615)
[catch] at org.netbeans.modules.uihandler.Installer$Submit.uploadAndPost(Installer.java:1096)
        at org.netbeans.modules.uihandler.Installer$Submit.access$100(Installer.java:773)
        at org.netbeans.modules.uihandler.Installer$Submit$1.run(Installer.java:997)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)
Comment 1 Torbjorn Norbye 2008-03-04 00:19:26 UTC
Fixed in trunk (changeset 8ce87632fc4e). This might be worthy of 6.1RC2 integration as well.
Comment 2 Torbjorn Norbye 2008-03-04 00:57:19 UTC
Fixed in 6.1M2 as well with changeset f92fcae19389.
Comment 3 _ krystyna 2008-03-05 00:14:49 UTC
See the same exception when attempting to rename from PFE (faces-config.xml): 
NetBeans IDE 6.1 Beta (Build 200803041230) and trunk build #861 
NetBeans IDE Dev (Build 20080304154948)
Comment 4 Petr Blaha 2008-03-07 15:14:02 UTC
*** Issue 129546 has been marked as a duplicate of this issue. ***
Comment 5 Torbjorn Norbye 2008-03-18 20:00:49 UTC
Hi Krys,
I'm this might be fixed now -- I made some changes 4 days ago that (a) gives VWS refactoring higher priority than
JavaScript, and (b) removes Move-related refactoring code which wasn't supposed to be run anyway.

http://hg.netbeans.org/main/rev/5aab84a71327
http://hg.netbeans.org/main/rev/92828e80a79f
Comment 6 _ krystyna 2008-03-18 21:28:59 UTC
HI Tor, I don't see that NPE anymore but I see two different rename dialogs come up now
on the very first instance of rename for that page in the PFE.  You OK the first dialog, 
to just get a second rename dialog (different dialog) to which you also have to supply
the new name (so, redundant). Subsequent renames are OK and produce only the one
dialog. Is this still yours or should I file a new? 
Comment 7 Torbjorn Norbye 2008-03-18 22:12:48 UTC
That sounds like a generic refactoring bug (especially since it only happens the first time). I'd file a new bug though,
not pile on to this one :)
Comment 8 _ krystyna 2008-03-18 23:24:56 UTC
Okey dokey new bug filed, verifying this one
NetBeans IDE Dev (Build 20080318153821)
Java: 1.6.0_04;
Comment 9 Marian Mirilovic 2008-08-01 11:23:08 UTC
move back to consistent state RESOLVED/FIXED