org.antlr.tool.Grammar.indirectDelegates error on build
Added by Blake McBride over 8 years ago
Greetings,
I have tried building the latest git version and jwt-3.3.4. I get the same error in each case. To start off with I am using Java 1.8.0_45 on a 64 bit Linux box. When I type "ant" I get:
$ ant
Buildfile: /home/blake/Backup/jwt-3.3.4/build.xml
run:
[java] warning(24): template error: context [/outputFile /parser /genericParser /region/genericParser__members] 32:3 no such property or can't access: org.antlr.tool.Grammar.indirectDelegates
[java] Caused by: org.stringtemplate.v4.misc.STNoSuchPropertyException: no such property: org.antlr.tool.Grammar.indirectDelegates
[java] at org.stringtemplate.v4.misc.ObjectModelAdaptor.throwNoSuchProperty(ObjectModelAdaptor.java:106)
[java] at org.stringtemplate.v4.misc.ObjectModelAdaptor.lookupMethod(ObjectModelAdaptor.java:99)
[java] at org.stringtemplate.v4.misc.ObjectModelAdaptor.getProperty(ObjectModelAdaptor.java:67)
[java] at org.stringtemplate.v4.Interpreter.getObjectProperty(Interpreter.java:1158)
[java] at org.stringtemplate.v4.Interpreter._exec(Interpreter.java:210)
[java] at org.stringtemplate.v4.Interpreter.exec(Interpreter.java:145)
[java] at org.stringtemplate.v4.Interpreter.writeObject(Interpreter.java:703)
[java] at org.stringtemplate.v4.Interpreter.writeObjectNoOptions(Interpreter.java:635)
[java] at org.stringtemplate.v4.Interpreter._exec(Interpreter.java:285)
[java] at org.stringtemplate.v4.Interpreter.exec(Interpreter.java:145)
[java] at org.stringtemplate.v4.Interpreter.writeObject(Interpreter.java:703)
[java] at org.stringtemplate.v4.Interpreter.writeObjectNoOptions(Interpreter.java:635)
[java] at org.stringtemplate.v4.Interpreter._exec(Interpreter.java:285)
[java] at org.stringtemplate.v4.Interpreter.exec(Interpreter.java:145)
[java] at org.stringtemplate.v4.Interpreter.writeObject(Interpreter.java:703)
[java] at org.stringtemplate.v4.Interpreter.writeObjectNoOptions(Interpreter.java:635)
[java] at org.stringtemplate.v4.Interpreter._exec(Interpreter.java:285)
[java] at org.stringtemplate.v4.Interpreter.exec(Interpreter.java:145)
[java] at org.stringtemplate.v4.ST.write(ST.java:415)
[java] at org.antlr.codegen.CodeGenerator.write(CodeGenerator.java:1296)
[java] at org.antlr.codegen.Target.genRecognizerFile(Target.java:98)
[java] at org.antlr.codegen.CodeGenerator.genRecognizer(CodeGenerator.java:459)
[java] at org.antlr.Tool.generateRecognizer(Tool.java:696)
[java] at org.antlr.Tool.process(Tool.java:509)
[java] at org.antlr.Tool.main(Tool.java:98)
[java] Caused by: java.lang.reflect.InvocationTargetException
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[java] at java.lang.reflect.Method.invoke(Method.java:497)
[java] at org.stringtemplate.v4.misc.Misc.invokeMethod(Misc.java:218)
[java] at org.stringtemplate.v4.misc.ObjectModelAdaptor.lookupMethod(ObjectModelAdaptor.java:84)
[java] ... 23 more
[java] Caused by: java.lang.NullPointerException
[java] at java.util.Objects.requireNonNull(Objects.java:203)
[java] at java.util.ArrayList.removeAll(ArrayList.java:689)
[java] at org.antlr.tool.CompositeGrammar.getIndirectDelegates(CompositeGrammar.java:226)
[java] at org.antlr.tool.Grammar.getIndirectDelegates(Grammar.java:2722)
[java] ... 29 more
[java]
build:
[mkdir] Created dir: /home/blake/Backup/jwt-3.3.4/build
[javac] /home/blake/Backup/jwt-3.3.4/build.xml:68: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 505 source files to /home/blake/Backup/jwt-3.3.4/build
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5
[javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 4 warnings
[copy] Copying 9 files to /home/blake/Backup/jwt-3.3.4/build/eu/webtoolkit/jwt/skeletons
[copy] Copying 915 files to /home/blake/Backup/jwt-3.3.4/build/eu/webtoolkit/jwt/wt-resources
[copy] Copied 220 empty directories to 4 empty directories under /home/blake/Backup/jwt-3.3.4/build/eu/webtoolkit/jwt/wt-resources
[copy] Copying 487 files to /home/blake/Backup/jwt-3.3.4/build
dist:
[jar] Building jar: /home/blake/Backup/jwt-3.3.4/dist/jwt-3.3.4.jar
[jar] Building jar: /home/blake/Backup/jwt-3.3.4/dist/jwt-auth-3.3.4.jar
all:
BUILD SUCCESSFUL
Total time: 20 seconds
Your help is appreciated!
Blake McBride
Replies (2)
RE: org.antlr.tool.Grammar.indirectDelegates error on build - Added by Koen Deforche over 8 years ago
Hey,
Maybe we have to update our antlr version for 1.8?
Regards,
koen
RE: org.antlr.tool.Grammar.indirectDelegates error on build - Added by Blake McBride over 8 years ago
I don't know. It makes sense to update though...