nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhang JinYan (Created) (JIRA)" <>
Subject [jira] [Created] (NUTCH-1188) ERROR util.LogUtil - Cannot log with method [null]
Date Tue, 01 Nov 2011 15:03:32 GMT
ERROR util.LogUtil - Cannot log with method [null]

                 Key: NUTCH-1188
             Project: Nutch
          Issue Type: Bug
          Components: fetcher
    Affects Versions: 1.4
         Environment: no special enviroment
            Reporter: Zhang JinYan

LogUtil has static fields,which is initialized like this:
    FATAL = Logger.class.getMethod("error", new Class[] { Object.class });
but the Logger has no such method,the correct method is:
    void org.slf4j.Logger.error(String msg)
So,LogUtil's static fields are not initialized correctly(they are null)
Run crawl,you will find msg in hadoop.log:

    2011-11-01 22:38:14,442 ERROR util.LogUtil - Cannot log with method [null]
	at org.apache.nutch.util.LogUtil$1.flush(
	at sun.nio.cs.StreamEncoder.writeBytes(
	at sun.nio.cs.StreamEncoder.implFlushBuffer(
	at sun.nio.cs.StreamEncoder.flushBuffer(
	at java.lang.Throwable.printStackTraceAsCause(
	at java.lang.Throwable.printStackTrace(
	at org.apache.nutch.protocol.http.api.HttpBase.getProtocolOutput(
	at org.apache.nutch.fetcher.Fetcher$

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message