[antlr-interest] Internal error in the plugin manager (ANTLR3.2)

Marisa Strong Marisa.Strong at ucop.edu
Tue Jul 27 12:13:50 PDT 2010


Thanks Jim.  I updated the pom.xml to use the UTF-8 encodings.

Attached are the grammar files as well as the pom.xml file.

~marisa

-----Original Message-----
From: antlr-interest-bounces at antlr.org
[mailto:antlr-interest-bounces at antlr.org] On Behalf Of Jim Idle
Sent: Tuesday, July 27, 2010 10:53 AM
To: antlr-interest at antlr.org
Subject: Re: [antlr-interest] Internal error in the plugin manager
(ANTLR3.2)

Well, first you need to fix those ambiguities - if you post your grammar
then we can probably help. Then, there is either something screwy in
your .g file that is causing ANTLR to bomb out, or your pom is not
configured quite right in some way. So, again, post your grammar but
also post the pom.xml and then we can help.

You should also change the encoding property in your pom.xml to be UTF-8
so you don't get warnings about using platform specific encodings.

Jim

> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of Marisa Strong
> Sent: Tuesday, July 27, 2010 10:49 AM
> To: antlr-interest at antlr.org
> Subject: [antlr-interest] Internal error in the plugin manager (ANTLR
> 3.2)
> 
> Hello,
> 
> 
> 
> We are using ANTLR for our project and are running into this error
when
> executing a clean build using maven.
> 
> The sources get generated so we can continue on with the build after
> restarting, but we'd like to resolve the error.  We experience quite a
> few WARNING messages (some displayed below) but not sure if these are
> related to the ERROR.
> 
> 
> 
> Thanks for any help on this.
> 
> 
> 
> Marisa
> 
> 
> 
> 
> 
> > mvn --version
> 
> Apache Maven 2.2.1 (r801777; 2009-08-06 12:16:01-0700)
> 
> Java version: 1.6.0_20
> 
> Java home: C:\apps\Java\jdk1.6.0_20\jre
> 
> Default locale: en_US, platform encoding: Cp1252
> 
> OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
> 
> 
> 
> org\jhove2\module\format\sgml\SgmlParseMessages.g
> 
> warning(200):
org\jhove2\module\format\sgml\SgmlParseMessages.g:143:92:
> Decision can match input such as "MESSAGELEVEL..OTHERALPHA COLON
> BCKSLASH MESSAGELEVEL..OTHERALPHA COLON SLASH MESSAGELEVEL..OTHERALPHA
> COLON DIGIT COLON DIGIT COLON DIGIT DOT DIGIT COLON MESSAGELEVEL COLON
> {EOF, NEWLINE..OTHERCHAR}" using multiple alternatives: 1, 2
> 
> As a result, alternative(s) 2 were disabled for that input
> 
> warning(200):
org\jhove2\module\format\sgml\SgmlParseMessages.g:143:92:
> Decision can match input such as "{COLON..BCKSLASH, DIGIT..OTHERCHAR}"
> using multiple alternatives: 1, 2
> 
> As a result, alternative(s) 2 were disabled for that input
> 
> warning(200):
org\jhove2\module\format\sgml\SgmlParseMessages.g:143:92:
> Decision can match input such as "MESSAGELEVEL..OTHERALPHA COLON
> BCKSLASH MESSAGELEVEL..OTHERALPHA COLON SLASH MESSAGELEVEL..OTHERALPHA
> COLON DIGIT COLON DIGIT COLON DIGIT {EOF, NEWLINE..COLON,
> SLASH..OTHERALPHA, SPACE..OTHERCHAR}" using multiple alternatives: 1,
2
> 
> As a result, alternative(s) 2 were disabled for that input
> 
> warning(200):
org\jhove2\module\format\sgml\SgmlParseMessages.g:143:92:
> Decision can match input such as "MESSAGELEVEL..OTHERALPHA COLON {EOF,
> NEWLINE..SLASH, MESSAGELEVEL..OTHERCHAR}" using multiple alternatives:
> 1, 2
> 
> As a result, alternative(s) 2 were disabled for that input
> 
> [ERROR]
> 
> 
> 
> 
> 
> The following mojo encountered an error while executing:
> 
> Group-Id: org.antlr
> 
> Artifact-Id: antlr3-maven-plugin
> 
> Version: 3.2
> 
> Mojo: antlr
> 
> brought in via: POM
> 
> 
> 
> Error stacktrace:
> 
> org.apache.maven.lifecycle.LifecycleExecutionException: Internal error
> in the plugin manager executing goal
> 'org.antlr:antlr3-maven-plugin:3.2:antlr': Mojo execution failed.
> 
>       at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandl
> e
> Failures(DefaultLifecycleExecutor.java:505)
> 
>       at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentF
> o
> rProject(DefaultLifecycleExecutor.java:265)
> 
>       at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments
> (
> DefaultLifecycleExecutor.java:191)
> 
>       at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLife
> c
> ycleExecutor.java:149)
> 
>       at
>
org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java:223
> )
> 
>       at
>
org.apache.maven.DefaultMaven.execute_aroundBody1$advice(DefaultMaven.j
> a
> va:304)
> 
>       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1)
> 
>       at
>
org.apache.maven.embedder.MavenEmbedder.execute_aroundBody2(MavenEmbedd
> e
> r.java:904)
> 
>       at
>
org.apache.maven.embedder.MavenEmbedder.execute_aroundBody3$advice(Mave
> n
> Embedder.java:304)
> 
>       at
> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:1)
> 
>       at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:176)
> 
>       at org.apache.maven.cli.MavenCli.main(MavenCli.java:63)
> 
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 
>       at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
> v
> a:39)
> 
>       at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
> r
> Impl.java:25)
> 
>       at java.lang.reflect.Method.invoke(Method.java:597)
> 
>       at
>
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launch
> e
> r.java:289)
> 
>       at
>
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:
> 2
> 29)
> 
>       at
>
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Laun
> c
> her.java:408)
> 
>       at
>
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:35
> 1
> )
> 
>       at org.codehaus.classworlds.Launcher.main(Launcher.java:31)
> 
> Caused by: org.apache.maven.plugin.PluginExecutionException: Mojo
> execution failed.
> 
>       at
>
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginM
> a
> nager.java:601)
> 
>       at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandl
> e
> Failures(DefaultLifecycleExecutor.java:498)
> 
>       ... 20 more
> 
> Caused by: org.apache.maven.plugin.MojoExecutionException: ANTLR
caught
> 1 build errors.
> 
>       at org.antlr.mojo.antlr3.Antlr3Mojo.execute(Antlr3Mojo.java:397)
> 
>       at
>
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginM
> a
> nager.java:579)
> 
>       ... 21 more
> 
> 
> 
> 
> 
> 
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-
> email-address




List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org/mailman/options/antlr-interest/your-email-address
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SgmlParseMessages.g
Type: application/octet-stream
Size: 5546 bytes
Desc: SgmlParseMessages.g
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20100727/41aa7ea3/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DoctypeFinder.g
Type: application/octet-stream
Size: 6624 bytes
Desc: DoctypeFinder.g
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20100727/41aa7ea3/attachment-0001.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ESISCommands.g
Type: application/octet-stream
Size: 22367 bytes
Desc: ESISCommands.g
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20100727/41aa7ea3/attachment-0002.obj 


More information about the antlr-interest mailing list