incubator-cassandra-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Dusbabek <gdusba...@gmail.com>
Subject Re: build fails with "ant clean gen-thrift-java build"
Date Thu, 03 Dec 2009 12:42:27 GMT
This seems to be a Thrift regression.  It is failing to generate any
but the no-arg constructors.  I saw this about a week ago but never
got around to filing a Thrift ticket against it.

Your best bet, other than rolling back to an older version of thrift,
is to add the constructors yourself from the old code.

Gary.


2009/12/1 Ted Zlatanov <tzz@lifelogs.com>:
> I am getting this error with a fresh SVN checkout (but not if I just do
> a build).  Am I missing something?  Reading the Ant build.xml didn't
> help, I don't see a better way to generate the bindings.  I thought it
> was my auth work but this happens from SVN as well (I need to regenerate
> the Thrift bindings because I provide extra methods and exceptions).
>
> Sorry if this is an obvious thing, it's my first time using Thrift...
>
> Thanks
> Ted
>
>> ant clean gen-thrift-java build
>
> Buildfile: build.xml
>
> clean:
>   [delete] Deleting directory /home/tzz/source/cassandra-trunk/build
>   [delete] Deleting directory /home/tzz/source/cassandra-trunk/src/gen-java
>
> gen-thrift-java:
>     [echo] Generating Thrift Java code from /home/tzz/source/cassandra-trunk/interface/cassandra.thrift
....
>
> build-subprojects:
>
> init:
>    [mkdir] Created dir: /home/tzz/source/cassandra-trunk/build/classes
>    [mkdir] Created dir: /home/tzz/source/cassandra-trunk/build/test/classes
>    [mkdir] Created dir: /home/tzz/source/cassandra-trunk/src/gen-java
>
> check-gen-cli-grammar:
>
> gen-cli-grammar:
>     [echo] Building Grammar /home/tzz/source/cassandra-trunk/src/java/org/apache/cassandra/cli/Cli.g
 ....
>
> build-project:
>     [echo] apache-cassandra-incubating: /home/tzz/source/cassandra-trunk/build.xml
>    [javac] Compiling 246 source files to /home/tzz/source/cassandra-trunk/build/classes
>    [javac] /home/tzz/source/cassandra-trunk/src/java/org/apache/cassandra/cli/CliClient.java:135:
cannot find symbol
>    [javac] symbol  : constructor ColumnParent(java.lang.String,<nulltype>)
>    [javac] location: class org.apache.cassandra.service.ColumnParent
>    [javac]                 List<ColumnOrSuperColumn> columns = thriftClient_.get_slice(tableName,
key, new ColumnParent(columnFamily, null), new SlicePredicate(null, range), ConsistencyLevel.ONE);
>    [javac]                                                
                                            ^
>    [javac] /home/tzz/source/cassandra-trunk/src/java/org/apache/cassandra/cli/CliClient.java:135:
cannot find symbol
>    [javac] symbol  : constructor SlicePredicate(<nulltype>,org.apache.cassandra.service.SliceRange)
>    [javac] location: class org.apache.cassandra.service.SlicePredicate
>    [javac]                 List<ColumnOrSuperColumn> columns = thriftClient_.get_slice(tableName,
key, new ColumnParent(columnFamily, null), new SlicePredicate(null, range), ConsistencyLevel.ONE);
>    [javac]                                                
                                                           
                      ^
>    [javac] /home/tzz/source/cassandra-trunk/src/java/org/apache/cassandra/cli/CliClient.java:162:
cannot find symbol
>    [javac] symbol  : constructor ColumnPath(java.lang.String,<nulltype>,byte[])
>    [javac] location: class org.apache.cassandra.service.ColumnPath
>    [javac]                 cosc = thriftClient_.get(tableName, key, new ColumnPath(columnFamily,
null, columnName.getBytes("UTF-8")), ConsistencyLevel.ONE);
>    [javac]                                                
         ^
>    [javac] /home/tzz/source/cassandra-trunk/src/java/org/apache/cassandra/cli/CliClient.java:205:
cannot find symbol
>    [javac] symbol  : constructor ColumnPath(java.lang.String,<nulltype>,byte[])
>    [javac] location: class org.apache.cassandra.service.ColumnPath
>    [javac]                 thriftClient_.insert(tableName, key, new ColumnPath(columnFamily,
null, columnName.getBytes("UTF-8")),
>    [javac]                                                
     ^
>    [javac] /home/tzz/source/cassandra-trunk/src/java/org/apache/cassandra/db/RangeSliceCommand.java:93:
cannot find symbol
>    [javac] symbol  : constructor ColumnParent(java.lang.String,byte[])
>    [javac] location: class org.apache.cassandra.service.ColumnParent
>    [javac]              new ColumnParent(cmd.column_family, cmd.super_column),
>    [javac]              ^
>    [javac] /home/tzz/source/cassandra-trunk/src/java/org/apache/cassandra/db/RangeSliceCommand.java:174:
cannot find symbol
>    [javac] symbol  : constructor ColumnParent(java.lang.String,byte[])
>    [javac] location: class org.apache.cassandra.service.ColumnParent
>    [javac]                                      new ColumnParent(column_family,
super_column),
>    [javac]                                      ^
>    [javac] /home/tzz/source/cassandra-trunk/src/java/org/apache/cassandra/service/CassandraServer.java:137:
cannot find symbol
>    [javac] symbol  : constructor ColumnOrSuperColumn(org.apache.cassandra.service.Column,<nulltype>)
>    [javac] location: class org.apache.cassandra.service.ColumnOrSuperColumn
>    [javac]             thriftColumns.add(new ColumnOrSuperColumn(thrift_column,
null));
>    [javac]                               ^
>    [javac] /home/tzz/source/cassandra-trunk/src/java/org/apache/cassandra/service/CassandraServer.java:158:
cannot find symbol
>    [javac] symbol  : constructor ColumnOrSuperColumn(<nulltype>,org.apache.cassandra.service.SuperColumn)
>    [javac] location: class org.apache.cassandra.service.ColumnOrSuperColumn
>    [javac]             thriftSuperColumns.add(new ColumnOrSuperColumn(null, superColumn));
>    [javac]                                    ^
>    [javac] /home/tzz/source/cassandra-trunk/src/java/org/apache/cassandra/service/CassandraServer.java:344:
cannot find symbol
>    [javac] symbol  : constructor ColumnOrSuperColumn(org.apache.cassandra.service.Column,<nulltype>)
>    [javac] location: class org.apache.cassandra.service.ColumnOrSuperColumn
>    [javac]                                           ? new ColumnOrSuperColumn(new
Column(column.name(), column.value(), column.timestamp()), null)
>    [javac]                                             ^
>    [javac] /home/tzz/source/cassandra-trunk/src/java/org/apache/cassandra/service/CassandraServer.java:345:
cannot find symbol
>    [javac] symbol  : constructor ColumnOrSuperColumn(<nulltype>,org.apache.cassandra.service.SuperColumn)
>    [javac] location: class org.apache.cassandra.service.ColumnOrSuperColumn
>    [javac]                                           : new ColumnOrSuperColumn(null,
new SuperColumn(column.name(), thriftifySubColumns(column.getSubColumns())));
>    [javac]                                             ^
>    [javac] /home/tzz/source/cassandra-trunk/src/java/org/apache/cassandra/service/CassandraServer.java:433:
cannot find symbol
>    [javac] symbol  : constructor ColumnPath(java.lang.String,<nulltype>,byte[])
>    [javac] location: class org.apache.cassandra.service.ColumnPath
>    [javac]                     ThriftValidation.validateColumnPath(keyspace,
new ColumnPath(cfName, null, cosc.column.name));
>    [javac]                                                
                  ^
>    [javac] /home/tzz/source/cassandra-trunk/src/java/org/apache/cassandra/service/CassandraServer.java:439:
cannot find symbol
>    [javac] symbol  : constructor ColumnPath(java.lang.String,byte[],byte[])
>    [javac] location: class org.apache.cassandra.service.ColumnPath
>    [javac]                         ThriftValidation.validateColumnPath(keyspace,
new ColumnPath(cfName, cosc.super_column.name, c.name));
>    [javac]                                                
                      ^
>    [javac] /home/tzz/source/cassandra-trunk/src/java/org/apache/cassandra/service/CassandraServer.java:591:
cannot find symbol
>    [javac] symbol  : constructor ColumnOrSuperColumn(org.apache.cassandra.service.Column,<nulltype>)
>    [javac] location: class org.apache.cassandra.service.ColumnOrSuperColumn
>    [javac]                     svcList.add(new ColumnOrSuperColumn(new org.apache.cassandra.service.Column(col.name(),
col.value(), col.timestamp()), null));
>    [javac]                                 ^
>    [javac] /home/tzz/source/cassandra-trunk/src/java/org/apache/cassandra/service/CassandraServer.java:598:
cannot find symbol
>    [javac] symbol  : constructor ColumnOrSuperColumn(<nulltype>,org.apache.cassandra.service.SuperColumn)
>    [javac] location: class org.apache.cassandra.service.ColumnOrSuperColumn
>    [javac]                     svcList.add(new ColumnOrSuperColumn(null,
new org.apache.cassandra.service.SuperColumn(col.name(), subCols)));
>    [javac]                                 ^
>    [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] 14 errors
>
> --
>
>

Mime
View raw message