Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » copier.copyReferences() causes stack overflow
copier.copyReferences() causes stack overflow [message #602519] Wed, 14 February 2007 19:20
Mark Geib is currently offline Mark GeibFriend
Messages: 432
Registered: July 2009
Senior Member
I have the following code...trying to copy a resource.
I have no idea how to proceed at this point..??

Copier copier = new Copier();
RootObj newRoot = (RootObj) copier.copy(oldRoot);
copier.copyReferences();

The call to copyReferences() produces a stackoverflow with the following
repeated many many time...

java.lang.StackOverflowError
at org.eclipse.emf.ecore.impl.EObjectImpl.eClass(EObjectImpl.ja va:210)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eIsSet(BasicEObj ectImpl.java:828)
at srd.impl.LinkImpl.eIsSet(LinkImpl.java:201)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eIsSet(BasicEObj ectImpl.java:818)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eIsSet(BasicEObj ectImpl.java:832)
at srd.impl.LinkImpl.eIsSet(LinkImpl.java:201)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eIsSet(BasicEObj ectImpl.java:818)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eIsSet(BasicEObj ectImpl.java:832)
at srd.impl.LinkImpl.eIsSet(LinkImpl.java:201)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eIsSet(BasicEObj ectImpl.java:818)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eIsSet(BasicEObj ectImpl.java:832)
at srd.impl.LinkImpl.eIsSet(LinkImpl.java:201)
Previous Topic:[Teneo] Dynamic mapping using XSDEcoreBuilder
Next Topic:How to let jet/emf codegen generate incorrect java files?
Goto Forum:
  


Current Time: Tue Oct 20 12:54:55 GMT 2020

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

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

Back to the top