You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Raghuveer Sribhashyam <rs...@gmail.com> on 2007/08/13 12:50:33 UTC

XPATH extractor - UnsupportedEncodingException: "utf-8"

Hi All,

I am trying to run a SOAP request. I have the following structure:

Test Plan
------Thread Group
      -------SOAP Request
             --------Response Assertion
             --------XPATH extractor

When i try to run the test plan with XPATH extractor it gives a response.
When i enable XPATH extractor, it doesn't show any response.

I have checked the jmeter.log:
Following is error message i can see in the logs.

2007/08/13 11:42:38 ERROR - jmeter.extractor.XPathExtractor: error on
XPathExtractor.xpathQuery(/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
java.io.UnsupportedEncodingException: "utf-8"
    at sun.io.Converters.getConverterClass(Unknown Source)
    at sun.io.Converters.newConverter(Unknown Source)
    at sun.io.ByteToCharConverter.getConverter(Unknown Source)
    at java.lang.StringCoding.decode(Unknown Source)
    at java.lang.String.<init>(Unknown Source)
    at java.lang.String.<init>(Unknown Source)
    at org.apache.jmeter.extractor.XPathExtractor.parseResponse(
XPathExtractor.java:169)
    at org.apache.jmeter.extractor.XPathExtractor.process(
XPathExtractor.java:95)
    at org.apache.jmeter.threads.JMeterThread.runPostProcessors(
JMeterThread.java:534)
    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:305)
    at java.lang.Thread.run(Unknown Source)

2007/08/13 11:42:38 ERROR - jmeter.threads.JMeterThread: Test failed!
org.apache.jorphan.util.JMeterError: error on XPathExtractor.xpathQuery
(/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
    at org.apache.jmeter.extractor.XPathExtractor.process(
XPathExtractor.java:100)
    at org.apache.jmeter.threads.JMeterThread.runPostProcessors(
JMeterThread.java:534)
    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:305)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.io.UnsupportedEncodingException: "utf-8"
    at sun.io.Converters.getConverterClass(Unknown Source)
    at sun.io.Converters.newConverter(Unknown Source)
    at sun.io.ByteToCharConverter.getConverter(Unknown Source)
    at java.lang.StringCoding.decode(Unknown Source)
    at java.lang.String.<init>(Unknown Source)
    at java.lang.String.<init>(Unknown Source)
    at org.apache.jmeter.extractor.XPathExtractor.parseResponse(
XPathExtractor.java:169)
    at org.apache.jmeter.extractor.XPathExtractor.process(
XPathExtractor.java:95)
    ... 3 more


Request your help in resolving the same.
Let me know if you any other information.

Raghuveer Sribhashyam

Re: XPATH extractor - UnsupportedEncodingException: "utf-8"

Posted by sebb <se...@gmail.com>.
OK - thanks for confirming that the fix has worked.

On 14/08/07, Raghuveer Sribhashyam <rs...@gmail.com> wrote:
> Sebb,
>
> Thanks for the help. Its working now.
>
> Raghuveer Sribhashyam
>
> On 8/14/07, sebb <se...@gmail.com> wrote:
> >
> > I've uploaded build r565714 which includes the fix.
> >
> > Please let us know if that solves the problem or not.
> >
> > On 14/08/07, sebb <se...@gmail.com> wrote:
> > > No need to raise bug - already fixed in SVN r565694
> > >
> > > I'll try and do another build later today.
> > >
> > > On 14/08/07, Raghuveer Sribhashyam <rs...@gmail.com> wrote:
> > > > Sebb,
> > > >
> > > > Do i need to raise a bug for this? If not when can i expect a fix for
> > the
> > > > same..i mean which nightly build may have this fix?
> > > >
> > > > Thanks
> > > > Raghuveer
> > > >
> > > > On 8/14/07, sebb <se...@gmail.com> wrote:
> > > > >
> > > > > Originally, I thought so - but on re-reading the RFC it appears that
> > > > > the charset can be either a token *or* a quoted string.
> > > > >
> > > > > So JMeter is wrong. I'll fix it.
> > > > >
> > > > > S.
> > > > > On 14/08/07, Raghuveer Sribhashyam <rs...@gmail.com> wrote:
> > > > > > Sebb,
> > > > > >
> > > > > > The Response Header says:
> > > > > >
> > > > > > Content-type: text/xml; charset="utf-8"
> > > > > >
> > > > > > So, does this mean that this is a problem with the application
> > > > > response??
> > > > > >
> > > > > > Thanks
> > > > > > Raghuveer
> > > > > >
> > > > > > On 8/13/07, sebb <se...@gmail.com> wrote:
> > > > > > >
> > > > > > > I've done some tests on the String(data,charset) method call,
> > and
> > > > > > > invalid UTF-8 characters don't generate an error - they just get
> > > > > > > converted into "?".
> > > > > > >
> > > > > > > However, I have just noticed that the charset is enclosed in
> > quotes.
> > > > > > >
> > > > > > > I had assumed that these were added by the error message, but it
> > seems
> > > > > > > not.
> > > > > > >
> > > > > > > This explains the problem - utf-8 is valid, but "utf-8" is not
> > valid.
> > > > > > >
> > > > > > > It would be helpful if you could use the View Results Tree
> > Listener to
> > > > > > > see what the
> > > > > > >
> > > > > > > Content-Type:
> > > > > > >
> > > > > > > header says.
> > > > > > >
> > > > > > > On 13/08/07, sebb <se...@gmail.com> wrote:
> > > > > > > > Please don't send attachments to the mailing list.
> > > > > > > >
> > > > > > > > Mostly they get dropped; if not, they just cause annoyance to
> > others
> > > > > > > > not interested in them.
> > > > > > > >
> > > > > > > > Please create a Bugzilla issue with the details of the
> > problem.
> > > > > > > >
> > > > > > > > You can then go back to the issue and attach the following
> > files:
> > > > > > > >
> > > > > > > > test plan (JMX file)
> > > > > > > > jmeter.log
> > > > > > > > output from Save Responses to a file, or failing that, add a
> > Simple
> > > > > > > > Data Writer and set the output type to XML. Make sure that
> > "Save
> > > > > > > > Response Data" is enabled.
> > > > > > > >
> > > > > > > > On 13/08/07, Raghuveer Sribhashyam <rs...@gmail.com>
> > wrote:
> > > > > > > > > Sebb,
> > > > > > > > >
> > > > > > > > > I have checked with the latest nightly build of jmeter
> > > > > > > > > jakarta-jmeter-r564722 and also with jakarta-jmeter-2.3RC3which
> > > > > is
> > > > > > > the
> > > > > > > > > official version released for jmeter.
> > > > > > > > >
> > > > > > > > > I have never used the "Save Results to file" post-processor
> > and am
> > > > > not
> > > > > > > able
> > > > > > > > > to get it working. I have saved the output from the testplan
> > into
> > > > > a
> > > > > > > file. Am
> > > > > > > > > attaching the same with this message.
> > > > > > > > >
> > > > > > > > > I have tested the same with java version 1.4.2_15 as well.
> > But it
> > > > > > > seems to
> > > > > > > > > be not working.
> > > > > > > > >
> > > > > > > > > Log from jmeter jakarta-jmeter-r564722:
> > > > > > > > > 2007/08/13 17:11:40 ERROR - jmeter.extractor.XPathExtractor:
> > error
> > > > > on
> > > > > > > > > XPathExtractor.xpathQuery
> > > > > > >
> > > > >
> > (/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
> > > > > > > > > java.io.UnsupportedEncodingException: "utf-8"
> > > > > > > > >    at sun.io.Converters.getConverterClass(Unknown Source)
> > > > > > > > >    at sun.io.Converters.newConverter(Unknown Source)
> > > > > > > > >    at sun.io.ByteToCharConverter.getConverter(Unknown
> > Source)
> > > > > > > > >    at java.lang.StringCoding.decode(Unknown Source)
> > > > > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > > > > >    at
> > org.apache.jmeter.extractor.XPathExtractor.parseResponse(
> > > > > > > > > XPathExtractor.java:169)
> > > > > > > > >    at org.apache.jmeter.extractor.XPathExtractor.process(
> > > > > > > > > XPathExtractor.java:95)
> > > > > > > > >    at
> > org.apache.jmeter.threads.JMeterThread.runPostProcessors(
> > > > > > > > > JMeterThread.java:534)
> > > > > > > > >    at org.apache.jmeter.threads.JMeterThread.run(
> > JMeterThread.java
> > > > > > > :305)
> > > > > > > > >    at java.lang.Thread.run(Unknown Source)
> > > > > > > > >
> > > > > > > > > Log from jakarta-jmeter-2.3RC3 :
> > > > > > > > > 2007/08/13 17:17:09 ERROR - jmeter.extractor.XPathExtractor:
> > error
> > > > > on
> > > > > > > > > XPathExtractor.xpathQuery
> > > > > > >
> > > > >
> > (/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
> > > > > > > > > java.io.UnsupportedEncodingException: "utf-8"
> > > > > > > > >    at sun.io.Converters.getConverterClass(Unknown Source)
> > > > > > > > >    at sun.io.Converters.newConverter(Unknown Source)
> > > > > > > > >    at sun.io.ByteToCharConverter.getConverter(Unknown
> > Source)
> > > > > > > > >    at java.lang.StringCoding.decode(Unknown Source)
> > > > > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > > > > >    at
> > org.apache.jmeter.extractor.XPathExtractor.parseResponse(
> > > > > > > > > XPathExtractor.java:169)
> > > > > > > > >    at org.apache.jmeter.extractor.XPathExtractor.process(
> > > > > > > > > XPathExtractor.java:95)
> > > > > > > > >    at
> > org.apache.jmeter.threads.JMeterThread.runPostProcessors(
> > > > > > > > > JMeterThread.java:534)
> > > > > > > > >    at org.apache.jmeter.threads.JMeterThread.run(
> > JMeterThread.java
> > > > > > > :305)
> > > > > > > > >    at java.lang.Thread.run(Unknown Source)
> > > > > > > > >
> > > > > > > > > Do you want me to raise a issue on bugzilla??
> > > > > > > > >
> > > > > > > > > Thanks
> > > > > > > > > Raghuveer
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > On 8/13/07, sebb < sebbaz@gmail.com> wrote:
> > > > > > > > > >
> > > > > > > > > > That is the same version of Java I used until recently for
> > > > > testing
> > > > > > > > > > JMeter, so I'm positive that utf-8 is supported.
> > > > > > > > > >
> > > > > > > > > > [However, you might like to try 1.4.2_15, which has some
> > > > > security
> > > > > > > fixes.]
> > > > > > > > > >
> > > > > > > > > > Which version of JMeter are you using?
> > > > > > > > > > I cannot match the line numbers with code I've checked.
> > > > > > > > > >
> > > > > > > > > > I'm wondering if the problem is in the code nearby:
> > > > > > > > > >
> > > > > > > > > >       String unicodeData = new String(
> > result.getResponseData(),
> > > > > > > > > >
> > result.getDataEncoding());
> > > > > > > > > >
> > > > > > > > > > Perhaps the sampler response is not valid for the data
> > encoding
> > > > > > > > > > (utf-8), but in that case the error message is rather
> > > > > misleading.
> > > > > > > > > >
> > > > > > > > > > You could add a "Save Results to File" Post-Processor as a
> > child
> > > > > of
> > > > > > > > > > the sampler to create a copy of the data.
> > > > > > > > > >
> > > > > > > > > > This could then be attached to a Bugzilla report along
> > with the
> > > > > test
> > > > > > > > > > plan and jmeter.log.
> > > > > > > > > >
> > > > > > > > > > Remove any sensitive data first.
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > S.
> > > > > > > > > > On 13/08/07, Raghuveer Sribhashyam <rsribhashyam@gmail.com
> > >
> > > > > wrote:
> > > > > > > > > > > Hi Sebb,
> > > > > > > > > > >
> > > > > > > > > > > Java version on the machine is 1.4.2_13
> > > > > > > > > > >
> > > > > > > > > > > java version "1.4.2_13"
> > > > > > > > > > > Java(TM) 2 Runtime Environment, Standard Edition (build
> > > > > > > 1.4.2_13-b06)
> > > > > > > > > > > Java HotSpot(TM) Client VM (build 1.4.2_13-b06 , mixed
> > mode)
> > > > > > > > > > >
> > > > > > > > > > > OS is : Windows XP.
> > > > > > > > > > >
> > > > > > > > > > > Thanks
> > > > > > > > > > > Raghuveer Sribhashyam
> > > > > > > > > > >
> > > > > > > > > > > On 8/13/07, sebb <se...@gmail.com> wrote:
> > > > > > > > > > > >
> > > > > > > > > > > > That should not happen with a fully compliant version
> > of
> > > > > Java
> > > > > > > 1.4 or
> > > > > > > > > > > > later - it should support utf-8.
> > > > > > > > > > > >
> > > > > > > > > > > > What version of Java are you using, and what OS?
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > On 13/08/07, Raghuveer Sribhashyam <
> > rsribhashyam@gmail.com>
> > > > > > > wrote:
> > > > > > > > > > > > > Hi All,
> > > > > > > > > > > > >
> > > > > > > > > > > > > I am trying to run a SOAP request. I have the
> > following
> > > > > > > structure:
> > > > > > > > > > > > >
> > > > > > > > > > > > > Test Plan
> > > > > > > > > > > > > ------Thread Group
> > > > > > > > > > > > >      -------SOAP Request
> > > > > > > > > > > > >             --------Response Assertion
> > > > > > > > > > > > >             --------XPATH extractor
> > > > > > > > > > > > >
> > > > > > > > > > > > > When i try to run the test plan with XPATH extractor
> > it
> > > > > gives
> > > > > > > a
> > > > > > > > > > > > response.
> > > > > > > > > > > > > When i enable XPATH extractor, it doesn't show any
> > > > > response.
> > > > > > > > > > > > >
> > > > > > > > > > > > > I have checked the jmeter.log:
> > > > > > > > > > > > > Following is error message i can see in the logs.
> > > > > > > > > > > > >
> > > > > > > > > > > > > 2007/08/13 11:42:38 ERROR -
> > > > > jmeter.extractor.XPathExtractor:
> > > > > > > error
> > > > > > > > > > on
> > > > > > > > > > > > > XPathExtractor.xpathQuery
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > >
> > > > >
> > (/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
> > > > > > > > > > > > > java.io.UnsupportedEncodingException : "utf-8"
> > > > > > > > > > > > >    at sun.io.Converters.getConverterClass(Unknown
> > Source)
> > > > > > > > > > > > >    at sun.io.Converters.newConverter(Unknown Source)
> > > > > > > > > > > > >    at sun.io.ByteToCharConverter.getConverter(Unknown
> > > > > Source)
> > > > > > > > > > > > >    at java.lang.StringCoding.decode(Unknown Source)
> > > > > > > > > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > > > > > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > > > > > > > > >    at
> > > > > org.apache.jmeter.extractor.XPathExtractor.parseResponse
> > > > > > > (
> > > > > > > > > > > > > XPathExtractor.java:169)
> > > > > > > > > > > > >    at
> > org.apache.jmeter.extractor.XPathExtractor.process(
> > > > > > > > > > > > > XPathExtractor.java :95)
> > > > > > > > > > > > >    at
> > > > > org.apache.jmeter.threads.JMeterThread.runPostProcessors
> > > > > > > (
> > > > > > > > > > > > > JMeterThread.java:534)
> > > > > > > > > > > > >    at org.apache.jmeter.threads.JMeterThread.run(
> > > > > > > JMeterThread.java
> > > > > > > > > > :305)
> > > > > > > > > > > > >    at java.lang.Thread.run(Unknown Source)
> > > > > > > > > > > > >
> > > > > > > > > > > > > 2007/08/13 11:42:38 ERROR -
> > jmeter.threads.JMeterThread:
> > > > > Test
> > > > > > > > > > failed!
> > > > > > > > > > > > > org.apache.jorphan.util.JMeterError: error on
> > > > > > > > > > XPathExtractor.xpathQuery
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > >
> > > > >
> > (/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
> > > > > > > > > > > > >    at
> > org.apache.jmeter.extractor.XPathExtractor.process (
> > > > > > > > > > > > > XPathExtractor.java:100)
> > > > > > > > > > > > >    at
> > > > > org.apache.jmeter.threads.JMeterThread.runPostProcessors
> > > > > > > (
> > > > > > > > > > > > > JMeterThread.java:534)
> > > > > > > > > > > > >    at org.apache.jmeter.threads.JMeterThread.run (
> > > > > > > JMeterThread.java
> > > > > > > > > > :305)
> > > > > > > > > > > > >    at java.lang.Thread.run(Unknown Source)
> > > > > > > > > > > > > Caused by: java.io.UnsupportedEncodingException:
> > "utf-8"
> > > > > > > > > > > > >    at sun.io.Converters.getConverterClass (Unknown
> > Source)
> > > > > > > > > > > > >    at sun.io.Converters.newConverter(Unknown Source)
> > > > > > > > > > > > >    at sun.io.ByteToCharConverter.getConverter
> > (Unknown
> > > > > Source)
> > > > > > > > > > > > >    at java.lang.StringCoding.decode (Unknown Source)
> > > > > > > > > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > > > > > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > > > > > > > > >    at
> > > > > org.apache.jmeter.extractor.XPathExtractor.parseResponse(
> > > > > > > > > > > > > XPathExtractor.java:169)
> > > > > > > > > > > > >    at
> > org.apache.jmeter.extractor.XPathExtractor.process(
> > > > > > > > > > > > > XPathExtractor.java:95)
> > > > > > > > > > > > >    ... 3 more
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > > Request your help in resolving the same.
> > > > > > > > > > > > > Let me know if you any other information.
> > > > > > > > > > > > >
> > > > > > > > > > > > > Raghuveer Sribhashyam
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > >
> > ---------------------------------------------------------------------
> > > > > > > > > > > > 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
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > ---------------------------------------------------------------------
> > > > > > > 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
> > > > >
> > > > >
> > > >
> > >
> >
> > ---------------------------------------------------------------------
> > 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: XPATH extractor - UnsupportedEncodingException: "utf-8"

Posted by Raghuveer Sribhashyam <rs...@gmail.com>.
Sebb,

Thanks for the help. Its working now.

Raghuveer Sribhashyam

On 8/14/07, sebb <se...@gmail.com> wrote:
>
> I've uploaded build r565714 which includes the fix.
>
> Please let us know if that solves the problem or not.
>
> On 14/08/07, sebb <se...@gmail.com> wrote:
> > No need to raise bug - already fixed in SVN r565694
> >
> > I'll try and do another build later today.
> >
> > On 14/08/07, Raghuveer Sribhashyam <rs...@gmail.com> wrote:
> > > Sebb,
> > >
> > > Do i need to raise a bug for this? If not when can i expect a fix for
> the
> > > same..i mean which nightly build may have this fix?
> > >
> > > Thanks
> > > Raghuveer
> > >
> > > On 8/14/07, sebb <se...@gmail.com> wrote:
> > > >
> > > > Originally, I thought so - but on re-reading the RFC it appears that
> > > > the charset can be either a token *or* a quoted string.
> > > >
> > > > So JMeter is wrong. I'll fix it.
> > > >
> > > > S.
> > > > On 14/08/07, Raghuveer Sribhashyam <rs...@gmail.com> wrote:
> > > > > Sebb,
> > > > >
> > > > > The Response Header says:
> > > > >
> > > > > Content-type: text/xml; charset="utf-8"
> > > > >
> > > > > So, does this mean that this is a problem with the application
> > > > response??
> > > > >
> > > > > Thanks
> > > > > Raghuveer
> > > > >
> > > > > On 8/13/07, sebb <se...@gmail.com> wrote:
> > > > > >
> > > > > > I've done some tests on the String(data,charset) method call,
> and
> > > > > > invalid UTF-8 characters don't generate an error - they just get
> > > > > > converted into "?".
> > > > > >
> > > > > > However, I have just noticed that the charset is enclosed in
> quotes.
> > > > > >
> > > > > > I had assumed that these were added by the error message, but it
> seems
> > > > > > not.
> > > > > >
> > > > > > This explains the problem - utf-8 is valid, but "utf-8" is not
> valid.
> > > > > >
> > > > > > It would be helpful if you could use the View Results Tree
> Listener to
> > > > > > see what the
> > > > > >
> > > > > > Content-Type:
> > > > > >
> > > > > > header says.
> > > > > >
> > > > > > On 13/08/07, sebb <se...@gmail.com> wrote:
> > > > > > > Please don't send attachments to the mailing list.
> > > > > > >
> > > > > > > Mostly they get dropped; if not, they just cause annoyance to
> others
> > > > > > > not interested in them.
> > > > > > >
> > > > > > > Please create a Bugzilla issue with the details of the
> problem.
> > > > > > >
> > > > > > > You can then go back to the issue and attach the following
> files:
> > > > > > >
> > > > > > > test plan (JMX file)
> > > > > > > jmeter.log
> > > > > > > output from Save Responses to a file, or failing that, add a
> Simple
> > > > > > > Data Writer and set the output type to XML. Make sure that
> "Save
> > > > > > > Response Data" is enabled.
> > > > > > >
> > > > > > > On 13/08/07, Raghuveer Sribhashyam <rs...@gmail.com>
> wrote:
> > > > > > > > Sebb,
> > > > > > > >
> > > > > > > > I have checked with the latest nightly build of jmeter
> > > > > > > > jakarta-jmeter-r564722 and also with jakarta-jmeter-2.3RC3which
> > > > is
> > > > > > the
> > > > > > > > official version released for jmeter.
> > > > > > > >
> > > > > > > > I have never used the "Save Results to file" post-processor
> and am
> > > > not
> > > > > > able
> > > > > > > > to get it working. I have saved the output from the testplan
> into
> > > > a
> > > > > > file. Am
> > > > > > > > attaching the same with this message.
> > > > > > > >
> > > > > > > > I have tested the same with java version 1.4.2_15 as well.
> But it
> > > > > > seems to
> > > > > > > > be not working.
> > > > > > > >
> > > > > > > > Log from jmeter jakarta-jmeter-r564722:
> > > > > > > > 2007/08/13 17:11:40 ERROR - jmeter.extractor.XPathExtractor:
> error
> > > > on
> > > > > > > > XPathExtractor.xpathQuery
> > > > > >
> > > >
> (/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
> > > > > > > > java.io.UnsupportedEncodingException: "utf-8"
> > > > > > > >    at sun.io.Converters.getConverterClass(Unknown Source)
> > > > > > > >    at sun.io.Converters.newConverter(Unknown Source)
> > > > > > > >    at sun.io.ByteToCharConverter.getConverter(Unknown
> Source)
> > > > > > > >    at java.lang.StringCoding.decode(Unknown Source)
> > > > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > > > >    at
> org.apache.jmeter.extractor.XPathExtractor.parseResponse(
> > > > > > > > XPathExtractor.java:169)
> > > > > > > >    at org.apache.jmeter.extractor.XPathExtractor.process(
> > > > > > > > XPathExtractor.java:95)
> > > > > > > >    at
> org.apache.jmeter.threads.JMeterThread.runPostProcessors(
> > > > > > > > JMeterThread.java:534)
> > > > > > > >    at org.apache.jmeter.threads.JMeterThread.run(
> JMeterThread.java
> > > > > > :305)
> > > > > > > >    at java.lang.Thread.run(Unknown Source)
> > > > > > > >
> > > > > > > > Log from jakarta-jmeter-2.3RC3 :
> > > > > > > > 2007/08/13 17:17:09 ERROR - jmeter.extractor.XPathExtractor:
> error
> > > > on
> > > > > > > > XPathExtractor.xpathQuery
> > > > > >
> > > >
> (/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
> > > > > > > > java.io.UnsupportedEncodingException: "utf-8"
> > > > > > > >    at sun.io.Converters.getConverterClass(Unknown Source)
> > > > > > > >    at sun.io.Converters.newConverter(Unknown Source)
> > > > > > > >    at sun.io.ByteToCharConverter.getConverter(Unknown
> Source)
> > > > > > > >    at java.lang.StringCoding.decode(Unknown Source)
> > > > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > > > >    at
> org.apache.jmeter.extractor.XPathExtractor.parseResponse(
> > > > > > > > XPathExtractor.java:169)
> > > > > > > >    at org.apache.jmeter.extractor.XPathExtractor.process(
> > > > > > > > XPathExtractor.java:95)
> > > > > > > >    at
> org.apache.jmeter.threads.JMeterThread.runPostProcessors(
> > > > > > > > JMeterThread.java:534)
> > > > > > > >    at org.apache.jmeter.threads.JMeterThread.run(
> JMeterThread.java
> > > > > > :305)
> > > > > > > >    at java.lang.Thread.run(Unknown Source)
> > > > > > > >
> > > > > > > > Do you want me to raise a issue on bugzilla??
> > > > > > > >
> > > > > > > > Thanks
> > > > > > > > Raghuveer
> > > > > > > >
> > > > > > > >
> > > > > > > > On 8/13/07, sebb < sebbaz@gmail.com> wrote:
> > > > > > > > >
> > > > > > > > > That is the same version of Java I used until recently for
> > > > testing
> > > > > > > > > JMeter, so I'm positive that utf-8 is supported.
> > > > > > > > >
> > > > > > > > > [However, you might like to try 1.4.2_15, which has some
> > > > security
> > > > > > fixes.]
> > > > > > > > >
> > > > > > > > > Which version of JMeter are you using?
> > > > > > > > > I cannot match the line numbers with code I've checked.
> > > > > > > > >
> > > > > > > > > I'm wondering if the problem is in the code nearby:
> > > > > > > > >
> > > > > > > > >       String unicodeData = new String(
> result.getResponseData(),
> > > > > > > > >
> result.getDataEncoding());
> > > > > > > > >
> > > > > > > > > Perhaps the sampler response is not valid for the data
> encoding
> > > > > > > > > (utf-8), but in that case the error message is rather
> > > > misleading.
> > > > > > > > >
> > > > > > > > > You could add a "Save Results to File" Post-Processor as a
> child
> > > > of
> > > > > > > > > the sampler to create a copy of the data.
> > > > > > > > >
> > > > > > > > > This could then be attached to a Bugzilla report along
> with the
> > > > test
> > > > > > > > > plan and jmeter.log.
> > > > > > > > >
> > > > > > > > > Remove any sensitive data first.
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > S.
> > > > > > > > > On 13/08/07, Raghuveer Sribhashyam <rsribhashyam@gmail.com
> >
> > > > wrote:
> > > > > > > > > > Hi Sebb,
> > > > > > > > > >
> > > > > > > > > > Java version on the machine is 1.4.2_13
> > > > > > > > > >
> > > > > > > > > > java version "1.4.2_13"
> > > > > > > > > > Java(TM) 2 Runtime Environment, Standard Edition (build
> > > > > > 1.4.2_13-b06)
> > > > > > > > > > Java HotSpot(TM) Client VM (build 1.4.2_13-b06 , mixed
> mode)
> > > > > > > > > >
> > > > > > > > > > OS is : Windows XP.
> > > > > > > > > >
> > > > > > > > > > Thanks
> > > > > > > > > > Raghuveer Sribhashyam
> > > > > > > > > >
> > > > > > > > > > On 8/13/07, sebb <se...@gmail.com> wrote:
> > > > > > > > > > >
> > > > > > > > > > > That should not happen with a fully compliant version
> of
> > > > Java
> > > > > > 1.4 or
> > > > > > > > > > > later - it should support utf-8.
> > > > > > > > > > >
> > > > > > > > > > > What version of Java are you using, and what OS?
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > On 13/08/07, Raghuveer Sribhashyam <
> rsribhashyam@gmail.com>
> > > > > > wrote:
> > > > > > > > > > > > Hi All,
> > > > > > > > > > > >
> > > > > > > > > > > > I am trying to run a SOAP request. I have the
> following
> > > > > > structure:
> > > > > > > > > > > >
> > > > > > > > > > > > Test Plan
> > > > > > > > > > > > ------Thread Group
> > > > > > > > > > > >      -------SOAP Request
> > > > > > > > > > > >             --------Response Assertion
> > > > > > > > > > > >             --------XPATH extractor
> > > > > > > > > > > >
> > > > > > > > > > > > When i try to run the test plan with XPATH extractor
> it
> > > > gives
> > > > > > a
> > > > > > > > > > > response.
> > > > > > > > > > > > When i enable XPATH extractor, it doesn't show any
> > > > response.
> > > > > > > > > > > >
> > > > > > > > > > > > I have checked the jmeter.log:
> > > > > > > > > > > > Following is error message i can see in the logs.
> > > > > > > > > > > >
> > > > > > > > > > > > 2007/08/13 11:42:38 ERROR -
> > > > jmeter.extractor.XPathExtractor:
> > > > > > error
> > > > > > > > > on
> > > > > > > > > > > > XPathExtractor.xpathQuery
> > > > > > > > > > >
> > > > > > > > >
> > > > > >
> > > >
> (/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
> > > > > > > > > > > > java.io.UnsupportedEncodingException : "utf-8"
> > > > > > > > > > > >    at sun.io.Converters.getConverterClass(Unknown
> Source)
> > > > > > > > > > > >    at sun.io.Converters.newConverter(Unknown Source)
> > > > > > > > > > > >    at sun.io.ByteToCharConverter.getConverter(Unknown
> > > > Source)
> > > > > > > > > > > >    at java.lang.StringCoding.decode(Unknown Source)
> > > > > > > > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > > > > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > > > > > > > >    at
> > > > org.apache.jmeter.extractor.XPathExtractor.parseResponse
> > > > > > (
> > > > > > > > > > > > XPathExtractor.java:169)
> > > > > > > > > > > >    at
> org.apache.jmeter.extractor.XPathExtractor.process(
> > > > > > > > > > > > XPathExtractor.java :95)
> > > > > > > > > > > >    at
> > > > org.apache.jmeter.threads.JMeterThread.runPostProcessors
> > > > > > (
> > > > > > > > > > > > JMeterThread.java:534)
> > > > > > > > > > > >    at org.apache.jmeter.threads.JMeterThread.run(
> > > > > > JMeterThread.java
> > > > > > > > > :305)
> > > > > > > > > > > >    at java.lang.Thread.run(Unknown Source)
> > > > > > > > > > > >
> > > > > > > > > > > > 2007/08/13 11:42:38 ERROR -
> jmeter.threads.JMeterThread:
> > > > Test
> > > > > > > > > failed!
> > > > > > > > > > > > org.apache.jorphan.util.JMeterError: error on
> > > > > > > > > XPathExtractor.xpathQuery
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > >
> > > > > >
> > > >
> (/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
> > > > > > > > > > > >    at
> org.apache.jmeter.extractor.XPathExtractor.process (
> > > > > > > > > > > > XPathExtractor.java:100)
> > > > > > > > > > > >    at
> > > > org.apache.jmeter.threads.JMeterThread.runPostProcessors
> > > > > > (
> > > > > > > > > > > > JMeterThread.java:534)
> > > > > > > > > > > >    at org.apache.jmeter.threads.JMeterThread.run (
> > > > > > JMeterThread.java
> > > > > > > > > :305)
> > > > > > > > > > > >    at java.lang.Thread.run(Unknown Source)
> > > > > > > > > > > > Caused by: java.io.UnsupportedEncodingException:
> "utf-8"
> > > > > > > > > > > >    at sun.io.Converters.getConverterClass (Unknown
> Source)
> > > > > > > > > > > >    at sun.io.Converters.newConverter(Unknown Source)
> > > > > > > > > > > >    at sun.io.ByteToCharConverter.getConverter
> (Unknown
> > > > Source)
> > > > > > > > > > > >    at java.lang.StringCoding.decode (Unknown Source)
> > > > > > > > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > > > > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > > > > > > > >    at
> > > > org.apache.jmeter.extractor.XPathExtractor.parseResponse(
> > > > > > > > > > > > XPathExtractor.java:169)
> > > > > > > > > > > >    at
> org.apache.jmeter.extractor.XPathExtractor.process(
> > > > > > > > > > > > XPathExtractor.java:95)
> > > > > > > > > > > >    ... 3 more
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > Request your help in resolving the same.
> > > > > > > > > > > > Let me know if you any other information.
> > > > > > > > > > > >
> > > > > > > > > > > > Raghuveer Sribhashyam
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > >
> ---------------------------------------------------------------------
> > > > > > > > > > > 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
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> ---------------------------------------------------------------------
> > > > > > 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
> > > >
> > > >
> > >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

Re: XPATH extractor - UnsupportedEncodingException: "utf-8"

Posted by sebb <se...@gmail.com>.
I've uploaded build r565714 which includes the fix.

Please let us know if that solves the problem or not.

On 14/08/07, sebb <se...@gmail.com> wrote:
> No need to raise bug - already fixed in SVN r565694
>
> I'll try and do another build later today.
>
> On 14/08/07, Raghuveer Sribhashyam <rs...@gmail.com> wrote:
> > Sebb,
> >
> > Do i need to raise a bug for this? If not when can i expect a fix for the
> > same..i mean which nightly build may have this fix?
> >
> > Thanks
> > Raghuveer
> >
> > On 8/14/07, sebb <se...@gmail.com> wrote:
> > >
> > > Originally, I thought so - but on re-reading the RFC it appears that
> > > the charset can be either a token *or* a quoted string.
> > >
> > > So JMeter is wrong. I'll fix it.
> > >
> > > S.
> > > On 14/08/07, Raghuveer Sribhashyam <rs...@gmail.com> wrote:
> > > > Sebb,
> > > >
> > > > The Response Header says:
> > > >
> > > > Content-type: text/xml; charset="utf-8"
> > > >
> > > > So, does this mean that this is a problem with the application
> > > response??
> > > >
> > > > Thanks
> > > > Raghuveer
> > > >
> > > > On 8/13/07, sebb <se...@gmail.com> wrote:
> > > > >
> > > > > I've done some tests on the String(data,charset) method call, and
> > > > > invalid UTF-8 characters don't generate an error - they just get
> > > > > converted into "?".
> > > > >
> > > > > However, I have just noticed that the charset is enclosed in quotes.
> > > > >
> > > > > I had assumed that these were added by the error message, but it seems
> > > > > not.
> > > > >
> > > > > This explains the problem - utf-8 is valid, but "utf-8" is not valid.
> > > > >
> > > > > It would be helpful if you could use the View Results Tree Listener to
> > > > > see what the
> > > > >
> > > > > Content-Type:
> > > > >
> > > > > header says.
> > > > >
> > > > > On 13/08/07, sebb <se...@gmail.com> wrote:
> > > > > > Please don't send attachments to the mailing list.
> > > > > >
> > > > > > Mostly they get dropped; if not, they just cause annoyance to others
> > > > > > not interested in them.
> > > > > >
> > > > > > Please create a Bugzilla issue with the details of the problem.
> > > > > >
> > > > > > You can then go back to the issue and attach the following files:
> > > > > >
> > > > > > test plan (JMX file)
> > > > > > jmeter.log
> > > > > > output from Save Responses to a file, or failing that, add a Simple
> > > > > > Data Writer and set the output type to XML. Make sure that "Save
> > > > > > Response Data" is enabled.
> > > > > >
> > > > > > On 13/08/07, Raghuveer Sribhashyam <rs...@gmail.com> wrote:
> > > > > > > Sebb,
> > > > > > >
> > > > > > > I have checked with the latest nightly build of jmeter
> > > > > > > jakarta-jmeter-r564722 and also with jakarta-jmeter-2.3RC3 which
> > > is
> > > > > the
> > > > > > > official version released for jmeter.
> > > > > > >
> > > > > > > I have never used the "Save Results to file" post-processor and am
> > > not
> > > > > able
> > > > > > > to get it working. I have saved the output from the testplan into
> > > a
> > > > > file. Am
> > > > > > > attaching the same with this message.
> > > > > > >
> > > > > > > I have tested the same with java version 1.4.2_15 as well. But it
> > > > > seems to
> > > > > > > be not working.
> > > > > > >
> > > > > > > Log from jmeter jakarta-jmeter-r564722:
> > > > > > > 2007/08/13 17:11:40 ERROR - jmeter.extractor.XPathExtractor: error
> > > on
> > > > > > > XPathExtractor.xpathQuery
> > > > >
> > > (/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
> > > > > > > java.io.UnsupportedEncodingException: "utf-8"
> > > > > > >    at sun.io.Converters.getConverterClass(Unknown Source)
> > > > > > >    at sun.io.Converters.newConverter(Unknown Source)
> > > > > > >    at sun.io.ByteToCharConverter.getConverter(Unknown Source)
> > > > > > >    at java.lang.StringCoding.decode(Unknown Source)
> > > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > > >    at org.apache.jmeter.extractor.XPathExtractor.parseResponse(
> > > > > > > XPathExtractor.java:169)
> > > > > > >    at org.apache.jmeter.extractor.XPathExtractor.process(
> > > > > > > XPathExtractor.java:95)
> > > > > > >    at org.apache.jmeter.threads.JMeterThread.runPostProcessors(
> > > > > > > JMeterThread.java:534)
> > > > > > >    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java
> > > > > :305)
> > > > > > >    at java.lang.Thread.run(Unknown Source)
> > > > > > >
> > > > > > > Log from jakarta-jmeter-2.3RC3 :
> > > > > > > 2007/08/13 17:17:09 ERROR - jmeter.extractor.XPathExtractor: error
> > > on
> > > > > > > XPathExtractor.xpathQuery
> > > > >
> > > (/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
> > > > > > > java.io.UnsupportedEncodingException: "utf-8"
> > > > > > >    at sun.io.Converters.getConverterClass(Unknown Source)
> > > > > > >    at sun.io.Converters.newConverter(Unknown Source)
> > > > > > >    at sun.io.ByteToCharConverter.getConverter(Unknown Source)
> > > > > > >    at java.lang.StringCoding.decode(Unknown Source)
> > > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > > >    at org.apache.jmeter.extractor.XPathExtractor.parseResponse(
> > > > > > > XPathExtractor.java:169)
> > > > > > >    at org.apache.jmeter.extractor.XPathExtractor.process(
> > > > > > > XPathExtractor.java:95)
> > > > > > >    at org.apache.jmeter.threads.JMeterThread.runPostProcessors(
> > > > > > > JMeterThread.java:534)
> > > > > > >    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java
> > > > > :305)
> > > > > > >    at java.lang.Thread.run(Unknown Source)
> > > > > > >
> > > > > > > Do you want me to raise a issue on bugzilla??
> > > > > > >
> > > > > > > Thanks
> > > > > > > Raghuveer
> > > > > > >
> > > > > > >
> > > > > > > On 8/13/07, sebb < sebbaz@gmail.com> wrote:
> > > > > > > >
> > > > > > > > That is the same version of Java I used until recently for
> > > testing
> > > > > > > > JMeter, so I'm positive that utf-8 is supported.
> > > > > > > >
> > > > > > > > [However, you might like to try 1.4.2_15, which has some
> > > security
> > > > > fixes.]
> > > > > > > >
> > > > > > > > Which version of JMeter are you using?
> > > > > > > > I cannot match the line numbers with code I've checked.
> > > > > > > >
> > > > > > > > I'm wondering if the problem is in the code nearby:
> > > > > > > >
> > > > > > > >       String unicodeData = new String(result.getResponseData(),
> > > > > > > >                                       result.getDataEncoding());
> > > > > > > >
> > > > > > > > Perhaps the sampler response is not valid for the data encoding
> > > > > > > > (utf-8), but in that case the error message is rather
> > > misleading.
> > > > > > > >
> > > > > > > > You could add a "Save Results to File" Post-Processor as a child
> > > of
> > > > > > > > the sampler to create a copy of the data.
> > > > > > > >
> > > > > > > > This could then be attached to a Bugzilla report along with the
> > > test
> > > > > > > > plan and jmeter.log.
> > > > > > > >
> > > > > > > > Remove any sensitive data first.
> > > > > > > >
> > > > > > > >
> > > > > > > > S.
> > > > > > > > On 13/08/07, Raghuveer Sribhashyam <rs...@gmail.com>
> > > wrote:
> > > > > > > > > Hi Sebb,
> > > > > > > > >
> > > > > > > > > Java version on the machine is 1.4.2_13
> > > > > > > > >
> > > > > > > > > java version "1.4.2_13"
> > > > > > > > > Java(TM) 2 Runtime Environment, Standard Edition (build
> > > > > 1.4.2_13-b06)
> > > > > > > > > Java HotSpot(TM) Client VM (build 1.4.2_13-b06 , mixed mode)
> > > > > > > > >
> > > > > > > > > OS is : Windows XP.
> > > > > > > > >
> > > > > > > > > Thanks
> > > > > > > > > Raghuveer Sribhashyam
> > > > > > > > >
> > > > > > > > > On 8/13/07, sebb <se...@gmail.com> wrote:
> > > > > > > > > >
> > > > > > > > > > That should not happen with a fully compliant version of
> > > Java
> > > > > 1.4 or
> > > > > > > > > > later - it should support utf-8.
> > > > > > > > > >
> > > > > > > > > > What version of Java are you using, and what OS?
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > On 13/08/07, Raghuveer Sribhashyam <rs...@gmail.com>
> > > > > wrote:
> > > > > > > > > > > Hi All,
> > > > > > > > > > >
> > > > > > > > > > > I am trying to run a SOAP request. I have the following
> > > > > structure:
> > > > > > > > > > >
> > > > > > > > > > > Test Plan
> > > > > > > > > > > ------Thread Group
> > > > > > > > > > >      -------SOAP Request
> > > > > > > > > > >             --------Response Assertion
> > > > > > > > > > >             --------XPATH extractor
> > > > > > > > > > >
> > > > > > > > > > > When i try to run the test plan with XPATH extractor it
> > > gives
> > > > > a
> > > > > > > > > > response.
> > > > > > > > > > > When i enable XPATH extractor, it doesn't show any
> > > response.
> > > > > > > > > > >
> > > > > > > > > > > I have checked the jmeter.log:
> > > > > > > > > > > Following is error message i can see in the logs.
> > > > > > > > > > >
> > > > > > > > > > > 2007/08/13 11:42:38 ERROR -
> > > jmeter.extractor.XPathExtractor:
> > > > > error
> > > > > > > > on
> > > > > > > > > > > XPathExtractor.xpathQuery
> > > > > > > > > >
> > > > > > > >
> > > > >
> > > (/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
> > > > > > > > > > > java.io.UnsupportedEncodingException : "utf-8"
> > > > > > > > > > >    at sun.io.Converters.getConverterClass(Unknown Source)
> > > > > > > > > > >    at sun.io.Converters.newConverter(Unknown Source)
> > > > > > > > > > >    at sun.io.ByteToCharConverter.getConverter (Unknown
> > > Source)
> > > > > > > > > > >    at java.lang.StringCoding.decode(Unknown Source)
> > > > > > > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > > > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > > > > > > >    at
> > > org.apache.jmeter.extractor.XPathExtractor.parseResponse
> > > > > (
> > > > > > > > > > > XPathExtractor.java:169)
> > > > > > > > > > >    at org.apache.jmeter.extractor.XPathExtractor.process(
> > > > > > > > > > > XPathExtractor.java :95)
> > > > > > > > > > >    at
> > > org.apache.jmeter.threads.JMeterThread.runPostProcessors
> > > > > (
> > > > > > > > > > > JMeterThread.java:534)
> > > > > > > > > > >    at org.apache.jmeter.threads.JMeterThread.run(
> > > > > JMeterThread.java
> > > > > > > > :305)
> > > > > > > > > > >    at java.lang.Thread.run(Unknown Source)
> > > > > > > > > > >
> > > > > > > > > > > 2007/08/13 11:42:38 ERROR - jmeter.threads.JMeterThread:
> > > Test
> > > > > > > > failed!
> > > > > > > > > > > org.apache.jorphan.util.JMeterError: error on
> > > > > > > > XPathExtractor.xpathQuery
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > >
> > > (/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
> > > > > > > > > > >    at org.apache.jmeter.extractor.XPathExtractor.process (
> > > > > > > > > > > XPathExtractor.java:100)
> > > > > > > > > > >    at
> > > org.apache.jmeter.threads.JMeterThread.runPostProcessors
> > > > > (
> > > > > > > > > > > JMeterThread.java:534)
> > > > > > > > > > >    at org.apache.jmeter.threads.JMeterThread.run (
> > > > > JMeterThread.java
> > > > > > > > :305)
> > > > > > > > > > >    at java.lang.Thread.run(Unknown Source)
> > > > > > > > > > > Caused by: java.io.UnsupportedEncodingException: "utf-8"
> > > > > > > > > > >    at sun.io.Converters.getConverterClass (Unknown Source)
> > > > > > > > > > >    at sun.io.Converters.newConverter(Unknown Source)
> > > > > > > > > > >    at sun.io.ByteToCharConverter.getConverter(Unknown
> > > Source)
> > > > > > > > > > >    at java.lang.StringCoding.decode (Unknown Source)
> > > > > > > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > > > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > > > > > > >    at
> > > org.apache.jmeter.extractor.XPathExtractor.parseResponse(
> > > > > > > > > > > XPathExtractor.java:169)
> > > > > > > > > > >    at org.apache.jmeter.extractor.XPathExtractor.process(
> > > > > > > > > > > XPathExtractor.java:95)
> > > > > > > > > > >    ... 3 more
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > Request your help in resolving the same.
> > > > > > > > > > > Let me know if you any other information.
> > > > > > > > > > >
> > > > > > > > > > > Raghuveer Sribhashyam
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > ---------------------------------------------------------------------
> > > > > > > > > > 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
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > 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
> > >
> > >
> >
>

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


Re: XPATH extractor - UnsupportedEncodingException: "utf-8"

Posted by sebb <se...@gmail.com>.
No need to raise bug - already fixed in SVN r565694

I'll try and do another build later today.

On 14/08/07, Raghuveer Sribhashyam <rs...@gmail.com> wrote:
> Sebb,
>
> Do i need to raise a bug for this? If not when can i expect a fix for the
> same..i mean which nightly build may have this fix?
>
> Thanks
> Raghuveer
>
> On 8/14/07, sebb <se...@gmail.com> wrote:
> >
> > Originally, I thought so - but on re-reading the RFC it appears that
> > the charset can be either a token *or* a quoted string.
> >
> > So JMeter is wrong. I'll fix it.
> >
> > S.
> > On 14/08/07, Raghuveer Sribhashyam <rs...@gmail.com> wrote:
> > > Sebb,
> > >
> > > The Response Header says:
> > >
> > > Content-type: text/xml; charset="utf-8"
> > >
> > > So, does this mean that this is a problem with the application
> > response??
> > >
> > > Thanks
> > > Raghuveer
> > >
> > > On 8/13/07, sebb <se...@gmail.com> wrote:
> > > >
> > > > I've done some tests on the String(data,charset) method call, and
> > > > invalid UTF-8 characters don't generate an error - they just get
> > > > converted into "?".
> > > >
> > > > However, I have just noticed that the charset is enclosed in quotes.
> > > >
> > > > I had assumed that these were added by the error message, but it seems
> > > > not.
> > > >
> > > > This explains the problem - utf-8 is valid, but "utf-8" is not valid.
> > > >
> > > > It would be helpful if you could use the View Results Tree Listener to
> > > > see what the
> > > >
> > > > Content-Type:
> > > >
> > > > header says.
> > > >
> > > > On 13/08/07, sebb <se...@gmail.com> wrote:
> > > > > Please don't send attachments to the mailing list.
> > > > >
> > > > > Mostly they get dropped; if not, they just cause annoyance to others
> > > > > not interested in them.
> > > > >
> > > > > Please create a Bugzilla issue with the details of the problem.
> > > > >
> > > > > You can then go back to the issue and attach the following files:
> > > > >
> > > > > test plan (JMX file)
> > > > > jmeter.log
> > > > > output from Save Responses to a file, or failing that, add a Simple
> > > > > Data Writer and set the output type to XML. Make sure that "Save
> > > > > Response Data" is enabled.
> > > > >
> > > > > On 13/08/07, Raghuveer Sribhashyam <rs...@gmail.com> wrote:
> > > > > > Sebb,
> > > > > >
> > > > > > I have checked with the latest nightly build of jmeter
> > > > > > jakarta-jmeter-r564722 and also with jakarta-jmeter-2.3RC3 which
> > is
> > > > the
> > > > > > official version released for jmeter.
> > > > > >
> > > > > > I have never used the "Save Results to file" post-processor and am
> > not
> > > > able
> > > > > > to get it working. I have saved the output from the testplan into
> > a
> > > > file. Am
> > > > > > attaching the same with this message.
> > > > > >
> > > > > > I have tested the same with java version 1.4.2_15 as well. But it
> > > > seems to
> > > > > > be not working.
> > > > > >
> > > > > > Log from jmeter jakarta-jmeter-r564722:
> > > > > > 2007/08/13 17:11:40 ERROR - jmeter.extractor.XPathExtractor: error
> > on
> > > > > > XPathExtractor.xpathQuery
> > > >
> > (/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
> > > > > > java.io.UnsupportedEncodingException: "utf-8"
> > > > > >    at sun.io.Converters.getConverterClass(Unknown Source)
> > > > > >    at sun.io.Converters.newConverter(Unknown Source)
> > > > > >    at sun.io.ByteToCharConverter.getConverter(Unknown Source)
> > > > > >    at java.lang.StringCoding.decode(Unknown Source)
> > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > >    at org.apache.jmeter.extractor.XPathExtractor.parseResponse(
> > > > > > XPathExtractor.java:169)
> > > > > >    at org.apache.jmeter.extractor.XPathExtractor.process(
> > > > > > XPathExtractor.java:95)
> > > > > >    at org.apache.jmeter.threads.JMeterThread.runPostProcessors(
> > > > > > JMeterThread.java:534)
> > > > > >    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java
> > > > :305)
> > > > > >    at java.lang.Thread.run(Unknown Source)
> > > > > >
> > > > > > Log from jakarta-jmeter-2.3RC3 :
> > > > > > 2007/08/13 17:17:09 ERROR - jmeter.extractor.XPathExtractor: error
> > on
> > > > > > XPathExtractor.xpathQuery
> > > >
> > (/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
> > > > > > java.io.UnsupportedEncodingException: "utf-8"
> > > > > >    at sun.io.Converters.getConverterClass(Unknown Source)
> > > > > >    at sun.io.Converters.newConverter(Unknown Source)
> > > > > >    at sun.io.ByteToCharConverter.getConverter(Unknown Source)
> > > > > >    at java.lang.StringCoding.decode(Unknown Source)
> > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > >    at org.apache.jmeter.extractor.XPathExtractor.parseResponse(
> > > > > > XPathExtractor.java:169)
> > > > > >    at org.apache.jmeter.extractor.XPathExtractor.process(
> > > > > > XPathExtractor.java:95)
> > > > > >    at org.apache.jmeter.threads.JMeterThread.runPostProcessors(
> > > > > > JMeterThread.java:534)
> > > > > >    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java
> > > > :305)
> > > > > >    at java.lang.Thread.run(Unknown Source)
> > > > > >
> > > > > > Do you want me to raise a issue on bugzilla??
> > > > > >
> > > > > > Thanks
> > > > > > Raghuveer
> > > > > >
> > > > > >
> > > > > > On 8/13/07, sebb < sebbaz@gmail.com> wrote:
> > > > > > >
> > > > > > > That is the same version of Java I used until recently for
> > testing
> > > > > > > JMeter, so I'm positive that utf-8 is supported.
> > > > > > >
> > > > > > > [However, you might like to try 1.4.2_15, which has some
> > security
> > > > fixes.]
> > > > > > >
> > > > > > > Which version of JMeter are you using?
> > > > > > > I cannot match the line numbers with code I've checked.
> > > > > > >
> > > > > > > I'm wondering if the problem is in the code nearby:
> > > > > > >
> > > > > > >       String unicodeData = new String(result.getResponseData(),
> > > > > > >                                       result.getDataEncoding());
> > > > > > >
> > > > > > > Perhaps the sampler response is not valid for the data encoding
> > > > > > > (utf-8), but in that case the error message is rather
> > misleading.
> > > > > > >
> > > > > > > You could add a "Save Results to File" Post-Processor as a child
> > of
> > > > > > > the sampler to create a copy of the data.
> > > > > > >
> > > > > > > This could then be attached to a Bugzilla report along with the
> > test
> > > > > > > plan and jmeter.log.
> > > > > > >
> > > > > > > Remove any sensitive data first.
> > > > > > >
> > > > > > >
> > > > > > > S.
> > > > > > > On 13/08/07, Raghuveer Sribhashyam <rs...@gmail.com>
> > wrote:
> > > > > > > > Hi Sebb,
> > > > > > > >
> > > > > > > > Java version on the machine is 1.4.2_13
> > > > > > > >
> > > > > > > > java version "1.4.2_13"
> > > > > > > > Java(TM) 2 Runtime Environment, Standard Edition (build
> > > > 1.4.2_13-b06)
> > > > > > > > Java HotSpot(TM) Client VM (build 1.4.2_13-b06 , mixed mode)
> > > > > > > >
> > > > > > > > OS is : Windows XP.
> > > > > > > >
> > > > > > > > Thanks
> > > > > > > > Raghuveer Sribhashyam
> > > > > > > >
> > > > > > > > On 8/13/07, sebb <se...@gmail.com> wrote:
> > > > > > > > >
> > > > > > > > > That should not happen with a fully compliant version of
> > Java
> > > > 1.4 or
> > > > > > > > > later - it should support utf-8.
> > > > > > > > >
> > > > > > > > > What version of Java are you using, and what OS?
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > On 13/08/07, Raghuveer Sribhashyam <rs...@gmail.com>
> > > > wrote:
> > > > > > > > > > Hi All,
> > > > > > > > > >
> > > > > > > > > > I am trying to run a SOAP request. I have the following
> > > > structure:
> > > > > > > > > >
> > > > > > > > > > Test Plan
> > > > > > > > > > ------Thread Group
> > > > > > > > > >      -------SOAP Request
> > > > > > > > > >             --------Response Assertion
> > > > > > > > > >             --------XPATH extractor
> > > > > > > > > >
> > > > > > > > > > When i try to run the test plan with XPATH extractor it
> > gives
> > > > a
> > > > > > > > > response.
> > > > > > > > > > When i enable XPATH extractor, it doesn't show any
> > response.
> > > > > > > > > >
> > > > > > > > > > I have checked the jmeter.log:
> > > > > > > > > > Following is error message i can see in the logs.
> > > > > > > > > >
> > > > > > > > > > 2007/08/13 11:42:38 ERROR -
> > jmeter.extractor.XPathExtractor:
> > > > error
> > > > > > > on
> > > > > > > > > > XPathExtractor.xpathQuery
> > > > > > > > >
> > > > > > >
> > > >
> > (/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
> > > > > > > > > > java.io.UnsupportedEncodingException : "utf-8"
> > > > > > > > > >    at sun.io.Converters.getConverterClass(Unknown Source)
> > > > > > > > > >    at sun.io.Converters.newConverter(Unknown Source)
> > > > > > > > > >    at sun.io.ByteToCharConverter.getConverter (Unknown
> > Source)
> > > > > > > > > >    at java.lang.StringCoding.decode(Unknown Source)
> > > > > > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > > > > > >    at
> > org.apache.jmeter.extractor.XPathExtractor.parseResponse
> > > > (
> > > > > > > > > > XPathExtractor.java:169)
> > > > > > > > > >    at org.apache.jmeter.extractor.XPathExtractor.process(
> > > > > > > > > > XPathExtractor.java :95)
> > > > > > > > > >    at
> > org.apache.jmeter.threads.JMeterThread.runPostProcessors
> > > > (
> > > > > > > > > > JMeterThread.java:534)
> > > > > > > > > >    at org.apache.jmeter.threads.JMeterThread.run(
> > > > JMeterThread.java
> > > > > > > :305)
> > > > > > > > > >    at java.lang.Thread.run(Unknown Source)
> > > > > > > > > >
> > > > > > > > > > 2007/08/13 11:42:38 ERROR - jmeter.threads.JMeterThread:
> > Test
> > > > > > > failed!
> > > > > > > > > > org.apache.jorphan.util.JMeterError: error on
> > > > > > > XPathExtractor.xpathQuery
> > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > >
> > (/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
> > > > > > > > > >    at org.apache.jmeter.extractor.XPathExtractor.process (
> > > > > > > > > > XPathExtractor.java:100)
> > > > > > > > > >    at
> > org.apache.jmeter.threads.JMeterThread.runPostProcessors
> > > > (
> > > > > > > > > > JMeterThread.java:534)
> > > > > > > > > >    at org.apache.jmeter.threads.JMeterThread.run (
> > > > JMeterThread.java
> > > > > > > :305)
> > > > > > > > > >    at java.lang.Thread.run(Unknown Source)
> > > > > > > > > > Caused by: java.io.UnsupportedEncodingException: "utf-8"
> > > > > > > > > >    at sun.io.Converters.getConverterClass (Unknown Source)
> > > > > > > > > >    at sun.io.Converters.newConverter(Unknown Source)
> > > > > > > > > >    at sun.io.ByteToCharConverter.getConverter(Unknown
> > Source)
> > > > > > > > > >    at java.lang.StringCoding.decode (Unknown Source)
> > > > > > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > > > > > >    at
> > org.apache.jmeter.extractor.XPathExtractor.parseResponse(
> > > > > > > > > > XPathExtractor.java:169)
> > > > > > > > > >    at org.apache.jmeter.extractor.XPathExtractor.process(
> > > > > > > > > > XPathExtractor.java:95)
> > > > > > > > > >    ... 3 more
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > Request your help in resolving the same.
> > > > > > > > > > Let me know if you any other information.
> > > > > > > > > >
> > > > > > > > > > Raghuveer Sribhashyam
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > ---------------------------------------------------------------------
> > > > > > > > > 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
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > 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
> >
> >
>

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


Re: XPATH extractor - UnsupportedEncodingException: "utf-8"

Posted by Raghuveer Sribhashyam <rs...@gmail.com>.
Sebb,

Do i need to raise a bug for this? If not when can i expect a fix for the
same..i mean which nightly build may have this fix?

Thanks
Raghuveer

On 8/14/07, sebb <se...@gmail.com> wrote:
>
> Originally, I thought so - but on re-reading the RFC it appears that
> the charset can be either a token *or* a quoted string.
>
> So JMeter is wrong. I'll fix it.
>
> S.
> On 14/08/07, Raghuveer Sribhashyam <rs...@gmail.com> wrote:
> > Sebb,
> >
> > The Response Header says:
> >
> > Content-type: text/xml; charset="utf-8"
> >
> > So, does this mean that this is a problem with the application
> response??
> >
> > Thanks
> > Raghuveer
> >
> > On 8/13/07, sebb <se...@gmail.com> wrote:
> > >
> > > I've done some tests on the String(data,charset) method call, and
> > > invalid UTF-8 characters don't generate an error - they just get
> > > converted into "?".
> > >
> > > However, I have just noticed that the charset is enclosed in quotes.
> > >
> > > I had assumed that these were added by the error message, but it seems
> > > not.
> > >
> > > This explains the problem - utf-8 is valid, but "utf-8" is not valid.
> > >
> > > It would be helpful if you could use the View Results Tree Listener to
> > > see what the
> > >
> > > Content-Type:
> > >
> > > header says.
> > >
> > > On 13/08/07, sebb <se...@gmail.com> wrote:
> > > > Please don't send attachments to the mailing list.
> > > >
> > > > Mostly they get dropped; if not, they just cause annoyance to others
> > > > not interested in them.
> > > >
> > > > Please create a Bugzilla issue with the details of the problem.
> > > >
> > > > You can then go back to the issue and attach the following files:
> > > >
> > > > test plan (JMX file)
> > > > jmeter.log
> > > > output from Save Responses to a file, or failing that, add a Simple
> > > > Data Writer and set the output type to XML. Make sure that "Save
> > > > Response Data" is enabled.
> > > >
> > > > On 13/08/07, Raghuveer Sribhashyam <rs...@gmail.com> wrote:
> > > > > Sebb,
> > > > >
> > > > > I have checked with the latest nightly build of jmeter
> > > > > jakarta-jmeter-r564722 and also with jakarta-jmeter-2.3RC3 which
> is
> > > the
> > > > > official version released for jmeter.
> > > > >
> > > > > I have never used the "Save Results to file" post-processor and am
> not
> > > able
> > > > > to get it working. I have saved the output from the testplan into
> a
> > > file. Am
> > > > > attaching the same with this message.
> > > > >
> > > > > I have tested the same with java version 1.4.2_15 as well. But it
> > > seems to
> > > > > be not working.
> > > > >
> > > > > Log from jmeter jakarta-jmeter-r564722:
> > > > > 2007/08/13 17:11:40 ERROR - jmeter.extractor.XPathExtractor: error
> on
> > > > > XPathExtractor.xpathQuery
> > >
> (/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
> > > > > java.io.UnsupportedEncodingException: "utf-8"
> > > > >    at sun.io.Converters.getConverterClass(Unknown Source)
> > > > >    at sun.io.Converters.newConverter(Unknown Source)
> > > > >    at sun.io.ByteToCharConverter.getConverter(Unknown Source)
> > > > >    at java.lang.StringCoding.decode(Unknown Source)
> > > > >    at java.lang.String.<init>(Unknown Source)
> > > > >    at java.lang.String.<init>(Unknown Source)
> > > > >    at org.apache.jmeter.extractor.XPathExtractor.parseResponse(
> > > > > XPathExtractor.java:169)
> > > > >    at org.apache.jmeter.extractor.XPathExtractor.process(
> > > > > XPathExtractor.java:95)
> > > > >    at org.apache.jmeter.threads.JMeterThread.runPostProcessors(
> > > > > JMeterThread.java:534)
> > > > >    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java
> > > :305)
> > > > >    at java.lang.Thread.run(Unknown Source)
> > > > >
> > > > > Log from jakarta-jmeter-2.3RC3 :
> > > > > 2007/08/13 17:17:09 ERROR - jmeter.extractor.XPathExtractor: error
> on
> > > > > XPathExtractor.xpathQuery
> > >
> (/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
> > > > > java.io.UnsupportedEncodingException: "utf-8"
> > > > >    at sun.io.Converters.getConverterClass(Unknown Source)
> > > > >    at sun.io.Converters.newConverter(Unknown Source)
> > > > >    at sun.io.ByteToCharConverter.getConverter(Unknown Source)
> > > > >    at java.lang.StringCoding.decode(Unknown Source)
> > > > >    at java.lang.String.<init>(Unknown Source)
> > > > >    at java.lang.String.<init>(Unknown Source)
> > > > >    at org.apache.jmeter.extractor.XPathExtractor.parseResponse(
> > > > > XPathExtractor.java:169)
> > > > >    at org.apache.jmeter.extractor.XPathExtractor.process(
> > > > > XPathExtractor.java:95)
> > > > >    at org.apache.jmeter.threads.JMeterThread.runPostProcessors(
> > > > > JMeterThread.java:534)
> > > > >    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java
> > > :305)
> > > > >    at java.lang.Thread.run(Unknown Source)
> > > > >
> > > > > Do you want me to raise a issue on bugzilla??
> > > > >
> > > > > Thanks
> > > > > Raghuveer
> > > > >
> > > > >
> > > > > On 8/13/07, sebb < sebbaz@gmail.com> wrote:
> > > > > >
> > > > > > That is the same version of Java I used until recently for
> testing
> > > > > > JMeter, so I'm positive that utf-8 is supported.
> > > > > >
> > > > > > [However, you might like to try 1.4.2_15, which has some
> security
> > > fixes.]
> > > > > >
> > > > > > Which version of JMeter are you using?
> > > > > > I cannot match the line numbers with code I've checked.
> > > > > >
> > > > > > I'm wondering if the problem is in the code nearby:
> > > > > >
> > > > > >       String unicodeData = new String(result.getResponseData(),
> > > > > >                                       result.getDataEncoding());
> > > > > >
> > > > > > Perhaps the sampler response is not valid for the data encoding
> > > > > > (utf-8), but in that case the error message is rather
> misleading.
> > > > > >
> > > > > > You could add a "Save Results to File" Post-Processor as a child
> of
> > > > > > the sampler to create a copy of the data.
> > > > > >
> > > > > > This could then be attached to a Bugzilla report along with the
> test
> > > > > > plan and jmeter.log.
> > > > > >
> > > > > > Remove any sensitive data first.
> > > > > >
> > > > > >
> > > > > > S.
> > > > > > On 13/08/07, Raghuveer Sribhashyam <rs...@gmail.com>
> wrote:
> > > > > > > Hi Sebb,
> > > > > > >
> > > > > > > Java version on the machine is 1.4.2_13
> > > > > > >
> > > > > > > java version "1.4.2_13"
> > > > > > > Java(TM) 2 Runtime Environment, Standard Edition (build
> > > 1.4.2_13-b06)
> > > > > > > Java HotSpot(TM) Client VM (build 1.4.2_13-b06 , mixed mode)
> > > > > > >
> > > > > > > OS is : Windows XP.
> > > > > > >
> > > > > > > Thanks
> > > > > > > Raghuveer Sribhashyam
> > > > > > >
> > > > > > > On 8/13/07, sebb <se...@gmail.com> wrote:
> > > > > > > >
> > > > > > > > That should not happen with a fully compliant version of
> Java
> > > 1.4 or
> > > > > > > > later - it should support utf-8.
> > > > > > > >
> > > > > > > > What version of Java are you using, and what OS?
> > > > > > > >
> > > > > > > >
> > > > > > > > On 13/08/07, Raghuveer Sribhashyam <rs...@gmail.com>
> > > wrote:
> > > > > > > > > Hi All,
> > > > > > > > >
> > > > > > > > > I am trying to run a SOAP request. I have the following
> > > structure:
> > > > > > > > >
> > > > > > > > > Test Plan
> > > > > > > > > ------Thread Group
> > > > > > > > >      -------SOAP Request
> > > > > > > > >             --------Response Assertion
> > > > > > > > >             --------XPATH extractor
> > > > > > > > >
> > > > > > > > > When i try to run the test plan with XPATH extractor it
> gives
> > > a
> > > > > > > > response.
> > > > > > > > > When i enable XPATH extractor, it doesn't show any
> response.
> > > > > > > > >
> > > > > > > > > I have checked the jmeter.log:
> > > > > > > > > Following is error message i can see in the logs.
> > > > > > > > >
> > > > > > > > > 2007/08/13 11:42:38 ERROR -
> jmeter.extractor.XPathExtractor:
> > > error
> > > > > > on
> > > > > > > > > XPathExtractor.xpathQuery
> > > > > > > >
> > > > > >
> > >
> (/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
> > > > > > > > > java.io.UnsupportedEncodingException : "utf-8"
> > > > > > > > >    at sun.io.Converters.getConverterClass(Unknown Source)
> > > > > > > > >    at sun.io.Converters.newConverter(Unknown Source)
> > > > > > > > >    at sun.io.ByteToCharConverter.getConverter (Unknown
> Source)
> > > > > > > > >    at java.lang.StringCoding.decode(Unknown Source)
> > > > > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > > > > >    at
> org.apache.jmeter.extractor.XPathExtractor.parseResponse
> > > (
> > > > > > > > > XPathExtractor.java:169)
> > > > > > > > >    at org.apache.jmeter.extractor.XPathExtractor.process(
> > > > > > > > > XPathExtractor.java :95)
> > > > > > > > >    at
> org.apache.jmeter.threads.JMeterThread.runPostProcessors
> > > (
> > > > > > > > > JMeterThread.java:534)
> > > > > > > > >    at org.apache.jmeter.threads.JMeterThread.run(
> > > JMeterThread.java
> > > > > > :305)
> > > > > > > > >    at java.lang.Thread.run(Unknown Source)
> > > > > > > > >
> > > > > > > > > 2007/08/13 11:42:38 ERROR - jmeter.threads.JMeterThread:
> Test
> > > > > > failed!
> > > > > > > > > org.apache.jorphan.util.JMeterError: error on
> > > > > > XPathExtractor.xpathQuery
> > > > > > > > >
> > > > > > > >
> > > > > >
> > >
> (/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
> > > > > > > > >    at org.apache.jmeter.extractor.XPathExtractor.process (
> > > > > > > > > XPathExtractor.java:100)
> > > > > > > > >    at
> org.apache.jmeter.threads.JMeterThread.runPostProcessors
> > > (
> > > > > > > > > JMeterThread.java:534)
> > > > > > > > >    at org.apache.jmeter.threads.JMeterThread.run (
> > > JMeterThread.java
> > > > > > :305)
> > > > > > > > >    at java.lang.Thread.run(Unknown Source)
> > > > > > > > > Caused by: java.io.UnsupportedEncodingException: "utf-8"
> > > > > > > > >    at sun.io.Converters.getConverterClass (Unknown Source)
> > > > > > > > >    at sun.io.Converters.newConverter(Unknown Source)
> > > > > > > > >    at sun.io.ByteToCharConverter.getConverter(Unknown
> Source)
> > > > > > > > >    at java.lang.StringCoding.decode (Unknown Source)
> > > > > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > > > > >    at
> org.apache.jmeter.extractor.XPathExtractor.parseResponse(
> > > > > > > > > XPathExtractor.java:169)
> > > > > > > > >    at org.apache.jmeter.extractor.XPathExtractor.process(
> > > > > > > > > XPathExtractor.java:95)
> > > > > > > > >    ... 3 more
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > Request your help in resolving the same.
> > > > > > > > > Let me know if you any other information.
> > > > > > > > >
> > > > > > > > > Raghuveer Sribhashyam
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > ---------------------------------------------------------------------
> > > > > > > > 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
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > 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: XPATH extractor - UnsupportedEncodingException: "utf-8"

Posted by sebb <se...@gmail.com>.
Originally, I thought so - but on re-reading the RFC it appears that
the charset can be either a token *or* a quoted string.

So JMeter is wrong. I'll fix it.

S.
On 14/08/07, Raghuveer Sribhashyam <rs...@gmail.com> wrote:
> Sebb,
>
> The Response Header says:
>
> Content-type: text/xml; charset="utf-8"
>
> So, does this mean that this is a problem with the application response??
>
> Thanks
> Raghuveer
>
> On 8/13/07, sebb <se...@gmail.com> wrote:
> >
> > I've done some tests on the String(data,charset) method call, and
> > invalid UTF-8 characters don't generate an error - they just get
> > converted into "?".
> >
> > However, I have just noticed that the charset is enclosed in quotes.
> >
> > I had assumed that these were added by the error message, but it seems
> > not.
> >
> > This explains the problem - utf-8 is valid, but "utf-8" is not valid.
> >
> > It would be helpful if you could use the View Results Tree Listener to
> > see what the
> >
> > Content-Type:
> >
> > header says.
> >
> > On 13/08/07, sebb <se...@gmail.com> wrote:
> > > Please don't send attachments to the mailing list.
> > >
> > > Mostly they get dropped; if not, they just cause annoyance to others
> > > not interested in them.
> > >
> > > Please create a Bugzilla issue with the details of the problem.
> > >
> > > You can then go back to the issue and attach the following files:
> > >
> > > test plan (JMX file)
> > > jmeter.log
> > > output from Save Responses to a file, or failing that, add a Simple
> > > Data Writer and set the output type to XML. Make sure that "Save
> > > Response Data" is enabled.
> > >
> > > On 13/08/07, Raghuveer Sribhashyam <rs...@gmail.com> wrote:
> > > > Sebb,
> > > >
> > > > I have checked with the latest nightly build of jmeter
> > > > jakarta-jmeter-r564722 and also with jakarta-jmeter-2.3RC3 which is
> > the
> > > > official version released for jmeter.
> > > >
> > > > I have never used the "Save Results to file" post-processor and am not
> > able
> > > > to get it working. I have saved the output from the testplan into a
> > file. Am
> > > > attaching the same with this message.
> > > >
> > > > I have tested the same with java version 1.4.2_15 as well. But it
> > seems to
> > > > be not working.
> > > >
> > > > Log from jmeter jakarta-jmeter-r564722:
> > > > 2007/08/13 17:11:40 ERROR - jmeter.extractor.XPathExtractor: error on
> > > > XPathExtractor.xpathQuery
> > (/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
> > > > java.io.UnsupportedEncodingException: "utf-8"
> > > >    at sun.io.Converters.getConverterClass(Unknown Source)
> > > >    at sun.io.Converters.newConverter(Unknown Source)
> > > >    at sun.io.ByteToCharConverter.getConverter(Unknown Source)
> > > >    at java.lang.StringCoding.decode(Unknown Source)
> > > >    at java.lang.String.<init>(Unknown Source)
> > > >    at java.lang.String.<init>(Unknown Source)
> > > >    at org.apache.jmeter.extractor.XPathExtractor.parseResponse(
> > > > XPathExtractor.java:169)
> > > >    at org.apache.jmeter.extractor.XPathExtractor.process(
> > > > XPathExtractor.java:95)
> > > >    at org.apache.jmeter.threads.JMeterThread.runPostProcessors(
> > > > JMeterThread.java:534)
> > > >    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java
> > :305)
> > > >    at java.lang.Thread.run(Unknown Source)
> > > >
> > > > Log from jakarta-jmeter-2.3RC3 :
> > > > 2007/08/13 17:17:09 ERROR - jmeter.extractor.XPathExtractor: error on
> > > > XPathExtractor.xpathQuery
> > (/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
> > > > java.io.UnsupportedEncodingException: "utf-8"
> > > >    at sun.io.Converters.getConverterClass(Unknown Source)
> > > >    at sun.io.Converters.newConverter(Unknown Source)
> > > >    at sun.io.ByteToCharConverter.getConverter(Unknown Source)
> > > >    at java.lang.StringCoding.decode(Unknown Source)
> > > >    at java.lang.String.<init>(Unknown Source)
> > > >    at java.lang.String.<init>(Unknown Source)
> > > >    at org.apache.jmeter.extractor.XPathExtractor.parseResponse(
> > > > XPathExtractor.java:169)
> > > >    at org.apache.jmeter.extractor.XPathExtractor.process(
> > > > XPathExtractor.java:95)
> > > >    at org.apache.jmeter.threads.JMeterThread.runPostProcessors(
> > > > JMeterThread.java:534)
> > > >    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java
> > :305)
> > > >    at java.lang.Thread.run(Unknown Source)
> > > >
> > > > Do you want me to raise a issue on bugzilla??
> > > >
> > > > Thanks
> > > > Raghuveer
> > > >
> > > >
> > > > On 8/13/07, sebb < sebbaz@gmail.com> wrote:
> > > > >
> > > > > That is the same version of Java I used until recently for testing
> > > > > JMeter, so I'm positive that utf-8 is supported.
> > > > >
> > > > > [However, you might like to try 1.4.2_15, which has some security
> > fixes.]
> > > > >
> > > > > Which version of JMeter are you using?
> > > > > I cannot match the line numbers with code I've checked.
> > > > >
> > > > > I'm wondering if the problem is in the code nearby:
> > > > >
> > > > >       String unicodeData = new String(result.getResponseData(),
> > > > >                                       result.getDataEncoding());
> > > > >
> > > > > Perhaps the sampler response is not valid for the data encoding
> > > > > (utf-8), but in that case the error message is rather misleading.
> > > > >
> > > > > You could add a "Save Results to File" Post-Processor as a child of
> > > > > the sampler to create a copy of the data.
> > > > >
> > > > > This could then be attached to a Bugzilla report along with the test
> > > > > plan and jmeter.log.
> > > > >
> > > > > Remove any sensitive data first.
> > > > >
> > > > >
> > > > > S.
> > > > > On 13/08/07, Raghuveer Sribhashyam <rs...@gmail.com> wrote:
> > > > > > Hi Sebb,
> > > > > >
> > > > > > Java version on the machine is 1.4.2_13
> > > > > >
> > > > > > java version "1.4.2_13"
> > > > > > Java(TM) 2 Runtime Environment, Standard Edition (build
> > 1.4.2_13-b06)
> > > > > > Java HotSpot(TM) Client VM (build 1.4.2_13-b06 , mixed mode)
> > > > > >
> > > > > > OS is : Windows XP.
> > > > > >
> > > > > > Thanks
> > > > > > Raghuveer Sribhashyam
> > > > > >
> > > > > > On 8/13/07, sebb <se...@gmail.com> wrote:
> > > > > > >
> > > > > > > That should not happen with a fully compliant version of Java
> > 1.4 or
> > > > > > > later - it should support utf-8.
> > > > > > >
> > > > > > > What version of Java are you using, and what OS?
> > > > > > >
> > > > > > >
> > > > > > > On 13/08/07, Raghuveer Sribhashyam <rs...@gmail.com>
> > wrote:
> > > > > > > > Hi All,
> > > > > > > >
> > > > > > > > I am trying to run a SOAP request. I have the following
> > structure:
> > > > > > > >
> > > > > > > > Test Plan
> > > > > > > > ------Thread Group
> > > > > > > >      -------SOAP Request
> > > > > > > >             --------Response Assertion
> > > > > > > >             --------XPATH extractor
> > > > > > > >
> > > > > > > > When i try to run the test plan with XPATH extractor it gives
> > a
> > > > > > > response.
> > > > > > > > When i enable XPATH extractor, it doesn't show any response.
> > > > > > > >
> > > > > > > > I have checked the jmeter.log:
> > > > > > > > Following is error message i can see in the logs.
> > > > > > > >
> > > > > > > > 2007/08/13 11:42:38 ERROR - jmeter.extractor.XPathExtractor:
> > error
> > > > > on
> > > > > > > > XPathExtractor.xpathQuery
> > > > > > >
> > > > >
> > (/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
> > > > > > > > java.io.UnsupportedEncodingException : "utf-8"
> > > > > > > >    at sun.io.Converters.getConverterClass(Unknown Source)
> > > > > > > >    at sun.io.Converters.newConverter(Unknown Source)
> > > > > > > >    at sun.io.ByteToCharConverter.getConverter (Unknown Source)
> > > > > > > >    at java.lang.StringCoding.decode(Unknown Source)
> > > > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > > > >    at org.apache.jmeter.extractor.XPathExtractor.parseResponse
> > (
> > > > > > > > XPathExtractor.java:169)
> > > > > > > >    at org.apache.jmeter.extractor.XPathExtractor.process(
> > > > > > > > XPathExtractor.java :95)
> > > > > > > >    at org.apache.jmeter.threads.JMeterThread.runPostProcessors
> > (
> > > > > > > > JMeterThread.java:534)
> > > > > > > >    at org.apache.jmeter.threads.JMeterThread.run(
> > JMeterThread.java
> > > > > :305)
> > > > > > > >    at java.lang.Thread.run(Unknown Source)
> > > > > > > >
> > > > > > > > 2007/08/13 11:42:38 ERROR - jmeter.threads.JMeterThread: Test
> > > > > failed!
> > > > > > > > org.apache.jorphan.util.JMeterError: error on
> > > > > XPathExtractor.xpathQuery
> > > > > > > >
> > > > > > >
> > > > >
> > (/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
> > > > > > > >    at org.apache.jmeter.extractor.XPathExtractor.process (
> > > > > > > > XPathExtractor.java:100)
> > > > > > > >    at org.apache.jmeter.threads.JMeterThread.runPostProcessors
> > (
> > > > > > > > JMeterThread.java:534)
> > > > > > > >    at org.apache.jmeter.threads.JMeterThread.run (
> > JMeterThread.java
> > > > > :305)
> > > > > > > >    at java.lang.Thread.run(Unknown Source)
> > > > > > > > Caused by: java.io.UnsupportedEncodingException: "utf-8"
> > > > > > > >    at sun.io.Converters.getConverterClass (Unknown Source)
> > > > > > > >    at sun.io.Converters.newConverter(Unknown Source)
> > > > > > > >    at sun.io.ByteToCharConverter.getConverter(Unknown Source)
> > > > > > > >    at java.lang.StringCoding.decode (Unknown Source)
> > > > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > > > >    at org.apache.jmeter.extractor.XPathExtractor.parseResponse(
> > > > > > > > XPathExtractor.java:169)
> > > > > > > >    at org.apache.jmeter.extractor.XPathExtractor.process(
> > > > > > > > XPathExtractor.java:95)
> > > > > > > >    ... 3 more
> > > > > > > >
> > > > > > > >
> > > > > > > > Request your help in resolving the same.
> > > > > > > > Let me know if you any other information.
> > > > > > > >
> > > > > > > > Raghuveer Sribhashyam
> > > > > > > >
> > > > > > >
> > > > > > >
> > ---------------------------------------------------------------------
> > > > > > > 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
> > > > >
> > > > >
> > > >
> > >
> >
> > ---------------------------------------------------------------------
> > 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: XPATH extractor - UnsupportedEncodingException: "utf-8"

Posted by Raghuveer Sribhashyam <rs...@gmail.com>.
Sebb,

The Response Header says:

Content-type: text/xml; charset="utf-8"

So, does this mean that this is a problem with the application response??

Thanks
Raghuveer

On 8/13/07, sebb <se...@gmail.com> wrote:
>
> I've done some tests on the String(data,charset) method call, and
> invalid UTF-8 characters don't generate an error - they just get
> converted into "?".
>
> However, I have just noticed that the charset is enclosed in quotes.
>
> I had assumed that these were added by the error message, but it seems
> not.
>
> This explains the problem - utf-8 is valid, but "utf-8" is not valid.
>
> It would be helpful if you could use the View Results Tree Listener to
> see what the
>
> Content-Type:
>
> header says.
>
> On 13/08/07, sebb <se...@gmail.com> wrote:
> > Please don't send attachments to the mailing list.
> >
> > Mostly they get dropped; if not, they just cause annoyance to others
> > not interested in them.
> >
> > Please create a Bugzilla issue with the details of the problem.
> >
> > You can then go back to the issue and attach the following files:
> >
> > test plan (JMX file)
> > jmeter.log
> > output from Save Responses to a file, or failing that, add a Simple
> > Data Writer and set the output type to XML. Make sure that "Save
> > Response Data" is enabled.
> >
> > On 13/08/07, Raghuveer Sribhashyam <rs...@gmail.com> wrote:
> > > Sebb,
> > >
> > > I have checked with the latest nightly build of jmeter
> > > jakarta-jmeter-r564722 and also with jakarta-jmeter-2.3RC3 which is
> the
> > > official version released for jmeter.
> > >
> > > I have never used the "Save Results to file" post-processor and am not
> able
> > > to get it working. I have saved the output from the testplan into a
> file. Am
> > > attaching the same with this message.
> > >
> > > I have tested the same with java version 1.4.2_15 as well. But it
> seems to
> > > be not working.
> > >
> > > Log from jmeter jakarta-jmeter-r564722:
> > > 2007/08/13 17:11:40 ERROR - jmeter.extractor.XPathExtractor: error on
> > > XPathExtractor.xpathQuery
> (/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
> > > java.io.UnsupportedEncodingException: "utf-8"
> > >    at sun.io.Converters.getConverterClass(Unknown Source)
> > >    at sun.io.Converters.newConverter(Unknown Source)
> > >    at sun.io.ByteToCharConverter.getConverter(Unknown Source)
> > >    at java.lang.StringCoding.decode(Unknown Source)
> > >    at java.lang.String.<init>(Unknown Source)
> > >    at java.lang.String.<init>(Unknown Source)
> > >    at org.apache.jmeter.extractor.XPathExtractor.parseResponse(
> > > XPathExtractor.java:169)
> > >    at org.apache.jmeter.extractor.XPathExtractor.process(
> > > XPathExtractor.java:95)
> > >    at org.apache.jmeter.threads.JMeterThread.runPostProcessors(
> > > JMeterThread.java:534)
> > >    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java
> :305)
> > >    at java.lang.Thread.run(Unknown Source)
> > >
> > > Log from jakarta-jmeter-2.3RC3 :
> > > 2007/08/13 17:17:09 ERROR - jmeter.extractor.XPathExtractor: error on
> > > XPathExtractor.xpathQuery
> (/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
> > > java.io.UnsupportedEncodingException: "utf-8"
> > >    at sun.io.Converters.getConverterClass(Unknown Source)
> > >    at sun.io.Converters.newConverter(Unknown Source)
> > >    at sun.io.ByteToCharConverter.getConverter(Unknown Source)
> > >    at java.lang.StringCoding.decode(Unknown Source)
> > >    at java.lang.String.<init>(Unknown Source)
> > >    at java.lang.String.<init>(Unknown Source)
> > >    at org.apache.jmeter.extractor.XPathExtractor.parseResponse(
> > > XPathExtractor.java:169)
> > >    at org.apache.jmeter.extractor.XPathExtractor.process(
> > > XPathExtractor.java:95)
> > >    at org.apache.jmeter.threads.JMeterThread.runPostProcessors(
> > > JMeterThread.java:534)
> > >    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java
> :305)
> > >    at java.lang.Thread.run(Unknown Source)
> > >
> > > Do you want me to raise a issue on bugzilla??
> > >
> > > Thanks
> > > Raghuveer
> > >
> > >
> > > On 8/13/07, sebb < sebbaz@gmail.com> wrote:
> > > >
> > > > That is the same version of Java I used until recently for testing
> > > > JMeter, so I'm positive that utf-8 is supported.
> > > >
> > > > [However, you might like to try 1.4.2_15, which has some security
> fixes.]
> > > >
> > > > Which version of JMeter are you using?
> > > > I cannot match the line numbers with code I've checked.
> > > >
> > > > I'm wondering if the problem is in the code nearby:
> > > >
> > > >       String unicodeData = new String(result.getResponseData(),
> > > >                                       result.getDataEncoding());
> > > >
> > > > Perhaps the sampler response is not valid for the data encoding
> > > > (utf-8), but in that case the error message is rather misleading.
> > > >
> > > > You could add a "Save Results to File" Post-Processor as a child of
> > > > the sampler to create a copy of the data.
> > > >
> > > > This could then be attached to a Bugzilla report along with the test
> > > > plan and jmeter.log.
> > > >
> > > > Remove any sensitive data first.
> > > >
> > > >
> > > > S.
> > > > On 13/08/07, Raghuveer Sribhashyam <rs...@gmail.com> wrote:
> > > > > Hi Sebb,
> > > > >
> > > > > Java version on the machine is 1.4.2_13
> > > > >
> > > > > java version "1.4.2_13"
> > > > > Java(TM) 2 Runtime Environment, Standard Edition (build
> 1.4.2_13-b06)
> > > > > Java HotSpot(TM) Client VM (build 1.4.2_13-b06 , mixed mode)
> > > > >
> > > > > OS is : Windows XP.
> > > > >
> > > > > Thanks
> > > > > Raghuveer Sribhashyam
> > > > >
> > > > > On 8/13/07, sebb <se...@gmail.com> wrote:
> > > > > >
> > > > > > That should not happen with a fully compliant version of Java
> 1.4 or
> > > > > > later - it should support utf-8.
> > > > > >
> > > > > > What version of Java are you using, and what OS?
> > > > > >
> > > > > >
> > > > > > On 13/08/07, Raghuveer Sribhashyam <rs...@gmail.com>
> wrote:
> > > > > > > Hi All,
> > > > > > >
> > > > > > > I am trying to run a SOAP request. I have the following
> structure:
> > > > > > >
> > > > > > > Test Plan
> > > > > > > ------Thread Group
> > > > > > >      -------SOAP Request
> > > > > > >             --------Response Assertion
> > > > > > >             --------XPATH extractor
> > > > > > >
> > > > > > > When i try to run the test plan with XPATH extractor it gives
> a
> > > > > > response.
> > > > > > > When i enable XPATH extractor, it doesn't show any response.
> > > > > > >
> > > > > > > I have checked the jmeter.log:
> > > > > > > Following is error message i can see in the logs.
> > > > > > >
> > > > > > > 2007/08/13 11:42:38 ERROR - jmeter.extractor.XPathExtractor:
> error
> > > > on
> > > > > > > XPathExtractor.xpathQuery
> > > > > >
> > > >
> (/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
> > > > > > > java.io.UnsupportedEncodingException : "utf-8"
> > > > > > >    at sun.io.Converters.getConverterClass(Unknown Source)
> > > > > > >    at sun.io.Converters.newConverter(Unknown Source)
> > > > > > >    at sun.io.ByteToCharConverter.getConverter (Unknown Source)
> > > > > > >    at java.lang.StringCoding.decode(Unknown Source)
> > > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > > >    at org.apache.jmeter.extractor.XPathExtractor.parseResponse
> (
> > > > > > > XPathExtractor.java:169)
> > > > > > >    at org.apache.jmeter.extractor.XPathExtractor.process(
> > > > > > > XPathExtractor.java :95)
> > > > > > >    at org.apache.jmeter.threads.JMeterThread.runPostProcessors
> (
> > > > > > > JMeterThread.java:534)
> > > > > > >    at org.apache.jmeter.threads.JMeterThread.run(
> JMeterThread.java
> > > > :305)
> > > > > > >    at java.lang.Thread.run(Unknown Source)
> > > > > > >
> > > > > > > 2007/08/13 11:42:38 ERROR - jmeter.threads.JMeterThread: Test
> > > > failed!
> > > > > > > org.apache.jorphan.util.JMeterError: error on
> > > > XPathExtractor.xpathQuery
> > > > > > >
> > > > > >
> > > >
> (/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
> > > > > > >    at org.apache.jmeter.extractor.XPathExtractor.process (
> > > > > > > XPathExtractor.java:100)
> > > > > > >    at org.apache.jmeter.threads.JMeterThread.runPostProcessors
> (
> > > > > > > JMeterThread.java:534)
> > > > > > >    at org.apache.jmeter.threads.JMeterThread.run (
> JMeterThread.java
> > > > :305)
> > > > > > >    at java.lang.Thread.run(Unknown Source)
> > > > > > > Caused by: java.io.UnsupportedEncodingException: "utf-8"
> > > > > > >    at sun.io.Converters.getConverterClass (Unknown Source)
> > > > > > >    at sun.io.Converters.newConverter(Unknown Source)
> > > > > > >    at sun.io.ByteToCharConverter.getConverter(Unknown Source)
> > > > > > >    at java.lang.StringCoding.decode (Unknown Source)
> > > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > > >    at org.apache.jmeter.extractor.XPathExtractor.parseResponse(
> > > > > > > XPathExtractor.java:169)
> > > > > > >    at org.apache.jmeter.extractor.XPathExtractor.process(
> > > > > > > XPathExtractor.java:95)
> > > > > > >    ... 3 more
> > > > > > >
> > > > > > >
> > > > > > > Request your help in resolving the same.
> > > > > > > Let me know if you any other information.
> > > > > > >
> > > > > > > Raghuveer Sribhashyam
> > > > > > >
> > > > > >
> > > > > >
> ---------------------------------------------------------------------
> > > > > > 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
> > > >
> > > >
> > >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

Re: XPATH extractor - UnsupportedEncodingException: "utf-8"

Posted by sebb <se...@gmail.com>.
I've done some tests on the String(data,charset) method call, and
invalid UTF-8 characters don't generate an error - they just get
converted into "?".

However, I have just noticed that the charset is enclosed in quotes.

I had assumed that these were added by the error message, but it seems not.

This explains the problem - utf-8 is valid, but "utf-8" is not valid.

It would be helpful if you could use the View Results Tree Listener to
see what the

Content-Type:

header says.

On 13/08/07, sebb <se...@gmail.com> wrote:
> Please don't send attachments to the mailing list.
>
> Mostly they get dropped; if not, they just cause annoyance to others
> not interested in them.
>
> Please create a Bugzilla issue with the details of the problem.
>
> You can then go back to the issue and attach the following files:
>
> test plan (JMX file)
> jmeter.log
> output from Save Responses to a file, or failing that, add a Simple
> Data Writer and set the output type to XML. Make sure that "Save
> Response Data" is enabled.
>
> On 13/08/07, Raghuveer Sribhashyam <rs...@gmail.com> wrote:
> > Sebb,
> >
> > I have checked with the latest nightly build of jmeter
> > jakarta-jmeter-r564722 and also with jakarta-jmeter-2.3RC3 which is the
> > official version released for jmeter.
> >
> > I have never used the "Save Results to file" post-processor and am not able
> > to get it working. I have saved the output from the testplan into a file. Am
> > attaching the same with this message.
> >
> > I have tested the same with java version 1.4.2_15 as well. But it seems to
> > be not working.
> >
> > Log from jmeter jakarta-jmeter-r564722:
> > 2007/08/13 17:11:40 ERROR - jmeter.extractor.XPathExtractor: error on
> > XPathExtractor.xpathQuery(/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
> > java.io.UnsupportedEncodingException: "utf-8"
> >    at sun.io.Converters.getConverterClass(Unknown Source)
> >    at sun.io.Converters.newConverter(Unknown Source)
> >    at sun.io.ByteToCharConverter.getConverter(Unknown Source)
> >    at java.lang.StringCoding.decode(Unknown Source)
> >    at java.lang.String.<init>(Unknown Source)
> >    at java.lang.String.<init>(Unknown Source)
> >    at org.apache.jmeter.extractor.XPathExtractor.parseResponse(
> > XPathExtractor.java:169)
> >    at org.apache.jmeter.extractor.XPathExtractor.process(
> > XPathExtractor.java:95)
> >    at org.apache.jmeter.threads.JMeterThread.runPostProcessors(
> > JMeterThread.java:534)
> >    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:305)
> >    at java.lang.Thread.run(Unknown Source)
> >
> > Log from jakarta-jmeter-2.3RC3 :
> > 2007/08/13 17:17:09 ERROR - jmeter.extractor.XPathExtractor: error on
> > XPathExtractor.xpathQuery(/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
> > java.io.UnsupportedEncodingException: "utf-8"
> >    at sun.io.Converters.getConverterClass(Unknown Source)
> >    at sun.io.Converters.newConverter(Unknown Source)
> >    at sun.io.ByteToCharConverter.getConverter(Unknown Source)
> >    at java.lang.StringCoding.decode(Unknown Source)
> >    at java.lang.String.<init>(Unknown Source)
> >    at java.lang.String.<init>(Unknown Source)
> >    at org.apache.jmeter.extractor.XPathExtractor.parseResponse(
> > XPathExtractor.java:169)
> >    at org.apache.jmeter.extractor.XPathExtractor.process(
> > XPathExtractor.java:95)
> >    at org.apache.jmeter.threads.JMeterThread.runPostProcessors(
> > JMeterThread.java:534)
> >    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:305)
> >    at java.lang.Thread.run(Unknown Source)
> >
> > Do you want me to raise a issue on bugzilla??
> >
> > Thanks
> > Raghuveer
> >
> >
> > On 8/13/07, sebb < sebbaz@gmail.com> wrote:
> > >
> > > That is the same version of Java I used until recently for testing
> > > JMeter, so I'm positive that utf-8 is supported.
> > >
> > > [However, you might like to try 1.4.2_15, which has some security fixes.]
> > >
> > > Which version of JMeter are you using?
> > > I cannot match the line numbers with code I've checked.
> > >
> > > I'm wondering if the problem is in the code nearby:
> > >
> > >       String unicodeData = new String(result.getResponseData(),
> > >                                       result.getDataEncoding());
> > >
> > > Perhaps the sampler response is not valid for the data encoding
> > > (utf-8), but in that case the error message is rather misleading.
> > >
> > > You could add a "Save Results to File" Post-Processor as a child of
> > > the sampler to create a copy of the data.
> > >
> > > This could then be attached to a Bugzilla report along with the test
> > > plan and jmeter.log.
> > >
> > > Remove any sensitive data first.
> > >
> > >
> > > S.
> > > On 13/08/07, Raghuveer Sribhashyam <rs...@gmail.com> wrote:
> > > > Hi Sebb,
> > > >
> > > > Java version on the machine is 1.4.2_13
> > > >
> > > > java version "1.4.2_13"
> > > > Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_13-b06)
> > > > Java HotSpot(TM) Client VM (build 1.4.2_13-b06 , mixed mode)
> > > >
> > > > OS is : Windows XP.
> > > >
> > > > Thanks
> > > > Raghuveer Sribhashyam
> > > >
> > > > On 8/13/07, sebb <se...@gmail.com> wrote:
> > > > >
> > > > > That should not happen with a fully compliant version of Java 1.4 or
> > > > > later - it should support utf-8.
> > > > >
> > > > > What version of Java are you using, and what OS?
> > > > >
> > > > >
> > > > > On 13/08/07, Raghuveer Sribhashyam <rs...@gmail.com> wrote:
> > > > > > Hi All,
> > > > > >
> > > > > > I am trying to run a SOAP request. I have the following structure:
> > > > > >
> > > > > > Test Plan
> > > > > > ------Thread Group
> > > > > >      -------SOAP Request
> > > > > >             --------Response Assertion
> > > > > >             --------XPATH extractor
> > > > > >
> > > > > > When i try to run the test plan with XPATH extractor it gives a
> > > > > response.
> > > > > > When i enable XPATH extractor, it doesn't show any response.
> > > > > >
> > > > > > I have checked the jmeter.log:
> > > > > > Following is error message i can see in the logs.
> > > > > >
> > > > > > 2007/08/13 11:42:38 ERROR - jmeter.extractor.XPathExtractor: error
> > > on
> > > > > > XPathExtractor.xpathQuery
> > > > >
> > > (/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
> > > > > > java.io.UnsupportedEncodingException : "utf-8"
> > > > > >    at sun.io.Converters.getConverterClass(Unknown Source)
> > > > > >    at sun.io.Converters.newConverter(Unknown Source)
> > > > > >    at sun.io.ByteToCharConverter.getConverter (Unknown Source)
> > > > > >    at java.lang.StringCoding.decode(Unknown Source)
> > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > >    at org.apache.jmeter.extractor.XPathExtractor.parseResponse(
> > > > > > XPathExtractor.java:169)
> > > > > >    at org.apache.jmeter.extractor.XPathExtractor.process(
> > > > > > XPathExtractor.java :95)
> > > > > >    at org.apache.jmeter.threads.JMeterThread.runPostProcessors(
> > > > > > JMeterThread.java:534)
> > > > > >    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java
> > > :305)
> > > > > >    at java.lang.Thread.run(Unknown Source)
> > > > > >
> > > > > > 2007/08/13 11:42:38 ERROR - jmeter.threads.JMeterThread: Test
> > > failed!
> > > > > > org.apache.jorphan.util.JMeterError: error on
> > > XPathExtractor.xpathQuery
> > > > > >
> > > > >
> > > (/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
> > > > > >    at org.apache.jmeter.extractor.XPathExtractor.process (
> > > > > > XPathExtractor.java:100)
> > > > > >    at org.apache.jmeter.threads.JMeterThread.runPostProcessors(
> > > > > > JMeterThread.java:534)
> > > > > >    at org.apache.jmeter.threads.JMeterThread.run (JMeterThread.java
> > > :305)
> > > > > >    at java.lang.Thread.run(Unknown Source)
> > > > > > Caused by: java.io.UnsupportedEncodingException: "utf-8"
> > > > > >    at sun.io.Converters.getConverterClass (Unknown Source)
> > > > > >    at sun.io.Converters.newConverter(Unknown Source)
> > > > > >    at sun.io.ByteToCharConverter.getConverter(Unknown Source)
> > > > > >    at java.lang.StringCoding.decode (Unknown Source)
> > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > >    at java.lang.String.<init>(Unknown Source)
> > > > > >    at org.apache.jmeter.extractor.XPathExtractor.parseResponse (
> > > > > > XPathExtractor.java:169)
> > > > > >    at org.apache.jmeter.extractor.XPathExtractor.process(
> > > > > > XPathExtractor.java:95)
> > > > > >    ... 3 more
> > > > > >
> > > > > >
> > > > > > Request your help in resolving the same.
> > > > > > Let me know if you any other information.
> > > > > >
> > > > > > Raghuveer Sribhashyam
> > > > > >
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > 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
> > >
> > >
> >
>

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


RE: http post method

Posted by "Mathumathi Palani Bommu, EAS-Chennai" <ma...@hcl.in>.
Thanks .. it worked for me..

-----Original Message-----
From: Alf Høgemark [mailto:alf@i100.no] 
Sent: Friday, August 17, 2007 11:24 PM
To: JMeter Users List
Subject: Re: http post method

Hi

You just take the whole XML string you want to send to the web server, 
and paste it in as a value for an argument / parameter for the HTTP 
Sampler, but do not provide an argument name / parameter name.

Regards
Alf

Mathumathi Palani Bommu, EAS-Chennai wrote:
> Can you please elaborate on pasting the xml data in the http arguments table in the http sampler..
>
> Thanks 
> mathu
>
> -----Original Message-----
> From: Alf Høgemark [mailto:alf@i100.no] 
> Sent: Wednesday, August 15, 2007 1:03 AM
> To: JMeter Users List
> Subject: Re: http post method
>
> Yes, you should be able to use the HTTP Request sampler, and set method 
> to "Post", and have it send the content of a file.
> Just leave the "Value for "name" attribute" empty. 
>
> Or you can take the whole XML and paste it into a row in the "http 
> arguments" table in HTTP Request Sampler, and just do not provide a 
> "name" for the row, then the content is sent as the POST body.
> You might have to add a "HTTP Header Manager", to send a "content-type" 
> header with value "text/xml", I do not remember exactly how REST works.
> Make sure to add a "View Results Tree", so you can easily debug what 
> request is sent, and what response is received.
>
> Regards
> Alf
>
> Mathumathi Palani Bommu, EAS-Chennai wrote:
>   
>> Hi
>>
>> Can any one guide me to stress test a REST services where I have to send
>> a xml data over http site which works on post method.. can we go for
>> soap/XML-RPC sampler.. the application pass only the xml data not the
>> soap data...
>>
>> Need One more clarification.. can we send the xml data request as a file
>> in the HTTP Request Sampler..
>>
>> mathu
>>
>>
>>
>> DISCLAIMER:
>> -----------------------------------------------------------------------------------------------------------------------
>>
>> The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
>> It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in 
>> this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
>> Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of 
>> this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
>> received this email in error please delete it and notify the sender immediately. Before opening any mail and 
>> attachments please check them for viruses and defect.
>>
>> -----------------------------------------------------------------------------------------------------------------------
>>
>> ---------------------------------------------------------------------
>> 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
>
>
> ---------------------------------------------------------------------
> 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


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


Re: http post method

Posted by Alf Høgemark <al...@i100.no>.
Hi

You just take the whole XML string you want to send to the web server, 
and paste it in as a value for an argument / parameter for the HTTP 
Sampler, but do not provide an argument name / parameter name.

Regards
Alf

Mathumathi Palani Bommu, EAS-Chennai wrote:
> Can you please elaborate on pasting the xml data in the http arguments table in the http sampler..
>
> Thanks 
> mathu
>
> -----Original Message-----
> From: Alf Høgemark [mailto:alf@i100.no] 
> Sent: Wednesday, August 15, 2007 1:03 AM
> To: JMeter Users List
> Subject: Re: http post method
>
> Yes, you should be able to use the HTTP Request sampler, and set method 
> to "Post", and have it send the content of a file.
> Just leave the "Value for "name" attribute" empty. 
>
> Or you can take the whole XML and paste it into a row in the "http 
> arguments" table in HTTP Request Sampler, and just do not provide a 
> "name" for the row, then the content is sent as the POST body.
> You might have to add a "HTTP Header Manager", to send a "content-type" 
> header with value "text/xml", I do not remember exactly how REST works.
> Make sure to add a "View Results Tree", so you can easily debug what 
> request is sent, and what response is received.
>
> Regards
> Alf
>
> Mathumathi Palani Bommu, EAS-Chennai wrote:
>   
>> Hi
>>
>> Can any one guide me to stress test a REST services where I have to send
>> a xml data over http site which works on post method.. can we go for
>> soap/XML-RPC sampler.. the application pass only the xml data not the
>> soap data...
>>
>> Need One more clarification.. can we send the xml data request as a file
>> in the HTTP Request Sampler..
>>
>> mathu
>>
>>
>>
>> DISCLAIMER:
>> -----------------------------------------------------------------------------------------------------------------------
>>
>> The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
>> It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in 
>> this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
>> Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of 
>> this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
>> received this email in error please delete it and notify the sender immediately. Before opening any mail and 
>> attachments please check them for viruses and defect.
>>
>> -----------------------------------------------------------------------------------------------------------------------
>>
>> ---------------------------------------------------------------------
>> 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
>
>
> ---------------------------------------------------------------------
> 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: http post method

Posted by "Mathumathi Palani Bommu, EAS-Chennai" <ma...@hcl.in>.
Can you please elaborate on pasting the xml data in the http arguments table in the http sampler..

Thanks 
mathu

-----Original Message-----
From: Alf Høgemark [mailto:alf@i100.no] 
Sent: Wednesday, August 15, 2007 1:03 AM
To: JMeter Users List
Subject: Re: http post method

Yes, you should be able to use the HTTP Request sampler, and set method 
to "Post", and have it send the content of a file.
Just leave the "Value for "name" attribute" empty. 

Or you can take the whole XML and paste it into a row in the "http 
arguments" table in HTTP Request Sampler, and just do not provide a 
"name" for the row, then the content is sent as the POST body.
You might have to add a "HTTP Header Manager", to send a "content-type" 
header with value "text/xml", I do not remember exactly how REST works.
Make sure to add a "View Results Tree", so you can easily debug what 
request is sent, and what response is received.

Regards
Alf

Mathumathi Palani Bommu, EAS-Chennai wrote:
> Hi
>
> Can any one guide me to stress test a REST services where I have to send
> a xml data over http site which works on post method.. can we go for
> soap/XML-RPC sampler.. the application pass only the xml data not the
> soap data...
>
> Need One more clarification.. can we send the xml data request as a file
> in the HTTP Request Sampler..
>
> mathu
>
>
>
> DISCLAIMER:
> -----------------------------------------------------------------------------------------------------------------------
>
> The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
> It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in 
> this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
> Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of 
> this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
> received this email in error please delete it and notify the sender immediately. Before opening any mail and 
> attachments please check them for viruses and defect.
>
> -----------------------------------------------------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> 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


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


Re: http post method

Posted by Alf Høgemark <al...@i100.no>.
Yes, you should be able to use the HTTP Request sampler, and set method 
to "Post", and have it send the content of a file.
Just leave the "Value for "name" attribute" empty. 

Or you can take the whole XML and paste it into a row in the "http 
arguments" table in HTTP Request Sampler, and just do not provide a 
"name" for the row, then the content is sent as the POST body.
You might have to add a "HTTP Header Manager", to send a "content-type" 
header with value "text/xml", I do not remember exactly how REST works.
Make sure to add a "View Results Tree", so you can easily debug what 
request is sent, and what response is received.

Regards
Alf

Mathumathi Palani Bommu, EAS-Chennai wrote:
> Hi
>
> Can any one guide me to stress test a REST services where I have to send
> a xml data over http site which works on post method.. can we go for
> soap/XML-RPC sampler.. the application pass only the xml data not the
> soap data...
>
> Need One more clarification.. can we send the xml data request as a file
> in the HTTP Request Sampler..
>
> mathu
>
>
>
> DISCLAIMER:
> -----------------------------------------------------------------------------------------------------------------------
>
> The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
> It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in 
> this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
> Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of 
> this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
> received this email in error please delete it and notify the sender immediately. Before opening any mail and 
> attachments please check them for viruses and defect.
>
> -----------------------------------------------------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> 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


http post method

Posted by "Mathumathi Palani Bommu, EAS-Chennai" <ma...@hcl.in>.
Hi

Can any one guide me to stress test a REST services where I have to send
a xml data over http site which works on post method.. can we go for
soap/XML-RPC sampler.. the application pass only the xml data not the
soap data...

Need One more clarification.. can we send the xml data request as a file
in the HTTP Request Sampler..

mathu



DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in 
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of 
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and 
attachments please check them for viruses and defect.

-----------------------------------------------------------------------------------------------------------------------

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


Re: XPATH extractor - UnsupportedEncodingException: "utf-8"

Posted by sebb <se...@gmail.com>.
Please don't send attachments to the mailing list.

Mostly they get dropped; if not, they just cause annoyance to others
not interested in them.

Please create a Bugzilla issue with the details of the problem.

You can then go back to the issue and attach the following files:

test plan (JMX file)
jmeter.log
output from Save Responses to a file, or failing that, add a Simple
Data Writer and set the output type to XML. Make sure that "Save
Response Data" is enabled.

On 13/08/07, Raghuveer Sribhashyam <rs...@gmail.com> wrote:
> Sebb,
>
> I have checked with the latest nightly build of jmeter
> jakarta-jmeter-r564722 and also with jakarta-jmeter-2.3RC3 which is the
> official version released for jmeter.
>
> I have never used the "Save Results to file" post-processor and am not able
> to get it working. I have saved the output from the testplan into a file. Am
> attaching the same with this message.
>
> I have tested the same with java version 1.4.2_15 as well. But it seems to
> be not working.
>
> Log from jmeter jakarta-jmeter-r564722:
> 2007/08/13 17:11:40 ERROR - jmeter.extractor.XPathExtractor: error on
> XPathExtractor.xpathQuery(/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
> java.io.UnsupportedEncodingException: "utf-8"
>    at sun.io.Converters.getConverterClass(Unknown Source)
>    at sun.io.Converters.newConverter(Unknown Source)
>    at sun.io.ByteToCharConverter.getConverter(Unknown Source)
>    at java.lang.StringCoding.decode(Unknown Source)
>    at java.lang.String.<init>(Unknown Source)
>    at java.lang.String.<init>(Unknown Source)
>    at org.apache.jmeter.extractor.XPathExtractor.parseResponse(
> XPathExtractor.java:169)
>    at org.apache.jmeter.extractor.XPathExtractor.process(
> XPathExtractor.java:95)
>    at org.apache.jmeter.threads.JMeterThread.runPostProcessors(
> JMeterThread.java:534)
>    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:305)
>    at java.lang.Thread.run(Unknown Source)
>
> Log from jakarta-jmeter-2.3RC3 :
> 2007/08/13 17:17:09 ERROR - jmeter.extractor.XPathExtractor: error on
> XPathExtractor.xpathQuery(/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
> java.io.UnsupportedEncodingException: "utf-8"
>    at sun.io.Converters.getConverterClass(Unknown Source)
>    at sun.io.Converters.newConverter(Unknown Source)
>    at sun.io.ByteToCharConverter.getConverter(Unknown Source)
>    at java.lang.StringCoding.decode(Unknown Source)
>    at java.lang.String.<init>(Unknown Source)
>    at java.lang.String.<init>(Unknown Source)
>    at org.apache.jmeter.extractor.XPathExtractor.parseResponse(
> XPathExtractor.java:169)
>    at org.apache.jmeter.extractor.XPathExtractor.process(
> XPathExtractor.java:95)
>    at org.apache.jmeter.threads.JMeterThread.runPostProcessors(
> JMeterThread.java:534)
>    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:305)
>    at java.lang.Thread.run(Unknown Source)
>
> Do you want me to raise a issue on bugzilla??
>
> Thanks
> Raghuveer
>
>
> On 8/13/07, sebb < sebbaz@gmail.com> wrote:
> >
> > That is the same version of Java I used until recently for testing
> > JMeter, so I'm positive that utf-8 is supported.
> >
> > [However, you might like to try 1.4.2_15, which has some security fixes.]
> >
> > Which version of JMeter are you using?
> > I cannot match the line numbers with code I've checked.
> >
> > I'm wondering if the problem is in the code nearby:
> >
> >       String unicodeData = new String(result.getResponseData(),
> >                                       result.getDataEncoding());
> >
> > Perhaps the sampler response is not valid for the data encoding
> > (utf-8), but in that case the error message is rather misleading.
> >
> > You could add a "Save Results to File" Post-Processor as a child of
> > the sampler to create a copy of the data.
> >
> > This could then be attached to a Bugzilla report along with the test
> > plan and jmeter.log.
> >
> > Remove any sensitive data first.
> >
> >
> > S.
> > On 13/08/07, Raghuveer Sribhashyam <rs...@gmail.com> wrote:
> > > Hi Sebb,
> > >
> > > Java version on the machine is 1.4.2_13
> > >
> > > java version "1.4.2_13"
> > > Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_13-b06)
> > > Java HotSpot(TM) Client VM (build 1.4.2_13-b06 , mixed mode)
> > >
> > > OS is : Windows XP.
> > >
> > > Thanks
> > > Raghuveer Sribhashyam
> > >
> > > On 8/13/07, sebb <se...@gmail.com> wrote:
> > > >
> > > > That should not happen with a fully compliant version of Java 1.4 or
> > > > later - it should support utf-8.
> > > >
> > > > What version of Java are you using, and what OS?
> > > >
> > > >
> > > > On 13/08/07, Raghuveer Sribhashyam <rs...@gmail.com> wrote:
> > > > > Hi All,
> > > > >
> > > > > I am trying to run a SOAP request. I have the following structure:
> > > > >
> > > > > Test Plan
> > > > > ------Thread Group
> > > > >      -------SOAP Request
> > > > >             --------Response Assertion
> > > > >             --------XPATH extractor
> > > > >
> > > > > When i try to run the test plan with XPATH extractor it gives a
> > > > response.
> > > > > When i enable XPATH extractor, it doesn't show any response.
> > > > >
> > > > > I have checked the jmeter.log:
> > > > > Following is error message i can see in the logs.
> > > > >
> > > > > 2007/08/13 11:42:38 ERROR - jmeter.extractor.XPathExtractor: error
> > on
> > > > > XPathExtractor.xpathQuery
> > > >
> > (/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
> > > > > java.io.UnsupportedEncodingException : "utf-8"
> > > > >    at sun.io.Converters.getConverterClass(Unknown Source)
> > > > >    at sun.io.Converters.newConverter(Unknown Source)
> > > > >    at sun.io.ByteToCharConverter.getConverter (Unknown Source)
> > > > >    at java.lang.StringCoding.decode(Unknown Source)
> > > > >    at java.lang.String.<init>(Unknown Source)
> > > > >    at java.lang.String.<init>(Unknown Source)
> > > > >    at org.apache.jmeter.extractor.XPathExtractor.parseResponse(
> > > > > XPathExtractor.java:169)
> > > > >    at org.apache.jmeter.extractor.XPathExtractor.process(
> > > > > XPathExtractor.java :95)
> > > > >    at org.apache.jmeter.threads.JMeterThread.runPostProcessors(
> > > > > JMeterThread.java:534)
> > > > >    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java
> > :305)
> > > > >    at java.lang.Thread.run(Unknown Source)
> > > > >
> > > > > 2007/08/13 11:42:38 ERROR - jmeter.threads.JMeterThread: Test
> > failed!
> > > > > org.apache.jorphan.util.JMeterError: error on
> > XPathExtractor.xpathQuery
> > > > >
> > > >
> > (/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
> > > > >    at org.apache.jmeter.extractor.XPathExtractor.process (
> > > > > XPathExtractor.java:100)
> > > > >    at org.apache.jmeter.threads.JMeterThread.runPostProcessors(
> > > > > JMeterThread.java:534)
> > > > >    at org.apache.jmeter.threads.JMeterThread.run (JMeterThread.java
> > :305)
> > > > >    at java.lang.Thread.run(Unknown Source)
> > > > > Caused by: java.io.UnsupportedEncodingException: "utf-8"
> > > > >    at sun.io.Converters.getConverterClass (Unknown Source)
> > > > >    at sun.io.Converters.newConverter(Unknown Source)
> > > > >    at sun.io.ByteToCharConverter.getConverter(Unknown Source)
> > > > >    at java.lang.StringCoding.decode (Unknown Source)
> > > > >    at java.lang.String.<init>(Unknown Source)
> > > > >    at java.lang.String.<init>(Unknown Source)
> > > > >    at org.apache.jmeter.extractor.XPathExtractor.parseResponse (
> > > > > XPathExtractor.java:169)
> > > > >    at org.apache.jmeter.extractor.XPathExtractor.process(
> > > > > XPathExtractor.java:95)
> > > > >    ... 3 more
> > > > >
> > > > >
> > > > > Request your help in resolving the same.
> > > > > Let me know if you any other information.
> > > > >
> > > > > Raghuveer Sribhashyam
> > > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > 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
> >
> >
>

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


Re: XPATH extractor - UnsupportedEncodingException: "utf-8"

Posted by Raghuveer Sribhashyam <rs...@gmail.com>.
Sebb,

I have checked with the latest nightly build of jmeter
jakarta-jmeter-r564722 and also with jakarta-jmeter-2.3RC3 which is the
official version released for jmeter.

I have never used the "Save Results to file" post-processor and am not able
to get it working. I have saved the output from the testplan into a file. Am
attaching the same with this message.

I have tested the same with java version 1.4.2_15 as well. But it seems to
be not working.

Log from jmeter jakarta-jmeter-r564722:
2007/08/13 17:11:40 ERROR - jmeter.extractor.XPathExtractor: error on
XPathExtractor.xpathQuery(/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
java.io.UnsupportedEncodingException: "utf-8"
    at sun.io.Converters.getConverterClass(Unknown Source)
    at sun.io.Converters.newConverter(Unknown Source)
    at sun.io.ByteToCharConverter.getConverter(Unknown Source)
    at java.lang.StringCoding.decode(Unknown Source)
    at java.lang.String.<init>(Unknown Source)
    at java.lang.String.<init>(Unknown Source)
    at org.apache.jmeter.extractor.XPathExtractor.parseResponse(
XPathExtractor.java:169)
    at org.apache.jmeter.extractor.XPathExtractor.process(
XPathExtractor.java:95)
    at org.apache.jmeter.threads.JMeterThread.runPostProcessors(
JMeterThread.java:534)
    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:305)
    at java.lang.Thread.run(Unknown Source)

Log from jakarta-jmeter-2.3RC3 :
2007/08/13 17:17:09 ERROR - jmeter.extractor.XPathExtractor: error on
XPathExtractor.xpathQuery(/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
java.io.UnsupportedEncodingException: "utf-8"
    at sun.io.Converters.getConverterClass(Unknown Source)
    at sun.io.Converters.newConverter(Unknown Source)
    at sun.io.ByteToCharConverter.getConverter(Unknown Source)
    at java.lang.StringCoding.decode(Unknown Source)
    at java.lang.String.<init>(Unknown Source)
    at java.lang.String.<init>(Unknown Source)
    at org.apache.jmeter.extractor.XPathExtractor.parseResponse(
XPathExtractor.java:169)
    at org.apache.jmeter.extractor.XPathExtractor.process(
XPathExtractor.java:95)
    at org.apache.jmeter.threads.JMeterThread.runPostProcessors(
JMeterThread.java:534)
    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:305)
    at java.lang.Thread.run(Unknown Source)

Do you want me to raise a issue on bugzilla??

Thanks
Raghuveer


On 8/13/07, sebb < sebbaz@gmail.com> wrote:
>
> That is the same version of Java I used until recently for testing
> JMeter, so I'm positive that utf-8 is supported.
>
> [However, you might like to try 1.4.2_15, which has some security fixes.]
>
> Which version of JMeter are you using?
> I cannot match the line numbers with code I've checked.
>
> I'm wondering if the problem is in the code nearby:
>
>       String unicodeData = new String(result.getResponseData(),
>                                       result.getDataEncoding());
>
> Perhaps the sampler response is not valid for the data encoding
> (utf-8), but in that case the error message is rather misleading.
>
> You could add a "Save Results to File" Post-Processor as a child of
> the sampler to create a copy of the data.
>
> This could then be attached to a Bugzilla report along with the test
> plan and jmeter.log.
>
> Remove any sensitive data first.
>
>
> S.
> On 13/08/07, Raghuveer Sribhashyam <rs...@gmail.com> wrote:
> > Hi Sebb,
> >
> > Java version on the machine is 1.4.2_13
> >
> > java version "1.4.2_13"
> > Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_13-b06)
> > Java HotSpot(TM) Client VM (build 1.4.2_13-b06 , mixed mode)
> >
> > OS is : Windows XP.
> >
> > Thanks
> > Raghuveer Sribhashyam
> >
> > On 8/13/07, sebb <se...@gmail.com> wrote:
> > >
> > > That should not happen with a fully compliant version of Java 1.4 or
> > > later - it should support utf-8.
> > >
> > > What version of Java are you using, and what OS?
> > >
> > >
> > > On 13/08/07, Raghuveer Sribhashyam <rs...@gmail.com> wrote:
> > > > Hi All,
> > > >
> > > > I am trying to run a SOAP request. I have the following structure:
> > > >
> > > > Test Plan
> > > > ------Thread Group
> > > >      -------SOAP Request
> > > >             --------Response Assertion
> > > >             --------XPATH extractor
> > > >
> > > > When i try to run the test plan with XPATH extractor it gives a
> > > response.
> > > > When i enable XPATH extractor, it doesn't show any response.
> > > >
> > > > I have checked the jmeter.log:
> > > > Following is error message i can see in the logs.
> > > >
> > > > 2007/08/13 11:42:38 ERROR - jmeter.extractor.XPathExtractor: error
> on
> > > > XPathExtractor.xpathQuery
> > >
> (/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
> > > > java.io.UnsupportedEncodingException : "utf-8"
> > > >    at sun.io.Converters.getConverterClass(Unknown Source)
> > > >    at sun.io.Converters.newConverter(Unknown Source)
> > > >    at sun.io.ByteToCharConverter.getConverter (Unknown Source)
> > > >    at java.lang.StringCoding.decode(Unknown Source)
> > > >    at java.lang.String.<init>(Unknown Source)
> > > >    at java.lang.String.<init>(Unknown Source)
> > > >    at org.apache.jmeter.extractor.XPathExtractor.parseResponse(
> > > > XPathExtractor.java:169)
> > > >    at org.apache.jmeter.extractor.XPathExtractor.process(
> > > > XPathExtractor.java :95)
> > > >    at org.apache.jmeter.threads.JMeterThread.runPostProcessors(
> > > > JMeterThread.java:534)
> > > >    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java
> :305)
> > > >    at java.lang.Thread.run(Unknown Source)
> > > >
> > > > 2007/08/13 11:42:38 ERROR - jmeter.threads.JMeterThread: Test
> failed!
> > > > org.apache.jorphan.util.JMeterError: error on
> XPathExtractor.xpathQuery
> > > >
> > >
> (/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
> > > >    at org.apache.jmeter.extractor.XPathExtractor.process (
> > > > XPathExtractor.java:100)
> > > >    at org.apache.jmeter.threads.JMeterThread.runPostProcessors(
> > > > JMeterThread.java:534)
> > > >    at org.apache.jmeter.threads.JMeterThread.run (JMeterThread.java
> :305)
> > > >    at java.lang.Thread.run(Unknown Source)
> > > > Caused by: java.io.UnsupportedEncodingException: "utf-8"
> > > >    at sun.io.Converters.getConverterClass (Unknown Source)
> > > >    at sun.io.Converters.newConverter(Unknown Source)
> > > >    at sun.io.ByteToCharConverter.getConverter(Unknown Source)
> > > >    at java.lang.StringCoding.decode (Unknown Source)
> > > >    at java.lang.String.<init>(Unknown Source)
> > > >    at java.lang.String.<init>(Unknown Source)
> > > >    at org.apache.jmeter.extractor.XPathExtractor.parseResponse (
> > > > XPathExtractor.java:169)
> > > >    at org.apache.jmeter.extractor.XPathExtractor.process(
> > > > XPathExtractor.java:95)
> > > >    ... 3 more
> > > >
> > > >
> > > > Request your help in resolving the same.
> > > > Let me know if you any other information.
> > > >
> > > > Raghuveer Sribhashyam
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > 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: XPATH extractor - UnsupportedEncodingException: "utf-8"

Posted by sebb <se...@gmail.com>.
That is the same version of Java I used until recently for testing
JMeter, so I'm positive that utf-8 is supported.

[However, you might like to try 1.4.2_15, which has some security fixes.]

Which version of JMeter are you using?
I cannot match the line numbers with code I've checked.

I'm wondering if the problem is in the code nearby:

      String unicodeData = new String(result.getResponseData(),
		                      result.getDataEncoding());

Perhaps the sampler response is not valid for the data encoding
(utf-8), but in that case the error message is rather misleading.

You could add a "Save Results to File" Post-Processor as a child of
the sampler to create a copy of the data.

This could then be attached to a Bugzilla report along with the test
plan and jmeter.log.

Remove any sensitive data first.


S.
On 13/08/07, Raghuveer Sribhashyam <rs...@gmail.com> wrote:
> Hi Sebb,
>
> Java version on the machine is 1.4.2_13
>
> java version "1.4.2_13"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_13-b06)
> Java HotSpot(TM) Client VM (build 1.4.2_13-b06, mixed mode)
>
> OS is : Windows XP.
>
> Thanks
> Raghuveer Sribhashyam
>
> On 8/13/07, sebb <se...@gmail.com> wrote:
> >
> > That should not happen with a fully compliant version of Java 1.4 or
> > later - it should support utf-8.
> >
> > What version of Java are you using, and what OS?
> >
> >
> > On 13/08/07, Raghuveer Sribhashyam <rs...@gmail.com> wrote:
> > > Hi All,
> > >
> > > I am trying to run a SOAP request. I have the following structure:
> > >
> > > Test Plan
> > > ------Thread Group
> > >      -------SOAP Request
> > >             --------Response Assertion
> > >             --------XPATH extractor
> > >
> > > When i try to run the test plan with XPATH extractor it gives a
> > response.
> > > When i enable XPATH extractor, it doesn't show any response.
> > >
> > > I have checked the jmeter.log:
> > > Following is error message i can see in the logs.
> > >
> > > 2007/08/13 11:42:38 ERROR - jmeter.extractor.XPathExtractor: error on
> > > XPathExtractor.xpathQuery
> > (/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
> > > java.io.UnsupportedEncodingException: "utf-8"
> > >    at sun.io.Converters.getConverterClass(Unknown Source)
> > >    at sun.io.Converters.newConverter(Unknown Source)
> > >    at sun.io.ByteToCharConverter.getConverter(Unknown Source)
> > >    at java.lang.StringCoding.decode(Unknown Source)
> > >    at java.lang.String.<init>(Unknown Source)
> > >    at java.lang.String.<init>(Unknown Source)
> > >    at org.apache.jmeter.extractor.XPathExtractor.parseResponse(
> > > XPathExtractor.java:169)
> > >    at org.apache.jmeter.extractor.XPathExtractor.process(
> > > XPathExtractor.java:95)
> > >    at org.apache.jmeter.threads.JMeterThread.runPostProcessors(
> > > JMeterThread.java:534)
> > >    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:305)
> > >    at java.lang.Thread.run(Unknown Source)
> > >
> > > 2007/08/13 11:42:38 ERROR - jmeter.threads.JMeterThread: Test failed!
> > > org.apache.jorphan.util.JMeterError: error on XPathExtractor.xpathQuery
> > >
> > (/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
> > >    at org.apache.jmeter.extractor.XPathExtractor.process(
> > > XPathExtractor.java:100)
> > >    at org.apache.jmeter.threads.JMeterThread.runPostProcessors(
> > > JMeterThread.java:534)
> > >    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:305)
> > >    at java.lang.Thread.run(Unknown Source)
> > > Caused by: java.io.UnsupportedEncodingException: "utf-8"
> > >    at sun.io.Converters.getConverterClass(Unknown Source)
> > >    at sun.io.Converters.newConverter(Unknown Source)
> > >    at sun.io.ByteToCharConverter.getConverter(Unknown Source)
> > >    at java.lang.StringCoding.decode(Unknown Source)
> > >    at java.lang.String.<init>(Unknown Source)
> > >    at java.lang.String.<init>(Unknown Source)
> > >    at org.apache.jmeter.extractor.XPathExtractor.parseResponse(
> > > XPathExtractor.java:169)
> > >    at org.apache.jmeter.extractor.XPathExtractor.process(
> > > XPathExtractor.java:95)
> > >    ... 3 more
> > >
> > >
> > > Request your help in resolving the same.
> > > Let me know if you any other information.
> > >
> > > Raghuveer Sribhashyam
> > >
> >
> > ---------------------------------------------------------------------
> > 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: XPATH extractor - UnsupportedEncodingException: "utf-8"

Posted by Raghuveer Sribhashyam <rs...@gmail.com>.
Hi Sebb,

Java version on the machine is 1.4.2_13

java version "1.4.2_13"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_13-b06)
Java HotSpot(TM) Client VM (build 1.4.2_13-b06, mixed mode)

OS is : Windows XP.

Thanks
Raghuveer Sribhashyam

On 8/13/07, sebb <se...@gmail.com> wrote:
>
> That should not happen with a fully compliant version of Java 1.4 or
> later - it should support utf-8.
>
> What version of Java are you using, and what OS?
>
>
> On 13/08/07, Raghuveer Sribhashyam <rs...@gmail.com> wrote:
> > Hi All,
> >
> > I am trying to run a SOAP request. I have the following structure:
> >
> > Test Plan
> > ------Thread Group
> >      -------SOAP Request
> >             --------Response Assertion
> >             --------XPATH extractor
> >
> > When i try to run the test plan with XPATH extractor it gives a
> response.
> > When i enable XPATH extractor, it doesn't show any response.
> >
> > I have checked the jmeter.log:
> > Following is error message i can see in the logs.
> >
> > 2007/08/13 11:42:38 ERROR - jmeter.extractor.XPathExtractor: error on
> > XPathExtractor.xpathQuery
> (/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
> > java.io.UnsupportedEncodingException: "utf-8"
> >    at sun.io.Converters.getConverterClass(Unknown Source)
> >    at sun.io.Converters.newConverter(Unknown Source)
> >    at sun.io.ByteToCharConverter.getConverter(Unknown Source)
> >    at java.lang.StringCoding.decode(Unknown Source)
> >    at java.lang.String.<init>(Unknown Source)
> >    at java.lang.String.<init>(Unknown Source)
> >    at org.apache.jmeter.extractor.XPathExtractor.parseResponse(
> > XPathExtractor.java:169)
> >    at org.apache.jmeter.extractor.XPathExtractor.process(
> > XPathExtractor.java:95)
> >    at org.apache.jmeter.threads.JMeterThread.runPostProcessors(
> > JMeterThread.java:534)
> >    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:305)
> >    at java.lang.Thread.run(Unknown Source)
> >
> > 2007/08/13 11:42:38 ERROR - jmeter.threads.JMeterThread: Test failed!
> > org.apache.jorphan.util.JMeterError: error on XPathExtractor.xpathQuery
> >
> (/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
> >    at org.apache.jmeter.extractor.XPathExtractor.process(
> > XPathExtractor.java:100)
> >    at org.apache.jmeter.threads.JMeterThread.runPostProcessors(
> > JMeterThread.java:534)
> >    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:305)
> >    at java.lang.Thread.run(Unknown Source)
> > Caused by: java.io.UnsupportedEncodingException: "utf-8"
> >    at sun.io.Converters.getConverterClass(Unknown Source)
> >    at sun.io.Converters.newConverter(Unknown Source)
> >    at sun.io.ByteToCharConverter.getConverter(Unknown Source)
> >    at java.lang.StringCoding.decode(Unknown Source)
> >    at java.lang.String.<init>(Unknown Source)
> >    at java.lang.String.<init>(Unknown Source)
> >    at org.apache.jmeter.extractor.XPathExtractor.parseResponse(
> > XPathExtractor.java:169)
> >    at org.apache.jmeter.extractor.XPathExtractor.process(
> > XPathExtractor.java:95)
> >    ... 3 more
> >
> >
> > Request your help in resolving the same.
> > Let me know if you any other information.
> >
> > Raghuveer Sribhashyam
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

Re: XPATH extractor - UnsupportedEncodingException: "utf-8"

Posted by sebb <se...@gmail.com>.
That should not happen with a fully compliant version of Java 1.4 or
later - it should support utf-8.

What version of Java are you using, and what OS?


On 13/08/07, Raghuveer Sribhashyam <rs...@gmail.com> wrote:
> Hi All,
>
> I am trying to run a SOAP request. I have the following structure:
>
> Test Plan
> ------Thread Group
>      -------SOAP Request
>             --------Response Assertion
>             --------XPATH extractor
>
> When i try to run the test plan with XPATH extractor it gives a response.
> When i enable XPATH extractor, it doesn't show any response.
>
> I have checked the jmeter.log:
> Following is error message i can see in the logs.
>
> 2007/08/13 11:42:38 ERROR - jmeter.extractor.XPathExtractor: error on
> XPathExtractor.xpathQuery(/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
> java.io.UnsupportedEncodingException: "utf-8"
>    at sun.io.Converters.getConverterClass(Unknown Source)
>    at sun.io.Converters.newConverter(Unknown Source)
>    at sun.io.ByteToCharConverter.getConverter(Unknown Source)
>    at java.lang.StringCoding.decode(Unknown Source)
>    at java.lang.String.<init>(Unknown Source)
>    at java.lang.String.<init>(Unknown Source)
>    at org.apache.jmeter.extractor.XPathExtractor.parseResponse(
> XPathExtractor.java:169)
>    at org.apache.jmeter.extractor.XPathExtractor.process(
> XPathExtractor.java:95)
>    at org.apache.jmeter.threads.JMeterThread.runPostProcessors(
> JMeterThread.java:534)
>    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:305)
>    at java.lang.Thread.run(Unknown Source)
>
> 2007/08/13 11:42:38 ERROR - jmeter.threads.JMeterThread: Test failed!
> org.apache.jorphan.util.JMeterError: error on XPathExtractor.xpathQuery
> (/Envelope/Body/manageClientProfileResponse/manageClientProfileRes/clientProfile/client/clientIdentifier/value/text())
>    at org.apache.jmeter.extractor.XPathExtractor.process(
> XPathExtractor.java:100)
>    at org.apache.jmeter.threads.JMeterThread.runPostProcessors(
> JMeterThread.java:534)
>    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:305)
>    at java.lang.Thread.run(Unknown Source)
> Caused by: java.io.UnsupportedEncodingException: "utf-8"
>    at sun.io.Converters.getConverterClass(Unknown Source)
>    at sun.io.Converters.newConverter(Unknown Source)
>    at sun.io.ByteToCharConverter.getConverter(Unknown Source)
>    at java.lang.StringCoding.decode(Unknown Source)
>    at java.lang.String.<init>(Unknown Source)
>    at java.lang.String.<init>(Unknown Source)
>    at org.apache.jmeter.extractor.XPathExtractor.parseResponse(
> XPathExtractor.java:169)
>    at org.apache.jmeter.extractor.XPathExtractor.process(
> XPathExtractor.java:95)
>    ... 3 more
>
>
> Request your help in resolving the same.
> Let me know if you any other information.
>
> Raghuveer Sribhashyam
>

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