[stringtemplate-interest] Embedded error: Error attempting to access grammars within grammar file.
Collin Fagan
collin.fagan at gmail.com
Tue Dec 21 17:25:21 PST 2010
I got the sources from github but get an "Embedded error: Error attempting
to access grammars within grammar file." when I try to build.
Is there a page to walk you through building ST? I hate to bother the list
if this is a known issue and documented somewhere.
Thanks
Collin
On Tue, Dec 21, 2010 at 4:43 PM, Terence Parr <parrt at cs.usfca.edu> wrote:
> we need to add registerModelAdaptor like reg renderer then just look up
> when we do properties.
> T
>
> On Dec 21, 2010, at 12:55 PM, Collin Fagan wrote:
>
> Thats good news, thanks. I am familiar with the Introspection/Reflection
> API so let me know if there is anything I can do to help.
>
> Collin
>
> On Tue, Dec 21, 2010 at 12:04 PM, Terence Parr <parrt at cs.usfca.edu> wrote:
>
>> Hi Collin, we have *just* started talking about this :) In fact previous
>> messages are all about it. We need an adaptor mechanism that
>> overrides ASTExpr.GetObjectProperty to use adaptors to get classes and other
>> fields/methods not following javabeans.
>>
>> I haven't implemented but it's "easy" ;)
>>
>> Ter
>>
>> On Dec 20, 2010, at 1:55 PM, Collin Fagan wrote:
>>
>> Hi Everyone,
>>
>> I'm a big fan of StringTemplate but I've finally run into something I
>> can't do. Basically I would very much like to bridge StringTemplate to
>> java's Doclet API (
>> http://download.oracle.com/javase/6/docs/technotes/guides/javadoc/doclet/overview.html)
>> but the classes in com.sun.javadoc.* do not follow the getter + setter rule.
>> They have method names like classes(), methods() and the like. Is there a
>> way to override how ST looks for properties? Am I missing something where I
>> can just call methods()? My only other options seem to involve lots of
>> wrapping (not fun) or pushing everythign into maps (also not fun).
>>
>> Thanks,
>>
>> Collin
>>
>> P.S. I apologize in advance if this subject is well covered someplace
>> else.
>> _______________________________________________
>> stringtemplate-interest mailing list
>> stringtemplate-interest at antlr.org
>> http://www.antlr.org/mailman/listinfo/stringtemplate-interest
>>
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/stringtemplate-interest/attachments/20101221/d24dc6ce/attachment.html
-------------- next part --------------
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building ANTLR StringTemplate
[INFO] task-segment: [clean, install]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] [antlr:generate {execution: default}]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Unable to build grammar metadata
Embedded error: Error attempting to access grammars within grammar file
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to build grammar metadata
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to build grammar metadata
at org.codehaus.mojo.antlr.metadata.MetadataExtracter.processMetadata(MetadataExtracter.java:165)
at org.codehaus.mojo.antlr.AbstractAntlrMojo.executeAntlr(AbstractAntlrMojo.java:205)
at org.codehaus.mojo.antlr.AntlrPlugin.execute(AntlrPlugin.java:48)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
Caused by: org.apache.maven.plugin.MojoExecutionException: Error attempting to access grammars within grammar file
at org.codehaus.mojo.antlr.metadata.MetadataExtracter.intrepretMetadata(MetadataExtracter.java:211)
at org.codehaus.mojo.antlr.metadata.MetadataExtracter.processMetadata(MetadataExtracter.java:160)
... 21 more
Caused by: org.apache.maven.plugin.MojoExecutionException: Error accessing Antlr grammar metadata
at org.codehaus.mojo.antlr.metadata.MetadataExtracter.intrepret(MetadataExtracter.java:274)
at org.codehaus.mojo.antlr.metadata.MetadataExtracter.intrepretMetadata(MetadataExtracter.java:206)
... 22 more
Caused by: java.lang.NullPointerException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.mojo.antlr.metadata.MetadataExtracter.intrepret(MetadataExtracter.java:242)
... 23 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Tue Dec 21 19:15:41 CST 2010
[INFO] Final Memory: 9M/17M
[INFO] ------------------------------------------------------------------------
More information about the stringtemplate-interest
mailing list