Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

*) trying to continue transferRWI processing even if this error occures: |> Caused by: de.anomic.kelondro.kelondroException: kelondroTree.searchproc: nullpointernull in db '.../urlHash.db' - if URL existence can not be determined, we request it from the remote peer

theli8194fde3409a
diff --git a/htroot/yacy/transferRWI.java b/htroot/yacy/transferRWI.java
index 04d583a85..a1e4c2490 100644
--- a/htroot/yacy/transferRWI.java
+++ b/htroot/yacy/transferRWI.java
@@ -130,8 +130,15 @@ public final class transferRWI {
serverCore.checkInterruption();
urlHash = entry.getUrlHash();
- if ((!(unknownURL.contains(urlHash))) &&
- (!(sb.urlPool.loadedURL.exists(urlHash)))) {
+ try {
+ if (
+ (!(unknownURL.contains(urlHash))) &&
+ (!(sb.urlPool.loadedURL.exists(urlHash)))
+ ) {
+ unknownURL.add(urlHash);
+ }
+ } catch (Exception ex) {
+ sb.getLog().logWarning("transferRWI: DB-Error while trying to determine if URL with hash '" + urlHash + "' is known.",ex);
unknownURL.add(urlHash);
}
received++;