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: 636
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

Hi,

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(LazyLinkingResource.java:499)
	at org.eclipse.xtext.linking.lazy.LazyLinkingResource.getLazyProxyInformation(LazyLinkingResource.java:506)
	at org.eclipse.xtext.linking.lazy.LazyURIEncoder.getLazyProxyInformation(LazyURIEncoder.java:148)
	at org.eclipse.xtext.linking.lazy.LazyURIEncoder.decode(LazyURIEncoder.java:127)
	at org.eclipse.xtext.linking.lazy.LazyLinkingResource.getEObject(LazyLinkingResource.java:223)
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getEObject(ResourceSetImpl.java:223)
	at org.eclipse.emf.ecore.util.EcoreUtil.resolve(EcoreUtil.java:203)
	at org.bonitasoft.studio.condition.ui.expression.XtextComparisonExpressionLoader.resolveProxies(XtextComparisonExpressionLoader.java:118)


When it occurs the resource is not saved with the following stacktrace:
!ENTRY org.bonitasoft.studio.common 4 0 2014-12-08 16:13:49.057
!MESSAGE 
!STACK 0
java.lang.IllegalStateException: The Xtext resource must contain at least one element.
	at org.eclipse.xtext.resource.XtextResource.doSave(XtextResource.java:333)
	at org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(ResourceImpl.java:1430)
	at org.eclipse.emf.ecore.resource.impl.ResourceImpl.saveOnlyIfChangedWithMemoryBuffer(ResourceImpl.java:1144)
	at org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(ResourceImpl.java:985)
	at org.bonitasoft.studio.model.process.diagram.part.ProcessDocumentProvider.doSaveDocument(ProcessDocumentProvider.java:649)
	at org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider$1SaveOperation.execute(AbstractDocumentProvider.java:596)
	at org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider$DocumentProviderOperation.run(AbstractDocumentProvider.java:66)
	at org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider.executeOperation(AbstractDocumentProvider.java:530)
	at org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider.saveDocument(AbstractDocumentProvider.java:579)
	at org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.DiagramDocumentEditor.performSave(DiagramDocumentEditor.java:864)
	at org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.DiagramDocumentEditor.doSave(DiagramDocumentEditor.java:684)


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 May 27 05:53:09 GMT 2019

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

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

Back to the top