facebook

Reverse Engineer UML from Java: Creation of element failed

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

    I get the following error when I tried doing Reverse Engineer UML from Java:

    Creation of element failed
    handle: Parameter: return or type: Package: List

    ===============================================================================================
    I’m using:
    MyEclipse Enterprise Workbench

    Version: 8.5
    Build id: 8.5-20100319

    ===============================================================================================
    Installation Summary:
    *** Date:
    Monday, July 12, 2010 4:35:13 PM PDT

    ** System properties:
    OS=Linux
    OS version=2.6.32
    Java version=1.6.0_13

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 8.5
    Build id: 8.5-20100319

    *** Eclipse details:
    MyEclipse Enterprise Workbench

    Version: 8.5
    Build id: 8.5-20100319

    Eclipse startup command=-os
    linux
    -ws
    gtk
    -arch
    x86_64
    -showsplash
    -launcher
    /home/tonyd/Genuitec/MyEclipse 8.x Latest/myeclipse
    -name
    Myeclipse
    –launcher.library
    /home/tonyd/Genuitec/MyEclipse 8.x Latest//../Common/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.0.200.v20090519/eclipse_1206.so
    -startup
    /home/tonyd/Genuitec/MyEclipse 8.x Latest//../Common/plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
    -exitdata
    a6f8024
    -install
    /home/tonyd/Genuitec/MyEclipse 8.x Latest
    -configuration
    /home/tonyd/Genuitec/MyEclipse 8.x Latest/configuration
    -vm
    /home/tonyd/Genuitec/Common/binary/com.sun.java.jdk.linux.x86_64_1.6.0.013/bin/java

    ===============================================================================================
    Error log:

    java.lang.reflect.InvocationTargetException
    at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:477)
    at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
    at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:944)
    at com.genuitec.eclipse.core.portability.NewElementWizard.performFinish(NewElementWizard.java:112)
    at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:752)
    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:1176)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3493)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3112)
    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.UMLImportSourcesActionDelegate$1$1.run(UMLImportSourcesActionDelegate.java:72)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3468)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3115)
    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)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
    Caused by: java.lang.IllegalArgumentException: handle: Parameter: return or type: Package: List
    at org.argouml.model.uml.CoreHelperImpl.setType(CoreHelperImpl.java:3289)
    at org.argouml.uml.reveng.java.Modeller.addOperation(Modeller.java:1544)
    at com.genuitec.eclipse.uml.wizard.ReverseEngineerJavaWizard.parseFile(ReverseEngineerJavaWizard.java:452)
    at com.genuitec.eclipse.uml.wizard.ReverseEngineerJavaWizard.doImport(ReverseEngineerJavaWizard.java:179)
    at com.genuitec.eclipse.uml.wizard.ReverseEngineerJavaWizard.finishPage(ReverseEngineerJavaWizard.java:116)
    at com.genuitec.eclipse.core.portability.NewElementWizard$2.run(NewElementWizard.java:105)
    at org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:39)
    at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:728)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
    at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4694)
    at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:106)
    at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
    … 39 more
    Root exception:
    java.lang.IllegalArgumentException: handle: Parameter: return or type: Package: List
    at org.argouml.model.uml.CoreHelperImpl.setType(CoreHelperImpl.java:3289)
    at org.argouml.uml.reveng.java.Modeller.addOperation(Modeller.java:1544)
    at com.genuitec.eclipse.uml.wizard.ReverseEngineerJavaWizard.parseFile(ReverseEngineerJavaWizard.java:452)
    at com.genuitec.eclipse.uml.wizard.ReverseEngineerJavaWizard.doImport(ReverseEngineerJavaWizard.java:179)
    at com.genuitec.eclipse.uml.wizard.ReverseEngineerJavaWizard.finishPage(ReverseEngineerJavaWizard.java:116)
    at com.genuitec.eclipse.core.portability.NewElementWizard$2.run(NewElementWizard.java:105)
    at org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:39)
    at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:728)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
    at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4694)
    at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:106)
    at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
    at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
    at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:944)
    at com.genuitec.eclipse.core.portability.NewElementWizard.performFinish(NewElementWizard.java:112)
    at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:752)
    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:1176)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3493)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3112)
    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.UMLImportSourcesActionDelegate$1$1.run(UMLImportSourcesActionDelegate.java:72)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3468)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3115)
    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)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1287)

    #309774 Reply

    Ram
    Member

    MyEclipseUser2010,

    I am unable to reproduce this issue using a class that contains a list.
    Are you getting the same error using both UML1&UML2 models.
    Can you share a sample project which replicates this issue.

    You can send a mail to support@genuitec.com. Please add ATTN:RAM in the subject and refer to this thread.

    #316852 Reply

    I am getting the same error on Windows XP, running MyEclipse 9. Is there a solution yet?

    MyEclipse Enterprise Workbench

    Version: 9.0
    Build id: 9.0-20110318

    #316853 Reply

    @edwardmaccarthy wrote:

    I am getting the same error on Windows XP, running MyEclipse 9. Is there a solution yet?

    MyEclipse Enterprise Workbench

    Version: 9.0
    Build id: 9.0-20110318

    When I tried to close the file that I had half created, I got an error message in a dialog box:
    “Error saving: null”

    #316854 Reply

    @edwardmaccarthy wrote:

    @edwardmaccarthy wrote:

    I am getting the same error on Windows XP, running MyEclipse 9. Is there a solution yet?

    MyEclipse Enterprise Workbench

    Version: 9.0
    Build id: 9.0-20110318

    When I tried to close the file that I had half created, I got an error message in a dialog box:
    “Error saving: null”

    Full text of the error message is:
    “A problem occurred while saving: “null”.
    Your file might be corrupted.
    Please file a bug report at http://www.myeclipseide.com

    #316855 Reply

    @edwardmaccarthy wrote:

    @edwardmaccarthy wrote:

    @edwardmaccarthy wrote:

    I am getting the same error on Windows XP, running MyEclipse 9. Is there a solution yet?

    MyEclipse Enterprise Workbench

    Version: 9.0
    Build id: 9.0-20110318

    When I tried to close the file that I had half created, I got an error message in a dialog box:
    “Error saving: null”

    Full text of the error message is:
    A problem occurred while saving: “null”.
    Your file might be corrupted.
    Please file a bug report at http://www.myeclipseide.com

    Funny, it works after a restart of MyEclipse. Please let me know if there is a fix available.

    #316858 Reply

    support-swapna
    Moderator

    edwardmaccarthy,

    Sorry that you ran into this issue.

    1) Can you give detail steps right from creating a java class to the point where you got the null pointer exception for me to be able to replicate it at my end ?

    2) Clear the contents of the .log file which is located at <workspace dir>/.metadata/.log. Replicate the issue and copy paste the errors logged in the .log file here.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Reverse Engineer UML from Java: Creation of element failed

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