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

Embedd cartridge wizard: Exception in Eclipse log if you click into empty line in Log-Area

XMLWordPrintable

    • Hide
      1. ASSERT: make sure you have an OpenShift application running and listed in OpenShift Explorer
      2. EXEC: pick Edit Embedded Cartridges... from context menu and embed some cartridge
      3. ASSERT: creation log dialog shows up and reports something like this:
        Unable to render embedded object: File (creation-log) not found.
      4. EXEC: click into a line without text in the log area, not onto a link (clicking on a link works) or text (this works, too)

      Result:
      The following makes it to the Eclipse log:

      java.lang.IllegalArgumentException: Argument not valid
      	at org.eclipse.swt.SWT.error(SWT.java:4378)
      	at org.eclipse.swt.SWT.error(SWT.java:4312)
      	at org.eclipse.swt.SWT.error(SWT.java:4283)
      	at org.eclipse.swt.custom.StyledText.getOffsetAtLocation(StyledText.java:4399)
      	at org.jboss.tools.openshift.express.internal.ui.wizard.CreationLogDialog$1.handleEvent(CreationLogDialog.java:97)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1392)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3742)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3363)
      	at org.eclipse.jface.window.Window.runEventLoop(Window.java:826)
      	at org.eclipse.jface.window.Window.open(Window.java:802)
      	at org.jboss.tools.openshift.express.internal.ui.wizard.embed.EmbedCartridgeWizardPage$7.run(EmbedCartridgeWizardPage.java:270)
      	at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
      	at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
      	at org.eclipse.swt.widgets.Display.syncExec(Display.java:4491)
      	at org.jboss.tools.openshift.express.internal.ui.wizard.embed.EmbedCartridgeWizardPage.openLogDialog(EmbedCartridgeWizardPage.java:266)
      	at org.jboss.tools.openshift.express.internal.ui.wizard.embed.EmbedCartridgeWizardPage.processCartridges(EmbedCartridgeWizardPage.java:253)
      	at org.jboss.tools.openshift.express.internal.ui.wizard.embed.EmbedCartridgeWizard.performFinish(EmbedCartridgeWizard.java:34)
      	at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:827)
      	at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:432)
      	at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:628)
      	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.Widget.sendEvent(Widget.java:1392)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3742)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3363)
      	at org.eclipse.jface.window.Window.runEventLoop(Window.java:826)
      	at org.eclipse.jface.window.Window.open(Window.java:802)
      	at org.jboss.tools.common.ui.WizardUtils.openWizardDialog(WizardUtils.java:234)
      	at org.jboss.tools.openshift.express.internal.ui.action.EditCartridgesAction.run(EditCartridgesAction.java:45)
      	at org.eclipse.jface.action.Action.runWithEvent(Action.java:499)
      	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
      	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
      	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1392)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3742)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3363)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
      	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:138)
      	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:610)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
      	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
      	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      	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:354)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
      	at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
      
      
      Show
      ASSERT: make sure you have an OpenShift application running and listed in OpenShift Explorer EXEC: pick Edit Embedded Cartridges... from context menu and embed some cartridge ASSERT: creation log dialog shows up and reports something like this: Unable to render embedded object: File (creation-log) not found. EXEC: click into a line without text in the log area, not onto a link (clicking on a link works) or text (this works, too) Result: The following makes it to the Eclipse log: java.lang.IllegalArgumentException: Argument not valid at org.eclipse.swt.SWT.error(SWT.java:4378) at org.eclipse.swt.SWT.error(SWT.java:4312) at org.eclipse.swt.SWT.error(SWT.java:4283) at org.eclipse.swt.custom.StyledText.getOffsetAtLocation(StyledText.java:4399) at org.jboss.tools.openshift.express.internal.ui.wizard.CreationLogDialog$1.handleEvent(CreationLogDialog.java:97) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1392) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3742) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3363) at org.eclipse.jface.window.Window.runEventLoop(Window.java:826) at org.eclipse.jface.window.Window.open(Window.java:802) at org.jboss.tools.openshift.express.internal.ui.wizard.embed.EmbedCartridgeWizardPage$7.run(EmbedCartridgeWizardPage.java:270) at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180) at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150) at org.eclipse.swt.widgets.Display.syncExec(Display.java:4491) at org.jboss.tools.openshift.express.internal.ui.wizard.embed.EmbedCartridgeWizardPage.openLogDialog(EmbedCartridgeWizardPage.java:266) at org.jboss.tools.openshift.express.internal.ui.wizard.embed.EmbedCartridgeWizardPage.processCartridges(EmbedCartridgeWizardPage.java:253) at org.jboss.tools.openshift.express.internal.ui.wizard.embed.EmbedCartridgeWizard.performFinish(EmbedCartridgeWizard.java:34) at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:827) at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:432) at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:628) 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.Widget.sendEvent(Widget.java:1392) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3742) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3363) at org.eclipse.jface.window.Window.runEventLoop(Window.java:826) at org.eclipse.jface.window.Window.open(Window.java:802) at org.jboss.tools.common.ui.WizardUtils.openWizardDialog(WizardUtils.java:234) at org.jboss.tools.openshift.express.internal.ui.action.EditCartridgesAction.run(EditCartridgesAction.java:45) at org.eclipse.jface.action.Action.runWithEvent(Action.java:499) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1392) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3742) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3363) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:138) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:610) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) 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:354) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591) at org.eclipse.equinox.launcher.Main.run(Main.java:1450) at org.eclipse.equinox.launcher.Main.main(Main.java:1426)

          adietish@redhat.com André Dietisheim
          adietish@redhat.com André Dietisheim
          Votes:
          0 Vote for this issue
          Watchers:
          2 Start watching this issue

            Created:
            Updated:
            Resolved: