facebook

NPE in UML reverse engineering feature

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

    Mike Cico
    Member

    I’ve been trying to reverse engineer our app, and am getting an NPE (in the root cause exception). I’ve tried just selecting individual files, but I always get the same error.

    I recenly upgraded to 4.1.1, started the IDE with a -clean switch as is usually suggested, and still get this error.

    We don’t use JSE 5.0 language features in this code.

    !SESSION 2006-03-12 13:17:40.41 ————————————————
    eclipse.buildId=I20050627-1435
    java.version=1.5.0_06
    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 -clean

    !ENTRY com.genuitec.eclipse.core 1 0 2006-03-12 13:19:25.853
    !MESSAGE Unable to locate .myeclipse.properties file

    !ENTRY org.eclipse.jdt.ui 4 10001 2006-03-12 13:20:13.772
    !MESSAGE Internal Error
    !STACK 0
    java.lang.reflect.InvocationTargetException
    at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:357)
    at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:291)
    at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:830)
    at com.genuitec.eclipse.core.portability.NewElementWizard.performFinish(NewElementWizard.java:112)
    at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:676)
    at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:349)
    at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:556)
    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:843)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:809)
    at org.eclipse.jface.window.Window.open(Window.java:787)
    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:3057)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2716)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
    at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
    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:334)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
    at org.eclipse.core.launcher.Main.run(Main.java:973)
    at org.eclipse.core.launcher.Main.main(Main.java:948)
    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:718)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1719)
    at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:3760)
    at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:87)
    at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:346)
    … 34 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:718)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1719)
    at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:3760)
    at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:87)
    at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:346)
    at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:291)
    at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:830)
    at com.genuitec.eclipse.core.portability.NewElementWizard.performFinish(NewElementWizard.java:112)
    at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:676)
    at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:349)
    at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:556)
    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:843)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:809)
    at org.eclipse.jface.window.Window.open(Window.java:787)
    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:3057)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2716)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
    at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
    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:334)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
    at org.eclipse.core.launcher.Main.run(Main.java:973)
    at org.eclipse.core.launcher.Main.main(Main.java:948)

    #248421 Reply

    Kapil Kapre
    Member

    mcico,
    Could you send us the smallest subset of files that shows this problem? If you cannot could you try to create general outline of the file so that we can replicate the issue.
    (FYI: Email support@genuitec.com w/ ATTN: Kapil as subj)

    #248428 Reply

    Mike Cico
    Member

    I just emailed you a file. It is basically just an interface of constants.

    #248451 Reply

    Kapil Kapre
    Member

    Michael,
    I recieved your file, but wasnt able to replicate. Q: Is the java file part of a java project? If not , try creating a java project and dumping the files in a source folder.

    #248472 Reply

    Mike Cico
    Member

    It is part of a Java project, in fact I had created an earlier repository and was initially attempting to update it. I then created a new one and tried to populate that, but I get the same error.

    #248477 Reply

    Kapil Kapre
    Member

    Thats strange, It should work right away. Could you try with a new workspace and see if that sorts it out? ( I assume you know anyway but just to get it out of the way, the java file(s) should be a in an eclipse source folder)

    #248645 Reply

    brownmik
    Member

    FYI, I’m getting the exact same NPE error, right down to the line number (ModalContext.java:357).

    Mike Brown

    #248647 Reply

    brownmik
    Member

    Hmm – was just messing around, and it seems to work fine if the source folder containing the Java file is not linked. If I use it with my linked source folders, it fails every time.

    FYI,

    Mike

    #248649 Reply

    Kapil Kapre
    Member

    Mike.
    Could you post all the information we request [URL=http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-393.html]here[/URL].
    Also can you try the solution I suggested in the earlier post.

    #248651 Reply

    Kapil Kapre
    Member

    @brownmik wrote:

    Hmm – was just messing around, and it seems to work fine if the source folder containing the Java file is not linked. If I use it with my linked source folders, it fails every time.

    FYI,

    Mike

    Thanks for following up. I’ll file this as a bug.

    #248655 Reply

    Mike Cico
    Member

    I didn’t get a chance to try a different workspace, but I can confirm that my src folder is a linked folder, like the “other” Mike’s seems to be.

    I tried with another project that does not use a linked folder, and that worked fine, so it seems to be the same issue.

Viewing 11 posts - 1 through 11 (of 11 total)
Reply To: NPE in UML reverse engineering feature

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