Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-19390

Unable to add HTML5 Palette tag when JS/CSS references added from JQuery Mobile palette

XMLWordPrintable

      1. Create Hybrid Mobile project
      2. Add HTML page to www folder with this content
        <html>
        </html>
        
      3. Insert JS/CSS references from JQuery Mobile palette
      4. Insert Canvas tag from HTML5 palette inside <body> tag

      ERROR: These errors appear in Error log and no <canvas> tag is added

      !ENTRY org.eclipse.wst.sse.core 4 4 2015-02-17 21:42:06.661
      !MESSAGE Program Error: modelStateChanging was less than zero
      !STACK 0
      java.lang.IllegalStateException: Program Error: modelStateChanging was less than zero
      	at org.eclipse.wst.sse.core.internal.model.AbstractStructuredModel.internalModelChanged(AbstractStructuredModel.java:825)
      	at org.eclipse.wst.sse.core.internal.model.AbstractStructuredModel.changedModel(AbstractStructuredModel.java:361)
      	at org.eclipse.wst.xml.core.internal.document.DOMModelImpl.changedModel(DOMModelImpl.java:171)
      	at org.eclipse.wst.sse.core.internal.model.AbstractStructuredModel$DocumentToModelNotifier.noChange(AbstractStructuredModel.java:139)
      	at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument._fireEvent(BasicStructuredDocument.java:513)
      	at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.fireStructuredDocumentEvent(BasicStructuredDocument.java:1172)
      	at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.internalReplaceText(BasicStructuredDocument.java:1959)
      	at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.replaceText(BasicStructuredDocument.java:2423)
      	at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.replaceText(BasicStructuredDocument.java:2408)
      	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:141)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      	at org.eclipse.wst.sse.ui.EditorExecutionContext.execute(EditorExecutionContext.java:149)
      	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:2368)
      	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:103)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      	at org.eclipse.wst.sse.ui.EditorExecutionContext.execute(EditorExecutionContext.java:149)
      	at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.replace(JobSafeStructuredDocument.java:106)
      	at org.jboss.tools.common.model.ui.views.palette.PaletteInsertHelper.insertIntoEditorInternal(PaletteInsertHelper.java:166)
      	at org.jboss.tools.common.model.ui.views.palette.PaletteInsertHelper.insertIntoEditor(PaletteInsertHelper.java:224)
      	at org.jboss.tools.jst.web.ui.internal.editor.jspeditor.dnd.MobilePaletteInsertHelper.insertIntoEditor(MobilePaletteInsertHelper.java:482)
      	at org.jboss.tools.jst.web.ui.internal.editor.jspeditor.dnd.PaletteItemDropCommand.execute(PaletteItemDropCommand.java:87)
      	at org.jboss.tools.jst.web.ui.palette.html.wizard.AbstractNewHTMLWidgetWizard.doPerformFinish(AbstractNewHTMLWidgetWizard.java:143)
      	at org.jboss.tools.jst.web.ui.palette.html.wizard.AbstractNewHTMLWidgetWizard$1.run(AbstractNewHTMLWidgetWizard.java:127)
      	at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:463)
      	at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:371)
      	at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:1002)
      	at org.jboss.tools.jst.web.ui.palette.html.wizard.AbstractNewHTMLWidgetWizard.performFinish(AbstractNewHTMLWidgetWizard.java:131)
      	at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:799)
      	at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:429)
      	at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:619)
      	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4354)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
      	at org.eclipse.jface.window.Window.runEventLoop(Window.java:827)
      	at org.eclipse.jface.window.Window.open(Window.java:803)
      	at org.jboss.tools.common.model.ui.editors.dnd.DefaultDropCommand.execute(DefaultDropCommand.java:129)
      	at org.jboss.tools.jst.web.ui.palette.PaletteViewer.insertIntoEditor(PaletteViewer.java:115)
      	at org.jboss.tools.jst.web.ui.palette.PaletteViewer.setActiveTool(PaletteViewer.java:98)
      	at org.jboss.tools.jst.web.ui.palette.xpl.MobileToolEntryEditPart$2.actionPerformed(MobileToolEntryEditPart.java:398)
      	at org.eclipse.draw2d.Clickable.fireActionPerformed(Clickable.java:206)
      	at org.eclipse.draw2d.Clickable$1.actionPerformed(Clickable.java:175)
      	at org.eclipse.draw2d.ButtonModel.fireActionPerformed(ButtonModel.java:140)
      	at org.eclipse.draw2d.ToggleModel.fireActionPerformed(ToggleModel.java:27)
      	at org.eclipse.draw2d.ButtonModel$DefaultFiringBehavior.released(ButtonModel.java:506)
      	at org.eclipse.draw2d.ButtonModel.fireReleased(ButtonModel.java:179)
      	at org.eclipse.draw2d.ButtonModel.setPressed(ButtonModel.java:466)
      	at org.jboss.tools.jst.web.ui.palette.xpl.MobileToolEntryEditPart$OtherToggleButtonTracker.handleButtonUp(MobileToolEntryEditPart.java:178)
      	at org.eclipse.gef.tools.AbstractTool.mouseUp(AbstractTool.java:1200)
      	at org.eclipse.gef.tools.SelectionTool.mouseUp(SelectionTool.java:574)
      	at org.eclipse.gef.EditDomain.mouseUp(EditDomain.java:301)
      	at org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchMouseReleased(DomainEventDispatcher.java:380)
      	at org.eclipse.draw2d.LightweightSystem$EventHandler.mouseUp(LightweightSystem.java:548)
      	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:220)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4354)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
      	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
      	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:648)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:592)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
      	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:138)
      	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:483)
      	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
      	at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
      
      !ENTRY org.eclipse.wst.sse.core 4 4 2015-02-17 21:42:06.676
      !MESSAGE Program Error: invalid structured document event
      
      !ENTRY org.eclipse.wst.sse.core 4 2 2015-02-17 21:42:06.676
      !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.wst.sse.core".
      !STACK 0
      org.eclipse.core.runtime.AssertionFailedException: assertion failed: 
      	at org.eclipse.core.runtime.Assert.isTrue(Assert.java:110)
      	at org.eclipse.core.runtime.Assert.isTrue(Assert.java:96)
      	at org.eclipse.jface.text.DocumentEvent.<init>(DocumentEvent.java:62)
      	at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.internalReplaceText(BasicStructuredDocument.java:1911)
      	at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.replaceText(BasicStructuredDocument.java:2423)
      	at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.replaceText(BasicStructuredDocument.java:2408)
      	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:141)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      	at org.eclipse.wst.sse.ui.EditorExecutionContext.execute(EditorExecutionContext.java:149)
      	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:2368)
      	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:103)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      	at org.eclipse.wst.sse.ui.EditorExecutionContext.execute(EditorExecutionContext.java:149)
      	at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.replace(JobSafeStructuredDocument.java:106)
      	at org.jboss.tools.common.model.ui.views.palette.PaletteInsertHelper.insertIntoEditorInternal(PaletteInsertHelper.java:166)
      	at org.jboss.tools.common.model.ui.views.palette.PaletteInsertHelper.insertIntoEditor(PaletteInsertHelper.java:224)
      	at org.jboss.tools.jst.web.ui.internal.editor.jspeditor.dnd.MobilePaletteInsertHelper.insertIntoEditor(MobilePaletteInsertHelper.java:482)
      	at org.jboss.tools.jst.web.ui.internal.editor.jspeditor.dnd.PaletteItemDropCommand.execute(PaletteItemDropCommand.java:87)
      	at org.jboss.tools.jst.web.ui.palette.html.wizard.AbstractNewHTMLWidgetWizard.doPerformFinish(AbstractNewHTMLWidgetWizard.java:143)
      	at org.jboss.tools.jst.web.ui.palette.html.wizard.AbstractNewHTMLWidgetWizard$1.run(AbstractNewHTMLWidgetWizard.java:127)
      	at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:463)
      	at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:371)
      	at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:1002)
      	at org.jboss.tools.jst.web.ui.palette.html.wizard.AbstractNewHTMLWidgetWizard.performFinish(AbstractNewHTMLWidgetWizard.java:131)
      	at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:799)
      	at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:429)
      	at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:619)
      	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4354)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
      	at org.eclipse.jface.window.Window.runEventLoop(Window.java:827)
      	at org.eclipse.jface.window.Window.open(Window.java:803)
      	at org.jboss.tools.common.model.ui.editors.dnd.DefaultDropCommand.execute(DefaultDropCommand.java:129)
      	at org.jboss.tools.jst.web.ui.palette.PaletteViewer.insertIntoEditor(PaletteViewer.java:115)
      	at org.jboss.tools.jst.web.ui.palette.PaletteViewer.setActiveTool(PaletteViewer.java:98)
      	at org.jboss.tools.jst.web.ui.palette.xpl.MobileToolEntryEditPart$2.actionPerformed(MobileToolEntryEditPart.java:398)
      	at org.eclipse.draw2d.Clickable.fireActionPerformed(Clickable.java:206)
      	at org.eclipse.draw2d.Clickable$1.actionPerformed(Clickable.java:175)
      	at org.eclipse.draw2d.ButtonModel.fireActionPerformed(ButtonModel.java:140)
      	at org.eclipse.draw2d.ToggleModel.fireActionPerformed(ToggleModel.java:27)
      	at org.eclipse.draw2d.ButtonModel$DefaultFiringBehavior.released(ButtonModel.java:506)
      	at org.eclipse.draw2d.ButtonModel.fireReleased(ButtonModel.java:179)
      	at org.eclipse.draw2d.ButtonModel.setPressed(ButtonModel.java:466)
      	at org.jboss.tools.jst.web.ui.palette.xpl.MobileToolEntryEditPart$OtherToggleButtonTracker.handleButtonUp(MobileToolEntryEditPart.java:178)
      	at org.eclipse.gef.tools.AbstractTool.mouseUp(AbstractTool.java:1200)
      	at org.eclipse.gef.tools.SelectionTool.mouseUp(SelectionTool.java:574)
      	at org.eclipse.gef.EditDomain.mouseUp(EditDomain.java:301)
      	at org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchMouseReleased(DomainEventDispatcher.java:380)
      	at org.eclipse.draw2d.LightweightSystem$EventHandler.mouseUp(LightweightSystem.java:548)
      	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:220)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4354)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
      	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
      	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:648)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:592)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
      	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:138)
      	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:483)
      	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
      	at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
      

              alexeykazakov Alexey Kazakov
              alexeykazakov Alexey Kazakov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: