Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Exception when doing a Save All
Exception when doing a Save All [message #816297] Thu, 08 March 2012 17:08 Go to next message
Henrik Wivel is currently offline Henrik WivelFriend
Messages: 4
Registered: February 2012
Junior Member
Hi

I am getting this stacktrace when I edit two model files, lets call them d1.q and d2.q, and change a list of root children in my really simple grammmer (A hierarchical model of Entities that can contain other Entities. Only attribute is an EString name). Both files are based on the same grammer, as the extension also indicates. When I change both files and press "Save All" i get the exception belov every time. Saving them one by one works fine. The cause has been located in the IGenerator Xtend implementation and is most likely a concurrency issue.

Any ideas to what is wrong?

Regards

Henrik Wivel


!ENTRY org.apache.log4j 4 0 2012-03-06 10:20:37.361
!MESSAGE org.eclipse.xtext.builder.impl.XtextBuilder - org.eclipse.core.internal.resources.ResourceException: Marker id 1503 not found.

!STACK 0
org.eclipse.emf.common.util.WrappedException: org.eclipse.core.internal.resources.ResourceException: Marker id 1503 not found.
at org.eclipse.xtext.util.Exceptions.throwUncheckedException(Exceptions.java:23)
at org.eclipse.xtext.builder.DerivedResourceMarkers$1.apply(DerivedResourceMarkers.java:131)
at org.eclipse.xtext.builder.DerivedResourceMarkers$1.apply(DerivedResourceMarkers.java:1)
at com.google.common.collect.Iterators$7.computeNext(Iterators.java:645)
at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:141)
at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:136)
at org.eclipse.xtext.builder.BuilderParticipant.build(BuilderParticipant.java:159)
at org.eclipse.xtext.builder.impl.RegistryBuilderParticipant.build(RegistryBuilderParticipant.java:60)
at org.eclipse.xtext.builder.impl.XtextBuilder.doBuild(XtextBuilder.java:160)
at org.eclipse.xtext.builder.impl.XtextBuilder.incrementalBuild(XtextBuilder.java:141)
at org.eclipse.xtext.builder.impl.XtextBuilder.build(XtextBuilder.java:91)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: org.eclipse.core.internal.resources.ResourceException: Marker id 1503 not found.
at org.eclipse.core.internal.resources.Marker.checkInfo(Marker.java:57)
at org.eclipse.core.internal.resources.Marker.getAttribute(Marker.java:98)
at org.eclipse.xtext.builder.DerivedResourceMarkers$1.apply(DerivedResourceMarkers.java:127)
... 21 more


Re: Exception when doing a Save All [message #816455 is a reply to message #816297] Thu, 08 March 2012 21:52 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3107
Registered: July 2009
Senior Member
Hi Henrik,

I assume this was already fixed for 2.3

Did you find the stacktrace in the log or did you see an error dialog in
Eclipse?

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 08.03.12 18:08, schrieb Henrik Wivel:
> Hi
> I am getting this stacktrace when I edit two model files, lets call them
> d1.q and d2.q, and change a list of root children in my really simple
> grammmer (A hierarchical model of Entities that can contain other
> Entities. Only attribute is an EString name). Both files are based on
> the same grammer, as the extension also indicates. When I change both
> files and press "Save All" i get the exception belov every time. Saving
> them one by one works fine. The cause has been located in the IGenerator
> Xtend implementation and is most likely a concurrency issue.
> Any ideas to what is wrong?
> Regards
>
> Henrik Wivel
>
> !ENTRY org.apache.log4j 4 0 2012-03-06 10:20:37.361
> !MESSAGE org.eclipse.xtext.builder.impl.XtextBuilder -
> org.eclipse.core.internal.resources.ResourceException: Marker id 1503
> not found.
>
> !STACK 0
> org.eclipse.emf.common.util.WrappedException:
> org.eclipse.core.internal.resources.ResourceException: Marker id 1503
> not found.
> at
> org.eclipse.xtext.util.Exceptions.throwUncheckedException(Exceptions.java:23)
>
> at
> org.eclipse.xtext.builder.DerivedResourceMarkers$1.apply(DerivedResourceMarkers.java:131)
>
> at
> org.eclipse.xtext.builder.DerivedResourceMarkers$1.apply(DerivedResourceMarkers.java:1)
>
> at com.google.common.collect.Iterators$7.computeNext(Iterators.java:645)
> at
> com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:141)
>
> at
> com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:136)
>
> at
> org.eclipse.xtext.builder.BuilderParticipant.build(BuilderParticipant.java:159)
>
> at
> org.eclipse.xtext.builder.impl.RegistryBuilderParticipant.build(RegistryBuilderParticipant.java:60)
>
> at
> org.eclipse.xtext.builder.impl.XtextBuilder.doBuild(XtextBuilder.java:160)
> at
> org.eclipse.xtext.builder.impl.XtextBuilder.incrementalBuild(XtextBuilder.java:141)
>
> at org.eclipse.xtext.builder.impl.XtextBuilder.build(XtextBuilder.java:91)
> at
> org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at
> org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
>
> at
> org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
>
> at
> org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at
> org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
>
> at
> org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
>
> at
> org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
> at
> org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
>
> at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
> Caused by: org.eclipse.core.internal.resources.ResourceException: Marker
> id 1503 not found.
> at org.eclipse.core.internal.resources.Marker.checkInfo(Marker.java:57)
> at org.eclipse.core.internal.resources.Marker.getAttribute(Marker.java:98)
> at
> org.eclipse.xtext.builder.DerivedResourceMarkers$1.apply(DerivedResourceMarkers.java:127)
>
> ... 21 more
>
>
>
Re: Exception when doing a Save All [message #819005 is a reply to message #816455] Mon, 12 March 2012 11:14 Go to previous message
Henrik Wivel is currently offline Henrik WivelFriend
Messages: 4
Registered: February 2012
Junior Member
Hi Sebastian

I am on Xtext 2.3 and the error showed up in the Console window.

Henrik
Previous Topic:Some Questions
Next Topic:Xtend- Copy files
Goto Forum:
  


Current Time: Fri Apr 10 10:51:44 GMT 2020

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

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

Back to the top