- This topic has 10 replies, 3 voices, and was last updated 15 years, 6 months ago by Loyal Water.
-
AuthorPosts
-
catsWin!MemberSomething very frustrating with myEclipse UML tool….
I am able to create UML from Java, but the tool is not letting me do the reverse! That is, after I have selected the classes I want to create, I then click Finish, and nothing happens!
Please help since I need to have this working for our design team by end of next week!
Many thanks in advance for your help here.
Marc
Loyal WaterMemberMarc,
Can you go to MyEclipse > Installation Summary > Installation Details and paste the information here fro me.Do you have any messages being recorded under <workspace>/.metadata/.log file when the Java classes generation fails?
Can you switch to a new workspace and check if you are able to reproduce the issue. Can you paste a sample class here for me incase the problem persists.
Ralph MackMemberFor me, it isn’t as if something is failing or giving an error.
I click Finish and the dialog just sits there as if I hadn’t clicked.
It isn’t doing anything obvious, the GUI doesn’t freeze, I can hit Finish again or hit Cancel and it goes away.
It appeared as if it didn’t do anything. However, the .log file did show the following dump:
!ENTRY org.eclipse.ui 4 0 2009-03-30 14:10:38.362
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException
at com.genuitec.eclipse.uml.wizard.NewUMLJavaCodeGenWarning$1$2.compare(NewUMLJavaCodeGenWarning.java:104)
at java.util.TreeMap.compare(Unknown Source)
at java.util.TreeMap.put(Unknown Source)
at java.util.TreeSet.add(Unknown Source)
at com.genuitec.eclipse.uml.wizard.NewUMLJavaCodeGenWarning$1.getChildren(NewUMLJavaCodeGenWarning.java:126)
at org.eclipse.jface.viewers.AbstractTreeViewer.getRawChildren(AbstractTreeViewer.java:1352)
at org.eclipse.jface.viewers.TreeViewer.getRawChildren(TreeViewer.java:385)
at org.eclipse.jface.viewers.AbstractTreeViewer.getFilteredChildren(AbstractTreeViewer.java:636)
at org.eclipse.jface.viewers.AbstractTreeViewer.getSortedChildren(AbstractTreeViewer.java:602)
at org.eclipse.jface.viewers.AbstractTreeViewer$1.run(AbstractTreeViewer.java:799)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren(AbstractTreeViewer.java:776)
at org.eclipse.jface.viewers.TreeViewer.createChildren(TreeViewer.java:634)
at org.eclipse.jface.viewers.AbstractTreeViewer.internalExpandToLevel(AbstractTreeViewer.java:1702)
at org.eclipse.jface.viewers.AbstractTreeViewer.internalExpandToLevel(AbstractTreeViewer.java:1712)
at org.eclipse.jface.viewers.AbstractTreeViewer.expandToLevel(AbstractTreeViewer.java:1054)
at org.eclipse.jface.viewers.AbstractTreeViewer.expandToLevel(AbstractTreeViewer.java:1035)
at org.eclipse.jface.viewers.AbstractTreeViewer.expandAll(AbstractTreeViewer.java:1024)
at com.genuitec.eclipse.uml.wizard.NewUMLJavaCodeGenWarning.createCustomArea(NewUMLJavaCodeGenWarning.java:216)
at org.eclipse.jface.dialogs.MessageDialog.createDialogArea(MessageDialog.java:233)
at org.eclipse.jface.dialogs.IconAndMessageDialog.createDialogAndButtonArea(IconAndMessageDialog.java:212)
at org.eclipse.jface.dialogs.IconAndMessageDialog.createContents(IconAndMessageDialog.java:191)
at org.eclipse.jface.window.Window.create(Window.java:431)
at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
at org.eclipse.jface.window.Window.open(Window.java:790)
at com.genuitec.eclipse.uml.wizard.NewUMLJavaCodeGenWizard.performFinish(NewUMLJavaCodeGenWizard.java:170)
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 com.genuitec.eclipse.uml.action.GenerateJavaActionDelegate.basicRun(GenerateJavaActionDelegate.java:49)
at com.genuitec.eclipse.uml.action.GenerateJavaActionDelegate.run(GenerateJavaActionDelegate.java:37)
at com.genuitec.eclipse.core.ui.action.LicenseValidatingActionDelegate.runWithEvent(Unknown Source)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:241)
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: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)
Ralph MackMemberAnd lest I forget…
*** Date:
Monday, March 30, 2009 2:40:10 PM EDT** System properties:
OS=WindowsXP
OS version=5.1.0
Java version=1.5.0_11*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 7.1.1
Build id: 7.1.1-20090310*** Eclipse details:
MyEclipse Enterprise WorkbenchVersion: 7.1.1
Build id: 7.1.1-20090310Eclipse Platform
Version: 3.4.1.r341_v20080731-9I96EiDElYevwz-p1bP5z-NlAaP7vtX6Utotqsu
Build id: M20080911-1700Eclipse Java Development Tools
Version: 3.4.1.r341_v20080709-0800-7o7tEAfEF_U5qyUgrb2HAp539P97
Build id: M20080709-0800Eclipse Graphical Editing Framework GEF
Version: 3.4.1.v20080806-67718083A56B4H2A3213573
Build id: 200809101400Eclipse RCP
Version: 3.4.100.r341_v20080814-989JESIEdAciFYfkZZsBfSwQ2341
Build id: M20080703-0800Eclipse Plug-in Development Environment
Version: 3.4.1.r341_v20080731-7T7U0E9mlRIuGUYviF_VP
Build id: M20080703-0800Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-showsplash
-launcher
C:\Program Files\Genuitec\MyEclipse 7.0\myeclipse.exe
-name
Myeclipse
–launcher.library
C:\Program Files\Genuitec\MyEclipse 7.0\../Common\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.101.R34x_v20080731\eclipse_1115.dll
-startup
C:\Program Files\Genuitec\MyEclipse 7.0\../Common\plugins\org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar
-clean
-configuration
configuration
-vm
C:\Program Files\Genuitec\Common\binary\com.sun.java.jre.win32.x86_1.5.0.011\bin\client\jvm.dll
Loyal WaterMemberlupestro,
Can you please list the exact steps to help us reproduce this issue at our end,
Ralph MackMemberI created a Java project and then generated a UML 1 model in it.
It’s kind of hard to list the exact steps to build up a diagram with a pile of elements. I can send you the UMR.
However, once I have my diagram, I click the UML menu and select Generate Java.
For my Java output folder, it shows my project directory, but my src directory is one level down, so I edit the field to add /src to the end.
The source directory is, at this point, empty.
I then selected the classes to generate and pressed Finish. Nothing happened – except the exception I showed you.I reloaded my workspace this afternoon and did the same thing today and got a very different result.
I got a dialog listing several types with problems regarding parameters or attributes without a declared type.
Since by the end of the day yesterday, I’d spent a couple of hours entering by hand and continuing with what would have been generated for me, I just added another source directory called gen-src, so I can fix up the problems, generate from the UML into there, and continue to play with this.
I can only assume that whatever went wrong yesterday was something it was doing along the way to producing the “types with problems” dialog.
Does that help?
Ralph MackMemberHey! I just noticed that my class diagram is now missing – just the sequence diagram (and the model information for the classes) remains. You want this UMR?
Ralph MackMemberAfter correcting the issues in the model noted in the “types with problems” dialog, I was able to generate the Java classes.
Loyal WaterMemberAfter correcting the issues in the model noted in the “types with problems” dialog, I was able to generate the Java classes.
Glad to know you got the issue resolved. Thanks for letting us know.
Ralph MackMemberIn response to your request via email, Nipun, the “types with problems” dialog was a dialog that popped up if the analysis encountered types in the model which had inconsistencies or issues of some sort. That’s about all I can tell you about it. I haven’t used this feature since then because of issues like that class diagram disappearing.
Loyal WaterMemberThanks for getting back. Appreciate your help.
-
AuthorPosts