Ramesh Mandaleeka created CASSANDRA-7936: --------------------------------------------
Summary: Cassandra is not getting compiled on Java 1.8 Key: CASSANDRA-7936 URL: https://issues.apache.org/jira/browse/CASSANDRA-7936 Project: Cassandra Issue Type: Bug Components: Core Environment: $ java -version java version "1.8.0" Java(TM) SE Runtime Environment (build 1.8.0-b132) Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode) $ ant -version Apache Ant(TM) version 1.9.4 compiled on April 29 2014 Reporter: Ramesh Mandaleeka Fix For: 2.1.0 I'm trying to install a new cluster based on the following command and getting an error: ccm create cluster1 --cassandra-version 2.1.0 Not sure if the issue is with ccm or cassandra. gen-cql3-grammar: [echo] Building Grammar /Users/ramesh/.ccm/repository/2.1.0/src/java/org/apache/cassandra/cql3/Cql.g ... [java] error(10): internal error: Can't get property indirectDelegates using method get/isIndirectDelegates from org.antlr.tool.Grammar instance : java.lang.NullPointerException [java] java.util.Objects.requireNonNull(Objects.java:203) [java] java.util.ArrayList.removeAll(ArrayList.java:674) [java] org.antlr.tool.CompositeGrammar.getIndirectDelegates(CompositeGrammar.java:222) [java] org.antlr.tool.Grammar.getIndirectDelegates(Grammar.java:2620) [java] sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [java] sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [java] java.lang.reflect.Method.invoke(Method.java:483) [java] org.antlr.stringtemplate.language.ASTExpr.invokeMethod(ASTExpr.java:564) [java] org.antlr.stringtemplate.language.ASTExpr.rawGetObjectProperty(ASTExpr.java:515) [java] org.antlr.stringtemplate.language.ASTExpr.getObjectProperty(ASTExpr.java:417) [java] org.antlr.stringtemplate.language.ActionEvaluator.attribute(ActionEvaluator.java:351) [java] org.antlr.stringtemplate.language.ActionEvaluator.expr(ActionEvaluator.java:136) [java] org.antlr.stringtemplate.language.ActionEvaluator.templateApplication(ActionEvaluator.java:216) [java] org.antlr.stringtemplate.language.ActionEvaluator.expr(ActionEvaluator.java:126) [java] org.antlr.stringtemplate.language.ActionEvaluator.action(ActionEvaluator.java:84) [java] org.antlr.stringtemplate.language.ASTExpr.write(ASTExpr.java:149) [java] org.antlr.stringtemplate.StringTemplate.write(StringTemplate.java:705) [java] org.antlr.stringtemplate.language.ASTExpr.writeTemplate(ASTExpr.java:750) [java] org.antlr.stringtemplate.language.ASTExpr.write(ASTExpr.java:680) [java] org.antlr.stringtemplate.language.ASTExpr.writeAttribute(ASTExpr.java:660) [java] org.antlr.stringtemplate.language.ActionEvaluator.action(ActionEvaluator.java:86) [java] org.antlr.stringtemplate.language.ASTExpr.write(ASTExpr.java:149) [java] org.antlr.stringtemplate.StringTemplate.write(StringTemplate.java:705) [java] org.antlr.stringtemplate.language.ASTExpr.writeTemplate(ASTExpr.java:750) [java] org.antlr.stringtemplate.language.ASTExpr.write(ASTExpr.java:680) [java] org.antlr.stringtemplate.language.ASTExpr.writeAttribute(ASTExpr.java:660) [java] org.antlr.stringtemplate.language.ActionEvaluator.action(ActionEvaluator.java:86) [java] org.antlr.stringtemplate.language.ASTExpr.write(ASTExpr.java:149) [java] org.antlr.stringtemplate.StringTemplate.write(StringTemplate.java:705) [java] org.antlr.stringtemplate.language.ASTExpr.writeTemplate(ASTExpr.java:750) [java] org.antlr.stringtemplate.language.ASTExpr.write(ASTExpr.java:680) [java] org.antlr.stringtemplate.language.ASTExpr.writeAttribute(ASTExpr.java:660) [java] org.antlr.stringtemplate.language.ActionEvaluator.action(ActionEvaluator.java:86) [java] org.antlr.stringtemplate.language.ASTExpr.write(ASTExpr.java:149) [java] org.antlr.stringtemplate.StringTemplate.write(StringTemplate.java:705) [java] org.antlr.codegen.CodeGenerator.write(CodeGenerator.java:1281) [java] org.antlr.codegen.Target.genRecognizerFile(Target.java:94) [java] org.antlr.codegen.CodeGenerator.genRecognizer(CodeGenerator.java:466) [java] org.antlr.Tool.generateRecognizer(Tool.java:641) [java] org.antlr.Tool.process(Tool.java:454) [java] org.antlr.Tool.main(Tool.java:91) BUILD FAILED /Users/ramesh/.ccm/repository/2.1.0/build.xml:239: Java returned: 1 Error: ccm create cluster1 --cassandra-version 2.1.0 Downloading http://archive.apache.org/dist/cassandra/2.1.0/apache-cassandra-2.1.0-src.tar.gz to /var/folders/f6/m11dxbgn7nn4j32bvg63y8pc0000gq/T/ccm-Cvfvb8.tar.gz (15.750MB) 16514874 [100.00%] Extracting /var/folders/f6/m11dxbgn7nn4j32bvg63y8pc0000gq/T/ccm-Cvfvb8.tar.gz as version 2.1.0 ... Compiling Cassandra 2.1.0 ... Deleted /Users/ramesh/.ccm/repository/2.1.0 due to error Traceback (most recent call last): File "/usr/local/bin/ccm", line 5, in pkg_resources.run_script('ccm==1.2', 'ccm') File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 492, in run_script self.require(requires)[0].run_script(script_name, ns) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 1357, in run_script exec_(script_code, namespace, namespace) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 47, in exec_ exec("""exec code in globs, locs""") File "", line 1, in File "/Library/Python/2.7/site-packages/ccm-1.2-py2.7.egg/EGG-INFO/scripts/ccm", line 72, in File "build/bdist.macosx-10.10-intel/egg/ccmlib/cmds/cluster_cmds.py", line 99, in run File "build/bdist.macosx-10.10-intel/egg/ccmlib/cluster.py", line 43, in init File "build/bdist.macosx-10.10-intel/egg/ccmlib/repository.py", line 38, in setup File "build/bdist.macosx-10.10-intel/egg/ccmlib/repository.py", line 161, in download_version ccmlib.common.CCMError: Error compiling Cassandra. See /Users/ramesh/.ccm/repository/last.log for details -- This message was sent by Atlassian JIRA (v6.3.4#6332)