Return-Path: Delivered-To: apmail-ws-soap-user-archive@www.apache.org Received: (qmail 78225 invoked from network); 19 Jan 2004 09:23:09 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 19 Jan 2004 09:23:09 -0000 Received: (qmail 54425 invoked by uid 500); 19 Jan 2004 09:22:38 -0000 Delivered-To: apmail-ws-soap-user-archive@ws.apache.org Received: (qmail 54406 invoked by uid 500); 19 Jan 2004 09:22:38 -0000 Mailing-List: contact soap-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: soap-user@ws.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list soap-user@ws.apache.org Received: (qmail 54395 invoked from network); 19 Jan 2004 09:22:38 -0000 Received: from unknown (HELO mail.intech-media-ag.de) (195.4.72.231) by daedalus.apache.org with SMTP; 19 Jan 2004 09:22:38 -0000 Received: by mail.intech-media-ag.de with MERCUR Mailserver (v4.02.28 MTIyLTIxNzctNjE1Ng==) for ; Mon, 19 Jan 2004 10:14:36 +0100 From: "Malte Kempff" To: Subject: WG: NumberFormatException parsing HTTP-Header Date: Mon, 19 Jan 2004 10:24:17 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi Scott, thanks for the hint about that matter. Is there a bug fix may be in the current or a future version of soap? it is pretty urgent for us. thanks in advance Malte -----Urspr�ngliche Nachricht----- Von: Scott Nichol [mailto:snicholnews@scottnichol.com] Gesendet: Mittwoch, 14. Januar 2004 22:08 An: soap-user@ws.apache.org Betreff: Re: NumberFormatException parsing HTTP-Header This is a bug in Apache SOAP. The HTTP 1.1 spec says about Message Headers The field-content does not include any leading or trailing LWS: linear white space occurring before the first non-whitespace character of the field-value or after the last non-whitespace character of the field-value. Apache SOAP specifically does not strip the trailing white space from the Content-Length, so when it calls Integer.parseInt() with the value shown below ("3957 "), the NumberFormatException is thrown. Scott Nichol Do not send e-mail directly to this e-mail address, because it is filtered to accept only mail from specific mail lists. ----- Original Message ----- From: "Malte Kempff" To: Sent: Wednesday, January 14, 2004 11:09 AM Subject: NumberFormatException parsing HTTP-Header > Hi, > since a customer has changed his firewall, Proxy-Software and so on, > he gets Exceptions like this one below, when he tries to use our application > which performs RPC-calls via SOAP. > > [SOAPException: faultCode=SOAP-ENV:Client; msg=Error parsing HTTP header > line "Content-Length: 3957 ": java.lang.NumberFormatException: 3957 ; > targetException=java.lang.NumberFormatException: 3957 ] > at org.apache.soap.util.net.HTTPUtils.post(Unknown Source) > at org.apache.soap.util.net.HTTPUtils.post(Unknown Source) > at org.apache.soap.transport.http.SOAPHTTPConnection.send(Unknown Source) > at org.apache.soap.rpc.Call.invoke(Unknown Source) > at org.apache.soap.rpc.Call.invoke(Unknown Source) > at > de.mc.etnbestterm.data.SoapCallingDataHolder.callSoaply(SoapCallingDataHolde > r.java:75) > at > de.mc.etnbestterm.data.MainDataHolder.connectServerToDB(MainDataHolder.java: > 457) > at de.mc.etnbestterm.data.MainDataHolder.(MainDataHolder.java:61) > at > de.mc.etnbestterm.data.SingletonManager.getMainDataHolder(SingletonManager.j > ava:49) > at de.mc.etnbestterm.gui.WillkommenPanel.jbInit(WillkommenPanel.java:62) > at de.mc.etnbestterm.gui.WillkommenPanel.(WillkommenPanel.java:52) > at de.mc.etnbestterm.gui.MainFrame.(MainFrame.java:40) > at de.mc.etnbestterm.Bestellterminal.jbInit(Bestellterminal.java:67) > at de.mc.etnbestterm.Bestellterminal.(Bestellterminal.java:45) > at de.mc.etnbestterm.Bestellterminal.main(Bestellterminal.java:119) > at java.lang.reflect.Method.invoke(Native Method) > at com.sun.javaws.Launcher.executeApplication(Unknown Source) > at com.sun.javaws.Launcher.executeMainClass(Unknown Source) > at com.sun.javaws.Launcher.continueLaunch(Unknown Source) > at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source) > at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source) > at com.sun.javaws.Launcher.run(Unknown Source) > at java.lang.Thread.run(Unknown Source) > Caused by: java.lang.NumberFormatException: 3957 > at java.lang.Integer.parseInt(Unknown Source) > at java.lang.Integer.parseInt(Unknown Source) > at org.apache.soap.util.net.HTTPUtils.post(Unknown Source) > at org.apache.soap.util.net.HTTPUtils.post(Unknown Source) > at org.apache.soap.transport.http.SOAPHTTPConnection.send(Unknown Source) > at org.apache.soap.rpc.Call.invoke(Unknown Source) > at org.apache.soap.rpc.Call.invoke(Unknown Source) > at > de.mc.etnbestterm.data.SoapCallingDataHolder.callSoaply(SoapCallingDataHolde > r.java:75) > at > de.mc.etnbestterm.data.MainDataHolder.connectServerToDB(MainDataHolder.java: > 457) > at de.mc.etnbestterm.data.MainDataHolder.(MainDataHolder.java:61) > at > de.mc.etnbestterm.data.SingletonManager.getMainDataHolder(SingletonManager.j > ava:49) > at de.mc.etnbestterm.gui.WillkommenPanel.jbInit(WillkommenPanel.java:62) > at de.mc.etnbestterm.gui.WillkommenPanel.(WillkommenPanel.java:52) > at de.mc.etnbestterm.gui.MainFrame.(MainFrame.java:40) > at de.mc.etnbestterm.Bestellterminal.jbInit(Bestellterminal.java:67) > at de.mc.etnbestterm.Bestellterminal.(Bestellterminal.java:45) > at de.mc.etnbestterm.Bestellterminal.main(Bestellterminal.java:119) > at java.lang.reflect.Method.invoke(Native Method) > at com.sun.javaws.Launcher.executeApplication(Unknown Source) > at com.sun.javaws.Launcher.executeMainClass(Unknown Source) > at com.sun.javaws.Launcher.continueLaunch(Unknown Source) > at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source) > at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source) > at com.sun.javaws.Launcher.run(Unknown Source) > at java.lang.Thread.run(Unknown Source) > > > The customer uses now the hardware firewall "Netscreen" and an ISA Server > 2000. > > What can I do about it? Is this a bug of SOAP? > > thanks in advance > > Malte > > > >