From xmlrpc-user-return-1551-apmail-ws-xmlrpc-user-archive=ws.apache.org@ws.apache.org Thu Dec 29 14:50:35 2005 Return-Path: Delivered-To: apmail-ws-xmlrpc-user-archive@www.apache.org Received: (qmail 92065 invoked from network); 29 Dec 2005 14:50:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 29 Dec 2005 14:50:35 -0000 Received: (qmail 13689 invoked by uid 500); 29 Dec 2005 14:50:26 -0000 Delivered-To: apmail-ws-xmlrpc-user-archive@ws.apache.org Received: (qmail 13492 invoked by uid 500); 29 Dec 2005 14:50:23 -0000 Mailing-List: contact xmlrpc-user-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: xmlrpc-user@ws.apache.org List-Id: Delivered-To: mailing list xmlrpc-user@ws.apache.org Received: (qmail 13434 invoked by uid 99); 29 Dec 2005 14:50:23 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Dec 2005 06:50:20 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [139.19.1.1] (HELO interferon.mpi-sb.mpg.de) (139.19.1.1) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Dec 2005 06:50:19 -0800 Received: from amavis by interferon.mpi-sb.mpg.de with scanned-ok (Exim 3.36 #1 (Debian)) id 1Erz6M-0005rj-00 for ; Thu, 29 Dec 2005 15:49:58 +0100 Received: from mpiat3405.ag3.mpi-sb.mpg.de ([139.19.34.46] ident=schlandi) by interferon.mpi-sb.mpg.de with esmtp (Exim 3.36 #1 (Debian)) id 1Erz6K-0005rP-00 for ; Thu, 29 Dec 2005 15:49:56 +0100 Message-ID: <43B3F794.6010603@mpi-inf.mpg.de> Date: Thu, 29 Dec 2005 15:49:56 +0100 From: Andreas Schlicker Reply-To: schlandi@mpi-inf.mpg.de User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: xmlrpc-user@ws.apache.org Subject: Re: XMLRPC client problem with long requests References: <437384EE54F0264DA2BBFB85FF859B730E31C4@winserver01.internal.ebootis.de> In-Reply-To: <437384EE54F0264DA2BBFB85FF859B730E31C4@winserver01.internal.ebootis.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by AMaViS perl-11 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Actually, the server does not close due to a timeout but I just found out that it looks like it is returning nothing. Schölver schrieb: > hi Andreas > > looks as if the server closed the connection due to a timeout ? > > Andreas > > >>-----Original Message----- >>From: Andreas Schlicker [mailto:schlandi@mpi-inf.mpg.de] >>Sent: Thursday, December 29, 2005 2:43 PM >>To: xmlrpc-user@ws.apache.org >>Subject: XMLRPC client problem with long requests >> >> >>Hi all, >> >>I'm using xmlrpc-2.0 with Java 1.5.0 (I think update 5). I have a >>problem with long requests. >> >>My Java client implementation calls a dummy PHP script that waits for >>some time and then returns the start and end times using XMLRPC. >>This works perfectly fine if the script waits for up to 5 minutes. >> >>The debug output from a successful call is: >> >>Created client to url space >>http://bioinf.mpi-sb.mpg.de/projects/gotax/wait.php >>Unable to determine the value of the system property >>'org.apache.xmlrpc.TypeFactory': access denied >>(java.util.PropertyPermission org.apache.xmlrpc.TypeFactory read) >>Beginning parsing XML input stream >>startElement: methodResponse >>startElement: params >>startElement: param >>startElement: value >>startElement: string >>endElement: string >>endElement: value >>endElement: param >>endElement: params >>endElement: methodResponse >>Spent 12 millis parsing >>Spent 150 millis in request/process/response >> >> >>However, the real application I'm interested in will take >>probably some >>hours. If the PHP script waits longer than five minutes I get the >>following error from XmlRpcClient with debug set to true: >> >>Created client to url space >>http://bioinf.mpi-sb.mpg.de/projects/gotax/wait.php >>Unable to determine the value of the system property >>'org.apache.xmlrpc.TypeFactory': access denied >>(java.util.PropertyPermission org.apache.xmlrpc.TypeFactory read) >>Spent 803665 millis in request/process/response >>Avoiding obscuring previous error by supressing error >>encountered while >>ending request: org.apache.xmlrpc.XmlRpcClientException: Exception >>closing URLConnection >>Unexpected end of file from server >>java.net.SocketException: Unexpected end of file from server >> at >>sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:684) >> at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:554) >> at >>sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:682) >> at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:554) >> at >>sun.net.www.protocol.http.HttpURLConnection.getInputStream(Htt >>pURLConnection.java:936) >> at >>org.apache.xmlrpc.DefaultXmlRpcTransport.sendXmlRpc(Unknown Source) >> at org.apache.xmlrpc.XmlRpcClientWorker.execute(Unknown Source) >> at org.apache.xmlrpc.XmlRpcClient.execute(Unknown Source) >> at org.apache.xmlrpc.XmlRpcClient.execute(Unknown Source) >> at org.apache.xmlrpc.XmlRpcClient.execute(Unknown Source) >> at gotaxexplorer.client.Runner.run(Runner.java:61) >> >> >>The XmlRpcClientLite throws this exception: >>XmlRpcClientLite: >>Server returned invalid Response. >>java.io.IOException: Server returned invalid Response. >> at >>org.apache.xmlrpc.LiteXmlRpcTransport.sendRequest(Unknown Source) >> at >>org.apache.xmlrpc.LiteXmlRpcTransport.sendXmlRpc(Unknown Source) >> at org.apache.xmlrpc.XmlRpcClientWorker.execute(Unknown Source) >> at org.apache.xmlrpc.XmlRpcClient.execute(Unknown Source) >> at org.apache.xmlrpc.XmlRpcClient.execute(Unknown Source) >> at org.apache.xmlrpc.XmlRpcClient.execute(Unknown Source) >> at gotaxexplorer.client.Runner.run(Runner.java:60) >> >> >>Here is the client code I use: >> >>XmlRpc.setKeepAlive(true); >>XmlRpc.setDebug(true); >>XmlRpcClient xml = new XmlRpcClient(url); >>Vector params = new Vector(2); >>params.addElement(query); >>params.addElement(param); >>Object result = xml.execute(method, params); >> >>Does anyone have an idea? >> >>Thanks in advance. >>Andreas >> > >