Seen in Dan's Tsunami crawl:
Title: Problem occured processing
'http://www.bi.go.id/biweb/utama/peraturan/PBI-6-8-04.pdf'
Time: Apr. 8, 2005 13:23:56 GMT
Level: SEVERE
Message:
Problem java.lang.NullPointerException occured when
trying to process
'http://www.bi.go.id/biweb/utama/peraturan/PBI-6-8-04.pdf'
at step ABOUT_TO_BEGIN_PROCESSOR in HTTP
Associated Throwable: java.lang.NullPointerException
Stacktrace:
java.lang.NullPointerException
at
it.unimi.dsi.mg4j.io.FastBufferedOutputStream.close(FastBufferedOutputStrea
m.java:98)
at
org.archive.io.RecordingOutputStream.closeRecorder(RecordingOutputStream.ja
va:286)
at
org.archive.io.RecordingOutputStream.close(RecordingOutputStream.java:281)
at
org.archive.io.RecordingInputStream.close(RecordingInputStream.java:137)
at
org.archive.util.HttpRecorder.close(HttpRecorder.java:180)
at
org.archive.crawler.fetcher.FetchHTTP.cleanup(FetchHTTP.java:527)
at
org.archive.crawler.fetcher.FetchHTTP.innerProcess(FetchHTTP.java:391)
at
org.archive.crawler.framework.Processor.process(Processor.java:103)
at
org.archive.crawler.framework.ToeThread.processCrawlUri(ToeThread.java:272)
at
org.archive.crawler.framework.ToeThread.run(ToeThread.java:142)
Seems odd. Code looks like this:
public void close() throws IOException {
if ( os == null ) return;
if ( pos != 0 ) os.write( buffer, 0, pos );
if ( os != System.out ) os.close(); <== LINE 98.
os = null;
buffer = null;
}
How could line 98 throw an NPE unless another thread
was also going through close at same time?
Nobody/Anonymous
None
1.4.2
Public
|
Date: 2007-03-14 00:22
|
|
Date: 2005-04-19 00:08 Logged In: YES |
|
Date: 2005-04-12 18:31 Logged In: YES |
|
Date: 2005-04-12 17:04 Logged In: YES |
|
Date: 2005-04-08 23:19 Logged In: YES |
| Field | Old Value | Date | By |
|---|---|---|---|
| artifact_group_id | None | 2005-09-23 18:24 | gojomo |
| status_id | Open | 2005-04-19 00:08 | stack-sf |
| resolution_id | None | 2005-04-19 00:08 | stack-sf |
| close_date | - | 2005-04-19 00:08 | stack-sf |
| priority | 5 | 2005-04-12 18:31 | stack-sf |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use