You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Chris Hansen <tc...@xmission.com> on 2006/07/31 19:22:20 UTC

IO.Exception - chunked stream ended unexpectedly

Hi again,

I'm getting an error I am having a hard time diagnosing and I thought
I'd see if anyone out there could shed some light on it.

I'm submitting an HTTP Request HTTPClient using HTTP Request Defaults
for the settings.

I have seven parameters for this HTTP Request and if I construct the URL
 in Firefox it works fine and returns a valid XML file.  However, when
it runs in JMeter it returns this error in the output file:

java.io.IOException: chunked stream ended unexpectedly
	at
org.apache.commons.httpclient.ChunkedInputStream.getChunkSizeFromInputStream(ChunkedInputStream.java:251)
	at
org.apache.commons.httpclient.ChunkedInputStream.nextChunk(ChunkedInputStream.java:220)
	at
org.apache.commons.httpclient.ChunkedInputStream.read(ChunkedInputStream.java:175)
	at java.io.FilterInputStream.read(Unknown Source)
	at
org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:107)
	at java.io.FilterInputStream.read(Unknown Source)
	at
org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:126)
	at
org.apache.jmeter.protocol.http.sampler.HTTPSampler2.sample(HTTPSampler2.java:546)
	at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:658)
	at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:647)
	at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:247)
	at java.lang.Thread.run(Unknown Source)


when I review the jmeter.log file with debug turned on, I see this for
the transaction:


2006/07/31 11:11:52 DEBUG - jmeter.protocol.http.sampler.HTTPSampler2:
Start : samplehttp://ws.kiva.com/dev/test/result.aspx
2006/07/31 11:11:52 DEBUG - jmeter.protocol.http.sampler.HTTPSampler2:
methodPOST
2006/07/31 11:11:52 INFO  -
org.apache.commons.httpclient.HttpMethodBase: Discarding unexpected
response: HTTP/1.1 100 Continue


Any thoughts?  Everything is working except that jmeter throws the
error; I can still process the timing results and all since the
transaction completes fine.

chris

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: IO.Exception - chunked stream ended unexpectedly

Posted by sebb <se...@gmail.com>.
Might be worth trying the same test using the default HTTP Sampler to
see if it behaves the same.

It may be a bug - we'll need a test case that we can use to reproduce
the problem.
Please create a Bugzilla issue, and you can then attach any relevant files, e.g.

jmeter.properties
jmeter.log
JMX file
JTL file

On 31/07/06, Chris Hansen <tc...@xmission.com> wrote:
> Hi again,
>
> I'm getting an error I am having a hard time diagnosing and I thought
> I'd see if anyone out there could shed some light on it.
>
> I'm submitting an HTTP Request HTTPClient using HTTP Request Defaults
> for the settings.
>
> I have seven parameters for this HTTP Request and if I construct the URL
>  in Firefox it works fine and returns a valid XML file.  However, when
> it runs in JMeter it returns this error in the output file:
>
> java.io.IOException: chunked stream ended unexpectedly
>        at
> org.apache.commons.httpclient.ChunkedInputStream.getChunkSizeFromInputStream(ChunkedInputStream.java:251)
>        at
> org.apache.commons.httpclient.ChunkedInputStream.nextChunk(ChunkedInputStream.java:220)
>        at
> org.apache.commons.httpclient.ChunkedInputStream.read(ChunkedInputStream.java:175)
>        at java.io.FilterInputStream.read(Unknown Source)
>        at
> org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:107)
>        at java.io.FilterInputStream.read(Unknown Source)
>        at
> org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:126)
>        at
> org.apache.jmeter.protocol.http.sampler.HTTPSampler2.sample(HTTPSampler2.java:546)
>        at
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:658)
>        at
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:647)
>        at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:247)
>        at java.lang.Thread.run(Unknown Source)
>
>
> when I review the jmeter.log file with debug turned on, I see this for
> the transaction:
>
>
> 2006/07/31 11:11:52 DEBUG - jmeter.protocol.http.sampler.HTTPSampler2:
> Start : samplehttp://ws.kiva.com/dev/test/result.aspx
> 2006/07/31 11:11:52 DEBUG - jmeter.protocol.http.sampler.HTTPSampler2:
> methodPOST
> 2006/07/31 11:11:52 INFO  -
> org.apache.commons.httpclient.HttpMethodBase: Discarding unexpected
> response: HTTP/1.1 100 Continue
>
>
> Any thoughts?  Everything is working except that jmeter throws the
> error; I can still process the timing results and all since the
> transaction completes fine.
>
> chris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org