Discussion:
NoSuchElementException - Error parsing HTTP status line""
Ching, Vivian M, ALABS
2005-03-07 02:22:07 UTC
Permalink
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
Francis, Chris
2005-03-07 12:42:22 UTC
Permalink
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:***@att.com]
Sent: 07 March 2005 02:22
To: soap-***@ws.apache.org
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.ja
va:354)
at org.apache.soap.messaging.Message.send(Message.java:123)

Thanks for any help.

Vivian
Aleksander Slominski
2005-03-07 19:34:44 UTC
Permalink
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
Post by Francis, Chris
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-----
Sent: 07 March 2005 02:22
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
Ching, Vivian M, ALABS
2005-03-08 00:53:08 UTC
Permalink
Thanks a lot for your responses-

It seems that I am getting NoSuchElementException when the read timeout expires using HTTPS.

If I use http to send the request to the host, I get the proper Read time out exception:

EXCEPTION CAUGHT---> Read timed out
[SOAPException: faultCode=SOAP-ENV:Client; msg=Read timed out; targetException=java.io.InterruptedIOException: Read timed out]


Vivian Ching
AT&T
MT A2-2E04
200 S Laurel Avenue
Middletown, NJ 07748
732.420.2452


-----Original Message-----
From: Aleksander Slominski [mailto:***@cs.indiana.edu]
Sent: Monday, March 07, 2005 2:35 PM
To: soap-***@ws.apache.org
Subject: Re: NoSuchElementException - Error parsing HTTP status line""


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 <http://cvs.apache.org/viewcvs.cgi/ws-soap/java/src/org/apache/soap/util/net/HTTPUtils.java?rev=1.46&view=markup> &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:***@att.com]
Sent: 07 March 2005 02:22
To: soap-***@ws.apache.org
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 &quot;&quot;: 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
Loading...