| Summary: | [Texo]Nightly build #154 raises unhandled event loop exception when generating code | ||
|---|---|---|---|
| Product: | [Modeling] EMFT | Reporter: | Philippe Roland <philippe.roland> |
| Component: | Texo | Assignee: | Martin Taal <mtaal> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | P3 | CC: | philipp.wode |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Philippe Roland
Hi Philipp, I will check this out in the evening today. gr. Martin btw, the last few builds of Texo have not been stable (some failing testcases). So it is sometimes risky to download the nightly builds, you can see the build status here: https://build.eclipse.org/hudson/job/emft-texo-nightly gr. Martin I see. Sorry if this bug report is redundant, two weeks ago I'd never dealt with incubating open source in my life, much less filed a bugzilla or downloaded nightly builds. Generally speaking, could you tell me if filing bugzillas on nightly builds (as opposed to actual releases) is OK with open source communities? Thanks for all your hard work. Philippe Roland Hi Philippe, Yes ofcourse filing bugzillas on nightly builds is fine :-). gr. Martin Hi Martin, I have updated to the latest build. But when I try to generate model code nothing happens. No exception or error message appears. Can you check this? Thanks Philipp No code gets generated either? gr. Martin Exactly do you anything in the 'error log view'? gr. Martin It raises an unhandled event loop exception, see below. !ENTRY org.eclipse.ui 4 0 2010-05-27 17:12:33.964 !MESSAGE Unhandled event loop exception !STACK 0 java.lang.IllegalStateException: Exception while generating at org.eclipse.emf.texo.eclipse.popup.actions.BaseGenerateAction.run(BaseGenerateAction.java:77) at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3910) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3503) 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(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) 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) Caused by: java.lang.reflect.InvocationTargetException at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:421) at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507) at org.eclipse.ui.internal.progress.ProgressMonitorJobsDialog.run(ProgressMonitorJobsDialog.java:275) at org.eclipse.ui.internal.progress.ProgressManager$4.run(ProgressManager.java:966) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.eclipse.ui.internal.progress.ProgressManager.busyCursorWhile(ProgressManager.java:1001) at org.eclipse.ui.internal.progress.ProgressManager.busyCursorWhile(ProgressManager.java:976) at org.eclipse.ui.internal.progress.ProgressManager.run(ProgressManager.java:1182) at org.eclipse.emf.texo.eclipse.popup.actions.BaseGenerateAction.run(BaseGenerateAction.java:75) ... 28 more Caused by: java.lang.NullPointerException at org.eclipse.emf.texo.generator.ModelController.annotate(ModelController.java:59) at org.eclipse.emf.texo.eclipse.popup.actions.GenerateCode.generateFromUris(GenerateCode.java:48) at org.eclipse.emf.texo.eclipse.popup.actions.BaseGenerateAction.generate(BaseGenerateAction.java:120) at org.eclipse.emf.texo.eclipse.popup.actions.BaseGenerateAction.generate(BaseGenerateAction.java:99) at org.eclipse.emf.texo.eclipse.popup.actions.BaseGenerateAction.access$0(BaseGenerateAction.java:81) at org.eclipse.emf.texo.eclipse.popup.actions.BaseGenerateAction$1.execute(BaseGenerateAction.java:71) at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800) at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) okay found it, I solved it and am doing a new build. I published a new build which should hopefully solve this. Let me know if it works fine for you now. Thanks! gr. Martin Yes, code generation works now perfectly. Good job. Still another thing. When I try to generate a xml file using the ModelXMLSaver (as in the Wiki described) I get an IllegalStateException (see below). What does this exactly mean and how can I solve this? Comments to JAXB support come in the Bugzilla 313494 later. Exception in thread "main" java.lang.IllegalStateException: The class class de.philipp.sample.domain.Library is not managed by this ModelResolver at org.eclipse.emf.texo.utils.Check.isNotNull(Check.java:66) at org.eclipse.emf.texo.model.ModelResolver.getModelDescriptor(ModelResolver.java:263) at org.eclipse.emf.texo.model.ModelResolver.getModelObject(ModelResolver.java:208) at org.eclipse.emf.texo.xml.ModelEMFConverter.createTarget(ModelEMFConverter.java:134) at org.eclipse.emf.texo.xml.ModelEMFConverter.convert(ModelEMFConverter.java:86) at org.eclipse.emf.texo.xml.ModelXMLSaver.write(ModelXMLSaver.java:72) at de.philipp.sample.main.Main.main(Main.java:33) Oh, my mistake. I forgot to call "LibraryModelFactory factory = LibraryModelPackage.MODELFACTORY;" So everywhere works fine :) Yes, you need to 'touch' the model package before you can use it. I will add a remark in the wiki. I will close this issue, please re-open it if you encounter it again. gr. Martin |