facebook

Major issues w/ UML modeling, especially with Java code gen.

  1. MyEclipse Archived
  2.  > 
  3. UML Development
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #261329 Reply

    dwiggit69
    Member

    5.01GA – Eclipse3.2 – J2EE1.4 – JRE1.5 – Windows XP Pro SP2

    First off, let me say that some of what I’ve been able to work with so far has been decent. The class diagram I’ve put together looks real purty. It’s mostly straight-forward, but there are learning curves as well. I’ve found that if I try to use the scroll bars on the right and bottom to view different areas of various windows (model window, outline, etc.), screwy things will happen to the display where only a very small chunk of what I’m looking at will change, but the rest of the display area gets “stuck” on stale display objects. Sometimes a click on the display area will cause it to refresh and show what’s actually supposed to be displayed. But this can be a real pain when you scroll too far and have to back track, or not far enough. Your productivity can really take a hit.

    That’s not the real big problem, though. I’ve spent a couple weeks trying to hash out a pretty sophisticated class diagram, and when I try to generate code from the model (select UML -> Generate Java…) I get a list of classes with check-boxes. After I select all of the classes and click on Finish, NOTHING HAPPENS!! 😡 I’ve tried creating a package and making it the owner of all of my classes, but I’ve only generated an empty package. I’ve tried to place all of my classes in the root of the model, hoping to rely on refactoring after the fact to correctly place the classes, but this doesn’t work either. I’ll click on <Finish> and nothing! I can do this all I want, but can only exit this window using the cancel button.

    Since this was the whole reason for me to use My Eclipse UML, and now it DOESN’T WORK, this is extremely frustrating! Any ideas as to what I might be doing wrong would be most helpful. I have a deadline breathing down my neck, so the sooner the better. This is potentially one of those things that might push me to ask for a return of my subscription fee, so please help!

    P.S. One nicety that you could consider for a future release would be an option to auto-create setter and getter operations for class attributes. If there is already a way to do this, it’s not straight forward, and I haven’t been able to figure it out yet. I therefore have had to create all of these operations manually in the model, and that has become pretty tedious.

    #261422 Reply

    Riyad Kalla
    Member

    I’ve found that if I try to use the scroll bars on the right and bottom to view different areas of various windows (model window, outline, etc.), screwy things will happen to the display where only a very small chunk of what I’m looking at will change, but the rest of the display area gets “stuck” on stale display objects. Sometimes a click on the display area will cause it to refresh and show what’s actually supposed to be displayed. But this can be a real pain when you scroll too far and have to back track, or not far enough. Your productivity can really take a hit.

    This is a result of 3D acceleration in Swing. You can most of the time work around it by upgrading your JDK that you use to run MyEclipse to the latest stable release (for example, 1.5.0_09 or 1.4.2_12). If that doesn’t work, we have a tip here that will disable the 3D acceleration and should avoid the corruption in most cases:
    http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-14343.html

    After I select all of the classes and click on Finish, NOTHING HAPPENS!! 😡

    Sounds like an exception may be occuring. Can you shut down MyEclipse, go to your (<workspace dir>\.metadata) directory and erase your .log file. Then start MyEclipse back up, open your diagram, and try and generate the Java from it, then check the newly create .log file and paste the contents here for me?

    One nicety that you could consider for a future release would be an option to auto-create setter and getter operations for class attributes.

    You are correct, this is an outstanding feature request that is a must-have in most cases.

    #261445 Reply

    dwiggit69
    Member

    …check the newly create .log file and paste the contents here for me?

    here you go – note that the java.version has been updated to 1.5.0_09:

    !SESSION 2006-11-07 14:01:46.855 ———————————————–
    eclipse.buildId=M20060921-0945
    java.version=1.5.0_09
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments: -os win32 -ws win32 -arch x86

    !ENTRY org.eclipse.ui 4 4 2006-11-07 14:03:13.123
    !MESSAGE Unhandled event loop exception

    !ENTRY org.eclipse.ui 4 0 2006-11-07 14:03:13.123
    !MESSAGE Unrecognized object [null]
    !STACK 0
    java.lang.IllegalArgumentException: Unrecognized object [null]
    at org.argouml.model.uml.NSUMLModelFacade.illegalArgument(NSUMLModelFacade.java:4568)
    at org.argouml.model.uml.NSUMLModelFacade.getName(NSUMLModelFacade.java:4224)
    at org.argouml.language.java.generator.GeneratorJava.generateImportType(GeneratorJava.java:440)
    at org.argouml.language.java.generator.GeneratorJava.generateImports(GeneratorJava.java:301)
    at org.argouml.language.java.generator.GeneratorJava.generateHeader(GeneratorJava.java:285)
    at org.argouml.language.java.generator.GeneratorJava.generateFile2(GeneratorJava.java:235)
    at com.genuitec.eclipse.uml.wizard.NewUMLJavaCodeGenWizard.performFinish(NewUMLJavaCodeGenWizard.java:196)
    at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:680)
    at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:355)
    at org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.java:660)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
    at org.eclipse.jface.window.Window.open(Window.java:796)
    at com.genuitec.eclipse.uml.action.GenerateJavaActionDelegate.basicRun(GenerateJavaActionDelegate.java:46)
    at com.genuitec.eclipse.uml.action.GenerateJavaActionDelegate.run(GenerateJavaActionDelegate.java:34)
    at com.genuitec.eclipse.core.ui.action.LicenseValidatingActionDelegate.runWithEvent(Unknown Source)
    at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:244)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:539)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
    at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
    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:336)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
    at org.eclipse.core.launcher.Main.run(Main.java:977)
    at org.eclipse.core.launcher.Main.main(Main.java:952)

    Please let me know if this provides enough info to figure out what’s going wrong.

    #261451 Reply

    Riyad Kalla
    Member

    Can you share this UMR file with me? If so, can you email it to support@genuitec.com ATTN Riyad, with a link to this thread so I know why I’m getting the file. That will help us determine exactly the cause.

    #263475 Reply

    paasiala
    Member

    @support-rkalla wrote:

    Can you share this UMR file with me? If so, can you email it to support@genuitec.com ATTN Riyad, with a link to this thread so I know why I’m getting the file. That will help us determine exactly the cause.

    I got the same stack trace. Could it be that the UML definition is missing something and you couldn’t generate legitimate Java code from the model in the first place. Maybe there should be an analysis phase telling what should be fixed in the model.

    This is just a guess.

    Regards,

    Pasi

    #263698 Reply

    Rob
    Participant

    Is anyone having this issue with 5.1?

    Pasi, Riyad might be interested in your UMR file.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Major issues w/ UML modeling, especially with Java code gen.

You must be logged in to post in the forum log in