facebook

Reverse Engineering UML diagrams Error

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

    Mukesh Patel
    Member

    I am getting exceptions catpured below when I try to reverse engineering UML and also a pop-up window with the following message:

    creation of element failed
    
    see error log for more details
    

    I am also not able to drag individual classes into the uml project.

    Any thoughts on what may be wrong.

    Thanks

    mpatel

    
    ---------------------------------------------
    *** Date: Thu Aug 03 14:56:40 PDT 2006
    
    *** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.4.2_08
    
    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    
    Version: 5.0 Milestone 2
    Build id: 20060703-5.0-M2
    
    *** Eclipse details:
    Eclipse SDK
    
    Version: 3.2.0
    Build id: M20060629-1905
    
    Eclipse Platform
    
    Version: 3.2.0.v20060609m-AgOexn6hlEUsvBO
    Build id: M20060629-1905
    
    Eclipse RCP
    
    Version: 3.2.0.v20060609m-SVDNgVrNoh-MeGG
    Build id: M20060629-1905
    
    Eclipse Java Development Tools
    
    Version: 3.2.0.v20060609m-F7snq1fxia-Z4XP
    Build id: M20060629-1905
    
    Eclipse Plug-in Development Environment
    
    Version: 3.2.0.v20060609m------6zXJJzJzJq
    Build id: M20060629-1905
    
    Eclipse Project SDK
    
    Version: 3.2.0.v20060609m-GNq6oQq-7es-Y81
    Build id: M20060629-1905
    
    Eclipse Graphical Editing Framework
    
    Version: 3.2.0.v20060626
    Build id: 20060627-0816
    
    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -launcher
    C:\eclipse\eclipse.exe
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    9cc_c8
    -vm
    C:\bea815\jdk142_08\bin\javaw.exe
    
    -------------------------------------------------------------------
    
    !ENTRY com.genuitec.eclipse.uml 1 0 2006-08-03 11:11:34.187
    !MESSAGE 
    !STACK 0
    java.lang.reflect.InvocationTargetException
        at java.awt.EventQueue.invokeAndWait(EventQueue.java:834)
        at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1225)
        at com.genuitec.eclipse.uml.dndreveng.DnDRevEngHelper$3.run(DnDRevEngHelper.java:193)
        at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
    Caused by: java.lang.NullPointerException
        at com.genuitec.eclipse.uml.dndreveng.DnDRevEngHelper.parseFile(DnDRevEngHelper.java:398)
        at com.genuitec.eclipse.uml.dndreveng.DnDRevEngHelper.doImport(DnDRevEngHelper.java:327)
        at com.genuitec.eclipse.uml.dndreveng.DnDRevEngHelper.access$1(DnDRevEngHelper.java:287)
        at com.genuitec.eclipse.uml.dndreveng.DnDRevEngHelper$4.run(DnDRevEngHelper.java:199)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:171)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    Root exception:
    java.lang.NullPointerException
        at com.genuitec.eclipse.uml.dndreveng.DnDRevEngHelper.parseFile(DnDRevEngHelper.java:398)
        at com.genuitec.eclipse.uml.dndreveng.DnDRevEngHelper.doImport(DnDRevEngHelper.java:327)
        at com.genuitec.eclipse.uml.dndreveng.DnDRevEngHelper.access$1(DnDRevEngHelper.java:287)
        at com.genuitec.eclipse.uml.dndreveng.DnDRevEngHelper$4.run(DnDRevEngHelper.java:199)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:171)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    
    !ENTRY org.eclipse.jdt.ui 4 10001 2006-08-03 11:23:49.640
    !MESSAGE Internal Error
    !STACK 0
    java.lang.reflect.InvocationTargetException
        at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:381)
        at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313)
        at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:851)
        at com.genuitec.eclipse.core.portability.NewElementWizard.performFinish(NewElementWizard.java:112)
        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.UMLImportSourcesActionDelegate$2.run(UMLImportSourcesActionDelegate.java:72)
        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
        at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
        at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3325)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971)
        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(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        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)
    Caused by: java.lang.NullPointerException
        at com.genuitec.eclipse.uml.wizard.ReverseEngineerJavaWizard.parseFile(ReverseEngineerJavaWizard.java:337)
        at com.genuitec.eclipse.uml.wizard.ReverseEngineerJavaWizard.doImport(ReverseEngineerJavaWizard.java:177)
        at com.genuitec.eclipse.uml.wizard.ReverseEngineerJavaWizard.finishPage(ReverseEngineerJavaWizard.java:114)
        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:720)
        at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1737)
        at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4023)
        at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:87)
        at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:369)
        ... 36 more
    Root exception:
    java.lang.NullPointerException
        at com.genuitec.eclipse.uml.wizard.ReverseEngineerJavaWizard.parseFile(ReverseEngineerJavaWizard.java:337)
        at com.genuitec.eclipse.uml.wizard.ReverseEngineerJavaWizard.doImport(ReverseEngineerJavaWizard.java:177)
        at com.genuitec.eclipse.uml.wizard.ReverseEngineerJavaWizard.finishPage(ReverseEngineerJavaWizard.java:114)
        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:720)
        at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1737)
        at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4023)
        at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:87)
        at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:369)
        at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313)
        at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:851)
        at com.genuitec.eclipse.core.portability.NewElementWizard.performFinish(NewElementWizard.java:112)
        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.UMLImportSourcesActionDelegate$2.run(UMLImportSourcesActionDelegate.java:72)
        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
        at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
        at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3325)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971)
        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(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        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)
    
    
    #256145 Reply

    Riyad Kalla
    Member

    Is it every file you try and reverse engineer or just some? Can you post an example file that causes the problem?

    #257627 Reply

    hprange
    Member

    I’ve seen something related with this problem here, but not found a solution. I catch this exception when I’m trying to reverse engineering a class created by Visual Editor.

    
    java.lang.reflect.InvocationTargetException
    at java.awt.EventQueue.invokeAndWait(Unknown Source)
    at javax.swing.SwingUtilities.invokeAndWait(Unknown Source)
    at com.genuitec.eclipse.uml.dndreveng.DnDRevEngHelper$3.run(DnDRevEngHelper.java:193)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
    Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -21
    at java.lang.String.substring(Unknown Source)
    at com.genuitec.eclipse.uml.dndreveng.DnDRevEngHelper.parseFile(DnDRevEngHelper.java:490)
    at com.genuitec.eclipse.uml.dndreveng.DnDRevEngHelper.doImport(DnDRevEngHelper.java:327)
    at com.genuitec.eclipse.uml.dndreveng.DnDRevEngHelper.access$1(DnDRevEngHelper.java:287)
    at com.genuitec.eclipse.uml.dndreveng.DnDRevEngHelper$4.run(DnDRevEngHelper.java:199)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    Root exception:
    java.lang.StringIndexOutOfBoundsException: String index out of range: -21
    at java.lang.String.substring(Unknown Source)
    at com.genuitec.eclipse.uml.dndreveng.DnDRevEngHelper.parseFile(DnDRevEngHelper.java:490)
    at com.genuitec.eclipse.uml.dndreveng.DnDRevEngHelper.doImport(DnDRevEngHelper.java:327)
    at com.genuitec.eclipse.uml.dndreveng.DnDRevEngHelper.access$1(DnDRevEngHelper.java:287)
    at com.genuitec.eclipse.uml.dndreveng.DnDRevEngHelper$4.run(DnDRevEngHelper.java:199)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    

    *** Date: Fri Aug 25 12:41:32 BRT 2006

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

    *** MyEclipse details:
    MyEclipse Enterprise Workbench

    Version: 5.0 GA
    Build id: 20060805-5.0-GA

    *** Eclipse details:
    Eclipse SDK

    Version: 3.2.0
    Build id: M20060629-1905

    Eclipse Graphical Editing Framework

    Version: 3.2.0.v20060626
    Build id: 20060627-0816

    Eclipse Platform

    Version: 3.2.0.v20060609m-AgOexn6hlEUsvBO
    Build id: M20060629-1905

    Eclipse RCP

    Version: 3.2.0.v20060609m-SVDNgVrNoh-MeGG
    Build id: M20060629-1905

    Eclipse Java Development Tools

    Version: 3.2.0.v20060609m-F7snq1fxia-Z4XP
    Build id: M20060629-1905

    Eclipse Plug-in Development Environment

    Version: 3.2.0.v20060609m——6zXJJzJzJq
    Build id: M20060629-1905

    Eclipse Project SDK

    Version: 3.2.0.v20060609m-GNq6oQq-7es-Y81
    Build id: M20060629-1905

    Eclipse Graphical Editing Framework

    Version: 3.2.0.v20060626
    Build id: 20060627-0816

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -launcher
    C:\Program Files\eclipse32\eclipse.exe
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    94c_7c
    -clean
    -vm
    C:\WINDOWS\system32\javaw.exe

    #264639 Reply

    dmacdaddy
    Member

    Any updates on this? I am having the same problem and would like to know if it was an issue with MyEclipse or an error on my part…

    #264654 Reply

    Riyad Kalla
    Member

    dmacdaddy,
    Can you give us a bit more information? What kind of code are you trying to rev-eng? Are you using drag and drop or the wizard? Are you getting an exception in your log file? What are your install details (MyEclipse > Installation Summary > Installation Details)?

    #266173 Reply

    Tim Brown
    Member

    I am having the same problem. It bombs with that error on the first class it comes accross that uses generics.
    Does this version of the UML support Java 5?

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Reverse Engineering UML diagrams Error

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