You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Klaus Teller <kl...@gmx.net> on 2008/02/27 15:08:35 UTC

How to turn OFF the SAX Parser validator

Hi Folks,

I'm wondering if there is any way to turn off the SAX parser validator.

I'm experiencing the following exception when executing my JMeter scripts:


jmeter.util.XPathUtil: Type=Val=false Tol=false org.xml.sax.SAXParseException: Premature end of file. 

jmeter.extractor.XPathExtractor: error on XPathExtractor.xpathQuery(//@next)Premature end of file. 

Researching the cause of this problem, I found following possible explanation on the web.

=====
This error is because SAX parser is unable to validate the schema while parsing the XML document. When the parser parses the XML file, it will attempt to download the schema to local server, if unavailable in the local server. When the download of schema to the local server is incomplete (broken schema) and if the parser try to validate the XML document against the incomplete schema, SAX parser will throw the error - org.xml.sax.SAXParseException: Premature end of file.

Incomplete schema present in the server could be because of bad network, wherein the the download of schema is not downloaded completely.
====

This may make sense to me because, that exception often appears when having a high number of requests being sent and received.

Thanks for any comment.

--Klaus.
-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger

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


Re: How to turn OFF the SAX Parser validator

Posted by sebb <se...@gmail.com>.
On 01/03/2008, sebb <se...@gmail.com> wrote:
> On 28/02/2008, Klaus Teller <kl...@gmx.net> wrote:
>  >
>  >  That sounds promising. I couldn't find this property in the Jmeter configuration file. So, will there be a nightly build these days? I took a look at the source and building it might require me more time than i expected.
>
>
> On further reflection, the changes I made are not correct; the various
>  XPath elements need to work on HTML as well as XML; they cannot assume
>  XML.
>
>  What I don't (yet) know is why Tidy does not seem to take any notice of the
>
>
>  <?xml version="1.0" encoding="UTF-8"?>
>
>
> line at the start of the file - I would have thought that ought to
>  class the file as XML.
>  Maybe JMeter will have to check for that and use that to set the Tidy flag.
>

That's what I ended up doing; JMeter seems to handle XML files better
with Tidy now.

>
>  >  The other think that strikes me is that I removed the link to the DTD and XSD from the VXML. I was hopping that the parser would not find the schema and DTD and, hence not validate anything.
>  >
>  >  To my dispointment, I still had the premature end of file exception. Any thought?
>
>
> No idea, sorry.
>
>
>  >
>  >  --Klaus.
>  >
>  >  -------- Original-Nachricht --------
>  >  > Datum: Wed, 27 Feb 2008 20:47:20 +0000
>  >
>  > > Von: sebb <se...@gmail.com>
>  >  > An: "JMeter Users List" <jm...@jakarta.apache.org>
>  >  > Betreff: Re: How to turn OFF the SAX Parser validator
>  >
>  >  > On 27/02/2008, sebb <se...@gmail.com> wrote:
>  >  > > On 27/02/2008, Klaus Teller <kl...@gmx.net> wrote:
>  >  > >
>  >  > > > The reason I'm having 404 is clear. I'm extracting some information
>  >  > from the initial page using an XPath query. The extracted information is used
>  >  > to build the URL of the next page.
>  >  > >  >
>  >  > >  >  Now if the parser fails, the URL is not built properly and the
>  >  > server returns 404.
>  >  > >
>  >  > >
>  >  > > OK, I see now.
>  >  > >
>  >  > >
>  >  > >  >  So, how could I tell Tidy about the XML nature of the pages?
>  >  > >
>  >  > >
>  >  > > I've been looking into that - so far no joy, the only mention I've
>  >  > >  seen is that Tidy decides for itself...
>  >  > >
>  >  >
>  >  > I've found that there is a Tidy.setXmlTags(boolean) method call;
>  >  > setting this true says that the input is already XML. This seems to
>  >  > fix the problem.
>  >  >
>  >  > >  I recently updated the XML Tree View to use Tidy (to avoid downloading
>  >  > >  DTDs etc).
>  >  > >  Tidy complains about the VXML file, but the display looks OK, so maybe
>  >  > >  there is a way to fix the XPath scanning.
>  >  >
>  >  > In fact the display was not correct - Tidy had just invented an HTML
>  >  > tree using some of the content ...
>  >  >
>  >  > >  The other approach would be to see if the non-Tidy parser can be told
>  >  > >  not to download DTDs etc.  I'm assuming that these documents are
>  >  > >  well-formed, so a tolerant parser is not needed.
>  >  > >
>  >  >
>  >  > >
>  >  > >  >  --Klaus.
>  >  > >  >  -------- Original-Nachricht --------
>  >  > >  >  > Datum: Wed, 27 Feb 2008 17:01:20 +0000
>  >  > >  >
>  >  > >  > > Von: sebb <se...@gmail.com>
>  >  > >  >  > An: "JMeter Users List" <jm...@jakarta.apache.org>
>  >  > >  >  > Betreff: Re: How to turn OFF the SAX Parser validator
>  >  > >  >
>  >  > >  >  > Thanks, I can see most of the problems you are experiencing.
>  >  > >  >  >
>  >  > >  >  > It looks like Tidy thinks the content is HTML (deselect Quiet to
>  >  > see
>  >  > >  >  > this), which may be why it is complaining. [There may be a way to
>  >  > tell
>  >  > >  >  > Tidy that it is XML.]
>  >  > >  >  >
>  >  > >  >  > The output in the console should be ignored or logged; that can be
>  >  > >  >  > fixed (it's captured if Report Errors is selected, but that causes
>  >  > the
>  >  > >  >  > sample to be marked as failed).
>  >  > >  >  >
>  >  > >  >  > I've not been able to reproduce the 404 error - does it occur on
>  >  > the
>  >  > >  >  > simple file you sent me?
>  >  > >  >  >
>  >  > >  >  > On 27/02/2008, Klaus Teller <kl...@gmx.net> wrote:
>  >  > >  >  > > I'm using the latest JMeter version 2.3.1. I with any any VXML
>  >  > file will
>  >  > >  >  > be able to reproduce the Tidy error message. Here is an example
>  >  > VXML file:
>  >  > >  >  > >
>  >  > >  >  > >
>  >  > >  >  > >
>  >  > >  >  > >  <?xml version="1.0" encoding="UTF-8"?>
>  >  > >  >  > >  <vxml xmlns="http://www.w3.org/2001/vxml"
>  >  > >  >  > >   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>  >  > >  >  > >   xsi:schemaLocation="http://www.w3.org/2001/vxml
>  >  > >  >  > >    http://www.w3.org/TR/voicexml20/vxml.xsd"
>  >  > >  >  > >    version="2.0">
>  >  > >  >  > >   <form>
>  >  > >  >  > >   <field name="drink">
>  >  > >  >  > >      <prompt>Would you like coffee, tea, milk, or
>  >  > nothing?</prompt>
>  >  > >  >  > >      <grammar src="drink.grxml" type="application/srgs+xml"/>
>  >  > >  >  > >   </field>
>  >  > >  >  > >   <block>
>  >  > >  >  > >      <submit next="http://www.drink.example.com/drink2.asp"/>
>  >  > >  >  > >   </block>
>  >  > >  >  > >   </form>
>  >  > >  >  > >  </vxml>
>  >  > >  >  > >
>  >  > >  >  > >  Klaus.
>  >  > >  >  > >
>  >  > >  >  > >
>  >  > >  >  > >
>  >  > >  >  > >  -------- Original-Nachricht --------
>  >  > >  >  > >  > Datum: Wed, 27 Feb 2008 15:53:35 +0000
>  >  > >  >  > >
>  >  > >  >  > > > Von: sebb <se...@gmail.com>
>  >  > >  >  > >  > An: "JMeter Users List" <jm...@jakarta.apache.org>
>  >  > >  >  > >  > Betreff: Re: How to turn OFF the SAX Parser validator
>  >  > >  >  > >
>  >  > >  >  > >  > Which version of JMeter?
>  >  > >  >  > >  >
>  >  > >  >  > >  > Is the URL a public URL?
>  >  > >  >  > >  > If so, perhaps you could send me a JMX file privately so I
>  >  > can test
>  >  > >  >  > this.
>  >  > >  >  > >  > [Please don't post it to the list]
>  >  > >  >  > >  >
>  >  > >  >  > >  > On 27/02/2008, Klaus Teller <kl...@gmx.net> wrote:
>  >  > >  >  > >  > >
>  >  > >  >  > >  > >
>  >  > >  >  > >  > >  Here are the error messages I'm having. They are actually
>  >  > printed
>  >  > >  >  > on
>  >  > >  >  > >  > the console and not in the log file.
>  >  > >  >  > >  > >
>  >  > >  >  > >  > >
>  >  > >  >  > >  > >
>  >  > >  >  > >  > >
>  >  > >  >  > >  > >  line 2 column 1 - Error: <vxml> is not recognized!
>  >  > >  >  > >  > >  line 10 column 39 - Error: <block> is not recognized!
>  >  > >  >  > >  > >  line 10 column 46 - Error: submit is not recognized!
>  >  > >  >  > >  > >  This document has errors that must be fixed before
>  >  > >  >  > >  > >  using HTML Tidy to generate a tidied up version.
>  >  > >  >  > >  > >
>  >  > >  >  > >  > >  In the log file, the only thing i get is following:
>  >  > >  >  > >  > >
>  >  > >  >  > >  > >  jmeter.protocol.http.sampler.HTTPSampler: Error Response
>  >  > Code: 404
>  >  > >  >  > >  > >
>  >  > >  >  > >  > >  Klaus.
>  >  > >  >  > >  > >
>  >  > >  >  > >  > >  -------- Original-Nachricht --------
>  >  > >  >  > >  > >  > Datum: Wed, 27 Feb 2008 15:38:33 +0000
>  >  > >  >  > >  > >
>  >  > >  >  > >  > > > Von: sebb <se...@gmail.com>
>  >  > >  >  > >  > >  > An: "JMeter Users List" <jm...@jakarta.apache.org>
>  >  > >  >  > >  > >  > Betreff: Re: How to turn OFF the SAX Parser validator
>  >  > >  >  > >  > >
>  >  > >  >  > >  > >  > On 27/02/2008, Klaus Teller <kl...@gmx.net>
>  >  > wrote:
>  >  > >  >  > >  > >  > > Thanks for the feedback Sebb. What I'm parsing is not
>  >  > HTML but
>  >  > >  >  > XML.
>  >  > >  >  > >  > This
>  >  > >  >  > >  > >  > of course causes Tidy to fails in turns.
>  >  > >  >  > >  > >  >
>  >  > >  >  > >  > >  > Tidy does work with XML - the XPath Assertion uses Tidy.
>  >  > >  >  > >  > >  >
>  >  > >  >  > >  > >  > What error are you getting?
>  >  > >  >  > >  > >  >
>  >  > >  >  > >  > >  > >  Any other idea?
>  >  > >  >  > >  > >  > >
>  >  > >  >  > >  > >  > >  thanks,
>  >  > >  >  > >  > >  > >  Klaus.
>  >  > >  >  > >  > >  > >
>  >  > >  >  > >  > >  > >  -------- Original-Nachricht --------
>  >  > >  >  > >  > >  > >  > Datum: Wed, 27 Feb 2008 14:12:07 +0000
>  >  > >  >  > >  > >  > >  > Von: sebb <se...@gmail.com>
>  >  > >  >  > >  > >  > >  > An: "JMeter Users List"
>  >  > <jm...@jakarta.apache.org>
>  >  > >  >  > >  > >  > >  > Betreff: Re: How to turn OFF the SAX Parser
>  >  > validator
>  >  > >  >  > >  > >  > >
>  >  > >  >  > >  > >  > >
>  >  > >  >  > >  > >  > >  > On 27/02/2008, Klaus Teller <kl...@gmx.net>
>  >  > wrote:
>  >  > >  >  > >  > >  > >  > > Hi Folks,
>  >  > >  >  > >  > >  > >  > >
>  >  > >  >  > >  > >  > >  > >  I'm wondering if there is any way to turn off
>  >  > the SAX
>  >  > >  >  > parser
>  >  > >  >  > >  > >  > validator.
>  >  > >  >  > >  > >  > >  > >
>  >  > >  >  > >  > >  > >  > >  I'm experiencing the following exception when
>  >  > executing
>  >  > >  >  > my
>  >  > >  >  > >  > JMeter
>  >  > >  >  > >  > >  > >  > scripts:
>  >  > >  >  > >  > >  > >  > >
>  >  > >  >  > >  > >  > >  > >
>  >  > >  >  > >  > >  > >  > >  jmeter.util.XPathUtil: Type=Val=false Tol=false
>  >  > >  >  > >  > >  > >  > org.xml.sax.SAXParseException: Premature end of
>  >  > file.
>  >  > >  >  > >  > >  > >  > >
>  >  > >  >  > >  > >  > >  > >  jmeter.extractor.XPathExtractor: error on
>  >  > >  >  > >  > >  > >  > XPathExtractor.xpathQuery(//@next)Premature end of
>  >  > file.
>  >  > >  >  > >  > >  > >  > >
>  >  > >  >  > >  > >  > >  > >  Researching the cause of this problem, I found
>  >  > following
>  >  > >  >  > >  > possible
>  >  > >  >  > >  > >  > >  > explanation on the web.
>  >  > >  >  > >  > >  > >  > >
>  >  > >  >  > >  > >  > >  > >  =====
>  >  > >  >  > >  > >  > >  > >  This error is because SAX parser is unable to
>  >  > validate
>  >  > >  >  > the
>  >  > >  >  > >  > schema
>  >  > >  >  > >  > >  > while
>  >  > >  >  > >  > >  > >  > parsing the XML document. When the parser parses
>  >  > the XML
>  >  > >  >  > file,
>  >  > >  >  > >  > it
>  >  > >  >  > >  > >  > will
>  >  > >  >  > >  > >  > >  > attempt to download the schema to local server, if
>  >  > >  >  > unavailable
>  >  > >  >  > >  > in the
>  >  > >  >  > >  > >  > local
>  >  > >  >  > >  > >  > >  > server. When the download of schema to the local
>  >  > server is
>  >  > >  >  > >  > incomplete
>  >  > >  >  > >  > >  > (broken
>  >  > >  >  > >  > >  > >  > schema) and if the parser try to validate the XML
>  >  > document
>  >  > >  >  > >  > against
>  >  > >  >  > >  > >  > the
>  >  > >  >  > >  > >  > >  > incomplete schema, SAX parser will throw the error
>  >  > -
>  >  > >  >  > >  > >  > >  > org.xml.sax.SAXParseException: Premature end of
>  >  > file.
>  >  > >  >  > >  > >  > >  > >
>  >  > >  >  > >  > >  > >  > >  Incomplete schema present in the server could be
>  >  > because
>  >  > >  >  > of
>  >  > >  >  > >  > bad
>  >  > >  >  > >  > >  > >  > network, wherein the the download of schema is not
>  >  > >  >  > downloaded
>  >  > >  >  > >  > >  > completely.
>  >  > >  >  > >  > >  > >  > >  ====
>  >  > >  >  > >  > >  > >  > >
>  >  > >  >  > >  > >  > >  > >  This may make sense to me because, that
>  >  > exception often
>  >  > >  >  > >  > appears
>  >  > >  >  > >  > >  > when
>  >  > >  >  > >  > >  > >  > having a high number of requests being sent and
>  >  > received.
>  >  > >  >  > >  > >  > >  > >
>  >  > >  >  > >  > >  > >  > >  Thanks for any comment.
>  >  > >  >  > >  > >  > >  >
>  >  > >  >  > >  > >  > >  > Select the "Use Tidy" checkbox.
>  >  > >  >  > >  > >  > >  >
>  >  > >  >  > >  > >  > >  > >  --Klaus.
>  >  > >  >  > >  > >  > >  > >
>  >  > >  >  > >  > >  > >  > > --
>  >  > >  >  > >  > >  > >  > >  Psssst! Schon vom neuen GMX MultiMessenger
>  >  > gehört?
>  >  > >  >  > >  > >  > >  > >  Der kann`s mit allen:
>  >  > >  >  > http://www.gmx.net/de/go/multimessenger
>  >  > >  >  > >  > >  > >  > >
>  >  > >  >  > >  > >  > >  > >
>  >  > >  >  > >  > >  >
>  >  > >  >  >
>  >  > ---------------------------------------------------------------------
>  >  > >  >  > >  > >  > >  > >  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
>  >  > >  >  > >  > >  > >
>  >  > >  >  > >  > >  > >
>  >  > >  >  > >  > >  > > --
>  >  > >  >  > >  > >  > >  Psst! Geheimtipp: Online Games kostenlos spielen bei
>  >  > den GMX
>  >  > >  >  > Free
>  >  > >  >  > >  > >  > Games!
>  >  > >  >  > >  > >  > >
>  >  > http://games.entertainment.web.de/de/entertainment/games/free
>  >  > >  >  > >  > >  > >
>  >  > >  >  > >  > >  > >
>  >  > >  >  > >  > >  > >
>  >  > >  >  > >  >
>  >  > ---------------------------------------------------------------------
>  >  > >  >  > >  > >  > >  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
>  >  > >  >  > >  > >
>  >  > >  >  > >  > >  --
>  >  > >  >  > >  > >
>  >  > >  >  > >  > > Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten
>  >  > >  >  > >  > >  Browser-Versionen downloaden:
>  >  > http://www.gmx.net/de/go/browser
>  >  > >  >  > >  > >
>  >  > >  >  > >  > >
>  >  > >  >  > >  > >
>  >  > >  >  >
>  >  > ---------------------------------------------------------------------
>  >  > >  >  > >  > >  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
>  >  > >  >  > >
>  >  > >  >  > >  --
>  >  > >  >  > >  Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX
>  >  > Free
>  >  > >  >  > Games!
>  >  > >  >  > >  http://games.entertainment.web.de/de/entertainment/games/free
>  >  > >  >  > >
>  >  > >  >  > >
>  >  > ---------------------------------------------------------------------
>  >  > >  >  > >  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
>  >  > >  >
>  >  > >  >  --
>  >  > >  >  Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free
>  >  > Games!
>  >  > >  >  http://games.entertainment.web.de/de/entertainment/games/free
>  >  > >  >
>  >  > >  >
>  >  > ---------------------------------------------------------------------
>  >  > >  >  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
>  >
>  >  --
>  >  Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free Games!
>  >  http://games.entertainment.web.de/de/entertainment/games/free
>  >
>  >  ---------------------------------------------------------------------
>  >  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: How to turn OFF the SAX Parser validator

Posted by sebb <se...@gmail.com>.
On 28/02/2008, Klaus Teller <kl...@gmx.net> wrote:
>
>  That sounds promising. I couldn't find this property in the Jmeter configuration file. So, will there be a nightly build these days? I took a look at the source and building it might require me more time than i expected.

On further reflection, the changes I made are not correct; the various
XPath elements need to work on HTML as well as XML; they cannot assume
XML.

What I don't (yet) know is why Tidy does not seem to take any notice of the

<?xml version="1.0" encoding="UTF-8"?>

line at the start of the file - I would have thought that ought to
class the file as XML.
Maybe JMeter will have to check for that and use that to set the Tidy flag.

>  The other think that strikes me is that I removed the link to the DTD and XSD from the VXML. I was hopping that the parser would not find the schema and DTD and, hence not validate anything.
>
>  To my dispointment, I still had the premature end of file exception. Any thought?

No idea, sorry.

>
>  --Klaus.
>
>  -------- Original-Nachricht --------
>  > Datum: Wed, 27 Feb 2008 20:47:20 +0000
>
> > Von: sebb <se...@gmail.com>
>  > An: "JMeter Users List" <jm...@jakarta.apache.org>
>  > Betreff: Re: How to turn OFF the SAX Parser validator
>
>  > On 27/02/2008, sebb <se...@gmail.com> wrote:
>  > > On 27/02/2008, Klaus Teller <kl...@gmx.net> wrote:
>  > >
>  > > > The reason I'm having 404 is clear. I'm extracting some information
>  > from the initial page using an XPath query. The extracted information is used
>  > to build the URL of the next page.
>  > >  >
>  > >  >  Now if the parser fails, the URL is not built properly and the
>  > server returns 404.
>  > >
>  > >
>  > > OK, I see now.
>  > >
>  > >
>  > >  >  So, how could I tell Tidy about the XML nature of the pages?
>  > >
>  > >
>  > > I've been looking into that - so far no joy, the only mention I've
>  > >  seen is that Tidy decides for itself...
>  > >
>  >
>  > I've found that there is a Tidy.setXmlTags(boolean) method call;
>  > setting this true says that the input is already XML. This seems to
>  > fix the problem.
>  >
>  > >  I recently updated the XML Tree View to use Tidy (to avoid downloading
>  > >  DTDs etc).
>  > >  Tidy complains about the VXML file, but the display looks OK, so maybe
>  > >  there is a way to fix the XPath scanning.
>  >
>  > In fact the display was not correct - Tidy had just invented an HTML
>  > tree using some of the content ...
>  >
>  > >  The other approach would be to see if the non-Tidy parser can be told
>  > >  not to download DTDs etc.  I'm assuming that these documents are
>  > >  well-formed, so a tolerant parser is not needed.
>  > >
>  >
>  > >
>  > >  >  --Klaus.
>  > >  >  -------- Original-Nachricht --------
>  > >  >  > Datum: Wed, 27 Feb 2008 17:01:20 +0000
>  > >  >
>  > >  > > Von: sebb <se...@gmail.com>
>  > >  >  > An: "JMeter Users List" <jm...@jakarta.apache.org>
>  > >  >  > Betreff: Re: How to turn OFF the SAX Parser validator
>  > >  >
>  > >  >  > Thanks, I can see most of the problems you are experiencing.
>  > >  >  >
>  > >  >  > It looks like Tidy thinks the content is HTML (deselect Quiet to
>  > see
>  > >  >  > this), which may be why it is complaining. [There may be a way to
>  > tell
>  > >  >  > Tidy that it is XML.]
>  > >  >  >
>  > >  >  > The output in the console should be ignored or logged; that can be
>  > >  >  > fixed (it's captured if Report Errors is selected, but that causes
>  > the
>  > >  >  > sample to be marked as failed).
>  > >  >  >
>  > >  >  > I've not been able to reproduce the 404 error - does it occur on
>  > the
>  > >  >  > simple file you sent me?
>  > >  >  >
>  > >  >  > On 27/02/2008, Klaus Teller <kl...@gmx.net> wrote:
>  > >  >  > > I'm using the latest JMeter version 2.3.1. I with any any VXML
>  > file will
>  > >  >  > be able to reproduce the Tidy error message. Here is an example
>  > VXML file:
>  > >  >  > >
>  > >  >  > >
>  > >  >  > >
>  > >  >  > >  <?xml version="1.0" encoding="UTF-8"?>
>  > >  >  > >  <vxml xmlns="http://www.w3.org/2001/vxml"
>  > >  >  > >   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>  > >  >  > >   xsi:schemaLocation="http://www.w3.org/2001/vxml
>  > >  >  > >    http://www.w3.org/TR/voicexml20/vxml.xsd"
>  > >  >  > >    version="2.0">
>  > >  >  > >   <form>
>  > >  >  > >   <field name="drink">
>  > >  >  > >      <prompt>Would you like coffee, tea, milk, or
>  > nothing?</prompt>
>  > >  >  > >      <grammar src="drink.grxml" type="application/srgs+xml"/>
>  > >  >  > >   </field>
>  > >  >  > >   <block>
>  > >  >  > >      <submit next="http://www.drink.example.com/drink2.asp"/>
>  > >  >  > >   </block>
>  > >  >  > >   </form>
>  > >  >  > >  </vxml>
>  > >  >  > >
>  > >  >  > >  Klaus.
>  > >  >  > >
>  > >  >  > >
>  > >  >  > >
>  > >  >  > >  -------- Original-Nachricht --------
>  > >  >  > >  > Datum: Wed, 27 Feb 2008 15:53:35 +0000
>  > >  >  > >
>  > >  >  > > > Von: sebb <se...@gmail.com>
>  > >  >  > >  > An: "JMeter Users List" <jm...@jakarta.apache.org>
>  > >  >  > >  > Betreff: Re: How to turn OFF the SAX Parser validator
>  > >  >  > >
>  > >  >  > >  > Which version of JMeter?
>  > >  >  > >  >
>  > >  >  > >  > Is the URL a public URL?
>  > >  >  > >  > If so, perhaps you could send me a JMX file privately so I
>  > can test
>  > >  >  > this.
>  > >  >  > >  > [Please don't post it to the list]
>  > >  >  > >  >
>  > >  >  > >  > On 27/02/2008, Klaus Teller <kl...@gmx.net> wrote:
>  > >  >  > >  > >
>  > >  >  > >  > >
>  > >  >  > >  > >  Here are the error messages I'm having. They are actually
>  > printed
>  > >  >  > on
>  > >  >  > >  > the console and not in the log file.
>  > >  >  > >  > >
>  > >  >  > >  > >
>  > >  >  > >  > >
>  > >  >  > >  > >
>  > >  >  > >  > >  line 2 column 1 - Error: <vxml> is not recognized!
>  > >  >  > >  > >  line 10 column 39 - Error: <block> is not recognized!
>  > >  >  > >  > >  line 10 column 46 - Error: submit is not recognized!
>  > >  >  > >  > >  This document has errors that must be fixed before
>  > >  >  > >  > >  using HTML Tidy to generate a tidied up version.
>  > >  >  > >  > >
>  > >  >  > >  > >  In the log file, the only thing i get is following:
>  > >  >  > >  > >
>  > >  >  > >  > >  jmeter.protocol.http.sampler.HTTPSampler: Error Response
>  > Code: 404
>  > >  >  > >  > >
>  > >  >  > >  > >  Klaus.
>  > >  >  > >  > >
>  > >  >  > >  > >  -------- Original-Nachricht --------
>  > >  >  > >  > >  > Datum: Wed, 27 Feb 2008 15:38:33 +0000
>  > >  >  > >  > >
>  > >  >  > >  > > > Von: sebb <se...@gmail.com>
>  > >  >  > >  > >  > An: "JMeter Users List" <jm...@jakarta.apache.org>
>  > >  >  > >  > >  > Betreff: Re: How to turn OFF the SAX Parser validator
>  > >  >  > >  > >
>  > >  >  > >  > >  > On 27/02/2008, Klaus Teller <kl...@gmx.net>
>  > wrote:
>  > >  >  > >  > >  > > Thanks for the feedback Sebb. What I'm parsing is not
>  > HTML but
>  > >  >  > XML.
>  > >  >  > >  > This
>  > >  >  > >  > >  > of course causes Tidy to fails in turns.
>  > >  >  > >  > >  >
>  > >  >  > >  > >  > Tidy does work with XML - the XPath Assertion uses Tidy.
>  > >  >  > >  > >  >
>  > >  >  > >  > >  > What error are you getting?
>  > >  >  > >  > >  >
>  > >  >  > >  > >  > >  Any other idea?
>  > >  >  > >  > >  > >
>  > >  >  > >  > >  > >  thanks,
>  > >  >  > >  > >  > >  Klaus.
>  > >  >  > >  > >  > >
>  > >  >  > >  > >  > >  -------- Original-Nachricht --------
>  > >  >  > >  > >  > >  > Datum: Wed, 27 Feb 2008 14:12:07 +0000
>  > >  >  > >  > >  > >  > Von: sebb <se...@gmail.com>
>  > >  >  > >  > >  > >  > An: "JMeter Users List"
>  > <jm...@jakarta.apache.org>
>  > >  >  > >  > >  > >  > Betreff: Re: How to turn OFF the SAX Parser
>  > validator
>  > >  >  > >  > >  > >
>  > >  >  > >  > >  > >
>  > >  >  > >  > >  > >  > On 27/02/2008, Klaus Teller <kl...@gmx.net>
>  > wrote:
>  > >  >  > >  > >  > >  > > Hi Folks,
>  > >  >  > >  > >  > >  > >
>  > >  >  > >  > >  > >  > >  I'm wondering if there is any way to turn off
>  > the SAX
>  > >  >  > parser
>  > >  >  > >  > >  > validator.
>  > >  >  > >  > >  > >  > >
>  > >  >  > >  > >  > >  > >  I'm experiencing the following exception when
>  > executing
>  > >  >  > my
>  > >  >  > >  > JMeter
>  > >  >  > >  > >  > >  > scripts:
>  > >  >  > >  > >  > >  > >
>  > >  >  > >  > >  > >  > >
>  > >  >  > >  > >  > >  > >  jmeter.util.XPathUtil: Type=Val=false Tol=false
>  > >  >  > >  > >  > >  > org.xml.sax.SAXParseException: Premature end of
>  > file.
>  > >  >  > >  > >  > >  > >
>  > >  >  > >  > >  > >  > >  jmeter.extractor.XPathExtractor: error on
>  > >  >  > >  > >  > >  > XPathExtractor.xpathQuery(//@next)Premature end of
>  > file.
>  > >  >  > >  > >  > >  > >
>  > >  >  > >  > >  > >  > >  Researching the cause of this problem, I found
>  > following
>  > >  >  > >  > possible
>  > >  >  > >  > >  > >  > explanation on the web.
>  > >  >  > >  > >  > >  > >
>  > >  >  > >  > >  > >  > >  =====
>  > >  >  > >  > >  > >  > >  This error is because SAX parser is unable to
>  > validate
>  > >  >  > the
>  > >  >  > >  > schema
>  > >  >  > >  > >  > while
>  > >  >  > >  > >  > >  > parsing the XML document. When the parser parses
>  > the XML
>  > >  >  > file,
>  > >  >  > >  > it
>  > >  >  > >  > >  > will
>  > >  >  > >  > >  > >  > attempt to download the schema to local server, if
>  > >  >  > unavailable
>  > >  >  > >  > in the
>  > >  >  > >  > >  > local
>  > >  >  > >  > >  > >  > server. When the download of schema to the local
>  > server is
>  > >  >  > >  > incomplete
>  > >  >  > >  > >  > (broken
>  > >  >  > >  > >  > >  > schema) and if the parser try to validate the XML
>  > document
>  > >  >  > >  > against
>  > >  >  > >  > >  > the
>  > >  >  > >  > >  > >  > incomplete schema, SAX parser will throw the error
>  > -
>  > >  >  > >  > >  > >  > org.xml.sax.SAXParseException: Premature end of
>  > file.
>  > >  >  > >  > >  > >  > >
>  > >  >  > >  > >  > >  > >  Incomplete schema present in the server could be
>  > because
>  > >  >  > of
>  > >  >  > >  > bad
>  > >  >  > >  > >  > >  > network, wherein the the download of schema is not
>  > >  >  > downloaded
>  > >  >  > >  > >  > completely.
>  > >  >  > >  > >  > >  > >  ====
>  > >  >  > >  > >  > >  > >
>  > >  >  > >  > >  > >  > >  This may make sense to me because, that
>  > exception often
>  > >  >  > >  > appears
>  > >  >  > >  > >  > when
>  > >  >  > >  > >  > >  > having a high number of requests being sent and
>  > received.
>  > >  >  > >  > >  > >  > >
>  > >  >  > >  > >  > >  > >  Thanks for any comment.
>  > >  >  > >  > >  > >  >
>  > >  >  > >  > >  > >  > Select the "Use Tidy" checkbox.
>  > >  >  > >  > >  > >  >
>  > >  >  > >  > >  > >  > >  --Klaus.
>  > >  >  > >  > >  > >  > >
>  > >  >  > >  > >  > >  > > --
>  > >  >  > >  > >  > >  > >  Psssst! Schon vom neuen GMX MultiMessenger
>  > gehört?
>  > >  >  > >  > >  > >  > >  Der kann`s mit allen:
>  > >  >  > http://www.gmx.net/de/go/multimessenger
>  > >  >  > >  > >  > >  > >
>  > >  >  > >  > >  > >  > >
>  > >  >  > >  > >  >
>  > >  >  >
>  > ---------------------------------------------------------------------
>  > >  >  > >  > >  > >  > >  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
>  > >  >  > >  > >  > >
>  > >  >  > >  > >  > >
>  > >  >  > >  > >  > > --
>  > >  >  > >  > >  > >  Psst! Geheimtipp: Online Games kostenlos spielen bei
>  > den GMX
>  > >  >  > Free
>  > >  >  > >  > >  > Games!
>  > >  >  > >  > >  > >
>  > http://games.entertainment.web.de/de/entertainment/games/free
>  > >  >  > >  > >  > >
>  > >  >  > >  > >  > >
>  > >  >  > >  > >  > >
>  > >  >  > >  >
>  > ---------------------------------------------------------------------
>  > >  >  > >  > >  > >  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
>  > >  >  > >  > >
>  > >  >  > >  > >  --
>  > >  >  > >  > >
>  > >  >  > >  > > Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten
>  > >  >  > >  > >  Browser-Versionen downloaden:
>  > http://www.gmx.net/de/go/browser
>  > >  >  > >  > >
>  > >  >  > >  > >
>  > >  >  > >  > >
>  > >  >  >
>  > ---------------------------------------------------------------------
>  > >  >  > >  > >  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
>  > >  >  > >
>  > >  >  > >  --
>  > >  >  > >  Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX
>  > Free
>  > >  >  > Games!
>  > >  >  > >  http://games.entertainment.web.de/de/entertainment/games/free
>  > >  >  > >
>  > >  >  > >
>  > ---------------------------------------------------------------------
>  > >  >  > >  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
>  > >  >
>  > >  >  --
>  > >  >  Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free
>  > Games!
>  > >  >  http://games.entertainment.web.de/de/entertainment/games/free
>  > >  >
>  > >  >
>  > ---------------------------------------------------------------------
>  > >  >  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
>
>  --
>  Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free Games!
>  http://games.entertainment.web.de/de/entertainment/games/free
>
>  ---------------------------------------------------------------------
>  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: How to turn OFF the SAX Parser validator

Posted by Klaus Teller <kl...@gmx.net>.
That sounds promising. I couldn't find this property in the Jmeter configuration file. So, will there be a nightly build these days? I took a look at the source and building it might require me more time than i expected.

The other think that strikes me is that I removed the link to the DTD and XSD from the VXML. I was hopping that the parser would not find the schema and DTD and, hence not validate anything.

To my dispointment, I still had the premature end of file exception. Any thought?


--Klaus.

-------- Original-Nachricht --------
> Datum: Wed, 27 Feb 2008 20:47:20 +0000
> Von: sebb <se...@gmail.com>
> An: "JMeter Users List" <jm...@jakarta.apache.org>
> Betreff: Re: How to turn OFF the SAX Parser validator

> On 27/02/2008, sebb <se...@gmail.com> wrote:
> > On 27/02/2008, Klaus Teller <kl...@gmx.net> wrote:
> >
> > > The reason I'm having 404 is clear. I'm extracting some information
> from the initial page using an XPath query. The extracted information is used
> to build the URL of the next page.
> >  >
> >  >  Now if the parser fails, the URL is not built properly and the
> server returns 404.
> >
> >
> > OK, I see now.
> >
> >
> >  >  So, how could I tell Tidy about the XML nature of the pages?
> >
> >
> > I've been looking into that - so far no joy, the only mention I've
> >  seen is that Tidy decides for itself...
> >
> 
> I've found that there is a Tidy.setXmlTags(boolean) method call;
> setting this true says that the input is already XML. This seems to
> fix the problem.
> 
> >  I recently updated the XML Tree View to use Tidy (to avoid downloading
> >  DTDs etc).
> >  Tidy complains about the VXML file, but the display looks OK, so maybe
> >  there is a way to fix the XPath scanning.
> 
> In fact the display was not correct - Tidy had just invented an HTML
> tree using some of the content ...
> 
> >  The other approach would be to see if the non-Tidy parser can be told
> >  not to download DTDs etc.  I'm assuming that these documents are
> >  well-formed, so a tolerant parser is not needed.
> >
> 
> >
> >  >  --Klaus.
> >  >  -------- Original-Nachricht --------
> >  >  > Datum: Wed, 27 Feb 2008 17:01:20 +0000
> >  >
> >  > > Von: sebb <se...@gmail.com>
> >  >  > An: "JMeter Users List" <jm...@jakarta.apache.org>
> >  >  > Betreff: Re: How to turn OFF the SAX Parser validator
> >  >
> >  >  > Thanks, I can see most of the problems you are experiencing.
> >  >  >
> >  >  > It looks like Tidy thinks the content is HTML (deselect Quiet to
> see
> >  >  > this), which may be why it is complaining. [There may be a way to
> tell
> >  >  > Tidy that it is XML.]
> >  >  >
> >  >  > The output in the console should be ignored or logged; that can be
> >  >  > fixed (it's captured if Report Errors is selected, but that causes
> the
> >  >  > sample to be marked as failed).
> >  >  >
> >  >  > I've not been able to reproduce the 404 error - does it occur on
> the
> >  >  > simple file you sent me?
> >  >  >
> >  >  > On 27/02/2008, Klaus Teller <kl...@gmx.net> wrote:
> >  >  > > I'm using the latest JMeter version 2.3.1. I with any any VXML
> file will
> >  >  > be able to reproduce the Tidy error message. Here is an example
> VXML file:
> >  >  > >
> >  >  > >
> >  >  > >
> >  >  > >  <?xml version="1.0" encoding="UTF-8"?>
> >  >  > >  <vxml xmlns="http://www.w3.org/2001/vxml"
> >  >  > >   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> >  >  > >   xsi:schemaLocation="http://www.w3.org/2001/vxml
> >  >  > >    http://www.w3.org/TR/voicexml20/vxml.xsd"
> >  >  > >    version="2.0">
> >  >  > >   <form>
> >  >  > >   <field name="drink">
> >  >  > >      <prompt>Would you like coffee, tea, milk, or
> nothing?</prompt>
> >  >  > >      <grammar src="drink.grxml" type="application/srgs+xml"/>
> >  >  > >   </field>
> >  >  > >   <block>
> >  >  > >      <submit next="http://www.drink.example.com/drink2.asp"/>
> >  >  > >   </block>
> >  >  > >   </form>
> >  >  > >  </vxml>
> >  >  > >
> >  >  > >  Klaus.
> >  >  > >
> >  >  > >
> >  >  > >
> >  >  > >  -------- Original-Nachricht --------
> >  >  > >  > Datum: Wed, 27 Feb 2008 15:53:35 +0000
> >  >  > >
> >  >  > > > Von: sebb <se...@gmail.com>
> >  >  > >  > An: "JMeter Users List" <jm...@jakarta.apache.org>
> >  >  > >  > Betreff: Re: How to turn OFF the SAX Parser validator
> >  >  > >
> >  >  > >  > Which version of JMeter?
> >  >  > >  >
> >  >  > >  > Is the URL a public URL?
> >  >  > >  > If so, perhaps you could send me a JMX file privately so I
> can test
> >  >  > this.
> >  >  > >  > [Please don't post it to the list]
> >  >  > >  >
> >  >  > >  > On 27/02/2008, Klaus Teller <kl...@gmx.net> wrote:
> >  >  > >  > >
> >  >  > >  > >
> >  >  > >  > >  Here are the error messages I'm having. They are actually
> printed
> >  >  > on
> >  >  > >  > the console and not in the log file.
> >  >  > >  > >
> >  >  > >  > >
> >  >  > >  > >
> >  >  > >  > >
> >  >  > >  > >  line 2 column 1 - Error: <vxml> is not recognized!
> >  >  > >  > >  line 10 column 39 - Error: <block> is not recognized!
> >  >  > >  > >  line 10 column 46 - Error: submit is not recognized!
> >  >  > >  > >  This document has errors that must be fixed before
> >  >  > >  > >  using HTML Tidy to generate a tidied up version.
> >  >  > >  > >
> >  >  > >  > >  In the log file, the only thing i get is following:
> >  >  > >  > >
> >  >  > >  > >  jmeter.protocol.http.sampler.HTTPSampler: Error Response
> Code: 404
> >  >  > >  > >
> >  >  > >  > >  Klaus.
> >  >  > >  > >
> >  >  > >  > >  -------- Original-Nachricht --------
> >  >  > >  > >  > Datum: Wed, 27 Feb 2008 15:38:33 +0000
> >  >  > >  > >
> >  >  > >  > > > Von: sebb <se...@gmail.com>
> >  >  > >  > >  > An: "JMeter Users List" <jm...@jakarta.apache.org>
> >  >  > >  > >  > Betreff: Re: How to turn OFF the SAX Parser validator
> >  >  > >  > >
> >  >  > >  > >  > On 27/02/2008, Klaus Teller <kl...@gmx.net>
> wrote:
> >  >  > >  > >  > > Thanks for the feedback Sebb. What I'm parsing is not
> HTML but
> >  >  > XML.
> >  >  > >  > This
> >  >  > >  > >  > of course causes Tidy to fails in turns.
> >  >  > >  > >  >
> >  >  > >  > >  > Tidy does work with XML - the XPath Assertion uses Tidy.
> >  >  > >  > >  >
> >  >  > >  > >  > What error are you getting?
> >  >  > >  > >  >
> >  >  > >  > >  > >  Any other idea?
> >  >  > >  > >  > >
> >  >  > >  > >  > >  thanks,
> >  >  > >  > >  > >  Klaus.
> >  >  > >  > >  > >
> >  >  > >  > >  > >  -------- Original-Nachricht --------
> >  >  > >  > >  > >  > Datum: Wed, 27 Feb 2008 14:12:07 +0000
> >  >  > >  > >  > >  > Von: sebb <se...@gmail.com>
> >  >  > >  > >  > >  > An: "JMeter Users List"
> <jm...@jakarta.apache.org>
> >  >  > >  > >  > >  > Betreff: Re: How to turn OFF the SAX Parser
> validator
> >  >  > >  > >  > >
> >  >  > >  > >  > >
> >  >  > >  > >  > >  > On 27/02/2008, Klaus Teller <kl...@gmx.net>
> wrote:
> >  >  > >  > >  > >  > > Hi Folks,
> >  >  > >  > >  > >  > >
> >  >  > >  > >  > >  > >  I'm wondering if there is any way to turn off
> the SAX
> >  >  > parser
> >  >  > >  > >  > validator.
> >  >  > >  > >  > >  > >
> >  >  > >  > >  > >  > >  I'm experiencing the following exception when
> executing
> >  >  > my
> >  >  > >  > JMeter
> >  >  > >  > >  > >  > scripts:
> >  >  > >  > >  > >  > >
> >  >  > >  > >  > >  > >
> >  >  > >  > >  > >  > >  jmeter.util.XPathUtil: Type=Val=false Tol=false
> >  >  > >  > >  > >  > org.xml.sax.SAXParseException: Premature end of
> file.
> >  >  > >  > >  > >  > >
> >  >  > >  > >  > >  > >  jmeter.extractor.XPathExtractor: error on
> >  >  > >  > >  > >  > XPathExtractor.xpathQuery(//@next)Premature end of
> file.
> >  >  > >  > >  > >  > >
> >  >  > >  > >  > >  > >  Researching the cause of this problem, I found
> following
> >  >  > >  > possible
> >  >  > >  > >  > >  > explanation on the web.
> >  >  > >  > >  > >  > >
> >  >  > >  > >  > >  > >  =====
> >  >  > >  > >  > >  > >  This error is because SAX parser is unable to
> validate
> >  >  > the
> >  >  > >  > schema
> >  >  > >  > >  > while
> >  >  > >  > >  > >  > parsing the XML document. When the parser parses
> the XML
> >  >  > file,
> >  >  > >  > it
> >  >  > >  > >  > will
> >  >  > >  > >  > >  > attempt to download the schema to local server, if
> >  >  > unavailable
> >  >  > >  > in the
> >  >  > >  > >  > local
> >  >  > >  > >  > >  > server. When the download of schema to the local
> server is
> >  >  > >  > incomplete
> >  >  > >  > >  > (broken
> >  >  > >  > >  > >  > schema) and if the parser try to validate the XML
> document
> >  >  > >  > against
> >  >  > >  > >  > the
> >  >  > >  > >  > >  > incomplete schema, SAX parser will throw the error
> -
> >  >  > >  > >  > >  > org.xml.sax.SAXParseException: Premature end of
> file.
> >  >  > >  > >  > >  > >
> >  >  > >  > >  > >  > >  Incomplete schema present in the server could be
> because
> >  >  > of
> >  >  > >  > bad
> >  >  > >  > >  > >  > network, wherein the the download of schema is not
> >  >  > downloaded
> >  >  > >  > >  > completely.
> >  >  > >  > >  > >  > >  ====
> >  >  > >  > >  > >  > >
> >  >  > >  > >  > >  > >  This may make sense to me because, that
> exception often
> >  >  > >  > appears
> >  >  > >  > >  > when
> >  >  > >  > >  > >  > having a high number of requests being sent and
> received.
> >  >  > >  > >  > >  > >
> >  >  > >  > >  > >  > >  Thanks for any comment.
> >  >  > >  > >  > >  >
> >  >  > >  > >  > >  > Select the "Use Tidy" checkbox.
> >  >  > >  > >  > >  >
> >  >  > >  > >  > >  > >  --Klaus.
> >  >  > >  > >  > >  > >
> >  >  > >  > >  > >  > > --
> >  >  > >  > >  > >  > >  Psssst! Schon vom neuen GMX MultiMessenger
> gehört?
> >  >  > >  > >  > >  > >  Der kann`s mit allen:
> >  >  > http://www.gmx.net/de/go/multimessenger
> >  >  > >  > >  > >  > >
> >  >  > >  > >  > >  > >
> >  >  > >  > >  >
> >  >  >
> ---------------------------------------------------------------------
> >  >  > >  > >  > >  > >  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
> >  >  > >  > >  > >
> >  >  > >  > >  > >
> >  >  > >  > >  > > --
> >  >  > >  > >  > >  Psst! Geheimtipp: Online Games kostenlos spielen bei
> den GMX
> >  >  > Free
> >  >  > >  > >  > Games!
> >  >  > >  > >  > > 
> http://games.entertainment.web.de/de/entertainment/games/free
> >  >  > >  > >  > >
> >  >  > >  > >  > >
> >  >  > >  > >  > >
> >  >  > >  >
> ---------------------------------------------------------------------
> >  >  > >  > >  > >  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
> >  >  > >  > >
> >  >  > >  > >  --
> >  >  > >  > >
> >  >  > >  > > Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten
> >  >  > >  > >  Browser-Versionen downloaden:
> http://www.gmx.net/de/go/browser
> >  >  > >  > >
> >  >  > >  > >
> >  >  > >  > >
> >  >  >
> ---------------------------------------------------------------------
> >  >  > >  > >  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
> >  >  > >
> >  >  > >  --
> >  >  > >  Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX
> Free
> >  >  > Games!
> >  >  > >  http://games.entertainment.web.de/de/entertainment/games/free
> >  >  > >
> >  >  > > 
> ---------------------------------------------------------------------
> >  >  > >  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
> >  >
> >  >  --
> >  >  Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free
> Games!
> >  >  http://games.entertainment.web.de/de/entertainment/games/free
> >  >
> >  > 
> ---------------------------------------------------------------------
> >  >  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

-- 
Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free Games! 
http://games.entertainment.web.de/de/entertainment/games/free

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


Re: How to turn OFF the SAX Parser validator

Posted by sebb <se...@gmail.com>.
On 27/02/2008, sebb <se...@gmail.com> wrote:
> On 27/02/2008, Klaus Teller <kl...@gmx.net> wrote:
>
> > The reason I'm having 404 is clear. I'm extracting some information from the initial page using an XPath query. The extracted information is used to build the URL of the next page.
>  >
>  >  Now if the parser fails, the URL is not built properly and the server returns 404.
>
>
> OK, I see now.
>
>
>  >  So, how could I tell Tidy about the XML nature of the pages?
>
>
> I've been looking into that - so far no joy, the only mention I've
>  seen is that Tidy decides for itself...
>

I've found that there is a Tidy.setXmlTags(boolean) method call;
setting this true says that the input is already XML. This seems to
fix the problem.

>  I recently updated the XML Tree View to use Tidy (to avoid downloading
>  DTDs etc).
>  Tidy complains about the VXML file, but the display looks OK, so maybe
>  there is a way to fix the XPath scanning.

In fact the display was not correct - Tidy had just invented an HTML
tree using some of the content ...

>  The other approach would be to see if the non-Tidy parser can be told
>  not to download DTDs etc.  I'm assuming that these documents are
>  well-formed, so a tolerant parser is not needed.
>

>
>  >  --Klaus.
>  >  -------- Original-Nachricht --------
>  >  > Datum: Wed, 27 Feb 2008 17:01:20 +0000
>  >
>  > > Von: sebb <se...@gmail.com>
>  >  > An: "JMeter Users List" <jm...@jakarta.apache.org>
>  >  > Betreff: Re: How to turn OFF the SAX Parser validator
>  >
>  >  > Thanks, I can see most of the problems you are experiencing.
>  >  >
>  >  > It looks like Tidy thinks the content is HTML (deselect Quiet to see
>  >  > this), which may be why it is complaining. [There may be a way to tell
>  >  > Tidy that it is XML.]
>  >  >
>  >  > The output in the console should be ignored or logged; that can be
>  >  > fixed (it's captured if Report Errors is selected, but that causes the
>  >  > sample to be marked as failed).
>  >  >
>  >  > I've not been able to reproduce the 404 error - does it occur on the
>  >  > simple file you sent me?
>  >  >
>  >  > On 27/02/2008, Klaus Teller <kl...@gmx.net> wrote:
>  >  > > I'm using the latest JMeter version 2.3.1. I with any any VXML file will
>  >  > be able to reproduce the Tidy error message. Here is an example VXML file:
>  >  > >
>  >  > >
>  >  > >
>  >  > >  <?xml version="1.0" encoding="UTF-8"?>
>  >  > >  <vxml xmlns="http://www.w3.org/2001/vxml"
>  >  > >   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>  >  > >   xsi:schemaLocation="http://www.w3.org/2001/vxml
>  >  > >    http://www.w3.org/TR/voicexml20/vxml.xsd"
>  >  > >    version="2.0">
>  >  > >   <form>
>  >  > >   <field name="drink">
>  >  > >      <prompt>Would you like coffee, tea, milk, or nothing?</prompt>
>  >  > >      <grammar src="drink.grxml" type="application/srgs+xml"/>
>  >  > >   </field>
>  >  > >   <block>
>  >  > >      <submit next="http://www.drink.example.com/drink2.asp"/>
>  >  > >   </block>
>  >  > >   </form>
>  >  > >  </vxml>
>  >  > >
>  >  > >  Klaus.
>  >  > >
>  >  > >
>  >  > >
>  >  > >  -------- Original-Nachricht --------
>  >  > >  > Datum: Wed, 27 Feb 2008 15:53:35 +0000
>  >  > >
>  >  > > > Von: sebb <se...@gmail.com>
>  >  > >  > An: "JMeter Users List" <jm...@jakarta.apache.org>
>  >  > >  > Betreff: Re: How to turn OFF the SAX Parser validator
>  >  > >
>  >  > >  > Which version of JMeter?
>  >  > >  >
>  >  > >  > Is the URL a public URL?
>  >  > >  > If so, perhaps you could send me a JMX file privately so I can test
>  >  > this.
>  >  > >  > [Please don't post it to the list]
>  >  > >  >
>  >  > >  > On 27/02/2008, Klaus Teller <kl...@gmx.net> wrote:
>  >  > >  > >
>  >  > >  > >
>  >  > >  > >  Here are the error messages I'm having. They are actually printed
>  >  > on
>  >  > >  > the console and not in the log file.
>  >  > >  > >
>  >  > >  > >
>  >  > >  > >
>  >  > >  > >
>  >  > >  > >  line 2 column 1 - Error: <vxml> is not recognized!
>  >  > >  > >  line 10 column 39 - Error: <block> is not recognized!
>  >  > >  > >  line 10 column 46 - Error: submit is not recognized!
>  >  > >  > >  This document has errors that must be fixed before
>  >  > >  > >  using HTML Tidy to generate a tidied up version.
>  >  > >  > >
>  >  > >  > >  In the log file, the only thing i get is following:
>  >  > >  > >
>  >  > >  > >  jmeter.protocol.http.sampler.HTTPSampler: Error Response Code: 404
>  >  > >  > >
>  >  > >  > >  Klaus.
>  >  > >  > >
>  >  > >  > >  -------- Original-Nachricht --------
>  >  > >  > >  > Datum: Wed, 27 Feb 2008 15:38:33 +0000
>  >  > >  > >
>  >  > >  > > > Von: sebb <se...@gmail.com>
>  >  > >  > >  > An: "JMeter Users List" <jm...@jakarta.apache.org>
>  >  > >  > >  > Betreff: Re: How to turn OFF the SAX Parser validator
>  >  > >  > >
>  >  > >  > >  > On 27/02/2008, Klaus Teller <kl...@gmx.net> wrote:
>  >  > >  > >  > > Thanks for the feedback Sebb. What I'm parsing is not HTML but
>  >  > XML.
>  >  > >  > This
>  >  > >  > >  > of course causes Tidy to fails in turns.
>  >  > >  > >  >
>  >  > >  > >  > Tidy does work with XML - the XPath Assertion uses Tidy.
>  >  > >  > >  >
>  >  > >  > >  > What error are you getting?
>  >  > >  > >  >
>  >  > >  > >  > >  Any other idea?
>  >  > >  > >  > >
>  >  > >  > >  > >  thanks,
>  >  > >  > >  > >  Klaus.
>  >  > >  > >  > >
>  >  > >  > >  > >  -------- Original-Nachricht --------
>  >  > >  > >  > >  > Datum: Wed, 27 Feb 2008 14:12:07 +0000
>  >  > >  > >  > >  > Von: sebb <se...@gmail.com>
>  >  > >  > >  > >  > An: "JMeter Users List" <jm...@jakarta.apache.org>
>  >  > >  > >  > >  > Betreff: Re: How to turn OFF the SAX Parser validator
>  >  > >  > >  > >
>  >  > >  > >  > >
>  >  > >  > >  > >  > On 27/02/2008, Klaus Teller <kl...@gmx.net> wrote:
>  >  > >  > >  > >  > > Hi Folks,
>  >  > >  > >  > >  > >
>  >  > >  > >  > >  > >  I'm wondering if there is any way to turn off the SAX
>  >  > parser
>  >  > >  > >  > validator.
>  >  > >  > >  > >  > >
>  >  > >  > >  > >  > >  I'm experiencing the following exception when executing
>  >  > my
>  >  > >  > JMeter
>  >  > >  > >  > >  > scripts:
>  >  > >  > >  > >  > >
>  >  > >  > >  > >  > >
>  >  > >  > >  > >  > >  jmeter.util.XPathUtil: Type=Val=false Tol=false
>  >  > >  > >  > >  > org.xml.sax.SAXParseException: Premature end of file.
>  >  > >  > >  > >  > >
>  >  > >  > >  > >  > >  jmeter.extractor.XPathExtractor: error on
>  >  > >  > >  > >  > XPathExtractor.xpathQuery(//@next)Premature end of file.
>  >  > >  > >  > >  > >
>  >  > >  > >  > >  > >  Researching the cause of this problem, I found following
>  >  > >  > possible
>  >  > >  > >  > >  > explanation on the web.
>  >  > >  > >  > >  > >
>  >  > >  > >  > >  > >  =====
>  >  > >  > >  > >  > >  This error is because SAX parser is unable to validate
>  >  > the
>  >  > >  > schema
>  >  > >  > >  > while
>  >  > >  > >  > >  > parsing the XML document. When the parser parses the XML
>  >  > file,
>  >  > >  > it
>  >  > >  > >  > will
>  >  > >  > >  > >  > attempt to download the schema to local server, if
>  >  > unavailable
>  >  > >  > in the
>  >  > >  > >  > local
>  >  > >  > >  > >  > server. When the download of schema to the local server is
>  >  > >  > incomplete
>  >  > >  > >  > (broken
>  >  > >  > >  > >  > schema) and if the parser try to validate the XML document
>  >  > >  > against
>  >  > >  > >  > the
>  >  > >  > >  > >  > incomplete schema, SAX parser will throw the error -
>  >  > >  > >  > >  > org.xml.sax.SAXParseException: Premature end of file.
>  >  > >  > >  > >  > >
>  >  > >  > >  > >  > >  Incomplete schema present in the server could be because
>  >  > of
>  >  > >  > bad
>  >  > >  > >  > >  > network, wherein the the download of schema is not
>  >  > downloaded
>  >  > >  > >  > completely.
>  >  > >  > >  > >  > >  ====
>  >  > >  > >  > >  > >
>  >  > >  > >  > >  > >  This may make sense to me because, that exception often
>  >  > >  > appears
>  >  > >  > >  > when
>  >  > >  > >  > >  > having a high number of requests being sent and received.
>  >  > >  > >  > >  > >
>  >  > >  > >  > >  > >  Thanks for any comment.
>  >  > >  > >  > >  >
>  >  > >  > >  > >  > Select the "Use Tidy" checkbox.
>  >  > >  > >  > >  >
>  >  > >  > >  > >  > >  --Klaus.
>  >  > >  > >  > >  > >
>  >  > >  > >  > >  > > --
>  >  > >  > >  > >  > >  Psssst! Schon vom neuen GMX MultiMessenger gehört?
>  >  > >  > >  > >  > >  Der kann`s mit allen:
>  >  > http://www.gmx.net/de/go/multimessenger
>  >  > >  > >  > >  > >
>  >  > >  > >  > >  > >
>  >  > >  > >  >
>  >  > ---------------------------------------------------------------------
>  >  > >  > >  > >  > >  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
>  >  > >  > >  > >
>  >  > >  > >  > >
>  >  > >  > >  > > --
>  >  > >  > >  > >  Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX
>  >  > Free
>  >  > >  > >  > Games!
>  >  > >  > >  > >  http://games.entertainment.web.de/de/entertainment/games/free
>  >  > >  > >  > >
>  >  > >  > >  > >
>  >  > >  > >  > >
>  >  > >  > ---------------------------------------------------------------------
>  >  > >  > >  > >  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
>  >  > >  > >
>  >  > >  > >  --
>  >  > >  > >
>  >  > >  > > Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten
>  >  > >  > >  Browser-Versionen downloaden: http://www.gmx.net/de/go/browser
>  >  > >  > >
>  >  > >  > >
>  >  > >  > >
>  >  > ---------------------------------------------------------------------
>  >  > >  > >  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
>  >  > >
>  >  > >  --
>  >  > >  Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free
>  >  > Games!
>  >  > >  http://games.entertainment.web.de/de/entertainment/games/free
>  >  > >
>  >  > >  ---------------------------------------------------------------------
>  >  > >  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
>  >
>  >  --
>  >  Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free Games!
>  >  http://games.entertainment.web.de/de/entertainment/games/free
>  >
>  >  ---------------------------------------------------------------------
>  >  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: How to turn OFF the SAX Parser validator

Posted by sebb <se...@gmail.com>.
On 27/02/2008, Klaus Teller <kl...@gmx.net> wrote:
> The reason I'm having 404 is clear. I'm extracting some information from the initial page using an XPath query. The extracted information is used to build the URL of the next page.
>
>  Now if the parser fails, the URL is not built properly and the server returns 404.

OK, I see now.

>  So, how could I tell Tidy about the XML nature of the pages?

I've been looking into that - so far no joy, the only mention I've
seen is that Tidy decides for itself...

I recently updated the XML Tree View to use Tidy (to avoid downloading
DTDs etc).
Tidy complains about the VXML file, but the display looks OK, so maybe
there is a way to fix the XPath scanning.

The other approach would be to see if the non-Tidy parser can be told
not to download DTDs etc.  I'm assuming that these documents are
well-formed, so a tolerant parser is not needed.

>  --Klaus.
>  -------- Original-Nachricht --------
>  > Datum: Wed, 27 Feb 2008 17:01:20 +0000
>
> > Von: sebb <se...@gmail.com>
>  > An: "JMeter Users List" <jm...@jakarta.apache.org>
>  > Betreff: Re: How to turn OFF the SAX Parser validator
>
>  > Thanks, I can see most of the problems you are experiencing.
>  >
>  > It looks like Tidy thinks the content is HTML (deselect Quiet to see
>  > this), which may be why it is complaining. [There may be a way to tell
>  > Tidy that it is XML.]
>  >
>  > The output in the console should be ignored or logged; that can be
>  > fixed (it's captured if Report Errors is selected, but that causes the
>  > sample to be marked as failed).
>  >
>  > I've not been able to reproduce the 404 error - does it occur on the
>  > simple file you sent me?
>  >
>  > On 27/02/2008, Klaus Teller <kl...@gmx.net> wrote:
>  > > I'm using the latest JMeter version 2.3.1. I with any any VXML file will
>  > be able to reproduce the Tidy error message. Here is an example VXML file:
>  > >
>  > >
>  > >
>  > >  <?xml version="1.0" encoding="UTF-8"?>
>  > >  <vxml xmlns="http://www.w3.org/2001/vxml"
>  > >   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>  > >   xsi:schemaLocation="http://www.w3.org/2001/vxml
>  > >    http://www.w3.org/TR/voicexml20/vxml.xsd"
>  > >    version="2.0">
>  > >   <form>
>  > >   <field name="drink">
>  > >      <prompt>Would you like coffee, tea, milk, or nothing?</prompt>
>  > >      <grammar src="drink.grxml" type="application/srgs+xml"/>
>  > >   </field>
>  > >   <block>
>  > >      <submit next="http://www.drink.example.com/drink2.asp"/>
>  > >   </block>
>  > >   </form>
>  > >  </vxml>
>  > >
>  > >  Klaus.
>  > >
>  > >
>  > >
>  > >  -------- Original-Nachricht --------
>  > >  > Datum: Wed, 27 Feb 2008 15:53:35 +0000
>  > >
>  > > > Von: sebb <se...@gmail.com>
>  > >  > An: "JMeter Users List" <jm...@jakarta.apache.org>
>  > >  > Betreff: Re: How to turn OFF the SAX Parser validator
>  > >
>  > >  > Which version of JMeter?
>  > >  >
>  > >  > Is the URL a public URL?
>  > >  > If so, perhaps you could send me a JMX file privately so I can test
>  > this.
>  > >  > [Please don't post it to the list]
>  > >  >
>  > >  > On 27/02/2008, Klaus Teller <kl...@gmx.net> wrote:
>  > >  > >
>  > >  > >
>  > >  > >  Here are the error messages I'm having. They are actually printed
>  > on
>  > >  > the console and not in the log file.
>  > >  > >
>  > >  > >
>  > >  > >
>  > >  > >
>  > >  > >  line 2 column 1 - Error: <vxml> is not recognized!
>  > >  > >  line 10 column 39 - Error: <block> is not recognized!
>  > >  > >  line 10 column 46 - Error: submit is not recognized!
>  > >  > >  This document has errors that must be fixed before
>  > >  > >  using HTML Tidy to generate a tidied up version.
>  > >  > >
>  > >  > >  In the log file, the only thing i get is following:
>  > >  > >
>  > >  > >  jmeter.protocol.http.sampler.HTTPSampler: Error Response Code: 404
>  > >  > >
>  > >  > >  Klaus.
>  > >  > >
>  > >  > >  -------- Original-Nachricht --------
>  > >  > >  > Datum: Wed, 27 Feb 2008 15:38:33 +0000
>  > >  > >
>  > >  > > > Von: sebb <se...@gmail.com>
>  > >  > >  > An: "JMeter Users List" <jm...@jakarta.apache.org>
>  > >  > >  > Betreff: Re: How to turn OFF the SAX Parser validator
>  > >  > >
>  > >  > >  > On 27/02/2008, Klaus Teller <kl...@gmx.net> wrote:
>  > >  > >  > > Thanks for the feedback Sebb. What I'm parsing is not HTML but
>  > XML.
>  > >  > This
>  > >  > >  > of course causes Tidy to fails in turns.
>  > >  > >  >
>  > >  > >  > Tidy does work with XML - the XPath Assertion uses Tidy.
>  > >  > >  >
>  > >  > >  > What error are you getting?
>  > >  > >  >
>  > >  > >  > >  Any other idea?
>  > >  > >  > >
>  > >  > >  > >  thanks,
>  > >  > >  > >  Klaus.
>  > >  > >  > >
>  > >  > >  > >  -------- Original-Nachricht --------
>  > >  > >  > >  > Datum: Wed, 27 Feb 2008 14:12:07 +0000
>  > >  > >  > >  > Von: sebb <se...@gmail.com>
>  > >  > >  > >  > An: "JMeter Users List" <jm...@jakarta.apache.org>
>  > >  > >  > >  > Betreff: Re: How to turn OFF the SAX Parser validator
>  > >  > >  > >
>  > >  > >  > >
>  > >  > >  > >  > On 27/02/2008, Klaus Teller <kl...@gmx.net> wrote:
>  > >  > >  > >  > > Hi Folks,
>  > >  > >  > >  > >
>  > >  > >  > >  > >  I'm wondering if there is any way to turn off the SAX
>  > parser
>  > >  > >  > validator.
>  > >  > >  > >  > >
>  > >  > >  > >  > >  I'm experiencing the following exception when executing
>  > my
>  > >  > JMeter
>  > >  > >  > >  > scripts:
>  > >  > >  > >  > >
>  > >  > >  > >  > >
>  > >  > >  > >  > >  jmeter.util.XPathUtil: Type=Val=false Tol=false
>  > >  > >  > >  > org.xml.sax.SAXParseException: Premature end of file.
>  > >  > >  > >  > >
>  > >  > >  > >  > >  jmeter.extractor.XPathExtractor: error on
>  > >  > >  > >  > XPathExtractor.xpathQuery(//@next)Premature end of file.
>  > >  > >  > >  > >
>  > >  > >  > >  > >  Researching the cause of this problem, I found following
>  > >  > possible
>  > >  > >  > >  > explanation on the web.
>  > >  > >  > >  > >
>  > >  > >  > >  > >  =====
>  > >  > >  > >  > >  This error is because SAX parser is unable to validate
>  > the
>  > >  > schema
>  > >  > >  > while
>  > >  > >  > >  > parsing the XML document. When the parser parses the XML
>  > file,
>  > >  > it
>  > >  > >  > will
>  > >  > >  > >  > attempt to download the schema to local server, if
>  > unavailable
>  > >  > in the
>  > >  > >  > local
>  > >  > >  > >  > server. When the download of schema to the local server is
>  > >  > incomplete
>  > >  > >  > (broken
>  > >  > >  > >  > schema) and if the parser try to validate the XML document
>  > >  > against
>  > >  > >  > the
>  > >  > >  > >  > incomplete schema, SAX parser will throw the error -
>  > >  > >  > >  > org.xml.sax.SAXParseException: Premature end of file.
>  > >  > >  > >  > >
>  > >  > >  > >  > >  Incomplete schema present in the server could be because
>  > of
>  > >  > bad
>  > >  > >  > >  > network, wherein the the download of schema is not
>  > downloaded
>  > >  > >  > completely.
>  > >  > >  > >  > >  ====
>  > >  > >  > >  > >
>  > >  > >  > >  > >  This may make sense to me because, that exception often
>  > >  > appears
>  > >  > >  > when
>  > >  > >  > >  > having a high number of requests being sent and received.
>  > >  > >  > >  > >
>  > >  > >  > >  > >  Thanks for any comment.
>  > >  > >  > >  >
>  > >  > >  > >  > Select the "Use Tidy" checkbox.
>  > >  > >  > >  >
>  > >  > >  > >  > >  --Klaus.
>  > >  > >  > >  > >
>  > >  > >  > >  > > --
>  > >  > >  > >  > >  Psssst! Schon vom neuen GMX MultiMessenger gehört?
>  > >  > >  > >  > >  Der kann`s mit allen:
>  > http://www.gmx.net/de/go/multimessenger
>  > >  > >  > >  > >
>  > >  > >  > >  > >
>  > >  > >  >
>  > ---------------------------------------------------------------------
>  > >  > >  > >  > >  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
>  > >  > >  > >
>  > >  > >  > >
>  > >  > >  > > --
>  > >  > >  > >  Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX
>  > Free
>  > >  > >  > Games!
>  > >  > >  > >  http://games.entertainment.web.de/de/entertainment/games/free
>  > >  > >  > >
>  > >  > >  > >
>  > >  > >  > >
>  > >  > ---------------------------------------------------------------------
>  > >  > >  > >  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
>  > >  > >
>  > >  > >  --
>  > >  > >
>  > >  > > Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten
>  > >  > >  Browser-Versionen downloaden: http://www.gmx.net/de/go/browser
>  > >  > >
>  > >  > >
>  > >  > >
>  > ---------------------------------------------------------------------
>  > >  > >  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
>  > >
>  > >  --
>  > >  Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free
>  > Games!
>  > >  http://games.entertainment.web.de/de/entertainment/games/free
>  > >
>  > >  ---------------------------------------------------------------------
>  > >  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
>
>  --
>  Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free Games!
>  http://games.entertainment.web.de/de/entertainment/games/free
>
>  ---------------------------------------------------------------------
>  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: How to turn OFF the SAX Parser validator

Posted by Klaus Teller <kl...@gmx.net>.
The reason I'm having 404 is clear. I'm extracting some information from the initial page using an XPath query. The extracted information is used to build the URL of the next page. 

Now if the parser fails, the URL is not built properly and the server returns 404.

So, how could I tell Tidy about the XML nature of the pages?

--Klaus.
-------- Original-Nachricht --------
> Datum: Wed, 27 Feb 2008 17:01:20 +0000
> Von: sebb <se...@gmail.com>
> An: "JMeter Users List" <jm...@jakarta.apache.org>
> Betreff: Re: How to turn OFF the SAX Parser validator

> Thanks, I can see most of the problems you are experiencing.
> 
> It looks like Tidy thinks the content is HTML (deselect Quiet to see
> this), which may be why it is complaining. [There may be a way to tell
> Tidy that it is XML.]
> 
> The output in the console should be ignored or logged; that can be
> fixed (it's captured if Report Errors is selected, but that causes the
> sample to be marked as failed).
> 
> I've not been able to reproduce the 404 error - does it occur on the
> simple file you sent me?
> 
> On 27/02/2008, Klaus Teller <kl...@gmx.net> wrote:
> > I'm using the latest JMeter version 2.3.1. I with any any VXML file will
> be able to reproduce the Tidy error message. Here is an example VXML file:
> >
> >
> >
> >  <?xml version="1.0" encoding="UTF-8"?>
> >  <vxml xmlns="http://www.w3.org/2001/vxml"
> >   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> >   xsi:schemaLocation="http://www.w3.org/2001/vxml
> >    http://www.w3.org/TR/voicexml20/vxml.xsd"
> >    version="2.0">
> >   <form>
> >   <field name="drink">
> >      <prompt>Would you like coffee, tea, milk, or nothing?</prompt>
> >      <grammar src="drink.grxml" type="application/srgs+xml"/>
> >   </field>
> >   <block>
> >      <submit next="http://www.drink.example.com/drink2.asp"/>
> >   </block>
> >   </form>
> >  </vxml>
> >
> >  Klaus.
> >
> >
> >
> >  -------- Original-Nachricht --------
> >  > Datum: Wed, 27 Feb 2008 15:53:35 +0000
> >
> > > Von: sebb <se...@gmail.com>
> >  > An: "JMeter Users List" <jm...@jakarta.apache.org>
> >  > Betreff: Re: How to turn OFF the SAX Parser validator
> >
> >  > Which version of JMeter?
> >  >
> >  > Is the URL a public URL?
> >  > If so, perhaps you could send me a JMX file privately so I can test
> this.
> >  > [Please don't post it to the list]
> >  >
> >  > On 27/02/2008, Klaus Teller <kl...@gmx.net> wrote:
> >  > >
> >  > >
> >  > >  Here are the error messages I'm having. They are actually printed
> on
> >  > the console and not in the log file.
> >  > >
> >  > >
> >  > >
> >  > >
> >  > >  line 2 column 1 - Error: <vxml> is not recognized!
> >  > >  line 10 column 39 - Error: <block> is not recognized!
> >  > >  line 10 column 46 - Error: submit is not recognized!
> >  > >  This document has errors that must be fixed before
> >  > >  using HTML Tidy to generate a tidied up version.
> >  > >
> >  > >  In the log file, the only thing i get is following:
> >  > >
> >  > >  jmeter.protocol.http.sampler.HTTPSampler: Error Response Code: 404
> >  > >
> >  > >  Klaus.
> >  > >
> >  > >  -------- Original-Nachricht --------
> >  > >  > Datum: Wed, 27 Feb 2008 15:38:33 +0000
> >  > >
> >  > > > Von: sebb <se...@gmail.com>
> >  > >  > An: "JMeter Users List" <jm...@jakarta.apache.org>
> >  > >  > Betreff: Re: How to turn OFF the SAX Parser validator
> >  > >
> >  > >  > On 27/02/2008, Klaus Teller <kl...@gmx.net> wrote:
> >  > >  > > Thanks for the feedback Sebb. What I'm parsing is not HTML but
> XML.
> >  > This
> >  > >  > of course causes Tidy to fails in turns.
> >  > >  >
> >  > >  > Tidy does work with XML - the XPath Assertion uses Tidy.
> >  > >  >
> >  > >  > What error are you getting?
> >  > >  >
> >  > >  > >  Any other idea?
> >  > >  > >
> >  > >  > >  thanks,
> >  > >  > >  Klaus.
> >  > >  > >
> >  > >  > >  -------- Original-Nachricht --------
> >  > >  > >  > Datum: Wed, 27 Feb 2008 14:12:07 +0000
> >  > >  > >  > Von: sebb <se...@gmail.com>
> >  > >  > >  > An: "JMeter Users List" <jm...@jakarta.apache.org>
> >  > >  > >  > Betreff: Re: How to turn OFF the SAX Parser validator
> >  > >  > >
> >  > >  > >
> >  > >  > >  > On 27/02/2008, Klaus Teller <kl...@gmx.net> wrote:
> >  > >  > >  > > Hi Folks,
> >  > >  > >  > >
> >  > >  > >  > >  I'm wondering if there is any way to turn off the SAX
> parser
> >  > >  > validator.
> >  > >  > >  > >
> >  > >  > >  > >  I'm experiencing the following exception when executing
> my
> >  > JMeter
> >  > >  > >  > scripts:
> >  > >  > >  > >
> >  > >  > >  > >
> >  > >  > >  > >  jmeter.util.XPathUtil: Type=Val=false Tol=false
> >  > >  > >  > org.xml.sax.SAXParseException: Premature end of file.
> >  > >  > >  > >
> >  > >  > >  > >  jmeter.extractor.XPathExtractor: error on
> >  > >  > >  > XPathExtractor.xpathQuery(//@next)Premature end of file.
> >  > >  > >  > >
> >  > >  > >  > >  Researching the cause of this problem, I found following
> >  > possible
> >  > >  > >  > explanation on the web.
> >  > >  > >  > >
> >  > >  > >  > >  =====
> >  > >  > >  > >  This error is because SAX parser is unable to validate
> the
> >  > schema
> >  > >  > while
> >  > >  > >  > parsing the XML document. When the parser parses the XML
> file,
> >  > it
> >  > >  > will
> >  > >  > >  > attempt to download the schema to local server, if
> unavailable
> >  > in the
> >  > >  > local
> >  > >  > >  > server. When the download of schema to the local server is
> >  > incomplete
> >  > >  > (broken
> >  > >  > >  > schema) and if the parser try to validate the XML document
> >  > against
> >  > >  > the
> >  > >  > >  > incomplete schema, SAX parser will throw the error -
> >  > >  > >  > org.xml.sax.SAXParseException: Premature end of file.
> >  > >  > >  > >
> >  > >  > >  > >  Incomplete schema present in the server could be because
> of
> >  > bad
> >  > >  > >  > network, wherein the the download of schema is not
> downloaded
> >  > >  > completely.
> >  > >  > >  > >  ====
> >  > >  > >  > >
> >  > >  > >  > >  This may make sense to me because, that exception often
> >  > appears
> >  > >  > when
> >  > >  > >  > having a high number of requests being sent and received.
> >  > >  > >  > >
> >  > >  > >  > >  Thanks for any comment.
> >  > >  > >  >
> >  > >  > >  > Select the "Use Tidy" checkbox.
> >  > >  > >  >
> >  > >  > >  > >  --Klaus.
> >  > >  > >  > >
> >  > >  > >  > > --
> >  > >  > >  > >  Psssst! Schon vom neuen GMX MultiMessenger gehört?
> >  > >  > >  > >  Der kann`s mit allen:
> http://www.gmx.net/de/go/multimessenger
> >  > >  > >  > >
> >  > >  > >  > >
> >  > >  >
> ---------------------------------------------------------------------
> >  > >  > >  > >  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
> >  > >  > >
> >  > >  > >
> >  > >  > > --
> >  > >  > >  Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX
> Free
> >  > >  > Games!
> >  > >  > >  http://games.entertainment.web.de/de/entertainment/games/free
> >  > >  > >
> >  > >  > >
> >  > >  > >
> >  > ---------------------------------------------------------------------
> >  > >  > >  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
> >  > >
> >  > >  --
> >  > >
> >  > > Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten
> >  > >  Browser-Versionen downloaden: http://www.gmx.net/de/go/browser
> >  > >
> >  > >
> >  > > 
> ---------------------------------------------------------------------
> >  > >  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
> >
> >  --
> >  Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free
> Games!
> >  http://games.entertainment.web.de/de/entertainment/games/free
> >
> >  ---------------------------------------------------------------------
> >  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

-- 
Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free Games! 
http://games.entertainment.web.de/de/entertainment/games/free

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


Re: How to turn OFF the SAX Parser validator

Posted by sebb <se...@gmail.com>.
Thanks, I can see most of the problems you are experiencing.

It looks like Tidy thinks the content is HTML (deselect Quiet to see
this), which may be why it is complaining. [There may be a way to tell
Tidy that it is XML.]

The output in the console should be ignored or logged; that can be
fixed (it's captured if Report Errors is selected, but that causes the
sample to be marked as failed).

I've not been able to reproduce the 404 error - does it occur on the
simple file you sent me?

On 27/02/2008, Klaus Teller <kl...@gmx.net> wrote:
> I'm using the latest JMeter version 2.3.1. I with any any VXML file will be able to reproduce the Tidy error message. Here is an example VXML file:
>
>
>
>  <?xml version="1.0" encoding="UTF-8"?>
>  <vxml xmlns="http://www.w3.org/2001/vxml"
>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>   xsi:schemaLocation="http://www.w3.org/2001/vxml
>    http://www.w3.org/TR/voicexml20/vxml.xsd"
>    version="2.0">
>   <form>
>   <field name="drink">
>      <prompt>Would you like coffee, tea, milk, or nothing?</prompt>
>      <grammar src="drink.grxml" type="application/srgs+xml"/>
>   </field>
>   <block>
>      <submit next="http://www.drink.example.com/drink2.asp"/>
>   </block>
>   </form>
>  </vxml>
>
>  Klaus.
>
>
>
>  -------- Original-Nachricht --------
>  > Datum: Wed, 27 Feb 2008 15:53:35 +0000
>
> > Von: sebb <se...@gmail.com>
>  > An: "JMeter Users List" <jm...@jakarta.apache.org>
>  > Betreff: Re: How to turn OFF the SAX Parser validator
>
>  > Which version of JMeter?
>  >
>  > Is the URL a public URL?
>  > If so, perhaps you could send me a JMX file privately so I can test this.
>  > [Please don't post it to the list]
>  >
>  > On 27/02/2008, Klaus Teller <kl...@gmx.net> wrote:
>  > >
>  > >
>  > >  Here are the error messages I'm having. They are actually printed on
>  > the console and not in the log file.
>  > >
>  > >
>  > >
>  > >
>  > >  line 2 column 1 - Error: <vxml> is not recognized!
>  > >  line 10 column 39 - Error: <block> is not recognized!
>  > >  line 10 column 46 - Error: submit is not recognized!
>  > >  This document has errors that must be fixed before
>  > >  using HTML Tidy to generate a tidied up version.
>  > >
>  > >  In the log file, the only thing i get is following:
>  > >
>  > >  jmeter.protocol.http.sampler.HTTPSampler: Error Response Code: 404
>  > >
>  > >  Klaus.
>  > >
>  > >  -------- Original-Nachricht --------
>  > >  > Datum: Wed, 27 Feb 2008 15:38:33 +0000
>  > >
>  > > > Von: sebb <se...@gmail.com>
>  > >  > An: "JMeter Users List" <jm...@jakarta.apache.org>
>  > >  > Betreff: Re: How to turn OFF the SAX Parser validator
>  > >
>  > >  > On 27/02/2008, Klaus Teller <kl...@gmx.net> wrote:
>  > >  > > Thanks for the feedback Sebb. What I'm parsing is not HTML but XML.
>  > This
>  > >  > of course causes Tidy to fails in turns.
>  > >  >
>  > >  > Tidy does work with XML - the XPath Assertion uses Tidy.
>  > >  >
>  > >  > What error are you getting?
>  > >  >
>  > >  > >  Any other idea?
>  > >  > >
>  > >  > >  thanks,
>  > >  > >  Klaus.
>  > >  > >
>  > >  > >  -------- Original-Nachricht --------
>  > >  > >  > Datum: Wed, 27 Feb 2008 14:12:07 +0000
>  > >  > >  > Von: sebb <se...@gmail.com>
>  > >  > >  > An: "JMeter Users List" <jm...@jakarta.apache.org>
>  > >  > >  > Betreff: Re: How to turn OFF the SAX Parser validator
>  > >  > >
>  > >  > >
>  > >  > >  > On 27/02/2008, Klaus Teller <kl...@gmx.net> wrote:
>  > >  > >  > > Hi Folks,
>  > >  > >  > >
>  > >  > >  > >  I'm wondering if there is any way to turn off the SAX parser
>  > >  > validator.
>  > >  > >  > >
>  > >  > >  > >  I'm experiencing the following exception when executing my
>  > JMeter
>  > >  > >  > scripts:
>  > >  > >  > >
>  > >  > >  > >
>  > >  > >  > >  jmeter.util.XPathUtil: Type=Val=false Tol=false
>  > >  > >  > org.xml.sax.SAXParseException: Premature end of file.
>  > >  > >  > >
>  > >  > >  > >  jmeter.extractor.XPathExtractor: error on
>  > >  > >  > XPathExtractor.xpathQuery(//@next)Premature end of file.
>  > >  > >  > >
>  > >  > >  > >  Researching the cause of this problem, I found following
>  > possible
>  > >  > >  > explanation on the web.
>  > >  > >  > >
>  > >  > >  > >  =====
>  > >  > >  > >  This error is because SAX parser is unable to validate the
>  > schema
>  > >  > while
>  > >  > >  > parsing the XML document. When the parser parses the XML file,
>  > it
>  > >  > will
>  > >  > >  > attempt to download the schema to local server, if unavailable
>  > in the
>  > >  > local
>  > >  > >  > server. When the download of schema to the local server is
>  > incomplete
>  > >  > (broken
>  > >  > >  > schema) and if the parser try to validate the XML document
>  > against
>  > >  > the
>  > >  > >  > incomplete schema, SAX parser will throw the error -
>  > >  > >  > org.xml.sax.SAXParseException: Premature end of file.
>  > >  > >  > >
>  > >  > >  > >  Incomplete schema present in the server could be because of
>  > bad
>  > >  > >  > network, wherein the the download of schema is not downloaded
>  > >  > completely.
>  > >  > >  > >  ====
>  > >  > >  > >
>  > >  > >  > >  This may make sense to me because, that exception often
>  > appears
>  > >  > when
>  > >  > >  > having a high number of requests being sent and received.
>  > >  > >  > >
>  > >  > >  > >  Thanks for any comment.
>  > >  > >  >
>  > >  > >  > Select the "Use Tidy" checkbox.
>  > >  > >  >
>  > >  > >  > >  --Klaus.
>  > >  > >  > >
>  > >  > >  > > --
>  > >  > >  > >  Psssst! Schon vom neuen GMX MultiMessenger gehört?
>  > >  > >  > >  Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
>  > >  > >  > >
>  > >  > >  > >
>  > >  > ---------------------------------------------------------------------
>  > >  > >  > >  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
>  > >  > >
>  > >  > >
>  > >  > > --
>  > >  > >  Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free
>  > >  > Games!
>  > >  > >  http://games.entertainment.web.de/de/entertainment/games/free
>  > >  > >
>  > >  > >
>  > >  > >
>  > ---------------------------------------------------------------------
>  > >  > >  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
>  > >
>  > >  --
>  > >
>  > > Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten
>  > >  Browser-Versionen downloaden: http://www.gmx.net/de/go/browser
>  > >
>  > >
>  > >  ---------------------------------------------------------------------
>  > >  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
>
>  --
>  Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free Games!
>  http://games.entertainment.web.de/de/entertainment/games/free
>
>  ---------------------------------------------------------------------
>  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: How to turn OFF the SAX Parser validator

Posted by Klaus Teller <kl...@gmx.net>.
I'm using the latest JMeter version 2.3.1. I with any any VXML file will be able to reproduce the Tidy error message. Here is an example VXML file:



<?xml version="1.0" encoding="UTF-8"?>
<vxml xmlns="http://www.w3.org/2001/vxml" 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
  xsi:schemaLocation="http://www.w3.org/2001/vxml 
   http://www.w3.org/TR/voicexml20/vxml.xsd"
   version="2.0">
  <form>
  <field name="drink">
     <prompt>Would you like coffee, tea, milk, or nothing?</prompt>
     <grammar src="drink.grxml" type="application/srgs+xml"/>
  </field>
  <block>
     <submit next="http://www.drink.example.com/drink2.asp"/>
  </block>
 </form>
</vxml>

Klaus.



-------- Original-Nachricht --------
> Datum: Wed, 27 Feb 2008 15:53:35 +0000
> Von: sebb <se...@gmail.com>
> An: "JMeter Users List" <jm...@jakarta.apache.org>
> Betreff: Re: How to turn OFF the SAX Parser validator

> Which version of JMeter?
> 
> Is the URL a public URL?
> If so, perhaps you could send me a JMX file privately so I can test this.
> [Please don't post it to the list]
> 
> On 27/02/2008, Klaus Teller <kl...@gmx.net> wrote:
> >
> >
> >  Here are the error messages I'm having. They are actually printed on
> the console and not in the log file.
> >
> >
> >
> >
> >  line 2 column 1 - Error: <vxml> is not recognized!
> >  line 10 column 39 - Error: <block> is not recognized!
> >  line 10 column 46 - Error: submit is not recognized!
> >  This document has errors that must be fixed before
> >  using HTML Tidy to generate a tidied up version.
> >
> >  In the log file, the only thing i get is following:
> >
> >  jmeter.protocol.http.sampler.HTTPSampler: Error Response Code: 404
> >
> >  Klaus.
> >
> >  -------- Original-Nachricht --------
> >  > Datum: Wed, 27 Feb 2008 15:38:33 +0000
> >
> > > Von: sebb <se...@gmail.com>
> >  > An: "JMeter Users List" <jm...@jakarta.apache.org>
> >  > Betreff: Re: How to turn OFF the SAX Parser validator
> >
> >  > On 27/02/2008, Klaus Teller <kl...@gmx.net> wrote:
> >  > > Thanks for the feedback Sebb. What I'm parsing is not HTML but XML.
> This
> >  > of course causes Tidy to fails in turns.
> >  >
> >  > Tidy does work with XML - the XPath Assertion uses Tidy.
> >  >
> >  > What error are you getting?
> >  >
> >  > >  Any other idea?
> >  > >
> >  > >  thanks,
> >  > >  Klaus.
> >  > >
> >  > >  -------- Original-Nachricht --------
> >  > >  > Datum: Wed, 27 Feb 2008 14:12:07 +0000
> >  > >  > Von: sebb <se...@gmail.com>
> >  > >  > An: "JMeter Users List" <jm...@jakarta.apache.org>
> >  > >  > Betreff: Re: How to turn OFF the SAX Parser validator
> >  > >
> >  > >
> >  > >  > On 27/02/2008, Klaus Teller <kl...@gmx.net> wrote:
> >  > >  > > Hi Folks,
> >  > >  > >
> >  > >  > >  I'm wondering if there is any way to turn off the SAX parser
> >  > validator.
> >  > >  > >
> >  > >  > >  I'm experiencing the following exception when executing my
> JMeter
> >  > >  > scripts:
> >  > >  > >
> >  > >  > >
> >  > >  > >  jmeter.util.XPathUtil: Type=Val=false Tol=false
> >  > >  > org.xml.sax.SAXParseException: Premature end of file.
> >  > >  > >
> >  > >  > >  jmeter.extractor.XPathExtractor: error on
> >  > >  > XPathExtractor.xpathQuery(//@next)Premature end of file.
> >  > >  > >
> >  > >  > >  Researching the cause of this problem, I found following
> possible
> >  > >  > explanation on the web.
> >  > >  > >
> >  > >  > >  =====
> >  > >  > >  This error is because SAX parser is unable to validate the
> schema
> >  > while
> >  > >  > parsing the XML document. When the parser parses the XML file,
> it
> >  > will
> >  > >  > attempt to download the schema to local server, if unavailable
> in the
> >  > local
> >  > >  > server. When the download of schema to the local server is
> incomplete
> >  > (broken
> >  > >  > schema) and if the parser try to validate the XML document
> against
> >  > the
> >  > >  > incomplete schema, SAX parser will throw the error -
> >  > >  > org.xml.sax.SAXParseException: Premature end of file.
> >  > >  > >
> >  > >  > >  Incomplete schema present in the server could be because of
> bad
> >  > >  > network, wherein the the download of schema is not downloaded
> >  > completely.
> >  > >  > >  ====
> >  > >  > >
> >  > >  > >  This may make sense to me because, that exception often
> appears
> >  > when
> >  > >  > having a high number of requests being sent and received.
> >  > >  > >
> >  > >  > >  Thanks for any comment.
> >  > >  >
> >  > >  > Select the "Use Tidy" checkbox.
> >  > >  >
> >  > >  > >  --Klaus.
> >  > >  > >
> >  > >  > > --
> >  > >  > >  Psssst! Schon vom neuen GMX MultiMessenger gehört?
> >  > >  > >  Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
> >  > >  > >
> >  > >  > >
> >  > ---------------------------------------------------------------------
> >  > >  > >  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
> >  > >
> >  > >
> >  > > --
> >  > >  Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free
> >  > Games!
> >  > >  http://games.entertainment.web.de/de/entertainment/games/free
> >  > >
> >  > >
> >  > > 
> ---------------------------------------------------------------------
> >  > >  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
> >
> >  --
> >
> > Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten
> >  Browser-Versionen downloaden: http://www.gmx.net/de/go/browser
> >
> >
> >  ---------------------------------------------------------------------
> >  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

-- 
Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free Games! 
http://games.entertainment.web.de/de/entertainment/games/free

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


Re: How to turn OFF the SAX Parser validator

Posted by sebb <se...@gmail.com>.
Which version of JMeter?

Is the URL a public URL?
If so, perhaps you could send me a JMX file privately so I can test this.
[Please don't post it to the list]

On 27/02/2008, Klaus Teller <kl...@gmx.net> wrote:
>
>
>  Here are the error messages I'm having. They are actually printed on the console and not in the log file.
>
>
>
>
>  line 2 column 1 - Error: <vxml> is not recognized!
>  line 10 column 39 - Error: <block> is not recognized!
>  line 10 column 46 - Error: submit is not recognized!
>  This document has errors that must be fixed before
>  using HTML Tidy to generate a tidied up version.
>
>  In the log file, the only thing i get is following:
>
>  jmeter.protocol.http.sampler.HTTPSampler: Error Response Code: 404
>
>  Klaus.
>
>  -------- Original-Nachricht --------
>  > Datum: Wed, 27 Feb 2008 15:38:33 +0000
>
> > Von: sebb <se...@gmail.com>
>  > An: "JMeter Users List" <jm...@jakarta.apache.org>
>  > Betreff: Re: How to turn OFF the SAX Parser validator
>
>  > On 27/02/2008, Klaus Teller <kl...@gmx.net> wrote:
>  > > Thanks for the feedback Sebb. What I'm parsing is not HTML but XML. This
>  > of course causes Tidy to fails in turns.
>  >
>  > Tidy does work with XML - the XPath Assertion uses Tidy.
>  >
>  > What error are you getting?
>  >
>  > >  Any other idea?
>  > >
>  > >  thanks,
>  > >  Klaus.
>  > >
>  > >  -------- Original-Nachricht --------
>  > >  > Datum: Wed, 27 Feb 2008 14:12:07 +0000
>  > >  > Von: sebb <se...@gmail.com>
>  > >  > An: "JMeter Users List" <jm...@jakarta.apache.org>
>  > >  > Betreff: Re: How to turn OFF the SAX Parser validator
>  > >
>  > >
>  > >  > On 27/02/2008, Klaus Teller <kl...@gmx.net> wrote:
>  > >  > > Hi Folks,
>  > >  > >
>  > >  > >  I'm wondering if there is any way to turn off the SAX parser
>  > validator.
>  > >  > >
>  > >  > >  I'm experiencing the following exception when executing my JMeter
>  > >  > scripts:
>  > >  > >
>  > >  > >
>  > >  > >  jmeter.util.XPathUtil: Type=Val=false Tol=false
>  > >  > org.xml.sax.SAXParseException: Premature end of file.
>  > >  > >
>  > >  > >  jmeter.extractor.XPathExtractor: error on
>  > >  > XPathExtractor.xpathQuery(//@next)Premature end of file.
>  > >  > >
>  > >  > >  Researching the cause of this problem, I found following possible
>  > >  > explanation on the web.
>  > >  > >
>  > >  > >  =====
>  > >  > >  This error is because SAX parser is unable to validate the schema
>  > while
>  > >  > parsing the XML document. When the parser parses the XML file, it
>  > will
>  > >  > attempt to download the schema to local server, if unavailable in the
>  > local
>  > >  > server. When the download of schema to the local server is incomplete
>  > (broken
>  > >  > schema) and if the parser try to validate the XML document against
>  > the
>  > >  > incomplete schema, SAX parser will throw the error -
>  > >  > org.xml.sax.SAXParseException: Premature end of file.
>  > >  > >
>  > >  > >  Incomplete schema present in the server could be because of bad
>  > >  > network, wherein the the download of schema is not downloaded
>  > completely.
>  > >  > >  ====
>  > >  > >
>  > >  > >  This may make sense to me because, that exception often appears
>  > when
>  > >  > having a high number of requests being sent and received.
>  > >  > >
>  > >  > >  Thanks for any comment.
>  > >  >
>  > >  > Select the "Use Tidy" checkbox.
>  > >  >
>  > >  > >  --Klaus.
>  > >  > >
>  > >  > > --
>  > >  > >  Psssst! Schon vom neuen GMX MultiMessenger gehört?
>  > >  > >  Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
>  > >  > >
>  > >  > >
>  > ---------------------------------------------------------------------
>  > >  > >  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
>  > >
>  > >
>  > > --
>  > >  Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free
>  > Games!
>  > >  http://games.entertainment.web.de/de/entertainment/games/free
>  > >
>  > >
>  > >  ---------------------------------------------------------------------
>  > >  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
>
>  --
>
> Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten
>  Browser-Versionen downloaden: http://www.gmx.net/de/go/browser
>
>
>  ---------------------------------------------------------------------
>  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: How to turn OFF the SAX Parser validator

Posted by Klaus Teller <kl...@gmx.net>.

Here are the error messages I'm having. They are actually printed on the console and not in the log file.




line 2 column 1 - Error: <vxml> is not recognized!
line 10 column 39 - Error: <block> is not recognized!
line 10 column 46 - Error: submit is not recognized!
This document has errors that must be fixed before
using HTML Tidy to generate a tidied up version.

In the log file, the only thing i get is following:

jmeter.protocol.http.sampler.HTTPSampler: Error Response Code: 404 

Klaus.

-------- Original-Nachricht --------
> Datum: Wed, 27 Feb 2008 15:38:33 +0000
> Von: sebb <se...@gmail.com>
> An: "JMeter Users List" <jm...@jakarta.apache.org>
> Betreff: Re: How to turn OFF the SAX Parser validator

> On 27/02/2008, Klaus Teller <kl...@gmx.net> wrote:
> > Thanks for the feedback Sebb. What I'm parsing is not HTML but XML. This
> of course causes Tidy to fails in turns.
> 
> Tidy does work with XML - the XPath Assertion uses Tidy.
> 
> What error are you getting?
> 
> >  Any other idea?
> >
> >  thanks,
> >  Klaus.
> >
> >  -------- Original-Nachricht --------
> >  > Datum: Wed, 27 Feb 2008 14:12:07 +0000
> >  > Von: sebb <se...@gmail.com>
> >  > An: "JMeter Users List" <jm...@jakarta.apache.org>
> >  > Betreff: Re: How to turn OFF the SAX Parser validator
> >
> >
> >  > On 27/02/2008, Klaus Teller <kl...@gmx.net> wrote:
> >  > > Hi Folks,
> >  > >
> >  > >  I'm wondering if there is any way to turn off the SAX parser
> validator.
> >  > >
> >  > >  I'm experiencing the following exception when executing my JMeter
> >  > scripts:
> >  > >
> >  > >
> >  > >  jmeter.util.XPathUtil: Type=Val=false Tol=false
> >  > org.xml.sax.SAXParseException: Premature end of file.
> >  > >
> >  > >  jmeter.extractor.XPathExtractor: error on
> >  > XPathExtractor.xpathQuery(//@next)Premature end of file.
> >  > >
> >  > >  Researching the cause of this problem, I found following possible
> >  > explanation on the web.
> >  > >
> >  > >  =====
> >  > >  This error is because SAX parser is unable to validate the schema
> while
> >  > parsing the XML document. When the parser parses the XML file, it
> will
> >  > attempt to download the schema to local server, if unavailable in the
> local
> >  > server. When the download of schema to the local server is incomplete
> (broken
> >  > schema) and if the parser try to validate the XML document against
> the
> >  > incomplete schema, SAX parser will throw the error -
> >  > org.xml.sax.SAXParseException: Premature end of file.
> >  > >
> >  > >  Incomplete schema present in the server could be because of bad
> >  > network, wherein the the download of schema is not downloaded
> completely.
> >  > >  ====
> >  > >
> >  > >  This may make sense to me because, that exception often appears
> when
> >  > having a high number of requests being sent and received.
> >  > >
> >  > >  Thanks for any comment.
> >  >
> >  > Select the "Use Tidy" checkbox.
> >  >
> >  > >  --Klaus.
> >  > >
> >  > > --
> >  > >  Psssst! Schon vom neuen GMX MultiMessenger gehört?
> >  > >  Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
> >  > >
> >  > > 
> ---------------------------------------------------------------------
> >  > >  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
> >
> >
> > --
> >  Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free
> Games!
> >  http://games.entertainment.web.de/de/entertainment/games/free
> >
> >
> >  ---------------------------------------------------------------------
> >  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

-- 
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser

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


Re: How to turn OFF the SAX Parser validator

Posted by sebb <se...@gmail.com>.
On 27/02/2008, Klaus Teller <kl...@gmx.net> wrote:
> Thanks for the feedback Sebb. What I'm parsing is not HTML but XML. This of course causes Tidy to fails in turns.

Tidy does work with XML - the XPath Assertion uses Tidy.

What error are you getting?

>  Any other idea?
>
>  thanks,
>  Klaus.
>
>  -------- Original-Nachricht --------
>  > Datum: Wed, 27 Feb 2008 14:12:07 +0000
>  > Von: sebb <se...@gmail.com>
>  > An: "JMeter Users List" <jm...@jakarta.apache.org>
>  > Betreff: Re: How to turn OFF the SAX Parser validator
>
>
>  > On 27/02/2008, Klaus Teller <kl...@gmx.net> wrote:
>  > > Hi Folks,
>  > >
>  > >  I'm wondering if there is any way to turn off the SAX parser validator.
>  > >
>  > >  I'm experiencing the following exception when executing my JMeter
>  > scripts:
>  > >
>  > >
>  > >  jmeter.util.XPathUtil: Type=Val=false Tol=false
>  > org.xml.sax.SAXParseException: Premature end of file.
>  > >
>  > >  jmeter.extractor.XPathExtractor: error on
>  > XPathExtractor.xpathQuery(//@next)Premature end of file.
>  > >
>  > >  Researching the cause of this problem, I found following possible
>  > explanation on the web.
>  > >
>  > >  =====
>  > >  This error is because SAX parser is unable to validate the schema while
>  > parsing the XML document. When the parser parses the XML file, it will
>  > attempt to download the schema to local server, if unavailable in the local
>  > server. When the download of schema to the local server is incomplete (broken
>  > schema) and if the parser try to validate the XML document against the
>  > incomplete schema, SAX parser will throw the error -
>  > org.xml.sax.SAXParseException: Premature end of file.
>  > >
>  > >  Incomplete schema present in the server could be because of bad
>  > network, wherein the the download of schema is not downloaded completely.
>  > >  ====
>  > >
>  > >  This may make sense to me because, that exception often appears when
>  > having a high number of requests being sent and received.
>  > >
>  > >  Thanks for any comment.
>  >
>  > Select the "Use Tidy" checkbox.
>  >
>  > >  --Klaus.
>  > >
>  > > --
>  > >  Psssst! Schon vom neuen GMX MultiMessenger gehört?
>  > >  Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
>  > >
>  > >  ---------------------------------------------------------------------
>  > >  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
>
>
> --
>  Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free Games!
>  http://games.entertainment.web.de/de/entertainment/games/free
>
>
>  ---------------------------------------------------------------------
>  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: How to turn OFF the SAX Parser validator

Posted by Klaus Teller <kl...@gmx.net>.
Thanks for the feedback Sebb. What I'm parsing is not HTML but XML. This of course causes Tidy to fails in turns.

Any other idea?

thanks,
Klaus.

-------- Original-Nachricht --------
> Datum: Wed, 27 Feb 2008 14:12:07 +0000
> Von: sebb <se...@gmail.com>
> An: "JMeter Users List" <jm...@jakarta.apache.org>
> Betreff: Re: How to turn OFF the SAX Parser validator

> On 27/02/2008, Klaus Teller <kl...@gmx.net> wrote:
> > Hi Folks,
> >
> >  I'm wondering if there is any way to turn off the SAX parser validator.
> >
> >  I'm experiencing the following exception when executing my JMeter
> scripts:
> >
> >
> >  jmeter.util.XPathUtil: Type=Val=false Tol=false
> org.xml.sax.SAXParseException: Premature end of file.
> >
> >  jmeter.extractor.XPathExtractor: error on
> XPathExtractor.xpathQuery(//@next)Premature end of file.
> >
> >  Researching the cause of this problem, I found following possible
> explanation on the web.
> >
> >  =====
> >  This error is because SAX parser is unable to validate the schema while
> parsing the XML document. When the parser parses the XML file, it will
> attempt to download the schema to local server, if unavailable in the local
> server. When the download of schema to the local server is incomplete (broken
> schema) and if the parser try to validate the XML document against the
> incomplete schema, SAX parser will throw the error -
> org.xml.sax.SAXParseException: Premature end of file.
> >
> >  Incomplete schema present in the server could be because of bad
> network, wherein the the download of schema is not downloaded completely.
> >  ====
> >
> >  This may make sense to me because, that exception often appears when
> having a high number of requests being sent and received.
> >
> >  Thanks for any comment.
> 
> Select the "Use Tidy" checkbox.
> 
> >  --Klaus.
> >
> > --
> >  Psssst! Schon vom neuen GMX MultiMessenger gehört?
> >  Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
> >
> >  ---------------------------------------------------------------------
> >  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

-- 
Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free Games! 
http://games.entertainment.web.de/de/entertainment/games/free

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


Re: How to turn OFF the SAX Parser validator

Posted by sebb <se...@gmail.com>.
On 27/02/2008, Klaus Teller <kl...@gmx.net> wrote:
> Hi Folks,
>
>  I'm wondering if there is any way to turn off the SAX parser validator.
>
>  I'm experiencing the following exception when executing my JMeter scripts:
>
>
>  jmeter.util.XPathUtil: Type=Val=false Tol=false org.xml.sax.SAXParseException: Premature end of file.
>
>  jmeter.extractor.XPathExtractor: error on XPathExtractor.xpathQuery(//@next)Premature end of file.
>
>  Researching the cause of this problem, I found following possible explanation on the web.
>
>  =====
>  This error is because SAX parser is unable to validate the schema while parsing the XML document. When the parser parses the XML file, it will attempt to download the schema to local server, if unavailable in the local server. When the download of schema to the local server is incomplete (broken schema) and if the parser try to validate the XML document against the incomplete schema, SAX parser will throw the error - org.xml.sax.SAXParseException: Premature end of file.
>
>  Incomplete schema present in the server could be because of bad network, wherein the the download of schema is not downloaded completely.
>  ====
>
>  This may make sense to me because, that exception often appears when having a high number of requests being sent and received.
>
>  Thanks for any comment.

Select the "Use Tidy" checkbox.

>  --Klaus.
>
> --
>  Psssst! Schon vom neuen GMX MultiMessenger gehört?
>  Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
>
>  ---------------------------------------------------------------------
>  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