You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by jm...@vivi.com on 2006/09/13 03:02:45 UTC

java.io.UnsupportedEncodingExceptoin: utf-8

Hi, I'm having problems getting a recorded jmeter script to work.  I
noticed in my jmeter.log the following warnings when I try to run the
script:

 WARN  - jmeter.samplers.SampleResult: Using 'utf-8' caused j
ava.io.UnsupportedEncodingException: 'utf-8' 

Also, when i tried using the XPathExtractor, I got:

ERROR - jmeter.extractor.XPathExtractor: error on XPathExtra
ctor.xpathQuery(//form//input[@name='SCHMOO']/@value) java.io.UnsupportedEncodingException: '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.extractor.XPathExtractor.parseResponse(XPathExtract
or.java:165)
       at org.apache.jmeter.extractor.XPathExtractor.process(XPathExtractor.jav
a:93)
       at org.apache.jmeter.threads.JMeterThread.runPostProcessors(JMeterThread
.java:428)
       at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:253)
       at java.lang.Thread.run(Thread.java:595)

I'm using version 2.2 jmeter with jdk 1.5.0_07 on Redhat Fedora 3.

Any advice would be appreciated.

Thanks,
Bruce Cota

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


Re: java.io.UnsupportedEncodingExceptoin: utf-8

Posted by sebb <se...@gmail.com>.
Looks like it cannot handle utf-8; it probably wants UTF-8.

This comes from the sample result itself. If not provided, it defaults
to the JMeter property "sampleresult.default.encoding" - check that
you have not defined this as "utf-8"

Otherwise, check the contents of the actual response. If it is utf-8,
then complain to the server owner ...

S.
On 13/09/06, jmeter@vivi.com <jm...@vivi.com> wrote:
> Hi, I'm having problems getting a recorded jmeter script to work.  I
> noticed in my jmeter.log the following warnings when I try to run the
> script:
>
>  WARN  - jmeter.samplers.SampleResult: Using 'utf-8' caused j
> ava.io.UnsupportedEncodingException: 'utf-8'
>
> Also, when i tried using the XPathExtractor, I got:
>
> ERROR - jmeter.extractor.XPathExtractor: error on XPathExtra
> ctor.xpathQuery(//form//input[@name='SCHMOO']/@value) java.io.UnsupportedEncodingException: '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.extractor.XPathExtractor.parseResponse(XPathExtract
> or.java:165)
>       at org.apache.jmeter.extractor.XPathExtractor.process(XPathExtractor.jav
> a:93)
>       at org.apache.jmeter.threads.JMeterThread.runPostProcessors(JMeterThread
> .java:428)
>       at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:253)
>       at java.lang.Thread.run(Thread.java:595)
>
> I'm using version 2.2 jmeter with jdk 1.5.0_07 on Redhat Fedora 3.
>
> Any advice would be appreciated.
>
> Thanks,
> Bruce Cota
>
> ---------------------------------------------------------------------
> 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