[jbosstools-issues] [JBoss JIRA] Updated: (JBIDE-4317) Selection NPE when rename html to ui:composition

Yura Zhishko (JIRA) jira-events at lists.jboss.org
Thu May 14 12:34:46 EDT 2009


     [ https://jira.jboss.org/jira/browse/JBIDE-4317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yura Zhishko updated JBIDE-4317:
--------------------------------

        Summary: Selection NPE when rename html to ui:composition  (was: Selection NPE while when rename ui:composition to html)
    Description: 
1) Create a new FaceletCammon.xhtml page open it in VPE
2) Rename parent tag html to ui:composition on the top of the page (see screenshot-1)
3) Rename html to ui:composition at the bottom of the page (screenshot-2)

RESULT: NPE in log. Sometimes page isn't updated.

java.lang.NullPointerException
	at org.jboss.tools.vpe.editor.selection.VpeSourceSelection.inParents(VpeSourceSelection.java:75)
	at org.jboss.tools.vpe.editor.selection.VpeSourceSelection.getSelNodes(VpeSourceSelection.java:64)
	at org.jboss.tools.vpe.editor.selection.VpeSourceSelection.<init>(VpeSourceSelection.java:37)
	at org.jboss.tools.vpe.editor.selection.VpeSourceSelectionBuilder.getSelection(VpeSourceSelectionBuilder.java:63)
	at org.jboss.tools.vpe.selbar.SelectionBar.selectionChanged(SelectionBar.java:280)
	at org.jboss.tools.vpe.selbar.NodeListener.notifyChanged(SelectionBar.java:521)
	at org.eclipse.wst.sse.core.internal.provisional.AbstractNotifier.notify(AbstractNotifier.java:201)
	at org.eclipse.wst.xml.core.internal.document.XMLModelNotifierImpl.notifyStructureChanged(XMLModelNotifierImpl.java:392)
	at org.eclipse.wst.xml.core.internal.document.XMLModelNotifierImpl.endChanging(XMLModelNotifierImpl.java:180)
	at org.eclipse.wst.xml.core.internal.document.DOMModelImpl.changedModel(DOMModelImpl.java:163)
	at org.eclipse.wst.sse.core.internal.model.AbstractStructuredModel$DocumentToModelNotifier.regionChanged(AbstractStructuredModel.java:164)
	at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument._fireEvent(BasicStructuredDocument.java:538)
	at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.fireStructuredDocumentEvent(BasicStructuredDocument.java:1177)
	at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.internalReplaceText(BasicStructuredDocument.java:1960)
	at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.replaceText(BasicStructuredDocument.java:2414)
	at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.replaceText(BasicStructuredDocument.java:2399)
	at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.access$2(JobSafeStructuredDocument.java:1)
	at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument$3.run(JobSafeStructuredDocument.java:137)
	at org.eclipse.wst.sse.ui.EditorExecutionContext.execute(EditorExecutionContext.java:147)
	at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.replaceText(JobSafeStructuredDocument.java:144)
	at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.replace(BasicStructuredDocument.java:2359)
	at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.access$0(JobSafeStructuredDocument.java:1)
	at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument$1.run(JobSafeStructuredDocument.java:88)
	at org.eclipse.wst.sse.ui.EditorExecutionContext.execute(EditorExecutionContext.java:147)
	at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.replace(JobSafeStructuredDocument.java:95)
	at org.eclipse.jface.text.DefaultDocumentAdapter.replaceTextRange(DefaultDocumentAdapter.java:248)
	at org.eclipse.swt.custom.StyledText.modifyContent(StyledText.java:6587)
	at org.eclipse.swt.custom.StyledText.sendKeyEvent(StyledText.java:7383)
	at org.eclipse.swt.custom.StyledText.doContent(StyledText.java:2441)
	at org.eclipse.swt.custom.StyledText.handleKey(StyledText.java:5773)
	at org.eclipse.swt.custom.StyledText.handleKeyDown(StyledText.java:5798)
	at org.eclipse.swt.custom.StyledText$7.handleEvent(StyledText.java:5500)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
	at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1040)
	at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1036)
	at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1360)
	at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4051)
	at org.eclipse.swt.widgets.Canvas.WM_CHAR(Canvas.java:346)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:3944)
	at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:342)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4589)
	at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2403)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3471)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2401)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2365)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2217)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1287)

P. S. The same happens if rename ui:composition to html

  was:
1) Create a new FaceletCammon.xhtml page open it in VPE
2) Rename parent tag html to ui:composition on the top of the page (see screenshot-1)
3) Rename html to ui:composition at the bottom of the page (screenshot-2)

RESULT: NPE in log. Sometimes page isn't updated.

java.lang.NullPointerException
	at org.jboss.tools.vpe.editor.selection.VpeSourceSelection.inParents(VpeSourceSelection.java:75)
	at org.jboss.tools.vpe.editor.selection.VpeSourceSelection.getSelNodes(VpeSourceSelection.java:64)
	at org.jboss.tools.vpe.editor.selection.VpeSourceSelection.<init>(VpeSourceSelection.java:37)
	at org.jboss.tools.vpe.editor.selection.VpeSourceSelectionBuilder.getSelection(VpeSourceSelectionBuilder.java:63)
	at org.jboss.tools.vpe.selbar.SelectionBar.selectionChanged(SelectionBar.java:280)
	at org.jboss.tools.vpe.selbar.NodeListener.notifyChanged(SelectionBar.java:521)
	at org.eclipse.wst.sse.core.internal.provisional.AbstractNotifier.notify(AbstractNotifier.java:201)
	at org.eclipse.wst.xml.core.internal.document.XMLModelNotifierImpl.notifyStructureChanged(XMLModelNotifierImpl.java:392)
	at org.eclipse.wst.xml.core.internal.document.XMLModelNotifierImpl.endChanging(XMLModelNotifierImpl.java:180)
	at org.eclipse.wst.xml.core.internal.document.DOMModelImpl.changedModel(DOMModelImpl.java:163)
	at org.eclipse.wst.sse.core.internal.model.AbstractStructuredModel$DocumentToModelNotifier.regionChanged(AbstractStructuredModel.java:164)
	at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument._fireEvent(BasicStructuredDocument.java:538)
	at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.fireStructuredDocumentEvent(BasicStructuredDocument.java:1177)
	at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.internalReplaceText(BasicStructuredDocument.java:1960)
	at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.replaceText(BasicStructuredDocument.java:2414)
	at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.replaceText(BasicStructuredDocument.java:2399)
	at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.access$2(JobSafeStructuredDocument.java:1)
	at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument$3.run(JobSafeStructuredDocument.java:137)
	at org.eclipse.wst.sse.ui.EditorExecutionContext.execute(EditorExecutionContext.java:147)
	at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.replaceText(JobSafeStructuredDocument.java:144)
	at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.replace(BasicStructuredDocument.java:2359)
	at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.access$0(JobSafeStructuredDocument.java:1)
	at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument$1.run(JobSafeStructuredDocument.java:88)
	at org.eclipse.wst.sse.ui.EditorExecutionContext.execute(EditorExecutionContext.java:147)
	at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.replace(JobSafeStructuredDocument.java:95)
	at org.eclipse.jface.text.DefaultDocumentAdapter.replaceTextRange(DefaultDocumentAdapter.java:248)
	at org.eclipse.swt.custom.StyledText.modifyContent(StyledText.java:6587)
	at org.eclipse.swt.custom.StyledText.sendKeyEvent(StyledText.java:7383)
	at org.eclipse.swt.custom.StyledText.doContent(StyledText.java:2441)
	at org.eclipse.swt.custom.StyledText.handleKey(StyledText.java:5773)
	at org.eclipse.swt.custom.StyledText.handleKeyDown(StyledText.java:5798)
	at org.eclipse.swt.custom.StyledText$7.handleEvent(StyledText.java:5500)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
	at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1040)
	at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1036)
	at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1360)
	at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4051)
	at org.eclipse.swt.widgets.Canvas.WM_CHAR(Canvas.java:346)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:3944)
	at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:342)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4589)
	at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2403)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3471)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2401)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2365)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2217)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1287)



> Selection NPE when rename html to ui:composition
> ------------------------------------------------
>
>                 Key: JBIDE-4317
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-4317
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Visual Page Editor core
>    Affects Versions: 3.0.1.GA
>            Reporter: Yura Zhishko
>            Assignee: Sergey Dzmitrovich
>
> 1) Create a new FaceletCammon.xhtml page open it in VPE
> 2) Rename parent tag html to ui:composition on the top of the page (see screenshot-1)
> 3) Rename html to ui:composition at the bottom of the page (screenshot-2)
> RESULT: NPE in log. Sometimes page isn't updated.
> java.lang.NullPointerException
> 	at org.jboss.tools.vpe.editor.selection.VpeSourceSelection.inParents(VpeSourceSelection.java:75)
> 	at org.jboss.tools.vpe.editor.selection.VpeSourceSelection.getSelNodes(VpeSourceSelection.java:64)
> 	at org.jboss.tools.vpe.editor.selection.VpeSourceSelection.<init>(VpeSourceSelection.java:37)
> 	at org.jboss.tools.vpe.editor.selection.VpeSourceSelectionBuilder.getSelection(VpeSourceSelectionBuilder.java:63)
> 	at org.jboss.tools.vpe.selbar.SelectionBar.selectionChanged(SelectionBar.java:280)
> 	at org.jboss.tools.vpe.selbar.NodeListener.notifyChanged(SelectionBar.java:521)
> 	at org.eclipse.wst.sse.core.internal.provisional.AbstractNotifier.notify(AbstractNotifier.java:201)
> 	at org.eclipse.wst.xml.core.internal.document.XMLModelNotifierImpl.notifyStructureChanged(XMLModelNotifierImpl.java:392)
> 	at org.eclipse.wst.xml.core.internal.document.XMLModelNotifierImpl.endChanging(XMLModelNotifierImpl.java:180)
> 	at org.eclipse.wst.xml.core.internal.document.DOMModelImpl.changedModel(DOMModelImpl.java:163)
> 	at org.eclipse.wst.sse.core.internal.model.AbstractStructuredModel$DocumentToModelNotifier.regionChanged(AbstractStructuredModel.java:164)
> 	at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument._fireEvent(BasicStructuredDocument.java:538)
> 	at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.fireStructuredDocumentEvent(BasicStructuredDocument.java:1177)
> 	at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.internalReplaceText(BasicStructuredDocument.java:1960)
> 	at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.replaceText(BasicStructuredDocument.java:2414)
> 	at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.replaceText(BasicStructuredDocument.java:2399)
> 	at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.access$2(JobSafeStructuredDocument.java:1)
> 	at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument$3.run(JobSafeStructuredDocument.java:137)
> 	at org.eclipse.wst.sse.ui.EditorExecutionContext.execute(EditorExecutionContext.java:147)
> 	at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.replaceText(JobSafeStructuredDocument.java:144)
> 	at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.replace(BasicStructuredDocument.java:2359)
> 	at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.access$0(JobSafeStructuredDocument.java:1)
> 	at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument$1.run(JobSafeStructuredDocument.java:88)
> 	at org.eclipse.wst.sse.ui.EditorExecutionContext.execute(EditorExecutionContext.java:147)
> 	at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.replace(JobSafeStructuredDocument.java:95)
> 	at org.eclipse.jface.text.DefaultDocumentAdapter.replaceTextRange(DefaultDocumentAdapter.java:248)
> 	at org.eclipse.swt.custom.StyledText.modifyContent(StyledText.java:6587)
> 	at org.eclipse.swt.custom.StyledText.sendKeyEvent(StyledText.java:7383)
> 	at org.eclipse.swt.custom.StyledText.doContent(StyledText.java:2441)
> 	at org.eclipse.swt.custom.StyledText.handleKey(StyledText.java:5773)
> 	at org.eclipse.swt.custom.StyledText.handleKeyDown(StyledText.java:5798)
> 	at org.eclipse.swt.custom.StyledText$7.handleEvent(StyledText.java:5500)
> 	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
> 	at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1040)
> 	at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1036)
> 	at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1360)
> 	at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4051)
> 	at org.eclipse.swt.widgets.Canvas.WM_CHAR(Canvas.java:346)
> 	at org.eclipse.swt.widgets.Control.windowProc(Control.java:3944)
> 	at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:342)
> 	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4589)
> 	at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
> 	at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2403)
> 	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3471)
> 	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2401)
> 	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2365)
> 	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2217)
> 	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
> 	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> 	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
> 	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
> 	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
> 	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
> 	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
> 	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
> 	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
> 	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> 	at java.lang.reflect.Method.invoke(Unknown Source)
> 	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
> 	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
> 	at org.eclipse.equinox.launcher.Main.run(Main.java:1287)
> P. S. The same happens if rename ui:composition to html

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list