Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » NPE on transformation.
NPE on transformation. [message #21720] Fri, 03 July 2009 14:15 Go to next message
Juan Pedro Silva is currently offline Juan Pedro SilvaFriend
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)
Re: NPE on transformation. [message #21765 is a reply to message #21720] Fri, 03 July 2009 14:17 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Juan Pedro,

Could you please attach your programs/metamodels/models (or a minimal
subset that reproduces the problem) so that I can have a look?

Cheers,
Dimitris

Juan Pedro Silva wrote:
> 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)
Re: NPE on transformation. [message #21810 is a reply to message #21765] Fri, 03 July 2009 15:11 Go to previous message
Juan Pedro Silva is currently offline Juan Pedro SilvaFriend
Messages: 258
Registered: July 2009
Senior Member
I just sent it to your private email box.
Regards,
Juan Pedro

Dimitris Kolovos escribió:
> Hi Juan Pedro,
>
> Could you please attach your programs/metamodels/models (or a minimal
> subset that reproduces the problem) so that I can have a look?
>
> Cheers,
> Dimitris
>
> Juan Pedro Silva wrote:
>> 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)
Re: NPE on transformation. [message #570377 is a reply to message #21720] Fri, 03 July 2009 14:17 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Juan Pedro,

Could you please attach your programs/metamodels/models (or a minimal
subset that reproduces the problem) so that I can have a look?

Cheers,
Dimitris

Juan Pedro Silva wrote:
> 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)
Re: NPE on transformation. [message #570394 is a reply to message #21765] Fri, 03 July 2009 15:11 Go to previous message
Juan Pedro Silva is currently offline Juan Pedro SilvaFriend
Messages: 258
Registered: July 2009
Senior Member
I just sent it to your private email box.
Regards,
Juan Pedro

Dimitris Kolovos escribió:
> Hi Juan Pedro,
>
> Could you please attach your programs/metamodels/models (or a minimal
> subset that reproduces the problem) so that I can have a look?
>
> Cheers,
> Dimitris
>
> Juan Pedro Silva wrote:
>> 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:NPE on transformation.
Next Topic:Odd behaviour when using EuGENia
Goto Forum:
  


Current Time: Thu Apr 25 00:03:44 GMT 2024

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

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

Back to the top