Skip to content

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

*) Better error handling if yacy SOAP extension is not installed See: http://www.yacy-forum.de/viewtopic.php?t=1040

theli8132a4430508
diff --git a/source/de/anomic/http/httpd.java b/source/de/anomic/http/httpd.java
index 97d793a53..6984b1f61 100644
--- a/source/de/anomic/http/httpd.java
+++ b/source/de/anomic/http/httpd.java
@@ -486,6 +486,12 @@ public final class httpd implements serverHandler {
} catch (Exception e) {
sendRespondHeader(this.prop,this.session.out,httpVersion,503,null);
return serverCore.TERMINATE_CONNECTION;
+ } catch (NoClassDefFoundError e) {
+ sendRespondError(this.prop,this.session.out,4,503,null,"SOAP Extension not installed",null);
+ return serverCore.TERMINATE_CONNECTION;
+ } catch (Error e) {
+ sendRespondHeader(this.prop,this.session.out,httpVersion,503,null);
+ return serverCore.TERMINATE_CONNECTION;
}
}
soapHandler.doGet(this.prop, header, this.session.out);
@@ -634,6 +640,12 @@ public final class httpd implements serverHandler {
} catch (Exception e) {
sendRespondHeader(this.prop,this.session.out,httpVersion,503,null);
return serverCore.TERMINATE_CONNECTION;
+ } catch (NoClassDefFoundError e) {
+ sendRespondError(this.prop,this.session.out,4,503,"SOAP Extension not installed","SOAP Extension not installed",null);
+ return serverCore.TERMINATE_CONNECTION;
+ } catch (Error e) {
+ sendRespondHeader(this.prop,this.session.out,httpVersion,503,null);
+ return serverCore.TERMINATE_CONNECTION;
}
}
soapHandler.doPost(prop, header, this.session.out, this.session.in);