[jbosstools-issues] [JBoss JIRA] Created: (JBIDE-3920) Unhandled event loop exception then CSS class isn't completed with }

Yura Zhishko (JIRA) jira-events at lists.jboss.org
Wed Mar 4 14:36:36 EST 2009


Unhandled event loop exception then CSS class isn't completed with }
--------------------------------------------------------------------

                 Key: JBIDE-3920
                 URL: https://jira.jboss.org/jira/browse/JBIDE-3920
             Project: Tools (JBoss Tools)
          Issue Type: Bug
          Components: Visual Page Editor core
    Affects Versions: 3.0.0.GA
            Reporter: Yura Zhishko
            Assignee: Maxim Areshkau


1) Create CSS class in CSS file:
css {
2) Call CSS dialog for current class but do not switch to preview tab
3) Set some properties
4) Press OK or Apply button

RESULT: Unhandled event loop exception:
java.lang.NullPointerException
	at org.eclipse.wst.css.core.internal.formatter.CompoundRegion.getType(CompoundRegion.java:33)
	at org.eclipse.wst.css.core.internal.formatter.AbstractCSSSourceFormatter.appendDelimBefore(AbstractCSSSourceFormatter.java:78)
	at org.eclipse.wst.css.core.internal.formatter.StyleDeclarationFormatter.formatBefore(StyleDeclarationFormatter.java:212)
	at org.eclipse.wst.css.core.internal.formatter.AbstractCSSSourceFormatter.formatBefore(AbstractCSSSourceFormatter.java:457)
	at org.eclipse.wst.css.core.internal.document.CSSModelUpdater.getSpaceBefore(CSSModelUpdater.java:364)
	at org.eclipse.wst.css.core.internal.document.CSSModelUpdater.defaultInserted(CSSModelUpdater.java:288)
	at org.eclipse.wst.css.core.internal.document.CSSModelUpdater.childInserted(CSSModelUpdater.java:150)
	at org.eclipse.wst.css.core.internal.document.CSSModelUpdater.childReplaced(CSSModelUpdater.java:245)
	at org.eclipse.wst.css.core.internal.document.CSSModelImpl.childReplaced(CSSModelImpl.java:145)
	at org.eclipse.wst.css.core.internal.document.CSSNodeImpl.notifyChildReplaced(CSSNodeImpl.java:309)
	at org.eclipse.wst.css.core.internal.document.CSSNodeImpl.insertBefore(CSSNodeImpl.java:277)
	at org.eclipse.wst.css.core.internal.document.CSSNodeImpl.appendChild(CSSNodeImpl.java:67)
	at org.eclipse.wst.css.core.internal.document.CSSStyleDeclarationImpl.setProperty(CSSStyleDeclarationImpl.java:261)
	at org.jboss.tools.jst.jsp.outline.cssdialog.common.CSSModel.setCSS(CSSModel.java:286)
	at org.jboss.tools.jst.jsp.outline.cssdialog.CSSClassDialog.saveChanges(CSSClassDialog.java:807)
	at org.jboss.tools.jst.jsp.outline.cssdialog.CSSClassDialog$6.widgetSelected(CSSClassDialog.java:558)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
	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.Display.runDeferredEvents(Display.java:3823)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
	at org.eclipse.jface.window.Window.open(Window.java:801)
	at org.jboss.tools.jst.jsp.outline.cssdialog.OpenCSSDialogActionDelegate.run(OpenCSSDialogActionDelegate.java:64)
	at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
	at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:185)
	at org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execute(LegacyHandlerWrapper.java:109)
	at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
	at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
	at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
	at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:472)
	at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:824)
	at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:882)
	at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:571)
	at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:512)
	at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:127)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1184)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1002)
	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:1352)
	at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3894)
	at org.eclipse.swt.widgets.Canvas.WM_CHAR(Canvas.java:341)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:3787)
	at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:337)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4528)
	at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2371)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3420)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
	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:193)
	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:386)
	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:549)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1236)

-- 
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