Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Cyriptic Error when running mwe2 workflow
Cyriptic Error when running mwe2 workflow [message #757043] Wed, 16 November 2011 03:47 Go to next message
Eclipse UserFriend
Greeetings,
I've used an existing XML schema to create an Ecore model, I've then generated model code, and created an Xtext project using the existing ecore model.

When I run the mwe2 workflow with the generated grammar, I end up with the following error on console, which does not tell me anything. Maybe someone may have an idea about what is wrong here. This is Indigo 64 bit under windows 7 Enterprise 64 bit with Java 6. The interesting thing is, this setup has worked before in a previous Eclipse release (I think it was Helios)

Best regards
Seref

the console output is:

2614 [main] INFO ipse.xtext.generator.LanguageConfig - generating infrastructure for Archelang with fragments : ImplicitRuntimeFragment, ImplicitUiFragment, GrammarAccessFragment, ParseTreeConstructorFragment, ResourceFactoryFragment, XtextAntlrGeneratorFragment, Ecore2XtextValueConverterServiceFragment, JavaValidatorFragment, ImportURIScopingFragment, SimpleNamesFragment, FormatterFragment, LabelProviderFragment, OutlineTreeProviderFragment, QuickOutlineFragment, JavaBasedContentAssistFragment, XtextAntlrUiGeneratorFragment, CompareFragment, BuilderIntegrationFragment, QuickfixProviderFragment
23915 [main] INFO or.validation.JavaValidatorFragment - generating Java-based EValidator API
33923 [main] INFO text.generator.junit.Junit4Fragment - generating Compare Framework infrastructure
33981 [main] ERROR g.eclipse.xtext.generator.Generator - java.lang.NullPointerException
org.eclipse.emf.common.util.WrappedException: java.lang.NullPointerException
at org.eclipse.xtext.generator.Generator.mergeManifest(Generator.java:408)
at org.eclipse.xtext.generator.Generator.generateManifestRt(Generator.java:375)
at org.eclipse.xtext.generator.Generator.invokeInternal(Generator.java:134)
at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(AbstractWorkflowComponent.java:126)
at org.eclipse.emf.mwe.core.lib.Mwe2Bridge.invoke(Mwe2Bridge.java:34)
at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(AbstractWorkflowComponent.java:201)
at org.eclipse.emf.mwe2.runtime.workflow.AbstractCompositeWorkflowComponent.invoke(AbstractCompositeWorkflowComponent.java:35)
at org.eclipse.emf.mwe2.runtime.workflow.Workflow.run(Workflow.java:19)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:97)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:73)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:64)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:55)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.run(Mwe2Launcher.java:74)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main(Mwe2Launcher.java:35)
Caused by: java.lang.NullPointerException
at org.eclipse.xtext.generator.MergeableManifest.mergeIntoCommaSeparatedList(MergeableManifest.java:306)
at org.eclipse.xtext.generator.MergeableManifest.addExportedPackages(MergeableManifest.java:257)
at org.eclipse.xtext.generator.Generator.mergeManifest(Generator.java:396)
... 13 more
33982 [main] INFO .emf.mwe2.runtime.workflow.Workflow - Done.


Re: Cyriptic Error when running mwe2 workflow [message #757047 is a reply to message #757043] Wed, 16 November 2011 03:54 Go to previous messageGo to next message
Eclipse UserFriend
Apparently, there's a problem in the manifest of either of the plugins (non-UI, UI, tests?). It may be that it's corrupt in some way. If there's a manifest.mf_gen then you should compare that with the manifest.mf to see what's wrong. If not, sanitizing the manifest by comparing it with the "clean" manifests from a working Xtext project is your only option.
Re: Cyriptic Error when running mwe2 workflow [message #757054 is a reply to message #757047] Wed, 16 November 2011 04:33 Go to previous messageGo to next message
Eclipse UserFriend
Silly me! I should have used a namespace for the grammar. Thanks for your response

Regards
Seref
Re: Cyriptic Error when running mwe2 workflow [message #757077 is a reply to message #757054] Wed, 16 November 2011 06:57 Go to previous messageGo to next message
Eclipse UserFriend
I think this could even be construed as a bug. However deprecated the use of the default namespace might be, generators like this shouldn't trip over it or provides warnings/errors in the appropriate places.
Re: Cyriptic Error when running mwe2 workflow [message #757088 is a reply to message #757077] Wed, 16 November 2011 08:05 Go to previous messageGo to next message
Eclipse UserFriend
Well, in the old days, Eclipse would not let you use the default namespace, but used to tell you this. I found out my problem since the generated project ended up with a bunch of "null" directories and statements.

It would be nice to be warned Smile
Re: Cyriptic Error when running mwe2 workflow [message #757091 is a reply to message #757088] Wed, 16 November 2011 08:24 Go to previous messageGo to next message
Eclipse UserFriend
Feel free to file a bug (level Minor, probably): https://bugs.eclipse.org/bugs/enter_bug.cgi?product=TMF&format=guided Smile
Re: Cyriptic Error when running mwe2 workflow [message #757127 is a reply to message #757091] Wed, 16 November 2011 10:50 Go to previous message
Eclipse UserFriend
Certainly, the least I can do: https://bugs.eclipse.org/bugs/show_bug.cgi?id=363929

Regards
Seref
Previous Topic:Xtext generate is not deterministic!!
Next Topic:Add new file
Goto Forum:
  


Current Time: Mon Jul 14 10:48:44 EDT 2025

Powered by FUDForum. Page generated in 0.04324 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top