- This topic has 14 replies, 7 voices, and was last updated 18 years, 8 months ago by bostone.
-
AuthorPosts
-
DavidMemberI created a UML Model Repository and then several activity diagrams in it. An eclipse crash caused me to try to reopen my diagrams and I get the following error when I try to open the *.umr files:
Unable to create this part due to an internal error. Reason for the failure: An exception was thrown during initialization
The details button shows the following stack trace:
java.lang.NullPointerException
at com.genuitec.eclipse.uml.editor.UMLEditor.init(UMLEditor.java:494)
at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:773)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:572)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:365)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:552)
at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:214)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2325)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2258)
at org.eclipse.ui.internal.WorkbenchPage.access$9(WorkbenchPage.java:2250)
at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2236)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2231)
at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:279)
at org.eclipse.ui.actions.OpenWithMenu.access$0(OpenWithMenu.java:271)
at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMenu.java:178)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
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.core.launcher.Main.invokeFramework(Main.java:334)
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
Oh yea, is there anyway to retrieve my diagrams?
Riyad KallaMemberI am checking with the UML team about this.
support-michaelKeymasterMyEclipse creates a backup of the UMR file each time it is saved. Look in the same directory as the corrupted umr file for a file with the same and the .umr~ suffix. Remove the ‘~’ in the suffix and try opening it. If you don’t see the *.umr~ in your Eclpse packageExplorer try refreshing the project and see if it shows up.
Any idea how the UMR was corrupted when Eclipse crashed, e.g., E crashed while saving UMR?
Note the UMR file is actually a zip file. Thereofre you should be able to open it with winzip or any other zip tool if it is not corrupted.
DavidMemberI was able to rename the backup file by removing the ‘~’ and it opened just fine. Thank you, I was afraid I had lost all that work. 😯
I am not really sure why Eclipse crashed, but it did it twice yesterday. Are there any startup parameters I need to use? I am running Eclipse 3.1 on Winblows XP SP2 with 2G of RAM.
Thank you again for your help,
David
Riyad KallaMemberAhh yes, if you are not using startup parameters then the crashes are most likely due to out of memory exceptions. please add:
-vmargs -Xmx256m
to your command line args in your shortcut used to launch MyEclispe and/or Eclipse.
jorilMemberHi!
@support-michael wrote:
Note the UMR file is actually a zip file. Thereofre you should be able to open it with winzip or any other zip tool if it is not corrupted.
I’m sorry, is there a way to use UML diagrams in MyEclipse *without* UMRs? I prefer to handle different diagrams in different files, so it’s easier to track changes with Subversion..
Thanks in advance 🙂
Riyad KallaMemberjoril,
Currently this is not supported, they are all stored in the repository files.
jorilMember@support-rkalla wrote:
Currently this is not supported, they are all stored in the repository files.
I see.. Ehr, by “currently” do you mean it’s going to be supported? Is it in the developer’s TODO? 🙂
Thanks again 🙂
Riyad KallaMemberIt is not on our todo list as we are focusing on fleshing out the UML functionality first and foremost. We have looked into text-only storage of the UMR files unfortunately they get huge (umr is a compressed file) so this is still a possibility for us to look into down the road.
jorilMember@support-rkalla wrote:
It is not on our todo list as we are focusing on fleshing out the UML functionality first and foremost.
Understood, thanks for the explanation 🙂
TiraMemberI have the same issue: after an eclipse crash, I’m not able to open the umr file. I tried to rename the ~ file and open it, but no luck, I got the same error. Is there a way to “repair” the umr file?
I have the following configuration:
JDK:
1.5.0_3
Eclipse:
Version: 3.2.0
Build id: I20051102-1600
MyEclipse:
4.1.M3
Riyad KallaMemberTira,
Unfortunately at this time there is not a way to repair the UMR files. Although given your setup to try and avoid crashes I might suggest stable releases of Eclipse/MyEclipse?
bostoneMemberI was modifying the diagram, when the whole thing hung and I had to kill the process and reopen myeclipse.
I’m using latest stable code on eclipse 3.1 (Windows XP)
I bumped memory to 512Mb as you suggested earlier but it still generates the following error. And I wasn’t able to recover from it using a backup file. I have almost a week invested into this it just means that I cannot rely on your tool in the future if I’m not able to recover
<pre><code>
java.lang.IllegalArgumentException:
at org.eclipse.core.internal.runtime.Assert.isLegal(Assert.java:58)
at org.eclipse.core.internal.runtime.Assert.isLegal(Assert.java:42)
at org.eclipse.core.runtime.Status.setMessage(Status.java:174)
at org.eclipse.core.runtime.Status.<init>(Status.java:81)
at org.eclipse.ui.WorkbenchException.<init>(WorkbenchException.java:38)
at org.eclipse.ui.PartInitException.<init>(PartInitException.java:36)
at com.genuitec.eclipse.uml.editor.UMLEditor.init(UMLEditor.java:763)
at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:778)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:596)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:384)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:552)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:283)
at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:126)
at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:269)
at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:391)
at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1102)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1051)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1256)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:442)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:109)
at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:60)
at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:212)
at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:202)
at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:758)
at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:665)
at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:628)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2360)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2295)
at org.eclipse.ui.internal.WorkbenchPage.access$9(WorkbenchPage.java:2287)
at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2273)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2268)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2249)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:371)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:334)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:251)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:131)
at org.eclipse.jdt.internal.ui.actions.OpenActionUtil.open(OpenActionUtil.java:49)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:169)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:153)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:222)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:198)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:296)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:869)
at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:741)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:148)
at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:739)
at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:968)
at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1067)
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:243)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:238)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:277)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3125)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2758)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
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.core.launcher.Main.invokeFramework(Main.java:334)
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
</code></pre>
Kapil KapreMember@bostone wrote:
I was modifying the diagram, when the whole thing hung and I had to kill the process and reopen myeclipse.
Do you remember which action/diagram etc you were working on we can try and replicate the issue our side?
@bostone wrote:I’m using latest stable code on eclipse 3.1 (Windows XP)
I bumped memory to 512Mb as you suggested earlier but it still generates the following error. And I wasn’t able to recover from it using a backup file. I have almost a week invested into this it just means that I cannot rely on your tool in the future if I’m not able to recoverIf you can send the file in to support@genuitec.com w/ ATTN: Kapil as the subj we can try and recover it for you ASAP. Sorry for the trouble.
Kapil
bostoneMemberThanks guys, the recovered diagram worked just fine. It seems that trouble is related to UML–>AutoLayout function. I’ve had numerous occurences when upon selecting this option, whole eclipse hangs and I have to kill the process and then restart it. Fortnately, it doesn’t end up in corrupted file all the time.
-
AuthorPosts