facebook

Can’t forward engineer array parameters

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

    jdilley
    Member

    I’m running into a problem when I try to forward engineer from a class diagram if a method has an array as a parameter. Specifically, I have methods which take an int[] as an input parameter. When I try to generate Java Code from the diagram I receive the error below.

    I have tried it from mulitple workspaces and mulitple diagrams. I have tried designing the class in the diagram and then generating Java Code. I have tried creating the class first and then reverse engineering into the diagram (to make sure I was using the proper syntax in the diagram), deleting the source class, and then generating Java code from the diagram. I have tried it from Eclipse 3.2.2 with MyEclipse 5.5.1, as well as Eclipse 3.3 with MyEclipse 6.0.0 M1. I get the exception below everytime. All help is appreciated, as I can’t properly model my application without allowing for input arrays.

    !ENTRY org.eclipse.ui 4 0 2007-07-18 09:52:06.276
    !MESSAGE Unhandled event loop exception
    !STACK 0
    java.lang.IllegalArgumentException
    at org.eclipse.jdt.core.dom.SimpleName.setIdentifier(SimpleName.java:190)
    at org.eclipse.jdt.core.dom.AST.newSimpleName(AST.java:1269)
    at org.eclipse.jdt.core.dom.AST.newName(AST.java:1389)
    at org.argouml.language.java.generator.GeneratorJava2.generateParameter(GeneratorJava2.java:826)
    at org.argouml.language.java.generator.GeneratorJava2.generateOperation(GeneratorJava2.java:673)
    at org.argouml.language.java.generator.GeneratorJava2.generateClassifier(GeneratorJava2.java:579)
    at org.argouml.language.java.generator.GeneratorJava2.generateFile2(GeneratorJava2.java:944)
    at com.genuitec.eclipse.uml.wizard.NewUMLJavaCodeGenWizard.performFinish(NewUMLJavaCodeGenWizard.java:198)
    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:616)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
    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: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:246)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:545)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
    at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
    at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
    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:585)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1169)

    Below is my installation summary :

    *** Date:
    Wednesday, July 18, 2007 10:02:39 AM CDT

    ** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.5.0_11

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 5.5.1 GA
    Build id: 20070521-5.5.1-GA

    *** Eclipse details:
    Eclipse SDK

    Version: 3.2.2
    Build id: M20070212-1330

    Eclipse Platform

    Version: 3.2.2.r322_v20070119-RQghndJN8IM0MsK
    Build id: M20070212-1330

    Eclipse Java Development Tools

    Version: 3.2.2.r322_v20070104-R4CR0Znkvtfjv9-
    Build id: M20070212-1330

    Eclipse Project SDK

    Version: 3.2.2.r322_v20070104-dCGKm0Ln38lm-8s
    Build id: M20070212-1330

    Eclipse RCP

    Version: 3.2.2.r322_v20070104-8pcviKVqd8J7C1U
    Build id: M20070212-1330

    Eclipse Plug-in Development Environment

    Version: 3.2.1.r321_v20060823-6vYLLdQ3Nk8DrFG
    Build id: M20070212-1330

    Eclipse Graphical Editing Framework

    Version: 3.2.2.v20070208
    Build id: 20070208-1315

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -launcher
    C:\Program Files\eclipse.2\eclipse\eclipse.exe
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    b7c_718
    -setworkspace
    -refresh
    -showlocation
    -pluginCustomization
    N:\IT\Third Party\eclipse\preferences\autoLoadPreferences3.2.epf
    -vm
    C:\eclipseJDK\bin\javaw.exe

    #272916 Reply

    Loyal Water
    Member

    I was able to reproduce this issue at my end as well. Im gonna file this as a bug for my dev team. Thanks for reporting this.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Can’t forward engineer array parameters

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