Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » sometimes "resolution of uriFrgament '|0' failed." after Migration to Eclipse 4.4.1
sometimes "resolution of uriFrgament '|0' failed." after Migration to Eclipse 4.4.1 [message #1503562] Mon, 08 December 2014 15:26
Aurélien Pupier is currently offline Aurélien PupierFriend
Messages: 637
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member


I'm currently migrating from Eclipse 4.3 to Eclipse 4.4.1 and thus to Xtext 2.7.2.

After the migration, sometimes I encounter this error in log:

48127 [main] ERROR org.eclipse.xtext.linking.lazy.LazyLinkingResource  - resolution of uriFragment '|0' failed.
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
	at java.util.ArrayList.rangeCheck(Unknown Source)
	at java.util.ArrayList.get(Unknown Source)
	at org.eclipse.xtext.linking.lazy.LazyLinkingResource.hasLazyProxyInformation(
	at org.eclipse.xtext.linking.lazy.LazyLinkingResource.getLazyProxyInformation(
	at org.eclipse.xtext.linking.lazy.LazyURIEncoder.getLazyProxyInformation(
	at org.eclipse.xtext.linking.lazy.LazyURIEncoder.decode(
	at org.eclipse.xtext.linking.lazy.LazyLinkingResource.getEObject(
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getEObject(
	at org.eclipse.emf.ecore.util.EcoreUtil.resolve(

When it occurs the resource is not saved with the following stacktrace:
!ENTRY 4 0 2014-12-08 16:13:49.057
java.lang.IllegalStateException: The Xtext resource must contain at least one element.
	at org.eclipse.xtext.resource.XtextResource.doSave(
	at org.eclipse.emf.ecore.resource.impl.ResourceImpl.saveOnlyIfChangedWithMemoryBuffer(
	at org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider$1SaveOperation.execute(
	at org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider$
	at org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider.executeOperation(
	at org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider.saveDocument(

As it is random, I have some difficulties to investigate. So if someone might guide me in the good direction to know where I should at, I will appreciate.

Thanks by advance for any help

Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
Previous Topic:Generated files, SVN and "Replaced (Not Added)"
Next Topic:OutOfMemoryError when opening a large file in an XText-generated language editor
Goto Forum:

Current Time: Mon Oct 26 23:03:38 GMT 2020

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

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

Back to the top