2 Replies Latest reply on Dec 4, 2012 8:52 PM by bbrodt

    Strange error on JBDS startup

    bbrodt

      Hi all,

       

      I've been investigating a JBDS startup problem, which happens to occur only if the workbench was closed with a BPEL Designer window still open.

      The problem was originally reported here:

       

      https://issues.jboss.org/browse/JBDS-2404#comment-12739309

       

      Oddly, the stack trace shows a com.metamatrix.modeler.core.ModelerCoreRuntimeException just before the workbench crashes:

       

      com.metamatrix.modeler.core.ModelerCoreRuntimeException

          at com.metamatrix.modeler.internal.core.ModelEditorImpl.executeAsTransaction(ModelEditorImpl.java:558)

          at com.metamatrix.modeler.internal.core.ModelEditorImpl.getNewSiblingCommands(ModelEditorImpl.java:476)

          at com.metamatrix.modeler.ui.actions.ModelerActionService.getInsertSiblingMenu(ModelerActionService.java:733)

          at com.metamatrix.modeler.internal.ui.actions.NewSiblingMenu.getContributionManager(NewSiblingMenu.java:17)

          at com.metamatrix.modeler.internal.ui.actions.NewMenuContributionsManager.getContributionItems(NewMenuContributionsManager.java:32)

          at org.eclipse.ui.actions.CompoundContributionItem.getContributionItemsToFill(CompoundContributionItem.java:95)

          at org.eclipse.ui.actions.CompoundContributionItem.fill(CompoundContributionItem.java:70)

          at org.eclipse.ui.internal.menus.DynamicMenuContributionItem.fill(DynamicMenuContributionItem.java:197)

          at org.eclipse.jface.action.MenuManager.doItemFill(MenuManager.java:741)

          at org.eclipse.jface.action.MenuManager.update(MenuManager.java:822)

          at org.eclipse.jface.action.MenuManager.handleAboutToShow(MenuManager.java:474)

          at org.eclipse.jface.action.MenuManager.access$1(MenuManager.java:469)

          at org.eclipse.jface.action.MenuManager$2.menuShown(MenuManager.java:495)

          at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:247)

          at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

          at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)

          at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1282)

          at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1263)

          at org.eclipse.swt.widgets.Menu.gtk_show(Menu.java:669)

          at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1708)

          at org.eclipse.swt.widgets.Display.windowProc(Display.java:4402)

          at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)

          at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:2276)

          at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3207)

          at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803)

          at org.eclipse.ui.internal.Workbench$33.runWithException(Workbench.java:1600)

          at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)

          at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)

          at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)

          at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3563)

          at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3212)

          at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2609)

          at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)

          at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)

          at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

          at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)

          at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)

          at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)

          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:344)

          at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

          at java.lang.reflect.Method.invoke(Method.java:601)

          at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)

          at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)

          at org.eclipse.equinox.launcher.Main.run(Main.java:1410)

          at org.eclipse.equinox.launcher.Main.main(Main.java:1386)

      Caused by: java.lang.NullPointerException

          at com.metamatrix.modeler.internal.core.ModelEditorImpl$2.run(ModelEditorImpl.java:461)

          at com.metamatrix.modeler.internal.core.ModelEditorImpl.executeAsTransaction(ModelEditorImpl.java:550)

          ... 50 more

       

      Following this are a bunch of "widget disposed too early" errors which are obviously caused by eclipse views and windows trying to open while the workbench is crashing.

      So far I have only been able to reproduce this error on ubuntu 12.10 (32 and 64 bit) - there no errors on fedora or ms-windows.

       

      Can anyone provide some insight into what might be going on in ModelEditorImpl?

       

      Thanks!

      Bob

        • 1. Re: Strange error on JBDS startup
          blafond

          We ran into this at least one other time, but I'm having no luck tracking it down.

           

          Basically their is a context menu plugin.xml contribution for a menu manager that's trying to determine if the action is applicable BEFORE the core plugin (ModelEditorImpl & ModelerCore) are actually loaded.

           

          Should be a simple fix

           

          Barry

          • 2. Re: Strange error on JBDS startup
            bbrodt

            Thanks for the reply Barry. Let me know if you need more info about how to repro this error (basically just follow the steps outlined in the JIRA). I'm using a 32 bit ubuntu VM on a windows host machine and am able to recreate the problem every time.

             

            Shall I assign the JIRA to you or open a new one for Teiid?

             

            Cheers!

            Bob