Re: NoSuchElementException - Error parsing HTTP status line""
Aleksander Slominski <[email protected]> Mon, 07 Mar 2005 14:34:44 -0500
| Newsgroups | gmane.text.xml.soap.devel |
|---|---|
| Message-ID | <[email protected]> |
hi,
my limited experience with SOAPHTTPConnection would suggest it is
HTTPUtils and problem is in broken response from server that is not HTTP
(for exampel SSL?) or is oen line off (broken content length) as it
seems status line is empty ("" == "")
*throw* *new* SOAPException(Constants.FAULT_CODE_CLIENT,
*"Error parsing HTTP status line \""* + StringUtils.getStringISO8859_1(linebuf, 0, count, cbuf) + *"\": "* + e, e);
http://cvs.apache.org/viewcvs.cgi/ws-soap/java/src/org/apache/soap/util/net/HTTPUtils.java?rev=1.46&view=markup
via post in called by send in
http://cvs.apache.org/viewcvs.cgi/*checkout*/ws-soap/java/src/org/apache/soap/transport/http/SOAPHTTPConnection.java
i would run all uner TCPMon to see what happens on the wire and/or put
more logging/debugging to see exactly which statement throws exception
(i guess it is "versionString = StringUtils.getStringISO8859_1(linebuf,
0, versionEnd, cbuf);" but who knows ...).
HTH,
alek
Francis, Chris wrote:
>
> In my experience this error occurs at the client after an uncaught
> exception occurred on the server, look for NullPointerExceptions and
> the like.
>
> -----Original Message-----
> From: Ching, Vivian M, ALABS [mailto:[email protected]]
> Sent: 07 March 2005 02:22
> To: [email protected]
> Subject: NoSuchElementException - Error parsing HTTP status line""
>
> Does anyone know what this exception indicates on a send?
> The webservice I am connecting to does however receive my soap request
> and processes it but I get the following client SOAP exception when
> sending the request so the code does not try to receive the response.
>
> [SOAPException: faultCode=SOAP-ENV:Client; msg=Error parsing HTTP
> status line "": java.util.NoSuchElementException; tar
>
> getException=java.lang.IllegalArgumentException: Error parsing HTTP
> status line "": java.util.NoSuchElementException]
> at
> org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.java:354)
>
> at org.apache.soap.messaging.Message.send(Message.java:123)
>
> Thanks for any help.
>
> Vivian
>
--
The best way to predict the future is to invent it - Alan Kay