Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.9.0.RELEASE
    • Component/s: UI
    • Labels:

      Description

      As reported here, there is a NPE coming up when opening the Dashboard. Since usually opening the Dashboard works nicely, I guess this is related to some other problem in the installation or network connectivity, but we should take a look at why the NPE is being thrown and if we should avoid this somehow.

      http://forum.springsource.org/showthread.php?122246-Could-not-open-the-editor-An-unexpected-exception-was-thrown-NPE-(GridDataFactory)

      (X) Could not open the editor: An unexpected exception was thrown.

      java.lang.NullPointerException
      at org.eclipse.jface.layout.GridDataFactory.applyTo(G ridDataFactory.java:475)
      at com.springsource.sts.internal.ide.ui.editors.Dashb oardMainPage.createTutorialSectionIfNeeded(Dashboa rdMainPage.java:726)
      at com.springsource.sts.internal.ide.ui.editors.Dashb oardMainPage.createFormContent(DashboardMainPage.j ava:1320)
      at org.eclipse.ui.forms.editor.FormPage$1.run(FormPag e.java:152)
      at org.eclipse.swt.custom.BusyIndicator.showWhile(Bus yIndicator.java:70)
      at org.eclipse.ui.forms.editor.FormPage.createPartCon trol(FormPage.java:150)
      at org.eclipse.ui.forms.editor.FormEditor.pageChange( FormEditor.java:471)
      at org.eclipse.ui.part.MultiPageEditorPart.setActiveP age(MultiPageEditorPart.java:1067)
      at org.eclipse.ui.forms.editor.FormEditor.setActivePa ge(FormEditor.java:603)
      at org.eclipse.ui.forms.editor.SharedHeaderFormEditor .createPages(SharedHeaderFormEditor.java:103)
      at org.eclipse.ui.part.MultiPageEditorPart.createPart Control(MultiPageEditorPart.java:348)
      at org.eclipse.ui.internal.EditorReference.createPart Helper(EditorReference.java:670)
      at org.eclipse.ui.internal.EditorReference.createPart (EditorReference.java:465)
      at org.eclipse.ui.internal.WorkbenchPartReference.get Part(WorkbenchPartReference.java:595)
      at org.eclipse.ui.internal.PartPane.setVisible(PartPa ne.java:313)
      at org.eclipse.ui.internal.presentations.PresentableP art.setVisible(PresentablePart.java:180)
      at org.eclipse.ui.internal.presentations.util.Present ablePartFolder.select(PresentablePartFolder.java:2 70)
      at org.eclipse.ui.internal.presentations.util.LeftToR ightTabOrder.select(LeftToRightTabOrder.java:65)
      at org.eclipse.ui.internal.presentations.util.TabbedS tackPresentation.selectPart(TabbedStackPresentatio n.java:473)
      at org.eclipse.ui.internal.PartStack.refreshPresentat ionSelection(PartStack.java:1245)
      at org.eclipse.ui.internal.PartStack.setSelection(Par tStack.java:1198)
      at org.eclipse.ui.internal.PartStack.showPart(PartSta ck.java:1597)
      at org.eclipse.ui.internal.PartStack.add(PartStack.ja va:493)
      at org.eclipse.ui.internal.EditorStack.add(EditorStac k.java:103)
      at org.eclipse.ui.internal.PartStack.add(PartStack.ja va:479)
      at org.eclipse.ui.internal.EditorStack.add(EditorStac k.java:112)
      at org.eclipse.ui.internal.EditorSashContainer.addEdi tor(EditorSashContainer.java:63)
      at org.eclipse.ui.internal.EditorAreaHelper.addToLayo ut(EditorAreaHelper.java:225)
      at org.eclipse.ui.internal.EditorAreaHelper.addEditor (EditorAreaHelper.java:213)
      at org.eclipse.ui.internal.EditorManager.createEditor Tab(EditorManager.java:808)
      at org.eclipse.ui.internal.EditorManager.openEditorFr omDescriptor(EditorManager.java:707)
      at org.eclipse.ui.internal.EditorManager.openEditor(E ditorManager.java:666)
      at org.eclipse.ui.internal.WorkbenchPage.busyOpenEdit orBatched(WorkbenchPage.java:2942)
      at org.eclipse.ui.internal.WorkbenchPage.busyOpenEdit or(WorkbenchPage.java:2850)
      at org.eclipse.ui.internal.WorkbenchPage.access$11(Wo rkbenchPage.java:2842)
      at org.eclipse.ui.internal.WorkbenchPage$10.run(Workb enchPage.java:2793)
      at org.eclipse.swt.custom.BusyIndicator.showWhile(Bus yIndicator.java:70)
      at org.eclipse.ui.internal.WorkbenchPage.openEditor(W orkbenchPage.java:2789)
      at org.eclipse.ui.internal.WorkbenchPage.openEditor(W orkbenchPage.java:2773)
      at org.eclipse.ui.internal.WorkbenchPage.openEditor(W orkbenchPage.java:2756)
      at com.springsource.sts.internal.ide.ui.actions.ShowD ashboardPageAction.run(ShowDashboardPageAction.jav a:55)
      at org.eclipse.ui.internal.intro.impl.model.url.Intro URL$2.run(IntroURL.java:295)
      at org.eclipse.ui.internal.intro.impl.model.url.Intro URL.runAction(IntroURL.java:298)
      at org.eclipse.ui.internal.intro.impl.model.url.Intro URL.doExecute(IntroURL.java:193)
      at org.eclipse.ui.internal.intro.impl.model.url.Intro URL$1.run(IntroURL.java:144)
      at org.eclipse.swt.custom.BusyIndicator.showWhile(Bus yIndicator.java:70)
      at org.eclipse.ui.internal.intro.impl.model.url.Intro URL.execute(IntroURL.java:141)
      at org.eclipse.ui.internal.intro.impl.presentations.B rowserIntroPartLocationListener.changing(BrowserIn troPartLocationListener.java:130)
      at org.eclipse.swt.browser.IE$7.handleEvent(IE.java:4 99)
      at org.eclipse.swt.ole.win32.OleEventTable.sendEvent( OleEventTable.java:55)
      at org.eclipse.swt.ole.win32.OleEventSink.notifyListe ner(OleEventSink.java:145)
      at org.eclipse.swt.ole.win32.OleEventSink.Invoke(OleE ventSink.java:120)
      at org.eclipse.swt.ole.win32.OleEventSink.access$1(Ol eEventSink.java:97)
      at org.eclipse.swt.ole.win32.OleEventSink$1.method6(O leEventSink.java:71)
      at org.eclipse.swt.internal.ole.win32.COMObject.callb ack6(COMObject.java:119)
      at org.eclipse.swt.internal.win32.OS.DispatchMessageW (Native Method)
      at org.eclipse.swt.internal.win32.OS.DispatchMessage( OS.java:2531)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Di splay.java:3752)
      at org.eclipse.ui.internal.Workbench.runEventLoop(Wor kbench.java:2696)
      at org.eclipse.ui.internal.Workbench.runUI(Workbench. java:2660)
      at org.eclipse.ui.internal.Workbench.access$4(Workben ch.java:2494)
      at org.eclipse.ui.internal.Workbench$7.run(Workbench. java:674)
      at org.eclipse.core.databinding.observable.Realm.runW ithDefault(Realm.java:332)
      at org.eclipse.ui.internal.Workbench.createAndRunWork bench(Workbench.java:667)
      at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Pl atformUI.java:149)
      at org.eclipse.ui.internal.ide.application.IDEApplica tion.start(IDEApplication.java:123)
      at org.eclipse.equinox.internal.app.EclipseAppHandle. run(EclipseAppHandle.java:196)
      at org.eclipse.core.runtime.internal.adaptor.EclipseA ppLauncher.runApplication(EclipseAppLauncher.java: 110)
      at org.eclipse.core.runtime.internal.adaptor.EclipseA ppLauncher.start(EclipseAppLauncher.java:79)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.ru n(EclipseStarter.java:344)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.ru n(EclipseStarter.java:179)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.eclipse.equinox.launcher.Main.invokeFramework( Main.java:622)
      at org.eclipse.equinox.launcher.Main.basicRun(Main.ja va:577)
      at org.eclipse.equinox.launcher.Main.run(Main.java:14 10)
      at org.eclipse.equinox.launcher.Main.main(Main.java:1 386)

        Activity

        Hide
        Steffen Pingel added a comment -

        I have added a check to handle the case where creation of the tutorial section fails.

        Show
        Steffen Pingel added a comment - I have added a check to handle the case where creation of the tutorial section fails.

          People

          • Assignee:
            Steffen Pingel
            Reporter:
            Martin Lippert (c)
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              First Response Date: