2 Replies Latest reply on Apr 15, 2010 10:45 AM by Stan Silvert

    XMLParse error on richfaces js

    odelya yomtov Novice

      Hi!

       

      I am trying to run JSFUnit like this:

      JSFSession jsfSession = new JSFSession("/faces/login/login.jsp");

       

      but it gives an exception:

       

      2010-04-14 13:06:38,218 ERROR (              HTMLElement.java:917)     - Unexpected exception occurred while parsing HTML snippet
      at org.apache.xerces.parsers.AbstractSAXParser.setProperty(Unknown Source)
      at com.gargoylesoftware.htmlunit.html.HTMLParser.parseFragment(HTMLParser.java:265)
      at com.gargoylesoftware.htmlunit.javascript.host.html.HTMLElement.parseHtmlSnippet(HTMLElement.java:909)
      at com.gargoylesoftware.htmlunit.javascript.host.html.HTMLElement.jsxSet_innerHTML(HTMLElement.java:833)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      ....
      ....
      2010-04-14 13:06:38,234 ERROR (      StrictErrorReporter.java:81)     - runtimeError: message=[Unexpected exception occurred while parsing HTML snippet: http://cyberneko.org/html/properties/balance-tags/fragment-context-stack] sourceName=[http://localhost:8080/OnTarget/faces/a4j/g/3_3_2.SR1org/richfaces/renderkit/html/scripts/jquery/jquery.js] line=[2140] lineSource=[null] lineOffset=[0]

       

      my jars are:

      htmlunit-2.7.jar

      htmlunit-core-js-2.7.jar

      jboss-jsfunit-core-1.2.0.Final.jar

      jboss-jsfunit-richfaces-1.2.0.GA-SNAPSHOT.jar

      junit-3.8.1.jar

      nekohtml-1.9.9.jar

      sac-1.3.jar

      xml-apis-1.0.b2.jar

      xalan-2.7.0.jar

      richfaces-api-3.3.2.SR1.jar

       

      and more.

       

      But is the problem? it happens only when i use richfaces!