References in multiple ecores using . giving exception [message #418044] |
Thu, 03 April 2008 15:16 |
Eclipse User |
|
|
|
Originally posted by: hkumar.agrawal.gmail.com
Hi,
We have a functionality where we generate multiple ecores with one ecore referring the other. The ecores are loaded fine into the resource set. If the reference has a relative path (i.e. of the form ./second.ecore#//second) then we get the following exception while generating the genmodel (during its initialization):
java.lang.NullPointerException
at org.eclipse.emf.codegen.ecore.genmodel.impl.GenPackageImpl.h asExtendedMetaData(GenPackageImpl.java:3984)
at org.eclipse.emf.codegen.ecore.genmodel.impl.GenPackageImpl.i nitialize(GenPackageImpl.java:2473)
at org.eclipse.emf.codegen.ecore.genmodel.impl.GenModelImpl.ini tialize(GenModelImpl.java:1927)
Digging a bit into the code, we run into a TreeIterator which was difficult to follow after a point !
Note that if we change the reference to be an absolute project path (i.e. /project/folder/second.ecore#//second) then the error goes away and everything is fine.
Is there something that we are missing here ? Do we have set some property during the generation / initialization of the genmodel ?
Thanks in advance.
-Hemant
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03652 seconds