I tried to build Nutch on Windows XP Pro and Debian Linux Woody, both with
ant 1.6.2 and Java 1.4.2, it worked well but i still get this error-message
when i try to compile it on Sarge.
Java Version: 1.4.2_08
I get this when I type "java -version": Just-in-time v3 Version: 1.1.x.cvs
Java Version:1.1
Ant Version: 1.6.2 compiled on July 16 2004
Nutch Version: Reversion 165124 downloaded today.
System: Debian Linux Sarge, downloaded on 20 April 2005
Error-Message:
Buildfile: build.xml
init:
[mkdir] Created dir: /data/test/nutch/trunk/build
[mkdir] Created dir: /data/test/nutch/trunk/build/classes
[mkdir] Created dir: /data/test/nutch/trunk/build/test
[mkdir] Created dir: /data/test/nutch/trunk/build/test/classes
[copy] Copying 4 files to /data/test/nutch/trunk/conf
[copy] Copying /data/test/nutch/trunk/conf/nutch-site.xml.template to
/data/test/nutch/trunk/conf/nutch-site.xml
[copy] Copying /data/test/nutch/trunk/conf/regex-normalize.xml.template
to /data/test/nutch/trunk/conf/regex-normalize.xml
[copy] Copying /data/test/nutch/trunk/conf/regex-urlfilter.txt.template
to /data/test/nutch/trunk/conf/regex-urlfilter.txt
[copy] Copying /data/test/nutch/trunk/conf/crawl-urlfilter.txt.template
to /data/test/nutch/trunk/conf/crawl-urlfilter.txt
compile-core:
[javac] Compiling 243 source files to
/data/test/nutch/trunk/build/classes
[javac] Issued 2 semantic warnings compiling
"/data/test/nutch/trunk/src/java/org/apache/nutch/analysis/NutchAnalysis.java":
[javac] 56. Token token;
[javac] ^---^
[javac] *** Semantic Warning: Local "token" shadows a field of the same
name in "org.apache.nutch.analysis.NutchAnalysis".
[javac] 269. Token token;
[javac] ^---^
[javac] *** Semantic Warning: Local "token" shadows a field of the same
name in "org.apache.nutch.analysis.NutchAnalysis".
[javac] Found 1 semantic error compiling
"/data/test/nutch/trunk/src/java/org/apache/nutch/searcher/Query.java":
[javac] 34. public final class Query implements Writable, Cloneable
{
[javac] ^------^
[javac] *** Semantic Error: Type "org.apache.nutch.searcher.Writable"
was not found.
[javac] Issued 2 semantic warnings compiling
"/data/test/nutch/trunk/src/java/org/apache/nutch/analysis/FastCharStream.java":
[javac] 102. public final int getColumn() {
[javac] ^---------^
[javac] *** Semantic Warning: The overridden method "int getColumn();"
is deprecated in type "org.apache.nutch.analysis.CharStream".
[javac] 105. public final int getLine() {
[javac] ^-------^
[javac] *** Semantic Warning: The overridden method "int getLine();" is
deprecated in type "org.apache.nutch.analysis.CharStream".
[javac] Issued 1 semantic warning compiling
"/data/test/nutch/trunk/src/java/org/apache/nutch/util/NutchConf.java":
[javac] 345. Properties properties = getProps();
[javac] ^--------^
[javac] *** Semantic Warning: Local "properties" shadows a field of the
same name in "org.apache.nutch.util.NutchConf".
[javac] Issued 1 semantic warning compiling
"/data/test/nutch/trunk/src/java/org/apache/nutch/io/MD5Hash.java":
[javac] 177. byte[] digest = new byte[MD5_LEN];
[javac] ^----^
[javac] *** Semantic Warning: Local "digest" shadows a field of the same
name in "org.apache.nutch.io.MD5Hash".
[javac] Issued 2 semantic warnings compiling
"/data/test/nutch/trunk/src/java/org/apache/nutch/io/SequenceFile.java":
[javac] 193. File file = new File(name);
[javac] ^--^
[javac] *** Semantic Warning: Local "file" shadows a field of the same
name in "org.apache.nutch.io.SequenceFile$Reader".
[javac] 308. int keyLength = in.readInt();
[javac] ^-------^
[javac] *** Semantic Warning: Local "keyLength" shadows a field of the
same name in "org.apache.nutch.io.SequenceFile$Reader".
[javac] Found 2 semantic errors and issued 1 warning compiling
"/data/test/nutch/trunk/src/java/org/apache/nutch/ndfs/NDFS.java":
[javac] 655. Socket s =
new Socket(mirrorTarget.getAddress(), mirrorTarget.getPort());
[javac] ^
[javac] *** Semantic Warning: Local "s" shadows a field of the same name
in "org.apache.nutch.ndfs.NDFS$DataNode$DataXceiver".
[javac] 917. LOG.info("Using ["+dataDir+"] directory for
data storage.");
[javac] ^-^
[javac] *** Semantic Error: Illegal use of name "LOG" which has not yet
been fully declared at this point.
[javac] 924. LOG.info("Lost connection to
namenode [" + datanode.nameNodeAddr + "]. Retrying...");
[javac] ^-^
[javac] *** Semantic Error: Illegal use of name "LOG" which has not yet
been fully declared at this point.
[javac] Found 1 semantic error compiling
"/data/test/nutch/trunk/src/java/org/apache/nutch/ipc/Client.java":
[javac] 204. public synchronized void callComplete(ParallelCall
call) {
[javac] ^----------^
[javac] *** Semantic Error: The static type
"org.apache.nutch.ipc.Client$ParallelResults" must use a qualified name to
access the non-static member type "org.apache.nutch.ipc.Client$ParallelCall"
of the enclosing type "org.apache.nutch.ipc.Client".
[javac] Found 2 semantic errors compiling
"/data/test/nutch/trunk/src/java/org/apache/nutch/ipc/Server.java":
[javac] 63. private Connection connection; //
connection to client
[javac] ^--------^
[javac] *** Semantic Error: The static type
"org.apache.nutch.ipc.Server$Call" must use a qualified nameto access the
non-static member type "org.apache.nutch.ipc.Server$Connection" of the
enclosing type "org.apache.nutch.ipc.Server".
[javac] 65. public Call(int id, Writable param, Connection
connection) {
[javac] ^--------^
[javac] *** Semantic Error: The static type
"org.apache.nutch.ipc.Server$Call" must use a qualified nameto access the
non-static member type "org.apache.nutch.ipc.Server$Connection" of the
enclosing type "org.apache.nutch.ipc.Server".
[javac] Issued 2 semantic warnings compiling
"/data/test/nutch/trunk/src/java/org/apache/nutch/tools/UpdateDatabaseTool.java":
[javac] 111. } else if (fo.getStatus() == fo.SUCCESS) {
// fetch succeed
[javac] ^-----^
[javac] *** Semantic Warning: Accessing the class field "SUCCESS" via an
instance is discouraged becausethe field accessed will be the one in the
variable's declared type, not the instance's dynamic type.
[javac] 118. } else if (fo.getStatus() == fo.RETRY &&
[javac] ^---^
[javac] *** Semantic Warning: Accessing the class field "RETRY" via an
instance is discouraged because the field accessed will be the one in the
variable's declared type, not the instance's dynamic type.
[javac] Issued 2 semantic warnings compiling
"/data/test/nutch/trunk/src/java/org/apache/nutch/db/WebDBWriter.java":
[javac] 1015. WritableComparator comparator = new
Link.MD5Comparator();
[javac] ^--------^
[javac] *** Semantic Warning: Local "comparator" shadows a field of the
same name in "org.apache.nutch.db.WebDBWriter$CloseProcessor".
[javac] 1242. WritableComparator comparator = new
Link.UrlComparator();
[javac] ^--------^
[javac] *** Semantic Warning: Local "comparator" shadows a field of the
same name in "org.apache.nutch.db.WebDBWriter$CloseProcessor".
[javac] Issued 4 semantic warnings compiling
"/data/test/nutch/trunk/src/java/org/apache/nutch/db/DistributedWebDBReader.java":
[javac] 113. Vector pagesByURL = new Vector(), pagesByMD5 =
new Vector(), linksByMD5 = new Vector(), linksByURL = new Vector();
[javac] ^--------^
[javac] *** Semantic Warning: Local "pagesByURL" shadows a field of the
same name in "org.apache.nutch.db.DistributedWebDBReader".
[javac] 113. Vector pagesByURL = new Vector(), pagesByMD5 =
new Vector(), linksByMD5 = new Vector(), linksByURL = new Vector();
[javac] ^--------^
[javac] *** Semantic Warning: Local "pagesByMD5" shadows a field of the
same name in "org.apache.nutch.db.DistributedWebDBReader".
[javac] 113. Vector pagesByURL = new Vector(), pagesByMD5 =
new Vector(), linksByMD5 = new Vector(), linksByURL = new Vector();
[javac]
^--------^
[javac] *** Semantic Warning: Local "linksByMD5" shadows a field of the
same name in "org.apache.nutch.db.DistributedWebDBReader".
[javac] 113. Vector pagesByURL = new Vector(), pagesByMD5 =
new Vector(), linksByMD5 = new Vector(), linksByURL = new Vector();
[javac] ^--------^
[javac] *** Semantic Warning: Local "linksByURL" shadows a field of the
same name in "org.apache.nutch.db.DistributedWebDBReader".
[javac] Issued 6 semantic warnings compiling
"/data/test/nutch/trunk/src/java/org/apache/nutch/db/DistributedWebDBWriter.java":
[javac] 1047. WritableComparator comparator = new
Link.MD5Comparator();
[javac] ^--------^
[javac] *** Semantic Warning: Local "comparator" shadows a field of the
same name in "org.apache.nutch.db.DistributedWebDBWriter$CloseProcessor".
[javac] 1274. WritableComparator comparator = new
Link.UrlComparator();
[javac] ^--------^
[javac] *** Semantic Warning: Local "comparator" shadows a field of the
same name in "org.apache.nutch.db.DistributedWebDBWriter$CloseProcessor".
[javac] 1684. File pagesByURL = new File(sectionDir,
PAGES_BY_URL);
[javac] ^--------^
[javac] *** Semantic Warning: Local "pagesByURL" shadows a field of the
same name in "org.apache.nutch.db.DistributedWebDBWriter".
[javac] 1685. File pagesByMD5 = new File(sectionDir,
PAGES_BY_MD5);
[javac] ^--------^
[javac] *** Semantic Warning: Local "pagesByMD5" shadows a field of the
same name in "org.apache.nutch.db.DistributedWebDBWriter".
[javac] 1686. File linksByURL = new File(sectionDir,
LINKS_BY_URL);
[javac] ^--------^
[javac] *** Semantic Warning: Local "linksByURL" shadows a field of the
same name in "org.apache.nutch.db.DistributedWebDBWriter".
[javac] 1687. File linksByMD5 = new File(sectionDir,
LINKS_BY_MD5);
[javac] ^--------^
[javac] *** Semantic Warning: Local "linksByMD5" shadows a field of the
same name in "org.apache.nutch.db.DistributedWebDBWriter".
[javac] Issued 1 semantic warning compiling
"/data/test/nutch/trunk/src/java/org/apache/nutch/db/EditSectionWriter.java":
[javac] 34. private final int COMPLETION_VERSION = 0;
[javac] ^--------------------^
[javac] *** Semantic Warning: Final field "COMPLETION_VERSION" is
initialized with a constant expressionand could be made static to save
space.
[javac] Issued 2 semantic warnings compiling
"/data/test/nutch/trunk/src/java/org/apache/nutch/fetcher/Fetcher.java":
[javac] 313. String name = list[i].getName();
[javac] ^--^
[javac] *** Semantic Warning: Local "name" shadows a field of the same
name in "org.apache.nutch.fetcher.Fetcher".
[javac] 432.
fetcher.setLogLevel(Level.parse(logLevel.toUpperCase()));
[javac] ^-----------------^
[javac] *** Semantic Warning: Invoking the class method "setLogLevel"
via an instance is discouraged because the method invoked will be the one in
the variable's declared type, not the instance's dynamic type.
[javac] Issued 1 semantic warning compiling
"/data/test/nutch/trunk/src/java/org/apache/nutch/indexer/IndexOptimizer.java":
[javac] 150. similarity.tf(termDocs.freq()) *
similarity.decodeNorm(norms[doc]);
[javac]
^-------------------^
[javac] *** Semantic Warning: Invoking the class method "decodeNorm" via
an instance is discouraged because the method invoked will be the one in the
variable's declared type, not the instance's dynamic type.
[javac] Issued 1 semantic warning compiling
"/data/test/nutch/trunk/src/java/org/apache/nutch/mapReduce/JobTrackerInfoServer.java":
[javac] 63. this.jobTracker = jobTracker;
[javac] ^--------^
[javac] *** Semantic Warning: Accessing the class field "jobTracker" via
an instance is discouraged because the field accessed will be the one in the
variable's declared type, not the instance's dynamic type.
[javac] Issued 1 semantic warning compiling
"/data/test/nutch/trunk/src/java/org/apache/nutch/mapReduce/ReduceTaskRunner.java":
[javac] 29. private static final Logger LOG =
[javac] ^-^
[javac] *** Semantic Warning: Field "LOG" shadows a field of the same
name in "org.apache.nutch.mapReduce.TaskRunner".
[javac] Issued 4 semantic warnings compiling
"/data/test/nutch/trunk/src/java/org/apache/nutch/net/protocols/HttpDateFormat.java":
[javac] 114. HttpDateFormat format = new HttpDateFormat();
[javac] ^----^
[javac] *** Semantic Warning: Local "format" shadows a field of the same
name in "org.apache.nutch.net.protocols.HttpDateFormat".
[javac] 118. String string = format.toString(now);
[javac] ^-------------^
[javac] *** Semantic Warning: Invoking the class method "toString" via
an instance is discouraged because the method invoked will be the one in the
variable's declared type, not the instance's dynamic type.
[javac] 120. long time = format.toLong(string);
[javac] ^-----------^
[javac] *** Semantic Warning: Invoking the class method "toLong" via an
instance is discouraged because the method invoked will be the one in the
variable's declared type, not the instance's dynamic type.
[javac] 123. System.out.println(format.toString(time));
[javac] ^-------------^
[javac] *** Semantic Warning: Invoking the class method "toString" via
an instance is discouraged because the method invoked will be the one in the
variable's declared type, not the instance's dynamic type.
[javac] Found 12 semantic errors and issued 1 warning compiling
"/data/test/nutch/trunk/src/java/org/apache/nutch/searcher/DistributedSearch.java":
[javac] 97. first = new Query();
[javac] ^-----------------^
[javac] *** Semantic Error: The type of the right sub-expression,
"org.apache.nutch.searcher.Query", is not assignable to the variable, of
type "org.apache.nutch.io.Writable".
[javac] 101. first = new Query();
[javac] ^-----------------^
[javac] *** Semantic Error: The type of the right sub-expression,
"org.apache.nutch.searcher.Query", is not assignable to the variable, of
type "org.apache.nutch.io.Writable".
[javac] 110. second = new Query();
[javac] ^------------------^
[javac] *** Semantic Error: The type of the right sub-expression,
"org.apache.nutch.searcher.Query", is not assignable to the variable, of
type "org.apache.nutch.io.Writable".
[javac] 209. value = bean.search((Query)p.first,
((IntWritable)p.second).get());
[javac] ^-----^
[javac] *** Semantic Error: An expression of type
"org.apache.nutch.io.Writable" cannot be cast into type
"org.apache.nutch.searcher.Query".
[javac] 212. value = new
UTF8(bean.getExplanation((Query)p.first, (Hit)p.second));
[javac]
^------------------------------------------------------^
[javac] *** Semantic Error: Ambiguous invocation of constructor "UTF8".
At least two constructors are accessible from here:
"UTF8(org.apache.nutch.io.UTF8 utf8);" and "UTF8(java.lang.String string);".
[javac] 212. value = new
UTF8(bean.getExplanation((Query)p.first, (Hit)p.second));
[javac]
^-----^
[javac] *** Semantic Error: An expression of type
"org.apache.nutch.io.Writable" cannot be cast into type
"org.apache.nutch.searcher.Query".
[javac] 218. value = new
UTF8(bean.getSummary((HitDetails)p.first,(Query)p.second));
[javac]
^--------------------------------------------------------^
[javac] *** Semantic Error: Ambiguous invocation of constructor "UTF8".
At least two constructors are accessible from here:
"UTF8(org.apache.nutch.io.UTF8 utf8);" and "UTF8(java.lang.String string);".
[javac] 218. value = new
UTF8(bean.getSummary((HitDetails)p.first,(Query)p.second));
[javac]
^------^
[javac] *** Semantic Error: An expression of type
"org.apache.nutch.io.Writable" cannot be cast into type
"org.apache.nutch.searcher.Query".
[javac] 384. Param param = new Param(OP_SEARCH, query, new
IntWritable(numHits));
[javac]
^---------------------------------------------------^
[javac] *** Semantic Error: No applicable overload was found for a
constructor with signature "Param(byte, org.apache.nutch.searcher.Query,
org.apache.nutch.io.IntWritable)" in type
"org.apache.nutch.searcher.DistributedSearch$Param". Perhaps you wanted the
overloaded version "Param(byte op, org.apache.nutch.io.Writable first,
org.apache.nutch.io.Writable second);" instead?
[javac] 413. Param param = new Param(OP_EXPLAIN, query, hit);
[javac] ^-------------------------------^
[javac] *** Semantic Error: No applicable overload was found for a
constructor with signature "Param(byte, org.apache.nutch.searcher.Query,
org.apache.nutch.searcher.Hit)" in type
"org.apache.nutch.searcher.DistributedSearch$Param". Perhaps you wanted the
overloaded version "Param(byte op, org.apache.nutch.io.Writable first,
org.apache.nutch.io.Writable second);" instead?
[javac] 441. Param param = new Param(OP_SUMMARY, hit, query);
[javac] ^-------------------------------^
[javac] *** Semantic Error: No applicable overload was found for a
constructor with signature "Param(byte,
org.apache.nutch.searcher.HitDetails, org.apache.nutch.searcher.Query)" in
type "org.apache.nutch.searcher.DistributedSearch$Param". Perhaps you wanted
the overloaded version "Param(byte op, org.apache.nutch.io.Writable first,
org.apache.nutch.io.Writable second);" instead?
[javac] 454. params[i] = new Param(OP_SUMMARY, hit, query);
[javac] ^-------------------------------^
[javac] *** Semantic Error: No applicable overload was found for a
constructor with signature "Param(byte,
org.apache.nutch.searcher.HitDetails, org.apache.nutch.searcher.Query)" in
type "org.apache.nutch.searcher.DistributedSearch$Param". Perhaps you wanted
the overloaded version "Param(byte op, org.apache.nutch.io.Writable first,
org.apache.nutch.io.Writable second);" instead?
[javac] 535. while (shouldrun=true){
[javac] ^------------^
[javac] *** Semantic Warning: Suggest parentheses around assignment used
as truth value.
[javac] Issued 4 semantic warnings compiling
"/data/test/nutch/trunk/src/java/org/apache/nutch/searcher/OpenSearchServlet.java":
[javac] 77. bean.LOG.info("query request from " +
request.getRemoteAddr());
[javac] ^-^
[javac] *** Semantic Warning: Accessing the class field "LOG" via an
instance is discouraged because thefield accessed will be the one in the
variable's declared type, not the instance's dynamic type.
[javac] 102. bean.LOG.info("query: " + queryString);
[javac] ^-^
[javac] *** Semantic Warning: Accessing the class field "LOG" via an
instance is discouraged because thefield accessed will be the one in the
variable's declared type, not the instance's dynamic type.
[javac] 109. bean.LOG.log(Level.WARNING, "Search Error", e);
[javac] ^-^
[javac] *** Semantic Warning: Accessing the class field "LOG" via an
instance is discouraged because thefield accessed will be the one in the
variable's declared type, not the instance's dynamic type.
[javac] 113. bean.LOG.info("total hits: " + hits.getTotal());
[javac] ^-^
[javac] *** Semantic Warning: Accessing the class field "LOG" via an
instance is discouraged because thefield accessed will be the one in the
variable's declared type, not the instance's dynamic type.
[javac] Issued 1 semantic warning compiling
"/data/test/nutch/trunk/src/java/org/apache/nutch/segment/SegmentSlicer.java":
[javac] 295. slicer.LOG.setLevel(Level.parse((new
String(logLevel)).toUpperCase()));
[javac] ^-^
[javac] *** Semantic Warning: Accessing the class field "LOG" via an
instance is discouraged because thefield accessed will be the one in the
variable's declared type, not the instance's dynamic type.
[javac] Issued 1 semantic warning compiling
"/data/test/nutch/trunk/src/java/org/apache/nutch/servlet/Cached.java":
[javac] 69. bean.LOG.info("request from " +
request.getRemoteAddr());
[javac] ^-^
[javac] *** Semantic Warning: Accessing the class field "LOG" via an
instance is discouraged because thefield accessed will be the one in the
variable's declared type, not the instance's dynamic type.
[javac] Issued 2 semantic warnings compiling
"/data/test/nutch/trunk/src/java/org/apache/nutch/tools/ParseSegment.java":
[javac] 502. ArrayFile.Reader fetcherNPReader = new
ArrayFile.Reader(nfs,
[javac] ^-------------^
[javac] *** Semantic Warning: Local "fetcherNPReader" shadows a field of
the same name in "org.apache.nutch.tools.ParseSegment".
[javac] 610. parseSegment.setLogLevel
[javac] ^----------------------^
[javac] *** Semantic Warning: Invoking the class method "setLogLevel"
via an instance is discouraged because the method invoked will be the one in
the variable's declared type, not the instance's dynamic type.
BUILD FAILED
/data/test/nutch/trunk/build.xml:65: Compile failed; see the compiler error
output for details.
Total time: 8 seconds
Does anybody know the solution or should a make a bug report?
Regards
Jakob
--
+++ Sparen beginnt mit GMX DSL: http://www.gmx.net/de/go/dsl