Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo] can't deserialize EObjects which contain Teneo proxies
[Teneo] can't deserialize EObjects which contain Teneo proxies [message #608913] Wed, 25 July 2007 19:06
Thomas Kuhn is currently offline Thomas KuhnFriend
Messages: 9
Registered: July 2009
Junior Member
Hi,

I have a problem when I try to deserialize a XMI that contains Teneo
Proxies:

ResourceSet rs = new ResourceSetImpl();
Resource teneoRes = rs.createResource(
URI.createURI("hibernate://?dsname=library&query1=from Book"));
teneoRes.load(null);

Resource xmiStoreRes = rs.createResource(
URI.createFileURI("transfer.xmi"));

xmiStoreRes.getContents().addAll(teneoRes.getContents());
xmiStoreRes.save(null);

Resource xmiLoadRes = rs.createResource(
URI.createFileURI("transfer.xmi"));
xmiLoadRes.load(null);


results in:

Exception in thread "main"
org.eclipse.emf.ecore.resource.Resource$IOWrappedException: The
reference to entity "query1" must end with the ';' delimiter.
at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:199)

the saved xmi looks like this:

<?xml version="1.0" encoding="ASCII"?>
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
xmlns:org.eclipse.example.library="http:///org/eclipse/example/library.ecore">
<org.eclipse.example.library:Book title="b1" id="196608">
<titlePage href="hibernate://?dsname=library&query1=from
Book#TitlePage|id=131072"/>
</org.eclipse.example.library:Book>
<org.eclipse.example.library:Book title="b2" id="196609">
<author href="hibernate://?dsname=library&query1=from
Book#Writer|id=163840"/>
<titlePage href="hibernate://?dsname=library&query1=from
Book#TitlePage|id=131073"/>
</org.eclipse.example.library:Book>
</xmi:XMI>


Thanks in advance,

Tom.
Previous Topic:SQLCaseStrategy
Next Topic:[CDO] Can't migrate ecore file in Eclipse 3.3
Goto Forum:
  


Current Time: Sun Sep 25 06:17:02 GMT 2022

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

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

Back to the top