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 141951

Summary: IllegalArgumentException: The node is not valid source node, node=[BODY: null]
Product: ide Reporter: _ krystyna <krystyna>
Component: ExtbrowserAssignee: Peter Zavadsky <pzavadsky>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 132242    
Attachments: before
after

Description _ krystyna 2008-07-28 21:20:36 UTC
About box selection missing to get details: WinXP, jdk1.6.0_10
Netbeans-dev-4586


Exception on creation of a second html page of a web project, clicking on the node to select page layout.
In the log, another exception preceded this one, so attaching that; and another exception following
this one, also attaching.

java.lang.IllegalArgumentException: The node is not valid source node, node=[BODY: null]
        at org.netbeans.modules.visualweb.html.model.HtmlModel.validateSourceNode(HtmlModel.java:523)
        at org.netbeans.modules.visualweb.html.model.HtmlModel.validateComponentNode(HtmlModel.java:528)
        at org.netbeans.modules.visualweb.html.designsupport.HtmlVisualWebComponent.validateComponentNode
(HtmlVisualWebComponent.java:391)
        at org.netbeans.modules.visualweb.html.designsupport.HtmlVisualWebComponent.getNodeRepresentation
(HtmlVisualWebComponent.java:740)
        at org.netbeans.modules.visualweb.html.designsupport.HtmlVisualWebComponent$NbComponentNodeChildren.createNodes
(HtmlVisualWebComponent.java:975)
        at org.netbeans.modules.visualweb.html.designsupport.HtmlVisualWebComponent$NbComponentNodeChildren.createNodes
(HtmlVisualWebComponent.java:941)
        at org.openide.nodes.Children$Keys$KE.nodes(Children.java:1526)
        at org.openide.nodes.ChildrenArray.nodesFor(ChildrenArray.java:168)
        at org.openide.nodes.EntrySupport$Default$Info.nodes(EntrySupport.java:926)
[catch] at org.openide.nodes.EntrySupport$Default.justComputeNodes(EntrySupport.java:238)
        at org.openide.nodes.ChildrenArray.nodes(ChildrenArray.java:101)
        at org.openide.nodes.EntrySupport$Default.getNodes(EntrySupport.java:159)
        at org.openide.nodes.EntrySupport$Default.createSnapshot(EntrySupport.java:141)
        at org.openide.nodes.NodeEvent.<init>(NodeEvent.java:59)
        at org.openide.nodes.Node.fireNodeDestroyed(Node.java:1111)
        at org.openide.nodes.Children$Keys.destroyNodes(Children.java:1476)
        at org.openide.nodes.EntrySupport$Default.notifyRemove(EntrySupport.java:669)
        at org.openide.nodes.EntrySupport$Default.updateRemove(EntrySupport.java:379)
        at org.openide.nodes.EntrySupport$Default.setEntries(EntrySupport.java:328)
        at org.openide.nodes.Children$Keys$2.run(Children.java:1420)
        at org.openide.util.Mutex.postRequest(Mutex.java:1251)
        at org.openide.util.Mutex.postWriteRequest(Mutex.java:582)
        at org.openide.nodes.Children$Keys.applyKeys(Children.java:1429)
        at org.openide.nodes.Children$Keys.setKeys(Children.java:1410)
        at org.netbeans.modules.visualweb.navigator.impl.NavigatorPanelComponent$ComponentChildren.updateKeys
(NavigatorPanelComponent.java:190)
        at org.netbeans.modules.visualweb.navigator.impl.NavigatorPanelComponent$ComponentChildren.updateRootChildren
(NavigatorPanelComponent.java:186)
        at org.netbeans.modules.visualweb.navigator.impl.NavigatorPanelComponent$ComponentChildren.setVisualWebComponent
(NavigatorPanelComponent.java:195)
        at org.netbeans.modules.visualweb.navigator.impl.NavigatorPanelComponent$ComponentChildren.access$000
(NavigatorPanelComponent.java:166)
        at org.netbeans.modules.visualweb.navigator.impl.NavigatorPanelComponent.setVisualWebComponent
(NavigatorPanelComponent.java:127)
        at org.netbeans.modules.visualweb.navigator.impl.NavigatorPanelImpl.setCurrentModel(NavigatorPanelImpl.java:114)
        at org.netbeans.modules.visualweb.navigator.impl.NavigatorPanelImpl.updateModel(NavigatorPanelImpl.java:107)
        at org.netbeans.modules.visualweb.navigator.impl.NavigatorPanelImpl.access$000(NavigatorPanelImpl.java:58)
        at org.netbeans.modules.visualweb.navigator.impl.NavigatorPanelImpl$NavigatorLookupListener.resultChanged
(NavigatorPanelImpl.java:128)
        at sun.reflect.GeneratedMethodAccessor52.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.openide.util.WeakListenerImpl$ProxyListener.invoke(WeakListenerImpl.java:449)
        at $Proxy2.resultChanged(Unknown Source)
        at org.openide.util.lookup.ProxyLookup$1Notify.run(ProxyLookup.java:173)
        at org.openide.util.lookup.ProxyLookup.setLookups(ProxyLookup.java:179)
        at org.openide.util.lookup.ProxyLookup.setLookups(ProxyLookup.java:119)
        at org.netbeans.modules.navigator.NavigatorController$ClientsLookup.beforeLookup(NavigatorController.java:754)
        at org.openide.util.lookup.ProxyLookup.lookup(ProxyLookup.java:197)
        at org.netbeans.modules.navigator.NavigatorController.updateContext(NavigatorController.java:380)
        at org.netbeans.modules.navigator.NavigatorController.updateContext(NavigatorController.java:274)
        at org.netbeans.modules.navigator.NavigatorController.access$900(NavigatorController.java:99)
        at org.netbeans.modules.navigator.NavigatorController$ActNodeSetter.run(NavigatorController.java:716)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
        at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
        at java.awt.Dialog$1.run(Dialog.java:1046)
        at java.awt.Dialog$3.run(Dialog.java:1098)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.awt.Dialog.show(Dialog.java:1096)
        at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:863)
        at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:897)
        at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:885)
        at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:109)
        at org.openide.util.Mutex.doEventAccess(Mutex.java:1355)
        at org.openide.util.Mutex.readAccess(Mutex.java:268)
        at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:870)
        at java.awt.Component.show(Component.java:1447)
        at java.awt.Component.setVisible(Component.java:1400)
        at java.awt.Window.setVisible(Window.java:824)
        at java.awt.Dialog.setVisible(Dialog.java:986)
        at org.netbeans.modules.visualweb.html.pagelayout.HtmlPageLayoutChooserDialog.showDialog
(HtmlPageLayoutChooserDialog.java:101)
        at org.netbeans.modules.visualweb.html.designsupport.HtmlVisualWebComponent.pickFromTemplate
(HtmlVisualWebComponent.java:311)
        at org.netbeans.modules.visualweb.html.designsupport.HtmlVisualWebComponent.sourceDomLoadFinished
(HtmlVisualWebComponent.java:492)
        at org.netbeans.modules.visualweb.html.designsupport.HtmlVisualWebComponent.access$600
(HtmlVisualWebComponent.java:119)
        at org.netbeans.modules.visualweb.html.designsupport.HtmlVisualWebComponent$3$1.run
(HtmlVisualWebComponent.java:564)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
        at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
        at java.awt.Dialog$1.run(Dialog.java:1046)
        at java.awt.Dialog$3.run(Dialog.java:1098)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.awt.Dialog.show(Dialog.java:1096)
        at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:863)
        at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:897)
        at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:885)
        at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:109)
        at org.openide.util.Mutex.doEventAccess(Mutex.java:1355)
        at org.openide.util.Mutex.readAccess(Mutex.java:268)
        at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:870)
        at java.awt.Component.show(Component.java:1447)
        at java.awt.Component.setVisible(Component.java:1400)
        at java.awt.Window.setVisible(Window.java:824)
        at java.awt.Dialog.setVisible(Dialog.java:986)
        at org.netbeans.modules.visualweb.html.pagelayout.HtmlPageLayoutChooserDialog.showDialog
(HtmlPageLayoutChooserDialog.java:101)
        at org.netbeans.modules.visualweb.html.designsupport.HtmlVisualWebComponent.pickFromTemplate
(HtmlVisualWebComponent.java:311)
        at org.netbeans.modules.visualweb.html.designsupport.HtmlVisualWebComponent.sourceDomLoadFinished
(HtmlVisualWebComponent.java:492)
        at org.netbeans.modules.visualweb.html.designsupport.HtmlVisualWebComponent.access$600
(HtmlVisualWebComponent.java:119)
        at org.netbeans.modules.visualweb.html.designsupport.HtmlVisualWebComponent$3$1.run
(HtmlVisualWebComponent.java:564)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
        at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Comment 1 _ krystyna 2008-07-28 21:21:08 UTC
Created attachment 65853 [details]
before
Comment 2 _ krystyna 2008-07-28 21:22:17 UTC
Created attachment 65855 [details]
after
Comment 3 _ krystyna 2008-07-28 21:29:19 UTC
As a result the layout for the second page could not be created. 
Subsequently created two more html pages for the same project but was able to select layout OK
for those pages, but not for the second page.
Comment 4 _ krystyna 2008-07-30 03:09:02 UTC
Still seeing this in dev build #4589 - also on the second created layout page, alternate
layout from the first. None of the pages become selectable in multiviewer at this point.
Comment 5 Peter Zavadsky 2008-07-30 08:46:47 UTC
Krys, thanks for info about this issue. However this issue is OK for now, this is not showstopper, we will fix it when
we get time for this.
Please, focus on JVM crashes for now.

The workaround for this problem should be switch to source tab and back.


Comment 6 Peter Zavadsky 2008-09-02 18:58:54 UTC
This was put on hold. Reopen when resumed.
Comment 7 Quality Engineering 2009-11-02 11:14:18 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX