Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Error when I try generate GMF Editor
Error when I try generate GMF Editor [message #1082339] Thu, 08 August 2013 08:34 Go to next message
Tarcísio Couto is currently offline Tarcísio Couto
Messages: 29
Registered: May 2013
Junior Member
java.lang.NullPointerException
at org.eclipse.emf.codegen.ecore.genmodel.impl.GenPackageImpl$DependencyHelper.handle(GenPackageImpl.java:2417)
at org.eclipse.emf.codegen.ecore.genmodel.impl.GenPackageImpl$DependencyHelper.handle(GenPackageImpl.java:2406)
at org.eclipse.emf.codegen.ecore.genmodel.impl.GenPackageImpl$DependencyHelper.<init>(GenPackageImpl.java:2322)
at org.eclipse.emf.codegen.ecore.genmodel.impl.GenPackageImpl.prepareCache(GenPackageImpl.java:3139)
at org.eclipse.emf.codegen.ecore.genmodel.generator.GenPackageGeneratorAdapter.doPreGenerate(GenPackageGeneratorAdapter.java:177)
at org.eclipse.emf.codegen.ecore.generator.AbstractGeneratorAdapter.preGenerate(AbstractGeneratorAdapter.java:250)
at org.eclipse.emf.codegen.ecore.generator.Generator.generate(Generator.java:640)
at org.eclipse.emf.codegen.ecore.generator.Generator.generate(Generator.java:559)
at org.eclipse.epsilon.eugenia.GenerateEmfCodeDelegate.runImpl(GenerateEmfCodeDelegate.java:43)
at org.eclipse.epsilon.eugenia.GenerateAllDelegate.generateEMFCode(GenerateAllDelegate.java:227)
at org.eclipse.epsilon.eugenia.GenerateAllDelegate.runImpl(GenerateAllDelegate.java:121)
at org.eclipse.epsilon.eugenia.GenerateAllDelegate$1.run(GenerateAllDelegate.java:59)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Re: Error when I try generate GMF Editor [message #1082413 is a reply to message #1082339] Thu, 08 August 2013 10:34 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 25949
Registered: July 2009
Senior Member
Tarcísio,

That's at this line of code:

initializationDependencies.add(findGenClassifier(eClassifier).getGenPackage());

That implies there either eClassifier is null, or there is no GenPackage
available for it. Try using Reload... on the *.genmodel to ensure that
all the other *.genmodel it depends on are available.



On 08/08/2013 2:34 PM, Tarcísio Couto wrote:
> java.lang.NullPointerException
> at
> org.eclipse.emf.codegen.ecore.genmodel.impl.GenPackageImpl$DependencyHelper.handle(GenPackageImpl.java:2417)
> at
> org.eclipse.emf.codegen.ecore.genmodel.impl.GenPackageImpl$DependencyHelper.handle(GenPackageImpl.java:2406)
> at
> org.eclipse.emf.codegen.ecore.genmodel.impl.GenPackageImpl$DependencyHelper.<init>(GenPackageImpl.java:2322)
> at
> org.eclipse.emf.codegen.ecore.genmodel.impl.GenPackageImpl.prepareCache(GenPackageImpl.java:3139)
> at
> org.eclipse.emf.codegen.ecore.genmodel.generator.GenPackageGeneratorAdapter.doPreGenerate(GenPackageGeneratorAdapter.java:177)
> at
> org.eclipse.emf.codegen.ecore.generator.AbstractGeneratorAdapter.preGenerate(AbstractGeneratorAdapter.java:250)
> at
> org.eclipse.emf.codegen.ecore.generator.Generator.generate(Generator.java:640)
> at
> org.eclipse.emf.codegen.ecore.generator.Generator.generate(Generator.java:559)
> at
> org.eclipse.epsilon.eugenia.GenerateEmfCodeDelegate.runImpl(GenerateEmfCodeDelegate.java:43)
> at
> org.eclipse.epsilon.eugenia.GenerateAllDelegate.generateEMFCode(GenerateAllDelegate.java:227)
> at
> org.eclipse.epsilon.eugenia.GenerateAllDelegate.runImpl(GenerateAllDelegate.java:121)
> at
> org.eclipse.epsilon.eugenia.GenerateAllDelegate$1.run(GenerateAllDelegate.java:59)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
>
Previous Topic:determine containment of EObject
Next Topic:Change color font through Colorprovider
Goto Forum:
  


Current Time: Fri Aug 01 12:05:04 EDT 2014

Powered by FUDForum. Page generated in 0.02087 seconds