- This topic has 8 replies, 3 voices, and was last updated 19 years, 3 months ago by Scott Anderson.
-
AuthorPosts
-
ganeshMemberCongratulations on M3!
UML generation from Java source is great. I was really looking forward to have this feature. But when I started playing with it, I found one serious problem with it. When I tried to regenerate the UML for same packages (in same UML repository) Eclipse crashed and it took over CPU completely. I had to terminate Eclipse externally.
Is this a bug/known bug or am I doing something wrong.
Thanks for the help.
Kapil KapreMember@ganesh wrote:
Congratulations on M3!
UML generation from Java source is great. I was really looking forward to have this feature. But when I started playing with it, I found one serious problem with it. When I tried to regenerate the UML for same packages (in same UML repository) Eclipse crashed and it took over CPU completely. I had to terminate Eclipse externally.
Is this a bug/known bug or am I doing something wrong.
Thanks for the help.
Ganesh,
Could you try adding the following parameters to your Eclipse shortcut?-vmargs -Xms128M -Xmx256M
ganeshMemberHi,
I just tried with suggested arguments (-Xms128M -Xmx256M) but it still crashes and I have to terminate Eclipse. (Before your suggestions I was using –Xmx512M)
The crash happens when I try to save the UMR. The Error message is as following:
“A problem occured while saving: “null”. Your file might be corrupted. Please file a bugreport at http://www.argouml.org”
ganeshMemberHere is the stack trace (including version of Eclipse, JVM, and Architecture)
!SESSION 2005-08-15 15:36:43.616 ———————————————–
eclipse.buildId=I20050627-1435
java.version=1.5.0_04
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -showlocation
Command-line arguments: -os win32 -ws win32 -arch x86 -showlocation!ENTRY com.genuitec.eclipse.uml 4 0 2005-08-15 15:39:11.611
!MESSAGE Exception thrown by the NSUML XMIWriter
!STACK 0
ru.novosoft.uml.xmi.IncompleteXMIException
at ru.novosoft.uml.xmi.XMIWriter.gen(XMIWriter.java:169)
at ru.novosoft.uml.xmi.XMIWriter.gen(XMIWriter.java:116)
at org.argouml.model.uml.XmiWriter.write(XmiWriter.java:69)
at org.argouml.persistence.ModelMemberFilePersister.save(ModelMemberFilePersister.java:160)
at org.argouml.persistence.ZargoFilePersister.doSave(ZargoFilePersister.java:200)
at org.argouml.persistence.AbstractFilePersister.save(AbstractFilePersister.java:180)
at org.argouml.uml.ui.ActionSaveProject.trySave(ActionSaveProject.java:185)
at org.argouml.uml.ui.ActionSaveProject.trySave(ActionSaveProject.java:122)
at com.genuitec.eclipse.uml.editor.UMLEditor$2.run(UMLEditor.java:440)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:346)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:291)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:447)
at com.genuitec.eclipse.uml.editor.UMLEditor.doSave(UMLEditor.java:428)
at org.eclipse.ui.internal.SaveableHelper$1.run(SaveableHelper.java:95)
at org.eclipse.ui.internal.SaveableHelper$2.run(SaveableHelper.java:116)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:346)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:291)
at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:624)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:621)
at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2134)
at org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:122)
at org.eclipse.ui.internal.SaveableHelper.savePart(SaveableHelper.java:100)
at org.eclipse.ui.internal.EditorManager.savePart(EditorManager.java:1149)
at org.eclipse.ui.internal.WorkbenchPage.savePart(WorkbenchPage.java:2673)
at org.eclipse.ui.internal.WorkbenchPage.saveEditor(WorkbenchPage.java:2686)
at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:69)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:996)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:441)
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)!ENTRY com.genuitec.eclipse.uml 4 0 2005-08-15 15:39:11.627
!MESSAGE Not contained in XMI: ru.novosoft.uml.foundation.core.MOperationImpl[Operation: TestDataCreator]!ENTRY com.genuitec.eclipse.uml 4 0 2005-08-15 15:39:11.627
!MESSAGE Exception occured during save attempt
!STACK 0
org.argouml.persistence.SaveException
at org.argouml.persistence.ModelMemberFilePersister.save(ModelMemberFilePersister.java:162)
at org.argouml.persistence.ZargoFilePersister.doSave(ZargoFilePersister.java:200)
at org.argouml.persistence.AbstractFilePersister.save(AbstractFilePersister.java:180)
at org.argouml.uml.ui.ActionSaveProject.trySave(ActionSaveProject.java:185)
at org.argouml.uml.ui.ActionSaveProject.trySave(ActionSaveProject.java:122)
at com.genuitec.eclipse.uml.editor.UMLEditor$2.run(UMLEditor.java:440)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:346)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:291)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:447)
at com.genuitec.eclipse.uml.editor.UMLEditor.doSave(UMLEditor.java:428)
at org.eclipse.ui.internal.SaveableHelper$1.run(SaveableHelper.java:95)
at org.eclipse.ui.internal.SaveableHelper$2.run(SaveableHelper.java:116)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:346)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:291)
at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:624)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:621)
at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2134)
at org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:122)
at org.eclipse.ui.internal.SaveableHelper.savePart(SaveableHelper.java:100)
at org.eclipse.ui.internal.EditorManager.savePart(EditorManager.java:1149)
at org.eclipse.ui.internal.WorkbenchPage.savePart(WorkbenchPage.java:2673)
at org.eclipse.ui.internal.WorkbenchPage.saveEditor(WorkbenchPage.java:2686)
at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:69)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:996)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:441)
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)
Caused by: ru.novosoft.uml.xmi.IncompleteXMIException
at org.argouml.model.uml.XmiWriter.write(XmiWriter.java:76)
at org.argouml.persistence.ModelMemberFilePersister.save(ModelMemberFilePersister.java:160)
… 47 more
Caused by:
ru.novosoft.uml.xmi.IncompleteXMIException
at org.argouml.model.uml.XmiWriter.write(XmiWriter.java:76)
at org.argouml.persistence.ModelMemberFilePersister.save(ModelMemberFilePersister.java:160)
at org.argouml.persistence.ZargoFilePersister.doSave(ZargoFilePersister.java:200)
at org.argouml.persistence.AbstractFilePersister.save(AbstractFilePersister.java:180)
at org.argouml.uml.ui.ActionSaveProject.trySave(ActionSaveProject.java:185)
at org.argouml.uml.ui.ActionSaveProject.trySave(ActionSaveProject.java:122)
at com.genuitec.eclipse.uml.editor.UMLEditor$2.run(UMLEditor.java:440)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:346)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:291)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:447)
at com.genuitec.eclipse.uml.editor.UMLEditor.doSave(UMLEditor.java:428)
at org.eclipse.ui.internal.SaveableHelper$1.run(SaveableHelper.java:95)
at org.eclipse.ui.internal.SaveableHelper$2.run(SaveableHelper.java:116)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:346)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:291)
at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:624)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:621)
at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2134)
at org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:122)
at org.eclipse.ui.internal.SaveableHelper.savePart(SaveableHelper.java:100)
at org.eclipse.ui.internal.EditorManager.savePart(EditorManager.java:1149)
at org.eclipse.ui.internal.WorkbenchPage.savePart(WorkbenchPage.java:2673)
at org.eclipse.ui.internal.WorkbenchPage.saveEditor(WorkbenchPage.java:2686)
at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:69)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:996)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:441)
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)
Kapil KapreMember@ganesh wrote:
Hi,
I just tried with suggested arguments (-Xms128M -Xmx256M) but it still crashes and I have to terminate Eclipse. (Before your suggestions I was using –Xmx512M)
The crash happens when I try to save the UMR. The Error message is as following:
“A problem occured while saving: “null”. Your file might be corrupted. Please file a bugreport at http://www.argouml.org”
Ganesh,
Does the crash occur after reverse engineering or while saving or both? Also we have Drag and Drop Rev Engg in place. You can drag and drop classes from Package explorer onto a UML Class Diagram. Could you try that?
ganeshMember@ganesh wrote:
The crash happens when I try to save the UMR. The Error message is as following:
The crash happens while <b>saving</b> the UMR file.
Also we have Drag and Drop Rev Engg in place. You can drag and drop classes from Package explorer onto a UML Class Diagram. Could you try that?
I just tried to do drag and drop but it still crashes.
Scott AndersonParticipantganesh,
How many files are you trying to reverse engineer when this occurs? Can you get it down to the smallest possible set that causes the issue and let us know how many that is? If it’s a particular file, can you provide us with an example of it?
ganeshMemberHi Scott,
I am trying to reverse engineer (<b>re-generate</b>) only two classes.
UML generation from Java source is great. I was really looking forward to have this feature. But when I started playing with it, I found one serious problem with it. When I tried to <b>regenerate</b> the UML ….
As mentioned in my original quote the first reverse engineering worked very well. It is just the re-generation of the same packages (in same UMR) causes the error.
– Ganesh
Scott AndersonParticipantGanesh,
Got it! I reproduced the problem from your description. The issue is when you drag and drop the same class into the same UMR file since it’s already part of the internal model. You can work around the problem by dragging existing classes from the Outline view onto the diagrams if they’re already part of the model, instead of the Package Explorer view. We’ll get it fixed for 4.0GA. Thanks for reporting it.
-
AuthorPosts