Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » NPE on transformation.
NPE on transformation. [message #570361] Fri, 03 July 2009 14:15
Juan Pedro Silva is currently offline Juan Pedro Silva
Messages: 258
Registered: July 2009
Senior Member
Hi Dimitris, I'm trying to make the composition/transformation that we
were talking about in the other thread.
However, I'm getting a NPE when running it (whole stack below).
For what I see, the problem is while saving the results (I cleaned all
ConcurrentModificationExceptions thrown by the transf. after realizing
that where cause by opposite references).
So my guess is that the transformation should be ok.
The resulting file is created, although it's empty. The target metamodel
was previously registered.
Do you have any ideas of which could be the cause of such exception?.
Does Epsilon has any restrictions on the use of library (Ecore, UML,
XSD) types?, I believe I've seen similar error messages in other tools,
related to the use of external types . I'm using Ecore primitive types
in the target metamodel.
Regards,
Juan Pedro


java.lang.NullPointerException
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eURIFragmentSegm ent(BasicEObjectImpl.java:294)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.getURIFragm ent(ResourceImpl.java:671)
at
org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.getURIFragmen t(XMLResourceImpl.java:422)
at
org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.getURIFragment( XMLHelperImpl.java:718)
at
org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.getIDREF(XMLHel perImpl.java:753)
at
org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveIDRefSingle(X MLSaveImpl.java:1954)
at
org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLS aveImpl.java:1300)
at
org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XML SaveImpl.java:2667)
at
org.eclipse.emf.ecore.xmi.impl.XMISaveImpl.writeTopObjects(X MISaveImpl.java:90)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.traverse(XMLSaveI mpl.java:592)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.save(XMLSaveImpl. java:256)
at
org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doSave(XMLRes ourceImpl.java:205)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(Resour ceImpl.java:1344)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(Resour ceImpl.java:986)
at org.eclipse.epsilon.emc.emf.EmfModel.store(EmfModel.java:202 )
at org.eclipse.epsilon.eol.models.Model.dispose(Model.java:153)
at
org.eclipse.epsilon.emc.emf.AbstractEmfModel.dispose(Abstrac tEmfModel.java:464)
at
org.eclipse.epsilon.eol.models.ModelRepository.dispose(Model Repository.java:217)
at
org.eclipse.epsilon.eol.dt.launching.EclipseContextManager.t eardown(EclipseContextManager.java:55)
at
org.eclipse.epsilon.eml.dt.launching.EmlLaunchConfigurationD elegate.launch(EmlLaunchConfigurationDelegate.java:91)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:764)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:614)
at
org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(D ebugUIPlugin.java:880)
at
org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlu gin.java:1083)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Previous Topic:Help on the steps to follow for a model composition.
Next Topic:NPE on transformation.
Goto Forum:
  


Current Time: Tue Sep 23 08:29:18 GMT 2014

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

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