- This topic has 9 replies, 2 voices, and was last updated 16 years, 7 months ago by
Loyal Water.
-
AuthorPosts
-
jrpeMemberI have created an UML2 repository with some sequence diagrams and one activity diagram. I saved the repository with the activity diagram visible. Today when I try to open the repository and the editor is initializing I get a pop-up “Problem Occured org.eclipse.swt.SWTException An error has occured. See the log for more details. Widget is disposed.”
When I click OK the editor closes … much work has gone into the diagrams so it would be great if I could open the repository. Please let me know what information I can send to help you fix this.Best regards
Jörgen PerssonDecember 4, 2008 at 10:44 am #291627
Loyal WaterMemberHi,
Can you try using the -clean command to try and fix this issue:-
https://www.genuitec.com/forums/topic/troubleshoot-using-the-clean-command-line-argument/Incase that doesn’t help, can you switch to a new workspace, create a new project and import your UML repository. Does it open up?
December 5, 2008 at 6:02 am #291664
jrpeMemberHi,
-clean did not work nor creating a new project in a new workspace. I get the same error.
December 5, 2008 at 6:27 am #291665
jrpeMemberBelow is the stack trace from .metadata\.log:
!ENTRY org.topcased.modeler 4 0 2008-12-05 13:27:00.841
!MESSAGE Error
!STACK 0
java.lang.ClassCastException: org.eclipse.emf.ecore.impl.EObjectImpl
at org.topcased.modeler.uml.activitydiagram.edit.ActivityDiagramEditPart.getHeaderDiagram(ActivityDiagramEditPart.java:65)
at org.topcased.modeler.edit.DiagramEditPart.refreshTextAndFont(DiagramEditPart.java:421)
at org.topcased.modeler.edit.DiagramEditPart.refreshVisuals(DiagramEditPart.java:389)
at org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractEditPart.java:676)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(AbstractGraphicalEditPart.java:571)
at org.topcased.modeler.edit.BaseEditPart.refresh(BaseEditPart.java:181)
at org.eclipse.gef.editparts.AbstractEditPart.addNotify(AbstractEditPart.java:235)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(AbstractGraphicalEditPart.java:219)
at org.eclipse.gef.editparts.AbstractEditPart.addChild(AbstractEditPart.java:198)
at org.eclipse.gef.editparts.SimpleRootEditPart.setContents(SimpleRootEditPart.java:101)
at org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents(AbstractEditPartViewer.java:601)
at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramGraphicalViewer.setContents(DiagramGraphicalViewer.java:378)
at org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents(AbstractEditPartViewer.java:610)
at org.topcased.modeler.editor.Modeler.changeActiveDiagram(Modeler.java:1172)
at org.topcased.modeler.editor.NavigationManager$ChangeActiveDiagramCommand.redo(NavigationManager.java:404)
at org.topcased.modeler.editor.NavigationManager$ChangeActiveDiagramCommand.execute(NavigationManager.java:387)
at org.topcased.modeler.commands.CommandStack.execute(CommandStack.java:165)
at org.topcased.modeler.editor.NavigationManager.set(NavigationManager.java:234)
at org.topcased.modeler.editor.Modeler.setActiveDiagram(Modeler.java:1031)
at org.topcased.modeler.editor.Modeler.setActiveDiagram(Modeler.java:997)
at org.topcased.modeler.editor.Modeler.restoreActiveDiagram(Modeler.java:1068)
at org.topcased.modeler.editor.Modeler.initializeGraphicalViewer(Modeler.java:935)
at org.topcased.modeler.editor.Modeler.createGraphicalViewer(Modeler.java:282)
at org.eclipse.gef.ui.parts.GraphicalEditorWithPalette.createPartControl(GraphicalEditorWithPalette.java:62)
at org.topcased.modeler.editor.Modeler.createPartControl(Modeler.java:1353)
at com.genuitec.eclipse.uml2.ui.editors.MEUML2Editor.createPartControl(MEUML2Editor.java:61)
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.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:2643)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:646)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:605)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:318)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:160)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:228)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:207)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:274)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:250)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:363)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$5.open(PackageExplorerPart.java:603)
at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:820)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:880)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:818)
at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1079)
at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1183)
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:263)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:257)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:297)
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)!ENTRY org.eclipse.ui.views.properties.tabbed 4 2 2008-12-05 13:27:03.685
!MESSAGE Problems occurred when invoking code from plug-in: “org.eclipse.ui.views.properties.tabbed”.
!STACK 0
org.eclipse.swt.SWTException: Widget is disposed
at org.eclipse.swt.SWT.error(SWT.java:3777)
at org.eclipse.swt.SWT.error(SWT.java:3695)
at org.eclipse.swt.SWT.error(SWT.java:3666)
at org.eclipse.swt.widgets.Widget.error(Widget.java:463)
at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:336)
at org.eclipse.swt.widgets.Text.setText(Text.java:1858)
at org.topcased.modeler.editor.properties.sections.graphics.FontPropertySection.refresh(FontPropertySection.java:116)
at org.topcased.modeler.editor.properties.sections.graphics.FontPropertySection.handleModelChanged(FontPropertySection.java:173)
at org.topcased.modeler.editor.properties.sections.graphics.AbstractGraphicPropertySection$1.notifyChanged(AbstractGraphicPropertySection.java:65)
at org.eclipse.emf.common.notify.impl.BasicNotifierImpl$EAdapterList.didRemove(BasicNotifierImpl.java:95)
at org.eclipse.emf.common.util.BasicEList.remove(BasicEList.java:953)
at org.eclipse.emf.common.notify.impl.BasicNotifierImpl$EAdapterList.remove(BasicNotifierImpl.java:157)
at org.eclipse.emf.common.util.BasicEList.remove(BasicEList.java:898)
at org.eclipse.emf.common.notify.impl.BasicNotifierImpl$EAdapterList.remove(BasicNotifierImpl.java:150)
at org.eclipse.emf.ecore.util.EContentAdapter.removeAdapter(EContentAdapter.java:357)
at org.eclipse.emf.ecore.util.EContentAdapter.unsetTarget(EContentAdapter.java:316)
at org.eclipse.emf.ecore.util.EContentAdapter.unsetTarget(EContentAdapter.java:287)
at org.eclipse.emf.ecore.util.EContentAdapter.unsetTarget(EContentAdapter.java:266)
at org.eclipse.emf.common.notify.impl.BasicNotifierImpl$EAdapterList.didRemove(BasicNotifierImpl.java:99)
at org.eclipse.emf.common.util.BasicEList.remove(BasicEList.java:953)
at org.eclipse.emf.common.notify.impl.BasicNotifierImpl$EAdapterList.remove(BasicNotifierImpl.java:157)
at org.eclipse.emf.common.util.BasicEList.remove(BasicEList.java:898)
at org.eclipse.emf.common.notify.impl.BasicNotifierImpl$EAdapterList.remove(BasicNotifierImpl.java:150)
at org.eclipse.emf.ecore.util.EContentAdapter.removeAdapter(EContentAdapter.java:357)
at org.eclipse.emf.ecore.util.EContentAdapter.unsetTarget(EContentAdapter.java:316)
at org.eclipse.emf.ecore.util.EContentAdapter.unsetTarget(EContentAdapter.java:287)
at org.eclipse.emf.ecore.util.EContentAdapter.unsetTarget(EContentAdapter.java:266)
at org.eclipse.emf.common.notify.impl.BasicNotifierImpl$EAdapterList.didRemove(BasicNotifierImpl.java:99)
at org.eclipse.emf.common.util.BasicEList.remove(BasicEList.java:953)
at org.eclipse.emf.common.notify.impl.BasicNotifierImpl$EAdapterList.remove(BasicNotifierImpl.java:157)
at org.eclipse.emf.common.util.BasicEList.remove(BasicEList.java:898)
at org.eclipse.emf.common.notify.impl.BasicNotifierImpl$EAdapterList.remove(BasicNotifierImpl.java:150)
at org.topcased.modeler.editor.properties.sections.graphics.AbstractGraphicPropertySection.removeListener(AbstractGraphicPropertySection.java:133)
at org.topcased.modeler.editor.properties.sections.graphics.AbstractGraphicPropertySection.aboutToBeHidden(AbstractGraphicPropertySection.java:123)
at org.eclipse.ui.views.properties.tabbed.TabContents$4.run(TabContents.java:161)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:880)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.ui.views.properties.tabbed.TabContents.aboutToBeHidden(TabContents.java:164)
at org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage.disposeContributor(TabbedPropertySheetPage.java:424)
at org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage.dispose(TabbedPropertySheetPage.java:453)
at org.eclipse.ui.views.properties.PropertySheet.doDestroyPage(PropertySheet.java:139)
at org.eclipse.ui.part.PageBookView.removePage(PageBookView.java:844)
at org.eclipse.ui.part.PageBookView.partClosed(PageBookView.java:774)
at org.eclipse.ui.internal.PartListenerList$3.run(PartListenerList.java:102)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:880)
at org.eclipse.ui.internal.PartListenerList.fireEvent(PartListenerList.java:57)
at org.eclipse.ui.internal.PartListenerList.firePartClosed(PartListenerList.java:100)
at org.eclipse.ui.internal.PartService.firePartClosed(PartService.java:222)
at org.eclipse.ui.internal.WorkbenchPagePartList.firePartClosed(WorkbenchPagePartList.java:38)
at org.eclipse.ui.internal.PartList.partClosed(PartList.java:255)
at org.eclipse.ui.internal.PartList.removePart(PartList.java:176)
at org.eclipse.ui.internal.WorkbenchPage.disposePart(WorkbenchPage.java:1681)
at org.eclipse.ui.internal.WorkbenchPage.handleDeferredEvents(WorkbenchPage.java:1389)
at org.eclipse.ui.internal.WorkbenchPage.deferUpdates(WorkbenchPage.java:1373)
at org.eclipse.ui.internal.WorkbenchPage.closeEditors(WorkbenchPage.java:1347)
at org.eclipse.ui.internal.WorkbenchPage.closeEditor(WorkbenchPage.java:1411)
at org.topcased.modeler.editor.Modeler$5.run(Modeler.java:1341)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3800)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3425)
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)December 5, 2008 at 11:21 am #291686
Loyal WaterMemberJörgen,
Sounds like the file has gone corrupt. I’m afraid you might have to recreate the diagram. Did the IDE shut down abruptly before you ran into this issue?December 8, 2008 at 1:18 am #291732
jrpeMemberNo it did not 🙁
December 8, 2008 at 1:20 am #291733
jrpeMemberWhere in the file does it say that the activity diagram should be displayed?
If I “remove” that flag I may be able to open the file …December 8, 2008 at 1:28 am #291734
jrpeMemberAnother question:
When I open the umldi file I found references like:
<model href=”file:/C:/DOCUME~1/jp/LOCALS~1/Temp/Temp53112uml#_qb8akM37EdqwVrslYOdUDA”/>These temp files, are they temporary? What if they where lost? I would like to commit the repository to Subversion and
be confident that everything works when I check it out later (maybe my temp files have been deleted or someone else
checks it out on another computer).December 8, 2008 at 1:48 am #291735
jrpeMemberI have created a new repository and in it I see:
<model href=”Test.uml#_w8IxIM37EdqwVrslYOdUDA”/>
It references the local <repository name>.uml (GREAT!! I can commit this one to Subversion) file … why does my other repository reference temp files?
December 9, 2008 at 11:48 am #291799
Loyal WaterMemberjrpe,
Can you *pm* me the uml files. You will have to send me the .uml and .umldi files. I’ll ask the dev team to look into this issue. -
AuthorPosts