Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Unable to load serialized data model
Unable to load serialized data model [message #645459] Fri, 17 December 2010 09:52 Go to next message
Martin Tauber is currently offline Martin TauberFriend
Messages: 122
Registered: July 2009
Senior Member
Hi,

I'm trying to load a data model which I first dumped using the example
in the help tutorial. When I try to do that I get the attached
stackdump indicating that an object is missing

Unresolved reference
'//@projects.0/@knowledgeBases.0/@folders.2/@resources.2/@pa rtitions.1'.

how do I find this reference in my file? How can I debug this?

Regards
Martin

!ENTRY org.eclipse.ui.workbench 4 2 2010-12-17 10:17:31.968
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.ui.workbench".
!STACK 0
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1Diagnos ticWrappedException:
org.eclipse.emf.ecore.xmi.UnresolvedReferenceException: Unresolved
reference
'//@projects.0/@knowledgeBases.0/@folders.2/@resources.2/@pa rtitions.1'.
( file://.psf/Home/Documents/eclipse-rcp-helios-SR1-win32/ecli pse/cache.xmi,
2478, 264)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDe mandLoadException(ResourceSetImpl.java:315)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:274)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java:397)
at com.tabuso.durban.model.impl.CacheImpl.load(CacheImpl.java:1 61)
at com.tabuso.durban.Startup.earlyStartup(Startup.java:21)
at
org.eclipse.ui.internal.EarlyStartupRunnable.runEarlyStartup (EarlyStartupRunnable.java:87)
at
org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartu pRunnable.java:66)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.Workbench$59.run(Workbench.java:2409 )
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: org.eclipse.emf.ecore.xmi.UnresolvedReferenceException:
Unresolved reference
'//@projects.0/@knowledgeBases.0/@folders.2/@resources.2/@pa rtitions.1'.
( file://.psf/Home/Documents/eclipse-rcp-helios-SR1-win32/ecli pse/cache.xmi,
2478, 264)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleForwardRefer ences(XMLHandler.java:1154)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.endDocument(XMLHan dler.java:1228)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .endDocument(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(U nknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSA XParser.parse(Unknown
Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:181)
at
org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLRes ourceImpl.java:180)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1494)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1282)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetImpl.java:255)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:270)
... 8 more

!ENTRY org.eclipse.ui 4 4 2010-12-17 10:17:32.235
!MESSAGE Unhandled Exception

!ENTRY com.tabuso.durban 4 0 2010-12-17 10:17:32.250
!MESSAGE Unable to execute early startup code for an extension
!STACK 0
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1Diagnos ticWrappedException:
org.eclipse.emf.ecore.xmi.UnresolvedReferenceException: Unresolved
reference
'//@projects.0/@knowledgeBases.0/@folders.2/@resources.2/@pa rtitions.1'.
( file://.psf/Home/Documents/eclipse-rcp-helios-SR1-win32/ecli pse/cache.xmi,
2478, 264)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDe mandLoadException(ResourceSetImpl.java:315)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:274)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java:397)
at com.tabuso.durban.model.impl.CacheImpl.load(CacheImpl.java:1 61)
at com.tabuso.durban.Startup.earlyStartup(Startup.java:21)
at
org.eclipse.ui.internal.EarlyStartupRunnable.runEarlyStartup (EarlyStartupRunnable.java:87)
at
org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartu pRunnable.java:66)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.Workbench$59.run(Workbench.java:2409 )
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: org.eclipse.emf.ecore.xmi.UnresolvedReferenceException:
Unresolved reference
'//@projects.0/@knowledgeBases.0/@folders.2/@resources.2/@pa rtitions.1'.
( file://.psf/Home/Documents/eclipse-rcp-helios-SR1-win32/ecli pse/cache.xmi,
2478, 264)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleForwardRefer ences(XMLHandler.java:1154)
at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.endDocument(XMLHan dler.java:1228)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .endDocument(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(U nknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSA XParser.parse(Unknown
Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:181)
at
org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLRes ourceImpl.java:180)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1494)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1282)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetImpl.java:255)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:270)
... 8 more
Re: Unable to load serialized data model [message #645564 is a reply to message #645459] Sat, 18 December 2010 01:32 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Martin,

Fragment paths segments use <feature-name>[.<index-in-feature] to walk
down the tree from the root, so you can follow it like a path to see why
that object isn't really there. I can only imagine this happening if
you edit the file by hand...


Martin Tauber wrote:
> Hi,
>
> I'm trying to load a data model which I first dumped using the example
> in the help tutorial. When I try to do that I get the attached
> stackdump indicating that an object is missing
>
> Unresolved reference
> '//@projects.0/@knowledgeBases.0/@folders.2/@resources.2/@pa rtitions.1'.
>
> how do I find this reference in my file? How can I debug this?
>
> Regards
> Martin
>
> !ENTRY org.eclipse.ui.workbench 4 2 2010-12-17 10:17:31.968
> !MESSAGE Problems occurred when invoking code from plug-in:
> "org.eclipse.ui.workbench".
> !STACK 0
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1Diagnos ticWrappedException:
> org.eclipse.emf.ecore.xmi.UnresolvedReferenceException: Unresolved
> reference
> '//@projects.0/@knowledgeBases.0/@folders.2/@resources.2/@pa rtitions.1'.
> ( file://.psf/Home/Documents/eclipse-rcp-helios-SR1-win32/ecli pse/cache.xmi,
> 2478, 264)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDe mandLoadException(ResourceSetImpl.java:315)
>
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:274)
>
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java:397)
>
> at com.tabuso.durban.model.impl.CacheImpl.load(CacheImpl.java:1 61)
> at com.tabuso.durban.Startup.earlyStartup(Startup.java:21)
> at
> org.eclipse.ui.internal.EarlyStartupRunnable.runEarlyStartup (EarlyStartupRunnable.java:87)
>
> at
> org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartu pRunnable.java:66)
>
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at org.eclipse.ui.internal.Workbench$59.run(Workbench.java:2409 )
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
> Caused by: org.eclipse.emf.ecore.xmi.UnresolvedReferenceException:
> Unresolved reference
> '//@projects.0/@knowledgeBases.0/@folders.2/@resources.2/@pa rtitions.1'.
> ( file://.psf/Home/Documents/eclipse-rcp-helios-SR1-win32/ecli pse/cache.xmi,
> 2478, 264)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleForwardRefer ences(XMLHandler.java:1154)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.endDocument(XMLHan dler.java:1228)
>
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .endDocument(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(U nknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSA XParser.parse(Unknown
> Source)
> at javax.xml.parsers.SAXParser.parse(Unknown Source)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:181)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLRes ourceImpl.java:180)
>
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1494)
>
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1282)
>
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetImpl.java:255)
>
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:270)
>
> ... 8 more
>
> !ENTRY org.eclipse.ui 4 4 2010-12-17 10:17:32.235
> !MESSAGE Unhandled Exception
>
> !ENTRY com.tabuso.durban 4 0 2010-12-17 10:17:32.250
> !MESSAGE Unable to execute early startup code for an extension
> !STACK 0
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1Diagnos ticWrappedException:
> org.eclipse.emf.ecore.xmi.UnresolvedReferenceException: Unresolved
> reference
> '//@projects.0/@knowledgeBases.0/@folders.2/@resources.2/@pa rtitions.1'.
> ( file://.psf/Home/Documents/eclipse-rcp-helios-SR1-win32/ecli pse/cache.xmi,
> 2478, 264)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDe mandLoadException(ResourceSetImpl.java:315)
>
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:274)
>
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java:397)
>
> at com.tabuso.durban.model.impl.CacheImpl.load(CacheImpl.java:1 61)
> at com.tabuso.durban.Startup.earlyStartup(Startup.java:21)
> at
> org.eclipse.ui.internal.EarlyStartupRunnable.runEarlyStartup (EarlyStartupRunnable.java:87)
>
> at
> org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartu pRunnable.java:66)
>
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at org.eclipse.ui.internal.Workbench$59.run(Workbench.java:2409 )
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
> Caused by: org.eclipse.emf.ecore.xmi.UnresolvedReferenceException:
> Unresolved reference
> '//@projects.0/@knowledgeBases.0/@folders.2/@resources.2/@pa rtitions.1'.
> ( file://.psf/Home/Documents/eclipse-rcp-helios-SR1-win32/ecli pse/cache.xmi,
> 2478, 264)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleForwardRefer ences(XMLHandler.java:1154)
>
> at
> org.eclipse.emf.ecore.xmi.impl.XMLHandler.endDocument(XMLHan dler.java:1228)
>
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .endDocument(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(U nknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSA XParser.parse(Unknown
> Source)
> at javax.xml.parsers.SAXParser.parse(Unknown Source)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:181)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLRes ourceImpl.java:180)
>
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1494)
>
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1282)
>
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetImpl.java:255)
>
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:270)
>
> ... 8 more


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Unable to load serialized data model [message #646625 is a reply to message #645564] Wed, 29 December 2010 12:11 Go to previous messageGo to next message
Martin Tauber is currently offline Martin TauberFriend
Messages: 122
Registered: July 2009
Senior Member
Hi Ed,

I've been playing around a little bit. I'm 100% sure that the fragment
is in the file. This other references work fine. This only happens when
I am using a EList<> to refer the feature. So the Unresolved reference
is part od a EList<> ....

Regards
Martin

Am 18.12.10 02:32, schrieb Ed Merks:
> Martin,
>
> Fragment paths segments use <feature-name>[.<index-in-feature] to walk
> down the tree from the root, so you can follow it like a path to see why
> that object isn't really there. I can only imagine this happening if you
> edit the file by hand...
>
>
> Martin Tauber wrote:
>> Hi,
>>
>> I'm trying to load a data model which I first dumped using the example
>> in the help tutorial. When I try to do that I get the attached
>> stackdump indicating that an object is missing
>>
>> Unresolved reference
>> '//@projects.0/@knowledgeBases.0/@folders.2/@resources.2/@pa rtitions.1'.
>>
>> how do I find this reference in my file? How can I debug this?
>>
>> Regards
>> Martin
>>
>> !ENTRY org.eclipse.ui.workbench 4 2 2010-12-17 10:17:31.968
>> !MESSAGE Problems occurred when invoking code from plug-in:
>> "org.eclipse.ui.workbench".
>> !STACK 0
>> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1Diagnos ticWrappedException:
>> org.eclipse.emf.ecore.xmi.UnresolvedReferenceException: Unresolved
>> reference
>> '//@projects.0/@knowledgeBases.0/@folders.2/@resources.2/@pa rtitions.1'.
>> ( file://.psf/Home/Documents/eclipse-rcp-helios-SR1-win32/ecli pse/cache.xmi,
>> 2478, 264)
>> at
>> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDe mandLoadException(ResourceSetImpl.java:315)
>>
>> at
>> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:274)
>>
>> at
>> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java:397)
>>
>> at com.tabuso.durban.model.impl.CacheImpl.load(CacheImpl.java:1 61)
>> at com.tabuso.durban.Startup.earlyStartup(Startup.java:21)
>> at
>> org.eclipse.ui.internal.EarlyStartupRunnable.runEarlyStartup (EarlyStartupRunnable.java:87)
>>
>> at
>> org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartu pRunnable.java:66)
>>
>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
>> at org.eclipse.ui.internal.Workbench$59.run(Workbench.java:2409 )
>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
>> Caused by: org.eclipse.emf.ecore.xmi.UnresolvedReferenceException:
>> Unresolved reference
>> '//@projects.0/@knowledgeBases.0/@folders.2/@resources.2/@pa rtitions.1'.
>> ( file://.psf/Home/Documents/eclipse-rcp-helios-SR1-win32/ecli pse/cache.xmi,
>> 2478, 264)
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleForwardRefer ences(XMLHandler.java:1154)
>>
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLHandler.endDocument(XMLHan dler.java:1228)
>>
>> at
>> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .endDocument(Unknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(Unknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
>> Source)
>> at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(U nknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(Unknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSA XParser.parse(Unknown
>> Source)
>> at javax.xml.parsers.SAXParser.parse(Unknown Source)
>> at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:181)
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLRes ourceImpl.java:180)
>>
>> at
>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1494)
>>
>> at
>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1282)
>>
>> at
>> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetImpl.java:255)
>>
>> at
>> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:270)
>>
>> ... 8 more
>>
>> !ENTRY org.eclipse.ui 4 4 2010-12-17 10:17:32.235
>> !MESSAGE Unhandled Exception
>>
>> !ENTRY com.tabuso.durban 4 0 2010-12-17 10:17:32.250
>> !MESSAGE Unable to execute early startup code for an extension
>> !STACK 0
>> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1Diagnos ticWrappedException:
>> org.eclipse.emf.ecore.xmi.UnresolvedReferenceException: Unresolved
>> reference
>> '//@projects.0/@knowledgeBases.0/@folders.2/@resources.2/@pa rtitions.1'.
>> ( file://.psf/Home/Documents/eclipse-rcp-helios-SR1-win32/ecli pse/cache.xmi,
>> 2478, 264)
>> at
>> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDe mandLoadException(ResourceSetImpl.java:315)
>>
>> at
>> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:274)
>>
>> at
>> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java:397)
>>
>> at com.tabuso.durban.model.impl.CacheImpl.load(CacheImpl.java:1 61)
>> at com.tabuso.durban.Startup.earlyStartup(Startup.java:21)
>> at
>> org.eclipse.ui.internal.EarlyStartupRunnable.runEarlyStartup (EarlyStartupRunnable.java:87)
>>
>> at
>> org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartu pRunnable.java:66)
>>
>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
>> at org.eclipse.ui.internal.Workbench$59.run(Workbench.java:2409 )
>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
>> Caused by: org.eclipse.emf.ecore.xmi.UnresolvedReferenceException:
>> Unresolved reference
>> '//@projects.0/@knowledgeBases.0/@folders.2/@resources.2/@pa rtitions.1'.
>> ( file://.psf/Home/Documents/eclipse-rcp-helios-SR1-win32/ecli pse/cache.xmi,
>> 2478, 264)
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleForwardRefer ences(XMLHandler.java:1154)
>>
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLHandler.endDocument(XMLHan dler.java:1228)
>>
>> at
>> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .endDocument(Unknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(Unknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
>> Source)
>> at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(U nknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(Unknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSA XParser.parse(Unknown
>> Source)
>> at javax.xml.parsers.SAXParser.parse(Unknown Source)
>> at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:181)
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLRes ourceImpl.java:180)
>>
>> at
>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1494)
>>
>> at
>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1282)
>>
>> at
>> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetImpl.java:255)
>>
>> at
>> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:270)
>>
>> ... 8 more
Re: Unable to load serialized data model [message #646647 is a reply to message #646625] Wed, 29 December 2010 15:43 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Martin,

Have you tried setting a breakpoint on the constructor for this
exception? You'll then see how it arises. You might also try setting a
breakpoint in ResourceImpl.getEObject and make it conditional for this
particular fragment.



Martin Tauber wrote:
> Hi Ed,
>
> I've been playing around a little bit. I'm 100% sure that the fragment
> is in the file. This other references work fine. This only happens
> when I am using a EList<> to refer the feature. So the Unresolved
> reference is part od a EList<> ....
>
> Regards
> Martin
>
> Am 18.12.10 02:32, schrieb Ed Merks:
>> Martin,
>>
>> Fragment paths segments use <feature-name>[.<index-in-feature] to walk
>> down the tree from the root, so you can follow it like a path to see why
>> that object isn't really there. I can only imagine this happening if you
>> edit the file by hand...
>>
>>
>> Martin Tauber wrote:
>>> Hi,
>>>
>>> I'm trying to load a data model which I first dumped using the example
>>> in the help tutorial. When I try to do that I get the attached
>>> stackdump indicating that an object is missing
>>>
>>> Unresolved reference
>>> '//@projects.0/@knowledgeBases.0/@folders.2/@resources.2/@pa rtitions.1'.
>>>
>>>
>>> how do I find this reference in my file? How can I debug this?
>>>
>>> Regards
>>> Martin
>>>
>>> !ENTRY org.eclipse.ui.workbench 4 2 2010-12-17 10:17:31.968
>>> !MESSAGE Problems occurred when invoking code from plug-in:
>>> "org.eclipse.ui.workbench".
>>> !STACK 0
>>> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1Diagnos ticWrappedException:
>>>
>>> org.eclipse.emf.ecore.xmi.UnresolvedReferenceException: Unresolved
>>> reference
>>> '//@projects.0/@knowledgeBases.0/@folders.2/@resources.2/@pa rtitions.1'.
>>>
>>> ( file://.psf/Home/Documents/eclipse-rcp-helios-SR1-win32/ecli pse/cache.xmi,
>>>
>>> 2478, 264)
>>> at
>>> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDe mandLoadException(ResourceSetImpl.java:315)
>>>
>>>
>>> at
>>> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:274)
>>>
>>>
>>> at
>>> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java:397)
>>>
>>>
>>> at com.tabuso.durban.model.impl.CacheImpl.load(CacheImpl.java:1 61)
>>> at com.tabuso.durban.Startup.earlyStartup(Startup.java:21)
>>> at
>>> org.eclipse.ui.internal.EarlyStartupRunnable.runEarlyStartup (EarlyStartupRunnable.java:87)
>>>
>>>
>>> at
>>> org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartu pRunnable.java:66)
>>>
>>>
>>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
>>> at org.eclipse.ui.internal.Workbench$59.run(Workbench.java:2409 )
>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
>>> Caused by: org.eclipse.emf.ecore.xmi.UnresolvedReferenceException:
>>> Unresolved reference
>>> '//@projects.0/@knowledgeBases.0/@folders.2/@resources.2/@pa rtitions.1'.
>>>
>>> ( file://.psf/Home/Documents/eclipse-rcp-helios-SR1-win32/ecli pse/cache.xmi,
>>>
>>> 2478, 264)
>>> at
>>> org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleForwardRefer ences(XMLHandler.java:1154)
>>>
>>>
>>> at
>>> org.eclipse.emf.ecore.xmi.impl.XMLHandler.endDocument(XMLHan dler.java:1228)
>>>
>>>
>>> at
>>> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .endDocument(Unknown
>>>
>>> Source)
>>> at
>>> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(Unknown
>>>
>>> Source)
>>> at
>>> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
>>>
>>> Source)
>>> at
>>> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
>>>
>>> Source)
>>> at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(U nknown
>>> Source)
>>> at
>>> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(Unknown
>>>
>>> Source)
>>> at
>>> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSA XParser.parse(Unknown
>>>
>>> Source)
>>> at javax.xml.parsers.SAXParser.parse(Unknown Source)
>>> at
>>> org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:181)
>>> at
>>> org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLRes ourceImpl.java:180)
>>>
>>>
>>> at
>>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1494)
>>>
>>>
>>> at
>>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1282)
>>>
>>>
>>> at
>>> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetImpl.java:255)
>>>
>>>
>>> at
>>> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:270)
>>>
>>>
>>> ... 8 more
>>>
>>> !ENTRY org.eclipse.ui 4 4 2010-12-17 10:17:32.235
>>> !MESSAGE Unhandled Exception
>>>
>>> !ENTRY com.tabuso.durban 4 0 2010-12-17 10:17:32.250
>>> !MESSAGE Unable to execute early startup code for an extension
>>> !STACK 0
>>> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1Diagnos ticWrappedException:
>>>
>>> org.eclipse.emf.ecore.xmi.UnresolvedReferenceException: Unresolved
>>> reference
>>> '//@projects.0/@knowledgeBases.0/@folders.2/@resources.2/@pa rtitions.1'.
>>>
>>> ( file://.psf/Home/Documents/eclipse-rcp-helios-SR1-win32/ecli pse/cache.xmi,
>>>
>>> 2478, 264)
>>> at
>>> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDe mandLoadException(ResourceSetImpl.java:315)
>>>
>>>
>>> at
>>> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:274)
>>>
>>>
>>> at
>>> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java:397)
>>>
>>>
>>> at com.tabuso.durban.model.impl.CacheImpl.load(CacheImpl.java:1 61)
>>> at com.tabuso.durban.Startup.earlyStartup(Startup.java:21)
>>> at
>>> org.eclipse.ui.internal.EarlyStartupRunnable.runEarlyStartup (EarlyStartupRunnable.java:87)
>>>
>>>
>>> at
>>> org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartu pRunnable.java:66)
>>>
>>>
>>> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
>>> at org.eclipse.ui.internal.Workbench$59.run(Workbench.java:2409 )
>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
>>> Caused by: org.eclipse.emf.ecore.xmi.UnresolvedReferenceException:
>>> Unresolved reference
>>> '//@projects.0/@knowledgeBases.0/@folders.2/@resources.2/@pa rtitions.1'.
>>>
>>> ( file://.psf/Home/Documents/eclipse-rcp-helios-SR1-win32/ecli pse/cache.xmi,
>>>
>>> 2478, 264)
>>> at
>>> org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleForwardRefer ences(XMLHandler.java:1154)
>>>
>>>
>>> at
>>> org.eclipse.emf.ecore.xmi.impl.XMLHandler.endDocument(XMLHan dler.java:1228)
>>>
>>>
>>> at
>>> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .endDocument(Unknown
>>>
>>> Source)
>>> at
>>> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(Unknown
>>>
>>> Source)
>>> at
>>> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
>>>
>>> Source)
>>> at
>>> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
>>>
>>> Source)
>>> at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(U nknown
>>> Source)
>>> at
>>> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(Unknown
>>>
>>> Source)
>>> at
>>> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSA XParser.parse(Unknown
>>>
>>> Source)
>>> at javax.xml.parsers.SAXParser.parse(Unknown Source)
>>> at
>>> org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:181)
>>> at
>>> org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLRes ourceImpl.java:180)
>>>
>>>
>>> at
>>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1494)
>>>
>>>
>>> at
>>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1282)
>>>
>>>
>>> at
>>> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetImpl.java:255)
>>>
>>>
>>> at
>>> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:270)
>>>
>>>
>>> ... 8 more
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:[CDO + Teneo] Use CDO with Teneo 1.1.2 or 1.2.0 ?
Next Topic:emf.Ecore2Java Ant task is flaky
Goto Forum:
  


Current Time: Fri Apr 26 06:39:06 GMT 2024

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

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

Back to the top