TheProjecter / ontouml

Automatically exported from code.google.com/p/ontouml
0 stars 0 forks source link

"Could not open the editor: An unexpected exception was thrown." #28

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Follow Wiki : Creating an OntoUML Model in the Standalone OntoUML Editor, 
Step 1
2. Step 2: Click on File → New → OntoUML Diagram 
3. Don't change the Diagram (or do change for that matter) the default file 
name  (\\<servername>\Data\Users\brandtp\Home\default.ontouml_diagram) and 
click Next
4. Don't change the Domain Model filename and click Finish
5. "Could not open the editor: An unexpected exception was thrown."

DETAILS:
java.lang.NullPointerException
    at org.eclipse.jface.resource.URLImageDescriptor.getFilePath(URLImageDescriptor.java:138)
    at org.eclipse.jface.resource.URLImageDescriptor.createImage(URLImageDescriptor.java:157)
    at org.eclipse.jface.resource.ImageDescriptor.createImage(ImageDescriptor.java:227)
    at org.eclipse.jface.resource.ImageDescriptor.createImage(ImageDescriptor.java:205)
    at org.eclipse.emf.edit.ui.provider.ExtendedImageRegistry.getImage(ExtendedImageRegistry.java:153)
    at org.eclipse.emf.edit.ui.provider.ExtendedImageRegistry.getImageDescriptor(ExtendedImageRegistry.java:181)
    at OntoUML.diagram.part.OntoUMLDiagramEditorPlugin.getItemImageDescriptor(OntoUMLDiagramEditorPlugin.java:122)
    at OntoUML.diagram.providers.OntoUMLElementTypes.getProvidedImageDescriptor(OntoUMLElementTypes.java:281)
    at OntoUML.diagram.providers.OntoUMLElementTypes.getImageDescriptor(OntoUMLElementTypes.java:297)
    at OntoUML.diagram.providers.OntoUMLElementTypes.getImageDescriptor(OntoUMLElementTypes.java:331)
    at OntoUML.diagram.part.OntoUMLPaletteFactory.createCategory1CreationTool(OntoUMLPaletteFactory.java:99)
    at OntoUML.diagram.part.OntoUMLPaletteFactory.createOntoUMLClasses1Group(OntoUMLPaletteFactory.java:35)
    at OntoUML.diagram.part.OntoUMLPaletteFactory.fillPalette(OntoUMLPaletteFactory.java:23)
    at OntoUML.diagram.part.OntoUMLDiagramEditor.createPaletteRoot(OntoUMLDiagramEditor.java:78)
    at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditorWithFlyOutPalette.createPaletteViewerProvider(DiagramEditorWithFlyOutPalette.java:152)
    at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditorWithFlyOutPalette.getPaletteViewerProvider(DiagramEditorWithFlyOutPalette.java:432)
    at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditorWithFlyOutPalette.createPartControl(DiagramEditorWithFlyOutPalette.java:327)
    at org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.DiagramDocumentEditor.createPartControl(DiagramDocumentEditor.java:1459)
    at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:661)
    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.PartPane.setVisible(PartPane.java:306)
    at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180)
    at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270)
    at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
    at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473)
    at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1256)
    at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1209)
    at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1608)
    at org.eclipse.ui.internal.PartStack.add(PartStack.java:499)
    at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
    at org.eclipse.ui.internal.PartStack.add(PartStack.java:485)
    at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112)
    at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:63)
    at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:217)
    at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:207)
    at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:779)
    at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:678)
    at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:639)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2817)
    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 OntoUML.diagram.part.OntoUMLDiagramEditorUtil.openDiagram(OntoUMLDiagramEditorUtil.java:82)
    at OntoUML.diagram.part.OntoUMLCreationWizard$2.run(OntoUMLCreationWizard.java:148)
    at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
    at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
    at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:934)
    at OntoUML.diagram.part.OntoUMLCreationWizard.performFinish(OntoUMLCreationWizard.java:160)
    at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:742)
    at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:373)
    at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
    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.jface.window.Window.runEventLoop(Window.java:825)
    at org.eclipse.jface.window.Window.open(Window.java:801)
    at OntoUML.diagram.application.DiagramEditorActionBarAdvisor$NewDiagramAction.run(DiagramEditorActionBarAdvisor.java:319)
    at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
    at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
    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:2384)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at OntoUML.diagram.application.OntoUMLApplication.run(OntoUMLApplication.java:19)
    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.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:574)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:195)
    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:386)
    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)

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
ontoUML: 1.2.0 win32win32x86 (i.e. not _64)
Windows 7: SP1 (x64) Build 6.1.7601

Please provide any additional information below.

Original issue reported on code.google.com by paul.bra...@gmail.com on 25 May 2012 at 10:36

GoogleCodeExporter commented 9 years ago
Just noticed (naturally AFTER issueing this defect report) that starting the 
application as Administrator there is no problem....
Apparently there are some authentication issues.

Original comment by paul.bra...@gmail.com on 25 May 2012 at 10:40