- This topic has 15 replies, 7 voices, and was last updated 17 years, 4 months ago by Loyal Water.
-
AuthorPosts
-
Gary FidlerMemberI am trying to generate Java from a simple Class Diagram with 5 classes. All subclasses of Object, with no interfaces. When I try to generate Java, nothing happens. Here is the log at that point:
!ENTRY org.eclipse.ui 4 0 2007-08-14 12:38:47.926 !MESSAGE Unhandled event loop exception !STACK 0 java.lang.NullPointerException at com.genuitec.eclipse.uml.wizard.NewUMLJavaCodeGenWarning$1$2.compare(NewUMLJavaCodeGenWarning.java:104) at java.util.TreeMap.compare(TreeMap.java:1093) at java.util.TreeMap.put(TreeMap.java:465) at java.util.TreeSet.add(TreeSet.java:210) at com.genuitec.eclipse.uml.wizard.NewUMLJavaCodeGenWarning$1.getChildren(NewUMLJavaCodeGenWarning.java:126) at org.eclipse.jface.viewers.AbstractTreeViewer.getRawChildren(AbstractTreeViewer.java:1317) at org.eclipse.jface.viewers.TreeViewer.getRawChildren(TreeViewer.java:366) at org.eclipse.jface.viewers.AbstractTreeViewer.getFilteredChildren(AbstractTreeViewer.java:615) at org.eclipse.jface.viewers.AbstractTreeViewer.getSortedChildren(AbstractTreeViewer.java:581) at org.eclipse.jface.viewers.AbstractTreeViewer$1.run(AbstractTreeViewer.java:778) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67) at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren(AbstractTreeViewer.java:755) at org.eclipse.jface.viewers.TreeViewer.createChildren(TreeViewer.java:615) at org.eclipse.jface.viewers.AbstractTreeViewer.internalExpandToLevel(AbstractTreeViewer.java:1672) at org.eclipse.jface.viewers.AbstractTreeViewer.internalExpandToLevel(AbstractTreeViewer.java:1682) at org.eclipse.jface.viewers.AbstractTreeViewer.expandToLevel(AbstractTreeViewer.java:1030) at org.eclipse.jface.viewers.AbstractTreeViewer.expandToLevel(AbstractTreeViewer.java:1011) at org.eclipse.jface.viewers.AbstractTreeViewer.expandAll(AbstractTreeViewer.java:1000) at com.genuitec.eclipse.uml.wizard.NewUMLJavaCodeGenWarning.createCustomArea(NewUMLJavaCodeGenWarning.java:216) at org.eclipse.jface.dialogs.MessageDialog.createDialogArea(MessageDialog.java:233) at org.eclipse.jface.dialogs.IconAndMessageDialog.createDialogAndButtonArea(IconAndMessageDialog.java:213) at org.eclipse.jface.dialogs.IconAndMessageDialog.createContents(IconAndMessageDialog.java:192) at org.eclipse.jface.window.Window.create(Window.java:426) at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1081) at org.eclipse.jface.window.Window.open(Window.java:785) at com.genuitec.eclipse.uml.wizard.NewUMLJavaCodeGenWizard.performFinish(NewUMLJavaCodeGenWizard.java:170) 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:1101) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3319) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971) 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:1101) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3319) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971) 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)
Loyal WaterMemberCan you paste your installation details here for me. The posting guidelines thread can be found at the top of the forum.
Gary FidlerMemberSorry for the oversight. Here are the installation details:
*** Date:
Wednesday, August 15, 2007 3:32:07 PM MDT** System properties:
OS=Linux
OS version=2.6.9-55.0.2.ELsmp
Java version=1.5.0_12*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 6.0.0 M1
Build id: 20070629-6.0.0-M1*** Eclipse details:
MyEclipse Enterprise WorkbenchVersion: 6.0.0 M1
Build id: 20070629-6.0.0-M1Eclipse Platform
Version: 3.3.0.v20070612-_19UEkLEzwsdF9jSqQ-G
Build id: I20070621-1340Eclipse Java Development Tools
Version: 3.3.0.v20070606-0010-7o7jCHEFpPoqQYvnXqejeR
Build id: I20070621-1340Eclipse Graphical Editing Framework
Version: 3.3.0.v20070620
Build id: 20070620-1021Eclipse RCP
Version: 3.3.0.v20070607-8y8eE8NEbsN3X_fjWS8HPNG
Build id: I20070621-1340Eclipse Graphical Editing Framework
Version: 3.3.0.v20070620
Build id: 20070620-1021Eclipse startup command=-os
linux
-ws
gtk
-arch
x86
-showsplash
-launcher
/opt/eclipse-3.3-myeclipse-6.0M1/eclipse
-name
Eclipse
–launcher.library
/opt/eclipse-3.3-myeclipse-6.0M1/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.0.v20070606/eclipse_1017a.so
-startup
/opt/eclipse-3.3-myeclipse-6.0M1/plugins/org.eclipse.equinox.launcher_1.0.0.v20070606.jar
-product
com.genuitec.myeclipse.product.ide
-vm
/usr/java/jdk1.5.0_12/bin/../jre/lib/i386/client/libjvm.so
Loyal WaterMemberCan you please send me a small project that includes your UMR so that I can test this at my end.
savMemberMy install is also having difficulty in generating Java from Class diagrams, sometimes it will work 1 class at a time, and sometimes nothing will happen.
config details
SNIP, please use MyEclipse > Installation Summary > Installation Details
Loyal WaterMemberI was unable to reproduce this issue at my end. I would like you to send me a small project that includes your UMR so that I can test this at my end.
William WoodwardMemberI am also having this exact problem with the exact same null pointer exception. My installation info is posted below and will attach a small project that exhibits the issue (or I’ll send it direct via email).
Please Help.
*** Date:
Sunday, August 26, 2007 12:26:08 PM EDT** System properties:
OS=WindowsXP
OS version=5.1
Java version=1.6.0_02*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 5.5.1 GA
Build id: 20070521-5.5.1-GA*** Eclipse details:
MyEclipse Enterprise WorkbenchVersion: 5.5.1 GA
Build id: 20070521-5.5.1-GAEclipse Platform
Version: 3.2.2.r322_v20070119-RQghndJN8IM0MsK
Build id: M20070212-1330Eclipse Project SDK
Version: 3.2.2.r322_v20070104-dCGKm0Ln38lm-8s
Build id: M20070212-1330Eclipse RCP
Version: 3.2.2.r322_v20070104-8pcviKVqd8J7C1U
Build id: M20060629-1905Eclipse Java Development Tools
Version: 3.2.2.r322_v20070104-R4CR0Znkvtfjv9-
Build id: M20060921-0945Eclipse Plug-in Development Environment
Version: 3.2.1.r321_v20060823-6vYLLdQ3Nk8DrFG
Build id: M20060921-0945Eclipse Graphical Editing Framework
Version: 3.2.2.v20070208
Build id: 20070208-1315Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-launcher
D:\DevTools\eclipse32\eclipse.exe
-name
Eclipse
-showsplash
600
-exitdata
45c_e8
-clean
-product
com.genuitec.myeclipse.product.ide
-vm
C:\WINDOWS\system32\javaw.exe
mrossollMemberI have also the same problem and the same log.
*** Date:
Monday, August 27, 2007 1:20:51 PM CEST** System properties:
OS=WindowsXP
OS version=5.1
Java version=1.5.0_11*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 6.0.0 GA
Build id: 6.0.0-GA-200708*** Eclipse details:
MyEclipse Enterprise WorkbenchVersion: 6.0.0 GA
Build id: 6.0.0-GA-200708Eclipse Platform
Version: 3.3.0.v20070612-_19UEkLEzwsdF9jSqQ-G
Build id: I20070625-1500Eclipse RCP
Version: 3.3.0.v20070607-8y8eE8NEbsN3X_fjWS8HPNG
Build id: I20070625-1500Eclipse Java Development Tools
Version: 3.3.0.v20070606-0010-7o7jCHEFpPoqQYvnXqejeR
Build id: I20070625-1500Eclipse Plug-in Development Environment
Version: 3.3.0.v20070607-7N7M-DUUEF6Ez0H46IcCC
Build id: I20070625-1500Eclipse Project SDK
Version: 3.3.0.v20070607-7M7J-BIolz-OcxWxvWAPSfLPqevO
Build id: I20070625-1500Eclipse Graphical Editing Framework
Version: 3.3.0.v20070620
Build id: 20070620-1021Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-showsplash
-launcher
C:\Programme\MyEclipse 6.0\eclipse\eclipse.exe
-name
Eclipse
–launcher.library
C:\Programme\MyEclipse 6.0\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.0.v20070523\eclipse_1017a.dll
-startup
C:\Programme\MyEclipse 6.0\eclipse\plugins\org.eclipse.equinox.launcher_1.0.0.v20070606.jar
-exitdata
87c_74
-vm
C:\Programme\MyEclipse 6.0\jre\bin\javaw.exe
Loyal WaterMemberHi bilwoodward,
The zip file that you sent me seems to be corrupted. Can you please send me the project once again.
Loyal WaterMemberBilwoorward,
I was able to unzip the project you sent me and import it into my workpsace but the project has some errors in it. Are you able to see this project without errors in your Package Explorer ?
erdgeistMemberI have the same problem with the same java.lang.NullPointerException.
Here are my installation details:
- *** Date:
Samstag, 1. September 2007 0.40 Uhr CEST** System properties:
OS=Linux
OS version=2.6.20.3-ubuntu1-rdg1
Java version=1.6.0_02*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 6.0.0 GA
Build id: 6.0.0-GA-200708*** Eclipse details:
Eclipse PlatformVersion: 3.3.0
Build id: I20070621-1340Eclipse Platform
Version: 3.3.0.v20070612-_19UEkLEzwsdF9jSqQ-G
Build id: I20070621-1340Eclipse Graphical Editing Framework
Version: 3.3.0.v20070620
Build id: 20070620-1021Eclipse RCP
Version: 3.3.0.v20070607-8y8eE8NEbsN3X_fjWS8HPNG
Build id: I20070621-1340Eclipse Java Development Tools
Version: 3.3.0.v20070606-0010-7o7jCHEFpPoqQYvnXqejeR
Build id: I20070621-1340Eclipse Plug-in Development Environment
Version: 3.3.0.v20070607-7N7M-DUUEF6Ez0H46IcCC
Build id: I20070625-1500Eclipse Graphical Editing Framework
Version: 3.3.0.v20070620
Build id: 20070620-1021Eclipse startup command=-os
linux
-ws
gtk
-arch
x86
-showsplash
/home/erdgeist/bin/eclipse//plugins/org.eclipse.platform_3.3.0.v20070613/splash.bmp
-launcher
/home/erdgeist/bin/eclipse/eclipse
-name
Eclipse
–launcher.library
/home/erdgeist/bin/eclipse/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.0.v20070606/eclipse_1017a.so
-startup
/home/erdgeist/bin/eclipse/plugins/org.eclipse.equinox.launcher_1.0.0.v20070606.jar
-vm
/usr/lib/jvm/java-6-sun-1.6.0.02/jre/bin/../lib/i386/client/libjvm.soI will send you a small project which generates this bug for me.
erdgeistMemberUpdate:
I just found out, that this problem only occurs with classes that have been previously generated. Classes that I never included for code generation can be generated but after they have been generated once they produce the NullPointerException, too, and nothing happens when clicking “Finish”. Even deleting the classes from the source tree does not seem to help.
savMemberI have found that you have to delete the class from the model and create a new class. But you have to check under “Outline” in the Class-centric section and make sure the class is still not listed as sometimes even after ‘remove from model’ it is still there and when you create a new class it will again fail to generate (using the same name)
Loyal WaterMemberThanks for all this information guys. Ill check this issue and get back to you with an update as soon as possible.
marquiesMemberHi, I am new in MyEclipse, testin the 30 day trial. MYEclipse looks very good to me. But today I check the UML capabilities and retrive following error on forward Engineering:
Unhandled event loop exception java.lang.IllegalArgumentException at org.eclipse.jdt.core.dom.AST.newName(AST.java:1398) at org.argouml.language.java.generator.GeneratorJava2.getType(GeneratorJava2.java:301) at org.argouml.language.java.generator.GeneratorJava2.generateClassifier(GeneratorJava2.java:536) at org.argouml.language.java.generator.GeneratorJava2.generateFile2(GeneratorJava2.java:1041) 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:1101) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3319) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971) 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:1101) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3319) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971) 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:597) 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) Session Data: eclipse.buildId=I20070625-1500 java.version=1.6.0 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_DE Framework arguments: -product com.genuitec.myeclipse.product.ide Command-line arguments: -os linux -ws gtk -arch x86 -product com.genuitec.myeclipse.product.ide This is a continuation of log file /scratch/breucking/workspace2/.metadata/.bak_0.log Created Time: 2007-08-30 12:50:23.734
*** Date: Tuesday, September 4, 2007 8:37:30 AM CEST ** System properties: OS=Linux OS version=2.6.18-5-k7 Java version=1.6.0 *** MyEclipse details: MyEclipse Enterprise Workbench Version: 6.0.0 GA Build id: 6.0.0-GA-200708 *** Eclipse details: Eclipse Platform Version: 3.3.0 Build id: I20070621-1340 Eclipse Project SDK Version: 3.3.0.v20070607-7M7J-BIolz-OcxWxvWAPSfLPqevO Build id: I20070625-1500 Eclipse Platform Version: 3.3.0.v20070612-_19UEkLEzwsdF9jSqQ-G Build id: I20070621-1340 Eclipse Java Development Tools Version: 3.3.0.v20070606-0010-7o7jCHEFpPoqQYvnXqejeR Build id: I20070621-1340 Eclipse Plug-in Development Environment Version: 3.3.0.v20070607-7N7M-DUUEF6Ez0H46IcCC Build id: I20070625-1500 Eclipse Graphical Editing Framework Version: 3.3.0.v20070620 Build id: 20070620-1021 Eclipse RCP Version: 3.3.0.v20070607-8y8eE8NEbsN3X_fjWS8HPNG Build id: I20070621-1340 Eclipse Graphical Editing Framework Version: 3.3.0.v20070620 Build id: 20070620-1021 Eclipse startup command=-os linux -ws gtk -arch x86 -showsplash -launcher /scratch/breucking/eclipse3-3/eclipse/eclipse -name Eclipse --launcher.library /scratch/breucking/eclipse3-3/eclipse/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.0.v20070606/eclipse_1017a.so -startup /scratch/breucking/eclipse3-3/eclipse/plugins/org.eclipse.equinox.launcher_1.0.0.v20070606.jar -data /scratch/breucking/workspace2 -vm /scratch/breucking/javalib/jdk1.6.0/bin/../jre/lib/i386/client/libjvm.so
-
AuthorPosts