{"issue":{"state":"open","created_at":"2011-12-02T21:33:43Z","updated_at":"2011-12-02T23:42:08Z","comments":1,"user":{"gravatar_id":"090658f76ee06014317a854abcd96e44","id":1237012,"url":"https://api.github.com/users/pirz","avatar_url":"https://secure.gravatar.com/avatar/090658f76ee06014317a854abcd96e44?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"pirz"},"body":"Hi,\r\n\r\nI am using ant 1.8.0, on an Ubuntu machine, and I am trying to build db layer for Cassandra.\r\nI have used Cassandra releases 0.7.8 and 0.7.6-2 and 0.7.0 but I constantly getting build failures. I have noticed that there was an already closed issue (issue #25) on this problem, which claims that the problems are solved for the versions I am using.\r\n\r\nBelow you can see the detailed failure message I am getting. \r\nAny help/hint would be great, as I really wanna use YCSB for benchmarking some KVS systems.\r\n\r\ndbcompile:\r\n    [javac] /home/pouria/KVS/YCSB/build.xml:63: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds\r\n    [javac] Compiling 1 source file to /home/pouria/KVS/YCSB/build/classes\r\n    [javac] /home/pouria/KVS/YCSB/db/cassandra-0.7/src/com/yahoo/ycsb/db/CassandraClient7.java:209: setColumn_names(java.util.List<java.nio.ByteBuffer>) in org.apache.cassandra.thrift.SlicePredicate cannot be applied to (java.util.ArrayList<byte[]>)\r\n    [javac]           predicate.setColumn_names(fieldlist);\r\n    [javac]                    ^\r\n    [javac] /home/pouria/KVS/YCSB/db/cassandra-0.7/src/com/yahoo/ycsb/db/CassandraClient7.java:213: get_slice(java.nio.ByteBuffer,org.apache.cassandra.thrift.ColumnParent,org.apache.cassandra.thrift.SlicePredicate,org.apache.cassandra.thrift.ConsistencyLevel) in org.apache.cassandra.thrift.Cassandra.Client cannot be applied to (byte[],org.apache.cassandra.thrift.ColumnParent,org.apache.cassandra.thrift.SlicePredicate,org.apache.cassandra.thrift.ConsistencyLevel)\r\n    [javac]         List<ColumnOrSuperColumn> results = client.get_slice(key.getBytes(\"UTF-8\"), parent, predicate,\r\n    [javac]                                                   ^\r\n    [javac] /home/pouria/KVS/YCSB/db/cassandra-0.7/src/com/yahoo/ycsb/db/CassandraClient7.java:224: cannot find symbol\r\n    [javac] symbol  : constructor String(java.nio.ByteBuffer)\r\n    [javac] location: class java.lang.String\r\n    [javac]           result.put(new String(column.name), new String(column.value));\r\n    [javac]                      ^\r\n    [javac] /home/pouria/KVS/YCSB/db/cassandra-0.7/src/com/yahoo/ycsb/db/CassandraClient7.java:224: cannot find symbol\r\n    [javac] symbol  : constructor String(java.nio.ByteBuffer)\r\n    [javac] location: class java.lang.String\r\n    [javac]           result.put(new String(column.name), new String(column.value));\r\n    [javac]                                               ^\r\n    [javac] /home/pouria/KVS/YCSB/db/cassandra-0.7/src/com/yahoo/ycsb/db/CassandraClient7.java:228: cannot find symbol\r\n    [javac] symbol  : constructor String(java.nio.ByteBuffer)\r\n    [javac] location: class java.lang.String\r\n    [javac]             System.out.print(\"(\" + new String(column.name) + \"=\" + new String(column.value) + \")\");\r\n    [javac]                                    ^\r\n    [javac] /home/pouria/KVS/YCSB/db/cassandra-0.7/src/com/yahoo/ycsb/db/CassandraClient7.java:228: cannot find symbol\r\n    [javac] symbol  : constructor String(java.nio.ByteBuffer)\r\n    [javac] location: class java.lang.String\r\n    [javac]             System.out.print(\"(\" + new String(column.name) + \"=\" + new String(column.value) + \")\");\r\n    [javac]                                                                    ^\r\n    [javac] /home/pouria/KVS/YCSB/db/cassandra-0.7/src/com/yahoo/ycsb/db/CassandraClient7.java:310: setColumn_names(java.util.List<java.nio.ByteBuffer>) in org.apache.cassandra.thrift.SlicePredicate cannot be applied to (java.util.ArrayList<byte[]>)\r\n    [javac]           predicate.setColumn_names(fieldlist);\r\n    [javac]                    ^\r\n    [javac] /home/pouria/KVS/YCSB/db/cassandra-0.7/src/com/yahoo/ycsb/db/CassandraClient7.java:329: cannot find symbol\r\n    [javac] symbol  : constructor String(java.nio.ByteBuffer)\r\n    [javac] location: class java.lang.String\r\n    [javac]             tuple.put(new String(column.name), new String(column.value));\r\n    [javac]                       ^\r\n    [javac] /home/pouria/KVS/YCSB/db/cassandra-0.7/src/com/yahoo/ycsb/db/CassandraClient7.java:329: cannot find symbol\r\n    [javac] symbol  : constructor String(java.nio.ByteBuffer)\r\n    [javac] location: class java.lang.String\r\n    [javac]             tuple.put(new String(column.name), new String(column.value));\r\n    [javac]                                                ^\r\n    [javac] /home/pouria/KVS/YCSB/db/cassandra-0.7/src/com/yahoo/ycsb/db/CassandraClient7.java:334: cannot find symbol\r\n    [javac] symbol  : constructor String(java.nio.ByteBuffer)\r\n    [javac] location: class java.lang.String\r\n    [javac]                   .print(\"(\" + new String(column.name) + \"=\" + new String(column.value) + \")\");\r\n    [javac]                                ^\r\n    [javac] /home/pouria/KVS/YCSB/db/cassandra-0.7/src/com/yahoo/ycsb/db/CassandraClient7.java:334: cannot find symbol\r\n    [javac] symbol  : constructor String(java.nio.ByteBuffer)\r\n    [javac] location: class java.lang.String\r\n    [javac]                   .print(\"(\" + new String(column.name) + \"=\" + new String(column.value) + \")\");\r\n    [javac]                                                                ^\r\n    [javac] /home/pouria/KVS/YCSB/db/cassandra-0.7/src/com/yahoo/ycsb/db/CassandraClient7.java:423: cannot find symbol\r\n    [javac] symbol  : constructor Column(byte[],byte[],long)\r\n    [javac] location: class org.apache.cassandra.thrift.Column\r\n    [javac]           Column col = new Column(field.getBytes(\"UTF-8\"), val.getBytes(\"UTF-8\"), timestamp);\r\n    [javac]                        ^\r\n    [javac] /home/pouria/KVS/YCSB/db/cassandra-0.7/src/com/yahoo/ycsb/db/CassandraClient7.java:433: batch_mutate(java.util.Map<java.nio.ByteBuffer,java.util.Map<java.lang.String,java.util.List<org.apache.cassandra.thrift.Mutation>>>,org.apache.cassandra.thrift.ConsistencyLevel) in org.apache.cassandra.thrift.Cassandra.Client cannot be applied to (java.util.Map<byte[],java.util.Map<java.lang.String,java.util.List<org.apache.cassandra.thrift.Mutation>>>,org.apache.cassandra.thrift.ConsistencyLevel)\r\n    [javac]         client.batch_mutate(batch_mutation, ConsistencyLevel.ONE);\r\n    [javac]               ^\r\n    [javac] /home/pouria/KVS/YCSB/db/cassandra-0.7/src/com/yahoo/ycsb/db/CassandraClient7.java:485: remove(java.nio.ByteBuffer,org.apache.cassandra.thrift.ColumnPath,long,org.apache.cassandra.thrift.ConsistencyLevel) in org.apache.cassandra.thrift.Cassandra.Client cannot be applied to (byte[],org.apache.cassandra.thrift.ColumnPath,long,org.apache.cassandra.thrift.ConsistencyLevel)\r\n    [javac]         client.remove(key.getBytes(\"UTF-8\"), new ColumnPath(column_family), System.currentTimeMillis(),\r\n    [javac]               ^\r\n    [javac] 14 errors\r\n\r\nBUILD FAILED\r\n","assignee":null,"id":2433311,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":56,"labels":[],"title":"Problem with ant dbcompile-cassandra-0.7","html_url":"https://github.com/brianfrankcooper/YCSB/issues/56","closed_at":null,"url":"https://api.github.com/repos/brianfrankcooper/YCSB/issues/56","milestone":null},"action":"created","comment":{"created_at":"2011-12-02T23:42:08Z","updated_at":"2011-12-02T23:42:08Z","user":{"gravatar_id":"a1b29183407c32fb91c4369cc294e4a6","id":910840,"url":"https://api.github.com/users/m1ch1","avatar_url":"https://secure.gravatar.com/avatar/a1b29183407c32fb91c4369cc294e4a6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"m1ch1"},"body":"Hi pirz,\r\n\r\nThe build works for me with the following jar files. Could you take a look at the list and see if you have any missing jar files or version mismatches?\r\n\r\nantlr-3.1.3.jar\r\napache-cassandra-0.7.8.jar\r\navro-1.4.0-fixes.jar\r\navro-1.4.0-sources-fixes.jar\r\ncommons-cli-1.1.jar\r\ncommons-codec-1.2.jar\r\ncommons-collections-3.2.1.jar\r\ncommons-lang-2.4.jar\r\nconcurrentlinkedhashmap-lru-1.1.jar\r\nguava-r05.jar\r\nhigh-scale-lib.jar\r\njackson-core-asl-1.4.0.jar\r\njackson-mapper-asl-1.4.0.jar\r\njetty-6.1.21.jar\r\njetty-util-6.1.21.jar\r\njline-0.9.94.jar\r\njson-simple-1.1.jar\r\njug-2.0.0.jar\r\nlibthrift-0.5.jar\r\nlog4j-1.2.16.jar\r\nservlet-api-2.5-20081211.jar\r\nslf4j-api-1.6.1.jar\r\nslf4j-log4j12-1.6.1.jar\r\nsnakeyaml-1.6.jar\r\n\r\nThanks!\r\n--Michi","id":2997516,"url":"https://api.github.com/repos/brianfrankcooper/YCSB/issues/comments/2997516"}}