Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo] StringIndexOutOfBoundsException during Acceleo Build
[Acceleo] StringIndexOutOfBoundsException during Acceleo Build [message #932965] Thu, 04 October 2012 12:07 Go to next message
Sergio Trentini is currently offline Sergio Trentini
Messages: 2
Registered: October 2012
Junior Member
Hi Acceleo-Fans,

For quite some time, I encounter an annoying error during Acceleo builds inside eclipse. As a result, mtl-files are not compiled into emtl files correctly.

Does anyone have an Idea, why this happens from time to time?

Thanks and Cheers
Sergio
-------
I'm running Acceleo 3.3.1 on Eclipse Juno

Here is the stacktrace:

java.lang.StringIndexOutOfBoundsException: String index out of range: -52
	at java.lang.AbstractStringBuilder.substring(Unknown Source)
	at java.lang.StringBuffer.substring(Unknown Source)
	at org.eclipse.acceleo.internal.parser.cst.utils.Sequence.indexOf(Sequence.java:115)
	at org.eclipse.acceleo.internal.parser.cst.utils.Sequence.search(Sequence.java:195)
	at org.eclipse.acceleo.internal.parser.cst.utils.Sequence.search(Sequence.java:179)
	at org.eclipse.acceleo.internal.parser.compiler.AcceleoProject.getFilesDependingOn(AcceleoProject.java:121)
	at org.eclipse.acceleo.internal.parser.compiler.AcceleoParser.buildImpactedModules(AcceleoParser.java:755)
	at org.eclipse.acceleo.internal.parser.compiler.AcceleoParser.build(AcceleoParser.java:436)
	at org.eclipse.acceleo.internal.parser.compiler.AcceleoParser.buildImpactedModules(AcceleoParser.java:763)
	at org.eclipse.acceleo.internal.parser.compiler.AcceleoParser.build(AcceleoParser.java:436)
	at org.eclipse.acceleo.internal.parser.compiler.AcceleoParser.buildAll(AcceleoParser.java:262)
	at org.eclipse.acceleo.internal.ide.ui.builders.AcceleoBuilder.buildAll(AcceleoBuilder.java:288)
	at org.eclipse.acceleo.internal.ide.ui.builders.AcceleoBuilder.build(AcceleoBuilder.java:152)
	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)

index.php/fa/11734/0/
  • Attachment: sioobe.png
    (Size: 25.92KB, Downloaded 192 times)
Re: [Acceleo] StringIndexOutOfBoundsException during Acceleo Build [message #933623 is a reply to message #932965] Fri, 05 October 2012 03:15 Go to previous messageGo to next message
Ed Willink is currently offline Ed Willink
Messages: 4010
Registered: July 2009
Senior Member
Hi

Looks like a new problem; raise a Bugzilla.

Regards

Ed Willink

On 04/10/2012 18:07, Sergio Trentini wrote:
> Hi Acceleo-Fans,
>
> For quite some time, I encounter an annoying error during Acceleo builds inside eclipse. As a result, mtl-files are not compiled into emtl files correctly.
>
> Does anyone have an Idea, why this happens from time to time?
>
> Thanks and Cheers
> Sergio
> -------
> I'm running Acceleo 3.3.1 on Eclipse Juno
>
> Here is the stacktrace:
>
> java.lang.StringIndexOutOfBoundsException: String index out of range: -52
> at java.lang.AbstractStringBuilder.substring(Unknown Source)
> at java.lang.StringBuffer.substring(Unknown Source)
> at org.eclipse.acceleo.internal.parser.cst.utils.Sequence.indexOf(Sequence.java:115)
> at org.eclipse.acceleo.internal.parser.cst.utils.Sequence.search(Sequence.java:195)
> at org.eclipse.acceleo.internal.parser.cst.utils.Sequence.search(Sequence.java:179)
> at org.eclipse.acceleo.internal.parser.compiler.AcceleoProject.getFilesDependingOn(AcceleoProject.java:121)
> at org.eclipse.acceleo.internal.parser.compiler.AcceleoParser.buildImpactedModules(AcceleoParser.java:755)
> at org.eclipse.acceleo.internal.parser.compiler.AcceleoParser.build(AcceleoParser.java:436)
> at org.eclipse.acceleo.internal.parser.compiler.AcceleoParser.buildImpactedModules(AcceleoParser.java:763)
> at org.eclipse.acceleo.internal.parser.compiler.AcceleoParser.build(AcceleoParser.java:436)
> at org.eclipse.acceleo.internal.parser.compiler.AcceleoParser.buildAll(AcceleoParser.java:262)
> at org.eclipse.acceleo.internal.ide.ui.builders.AcceleoBuilder.buildAll(AcceleoBuilder.java:288)
> at org.eclipse.acceleo.internal.ide.ui.builders.AcceleoBuilder.build(AcceleoBuilder.java:152)
> 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)
>
Re: [Acceleo] StringIndexOutOfBoundsException during Acceleo Build [message #933787 is a reply to message #933623] Fri, 05 October 2012 06:41 Go to previous message
Sergio Trentini is currently offline Sergio Trentini
Messages: 2
Registered: October 2012
Junior Member
Hi,

bug reported : https://bugs.eclipse.org/bugs/show_bug.cgi?id=391213

Cheers
Previous Topic:Dynamic directory
Next Topic:MWE2 and xpand outside eclipse
Goto Forum:
  


Current Time: Tue Jul 29 17:02:33 EDT 2014

Powered by FUDForum. Page generated in 0.02755 seconds