1 Reply Latest reply on Oct 20, 2008 12:45 PM by Max Rydahl Andersen

    NullPointerException in Hibernate Mapping Diagram

    Chuanbao Lu Newbie

      I got this exception with JBoss Tools 3.0 alpha1 and Seam 2.1.0

      java.lang.NullPointerException
       at org.jboss.tools.hibernate.ui.veditor.editors.model.OrmDiagram.getStoreFolderPath(OrmDiagram.java:107)
       at org.jboss.tools.hibernate.ui.veditor.editors.model.OrmDiagram.getStoreFilePath(OrmDiagram.java:111)
       at org.jboss.tools.hibernate.ui.veditor.editors.model.OrmDiagram.load(OrmDiagram.java:707)
       at org.jboss.tools.hibernate.ui.veditor.editors.model.OrmDiagram.<init>(OrmDiagram.java:102)
       at org.jboss.tools.hibernate.ui.veditor.editors.VisualEditor.setInput(VisualEditor.java:158)
       at org.eclipse.gef.ui.parts.GraphicalEditor.init(GraphicalEditor.java:318)
       at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:799)
       at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:643)
       at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:428)
       at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:594)
       at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:266)
       at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2820)
       at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2729)
       at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2721)
       at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2673)
       at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
       at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2668)
       at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2652)
       at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2635)
       at org.eclipse.ui.ide.IDE.openEditor(IDE.java:434)
       at org.jboss.tools.hibernate.ui.view.views.OpenDiagramActionDelegate.openEditor(OpenDiagramActionDelegate.java:104)
       at org.jboss.tools.hibernate.ui.view.views.OpenDiagramActionDelegate.run(OpenDiagramActionDelegate.java:58)
       at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
       at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
       at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
       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:1003)
       at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
       at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
       at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
       at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
       at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
       at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
       at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
       at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
       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:382)
       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)