You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by John Soye <jo...@gmail.com> on 2008/06/04 13:11:00 UTC

Exception when processing sample java.io.UnsupportedEncodingException: UTF-8;charset=utf-8

Hi all,
I'm using jakarta-jmeter-2.3.1. When I use the HTTP Proxy Server to record
tests, I can record a few links, but eventually I receive the browser
message "503 Gateway timeout - The connection timed out". When I checked the
jmeter.log file, I got the following:


2008/06/04 11:46:33 INFO  - jmeter.protocol.http.proxy.Daemon: Creating
Daemon Socket... on port 9090
2008/06/04 11:46:33 INFO  - jmeter.protocol.http.proxy.Daemon: Proxy up and
running!
2008/06/04 11:46:38 INFO  - jmeter.protocol.http.proxy.FormCharSetFinder:
Using htmlparser version: 2.0 (Release Build Sep 17, 2006)
2008/06/04 11:46:48 WARN  - jmeter.samplers.SampleResult: Using platform
default as UTF-8;charset=utf-8 caused java.io.UnsupportedEncodingException:
UTF-8;charset=utf-8
2008/06/04 11:47:08 WARN  - jmeter.samplers.SampleResult: Using platform
default as UTF-8;charset=utf-8 caused java.io.UnsupportedEncodingException:
UTF-8;charset=utf-8
2008/06/04 11:47:14 WARN  - jmeter.samplers.SampleResult: Using platform
default as UTF-8;charset=utf-8 caused java.io.UnsupportedEncodingException:
UTF-8;charset=utf-8
2008/06/04 11:47:18 ERROR - jmeter.protocol.http.proxy.Proxy: Exception when
processing sample java.io.UnsupportedEncodingException: UTF-8;charset=utf-8
 at sun.io.Converters.getConverterClass(Converters.java:218)
 at sun.io.Converters.newConverter(Converters.java:251)
 at sun.io.ByteToCharConverter.getConverter(ByteToCharConverter.java:68)
 at java.lang.StringCoding.decode(StringCoding.java:224)
 at java.lang.String.<init>(String.java:405)
 at java.lang.String.<init>(String.java:433)
 at
org.apache.jmeter.protocol.http.proxy.HttpRequestHdr.populateSampler(HttpRequestHdr.java:385)
 at
org.apache.jmeter.protocol.http.proxy.HttpRequestHdr.getSampler(HttpRequestHdr.java:243)
 at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:165)


If anyone has any ideas on this, I'd be extremely grateful.
Also, I can only run this in Firefox. It doesn't record anything for me in
Internet Explorer 7 (7.0.7730.13), but that doesn't really matter, as long
as I can record it in Firefox.

Many thanks, John.

Re: Exception when processing sample java.io.UnsupportedEncodingException: UTF-8;charset=utf-8

Posted by sebb <se...@gmail.com>.
On 04/06/2008, John Soye <jo...@gmail.com> wrote:
> Fantastic. Thanks Sebb. I used the nightly build for "29-May-2008 22:05"
>  and that solved the problem.
>  IE is still ignoring the proxy, but it works fine in Firefox. That'll do for
>  me.
>  Again, many thanks, John :-D
>

OK, thanks for confirming that the probem is fixed.

>
>   >  I'm using jakarta-jmeter-2.3.1. When I use the HTTP Proxy Server to
>  > record
>  > >  tests, I can record a few links, but eventually I receive the browser
>  > >  message "503 Gateway timeout - The connection timed out". When I checked
>  > the
>  > >  jmeter.log file, I got the following:
>  > >
>
> > >  processing sample java.io.UnsupportedEncodingException:
>  > UTF-8;charset=utf-8
>  >
>
> > I think someone else reported this - it was due to the server sending
>  > a duplicate charset:
>  >
>  > charset=UTF-8;charset=utf-8
>  >
>  > Might be worth checking the current nightly to see if this fixes the
>  > problem.
>  >
>  >
>  > >  Also, I can only run this in Firefox. It doesn't record anything for me
>  > in
>  > >  Internet Explorer 7 (7.0.7730.13), but that doesn't really matter, as
>  > long
>  > >  as I can record it in Firefox.
>  >
>  > I''ve seen that too - IE sometimes seems to ignore the proxy for local
>  > hosts, even if you tell it not to ignore local hosts.
>  >
>  > Try using the "real" IP address of the JMeter proxy - i.e. not
>  > 127.0.0.1 - this might help, but again IE might still consider it to
>  > be local.
>  >
>  >
>  > >  Many thanks, John.
>  > >
>  >
>
> > ---------------------------------------------------------------------
>  > 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


Re: Exception when processing sample java.io.UnsupportedEncodingException: UTF-8;charset=utf-8

Posted by John Soye <jo...@gmail.com>.
Fantastic. Thanks Sebb. I used the nightly build for "29-May-2008 22:05"
and that solved the problem.
IE is still ignoring the proxy, but it works fine in Firefox. That'll do for
me.
Again, many thanks, John :-D

  >  I'm using jakarta-jmeter-2.3.1. When I use the HTTP Proxy Server to
> record
> >  tests, I can record a few links, but eventually I receive the browser
> >  message "503 Gateway timeout - The connection timed out". When I checked
> the
> >  jmeter.log file, I got the following:
> >
> >  processing sample java.io.UnsupportedEncodingException:
> UTF-8;charset=utf-8
>
> I think someone else reported this - it was due to the server sending
> a duplicate charset:
>
> charset=UTF-8;charset=utf-8
>
> Might be worth checking the current nightly to see if this fixes the
> problem.
>
>
> >  Also, I can only run this in Firefox. It doesn't record anything for me
> in
> >  Internet Explorer 7 (7.0.7730.13), but that doesn't really matter, as
> long
> >  as I can record it in Firefox.
>
> I''ve seen that too - IE sometimes seems to ignore the proxy for local
> hosts, even if you tell it not to ignore local hosts.
>
> Try using the "real" IP address of the JMeter proxy - i.e. not
> 127.0.0.1 - this might help, but again IE might still consider it to
> be local.
>
>
> >  Many thanks, John.
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

Re: Exception when processing sample java.io.UnsupportedEncodingException: UTF-8;charset=utf-8

Posted by sebb <se...@gmail.com>.
On 04/06/2008, John Soye <jo...@gmail.com> wrote:
> Hi all,
>  I'm using jakarta-jmeter-2.3.1. When I use the HTTP Proxy Server to record
>  tests, I can record a few links, but eventually I receive the browser
>  message "503 Gateway timeout - The connection timed out". When I checked the
>  jmeter.log file, I got the following:
>
>
>  2008/06/04 11:46:33 INFO  - jmeter.protocol.http.proxy.Daemon: Creating
>  Daemon Socket... on port 9090
>  2008/06/04 11:46:33 INFO  - jmeter.protocol.http.proxy.Daemon: Proxy up and
>  running!
>  2008/06/04 11:46:38 INFO  - jmeter.protocol.http.proxy.FormCharSetFinder:
>  Using htmlparser version: 2.0 (Release Build Sep 17, 2006)
>  2008/06/04 11:46:48 WARN  - jmeter.samplers.SampleResult: Using platform
>  default as UTF-8;charset=utf-8 caused java.io.UnsupportedEncodingException:
>  UTF-8;charset=utf-8
>  2008/06/04 11:47:08 WARN  - jmeter.samplers.SampleResult: Using platform
>  default as UTF-8;charset=utf-8 caused java.io.UnsupportedEncodingException:
>  UTF-8;charset=utf-8
>  2008/06/04 11:47:14 WARN  - jmeter.samplers.SampleResult: Using platform
>  default as UTF-8;charset=utf-8 caused java.io.UnsupportedEncodingException:
>  UTF-8;charset=utf-8
>  2008/06/04 11:47:18 ERROR - jmeter.protocol.http.proxy.Proxy: Exception when
>  processing sample java.io.UnsupportedEncodingException: UTF-8;charset=utf-8
>   at sun.io.Converters.getConverterClass(Converters.java:218)
>   at sun.io.Converters.newConverter(Converters.java:251)
>   at sun.io.ByteToCharConverter.getConverter(ByteToCharConverter.java:68)
>   at java.lang.StringCoding.decode(StringCoding.java:224)
>   at java.lang.String.<init>(String.java:405)
>   at java.lang.String.<init>(String.java:433)
>   at
>  org.apache.jmeter.protocol.http.proxy.HttpRequestHdr.populateSampler(HttpRequestHdr.java:385)
>   at
>  org.apache.jmeter.protocol.http.proxy.HttpRequestHdr.getSampler(HttpRequestHdr.java:243)
>   at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:165)
>
>
>  If anyone has any ideas on this, I'd be extremely grateful.

I think someone else reported this - it was due to the server sending
a duplicate charset:

charset=UTF-8;charset=utf-8

Might be worth checking the current nightly to see if this fixes the problem.


>  Also, I can only run this in Firefox. It doesn't record anything for me in
>  Internet Explorer 7 (7.0.7730.13), but that doesn't really matter, as long
>  as I can record it in Firefox.

I''ve seen that too - IE sometimes seems to ignore the proxy for local
hosts, even if you tell it not to ignore local hosts.

Try using the "real" IP address of the JMeter proxy - i.e. not
127.0.0.1 - this might help, but again IE might still consider it to
be local.


>  Many thanks, John.
>

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