Skip to content

Instantly share code, notes, and snippets.

@agarciadom
Created August 18, 2016 15:56
Show Gist options
  • Save agarciadom/37ce94daba08276bc31ea7f309137e2c to your computer and use it in GitHub Desktop.
Save agarciadom/37ce94daba08276bc31ea7f309137e2c to your computer and use it in GitHub Desktop.
Exception when parsing an ATL file with a certain comment
-- @path OCL=http://www.eclipse.org/ocl/1.1.0/Ecore
-- @path Gremlin=/fr.inria.atlanmod.mogwai.gremlin/model/gremlin.ecore
-- Operations computing a value (collection or not) from a collection
-- transformations from OCL to Gremlin
-- Covered features are:
-- Complex collection operations (operations that necessitate variables to store intermediate
-- results and built-in function calls to compute the operation results)
-- Global variable creation (to store intermediate results)
-- Variable filling
-- Function definition handeling the actual operation (union, intersection)
-- Function call to perform the actual operation (union, intersection)
-- Operations returning a collection value
-- Collection Cast operations (asSet, asOrderedSet, asBag and asSequence)
-- Select operations
-- Reject operations
-- Collect operations (see rule comments for details)
-- Excluding operations
-- Including operations
-- Operation returning a non collection value
-- Excludes operations
-- ExcludesAll operations
-- Includes operations
-- IncludesAll operations
-- Exists operations
-- ForAll operations
-- Size operations
-- IsEmpty operations
-- First operations
-- Coding Guidelines
-- Each operation returning a collection have to be transformed
-- to a step chain that ends with a lastColStep (needed by collection
-- operations that use resolveTemp to set previousReference)
-- Operations returning another type should not be transformed to
-- a step chain ending with lastColStep (to avoid debugging error)
-- Author AtlanMod - Inria
java.io.IOException: Mark invalid
at java.io.BufferedReader.reset(BufferedReader.java:512)
at org.eclipse.m2m.atl.engine.compiler.AtlCompiler.compile(AtlCompiler.java:158)
at org.eclipse.m2m.atl.engine.compiler.AtlCompiler.compile(AtlCompiler.java:129)
at org.eclipse.m2m.atl.adt.AtlBuildVisitor.visit(AtlBuildVisitor.java:118)
at org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:119)
at org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:83)
at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:82)
at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:87)
at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:87)
at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:87)
at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:87)
at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:87)
at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:87)
at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:87)
at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:87)
at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:129)
at org.eclipse.core.internal.resources.Resource.accept(Resource.java:93)
at org.eclipse.core.internal.resources.Resource.accept(Resource.java:51)
at org.eclipse.core.internal.resources.Resource.accept(Resource.java:116)
at org.eclipse.core.internal.resources.Resource.accept(Resource.java:104)
at org.eclipse.m2m.atl.adt.AtlBuilder.fullBuild(AtlBuilder.java:68)
at org.eclipse.m2m.atl.adt.AtlBuilder$1.run(AtlBuilder.java:49)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2241)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2225)
at org.eclipse.m2m.atl.adt.AtlBuilder.run(AtlBuilder.java:108)
at org.eclipse.m2m.atl.adt.AtlBuilder.build(AtlBuilder.java:52)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:734)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:205)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:245)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:300)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:303)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:359)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:382)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:235)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment