- This topic has 5 replies, 2 voices, and was last updated 14 years, 2 months ago by support-shalini.
-
AuthorPosts
-
echavezMemberHi,
I created a “superb” Class-diagramm within MyEclipse For Spring (latest version, 30-days Trial-version) , and now I wanted to let generate the java code.
When I choose the “Generate java code…” option, nothing happens !?!??!I’m using MacOSX 10.6.
Thank you very much.
Esteban.
support-shaliniMemberEsteban,
Can you give some more information on this?
1. Can you copy paste your installation details from MyEclipse > Installation Summary > Installation Details?
2. Can you look for any relevant errors logged in workspace dir > .metadata > .log?
echavezMemberThanks, Shalini for your answer.
What I see in the .log file is the following Exception:
Is there something (plug-in !?) missing ?— Esteban.
!ENTRY org.eclipse.ui 4 0 2010-08-17 22:23:12.055
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.ClassCastException: org.eclipse.uml2.uml.internal.impl.PackageImpl cannot be cast to org.eclipse.uml2.uml.Model
at com.genuitec.eclipse.uml2.ui.wizards.pages.NewUML2JavaCodeGenWizardPage.getInputModel(NewUML2JavaCodeGenWizardPage.java:261)
at com.genuitec.eclipse.uml2.ui.wizards.pages.NewUML2JavaCodeGenWizardPage.createControl(NewUML2JavaCodeGenWizardPage.java:127)
at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:170)
at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:675)
at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:549)
at org.eclipse.jface.window.Window.create(Window.java:431)
at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
at com.genuitec.eclipse.uml2.ui.popup.actions.UML2JavaAction.run(UML2JavaAction.java:41)
at com.genuitec.eclipse.uml2.ui.actions.GenJavaAction.initGeneration(GenJavaAction.java:53)
at com.genuitec.eclipse.uml2.ui.actions.GenJavaAction.run(GenJavaAction.java:46)
at com.genuitec.eclipse.uml2.ui.actions.GenJavaAction.execute(GenJavaAction.java:64)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:294)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241)
at org.eclipse.ui.menus.CommandContributionItem.handleWidgetSelection(CommandContributionItem.java:770)
at org.eclipse.ui.menus.CommandContributionItem.access$10(CommandContributionItem.java:756)
at org.eclipse.ui.menus.CommandContributionItem$5.handleEvent(CommandContributionItem.java:746)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1598)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1622)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1607)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1396)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3484)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3068)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
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:194)
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:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
!SESSION 2010-08-17 22:27:48.041 ———————————————–
eclipse.buildId=unknown
java.version=1.6.0_20
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86, WS=carbon, NL=de_DE
Framework arguments: -keyring /Users/ecb/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws carbon -arch x86 -keyring /Users/ecb/.eclipse_keyring -consoleLog -showlocation
support-shaliniMemberEsteban,
Can you try using the -clean as mentioned in the link below –
https://www.genuitec.com/forums/topic/troubleshoot-using-the-clean-command-line-argument/
Also, Can you switch to a new workspace and check if the issue persists?
echavezMemberShalini,
I restarted eclipse (-clean) but same result. But after switching to a new workspace, the code generation dialog appeared (- the one where I choose the classes to generate). This didn’t appear before. Seems that its going on…
Now the question : how can I export my diagram from the previous workspace into the new one. I don’t would like to create anything again from scratch…Thanks,
Esteban.
support-shaliniMemberEsteban,
I am afraid you cannot export the diagram from the IDE. However, you can copy the .uml and .umldi files into your new workspace project. -
AuthorPosts