From a29cb2e1af887ebf191f092f9ba4f386f3b1f77b Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@6c8d7289-2bf4-0310-a012-ef5d649a1542> Date: Thu, 24 May 2007 16:14:46 +0000 Subject: [PATCH] blupp git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3759 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/js/WatchCrawler.js | 12 ++++++------ htroot/js/html.js | 4 ++-- htroot/js/yacysearch.js | 2 +- source/de/anomic/kelondro/kelondroAbstractOrder.java | 2 +- source/de/anomic/plasma/plasmaDHTChunk.java | 3 ++- 5 files changed, 12 insertions(+), 11 deletions(-) diff --git a/htroot/js/WatchCrawler.js b/htroot/js/WatchCrawler.js index edfe6536a..151618c0f 100644 --- a/htroot/js/WatchCrawler.js +++ b/htroot/js/WatchCrawler.js @@ -33,7 +33,7 @@ function countdown(){ document.getElementById("nextUpdate").innerHTML=wait; wait--; if(wait==0){ - refresh() + refresh(); } } function refresh(){ @@ -43,13 +43,13 @@ function refresh(){ } function requestStatus(){ - statusRPC=createRequestObject() + statusRPC=createRequestObject(); statusRPC.open('get', '/xml/status_p.xml'); statusRPC.onreadystatechange = handleStatus; - statusRPC.send(null) + statusRPC.send(null); } function requestQueues(){ - queuesRPC=createRequestObject() + queuesRPC=createRequestObject(); queuesRPC.open('get', '/xml/queues_p.xml'); queuesRPC.onreadystatechange = handleQueues; queuesRPC.send(null); @@ -61,9 +61,9 @@ function handleStatus(){ return; } var statusResponse = statusRPC.responseXML; - statusTag=getFirstChild(statusResponse, "status") + statusTag=getFirstChild(statusResponse, "status"); - ppm=getValue(getFirstChild(statusTag, "ppm")) + ppm=getValue(getFirstChild(statusTag, "ppm")); var ppmNum = document.getElementById("ppmNum"); removeAllChildren(ppmNum); diff --git a/htroot/js/html.js b/htroot/js/html.js index 29e36746c..1f8bd710d 100644 --- a/htroot/js/html.js +++ b/htroot/js/html.js @@ -31,6 +31,6 @@ function createLinkCol(url, linktext){ link.setAttribute("target", "_blank"); text=document.createTextNode(linktext); link.appendChild(text); - col.appendChild(link) - return col + col.appendChild(link); + return col; } \ No newline at end of file diff --git a/htroot/js/yacysearch.js b/htroot/js/yacysearch.js index d339faa7c..46dee02bf 100644 --- a/htroot/js/yacysearch.js +++ b/htroot/js/yacysearch.js @@ -60,7 +60,7 @@ function handleTextState(req) { var urlHash = response.getElementsByTagName("urlHash")[0].firstChild.data; var status = response.getElementsByTagName("status")[0].firstChild.data; - var span = document.getElementById("h" + urlHash) + var span = document.getElementById("h" + urlHash); removeAllChildren(span); //span.removeChild(span.firstChild); diff --git a/source/de/anomic/kelondro/kelondroAbstractOrder.java b/source/de/anomic/kelondro/kelondroAbstractOrder.java index b67873536..e713f7904 100644 --- a/source/de/anomic/kelondro/kelondroAbstractOrder.java +++ b/source/de/anomic/kelondro/kelondroAbstractOrder.java @@ -75,7 +75,7 @@ public abstract class kelondroAbstractOrder implements kelondroOrder { } /* else if ((a instanceof Integer) && (b instanceof Integer)) { return ((Integer) a).compareTo((Integer) b); } */ else - throw new IllegalArgumentException("Object type or Object type combination not supported: a=" + a + "[" + a.getClass().getName() + "], b=" + b + "[" + b.getClass().getName() + "]"); + throw new IllegalArgumentException("Object type or Object type combination not supported: a=" + a + ((a != null) ? "[" + a.getClass().getName() + "]" : "") + ", b=" + b + ((b != null) ? "[" + b.getClass().getName() + "]" : "")); } public byte[] zero() { diff --git a/source/de/anomic/plasma/plasmaDHTChunk.java b/source/de/anomic/plasma/plasmaDHTChunk.java index dae37ac8e..9bb63d831 100644 --- a/source/de/anomic/plasma/plasmaDHTChunk.java +++ b/source/de/anomic/plasma/plasmaDHTChunk.java @@ -286,7 +286,8 @@ public class plasmaDHTChunk { this.status = chunkStatus_FILLED; return refcount; } catch (kelondroException e) { - log.logSevere("selectTransferIndexes database corrupted: " + e.getMessage(), e); + //log.logSevere("selectTransferIndexes database corrupted: " + e.getMessage(), e); + log.logSevere("selectTransferIndexes database corrupted: " + e.getMessage()); indexContainers = new indexContainer[0]; urlCache = new HashMap(); this.status = chunkStatus_FAILED;