From: Marc G. <mgu...@ya...> - 2008-03-05 08:41:38
|
do you use java 6? I have a similar case where it works just fine with java 5 but causes a java.lang.StackOverflowError under java 6. Cheers, Marc. -- Blog: http://mguillem.wordpress.com rbkcbe wrote: > Hi Ahmed, > > Finally, I managed to understand the issue related to Pattern Exception > > The XMLHttpResponse is returning an JSON array and Pattern exception is > thrown when HtmlUnit is trying to parse it. > > JSON Array extracted from log file > > http://www.nabble.com/file/p15840903/Json.txt Json.txt > > I've attached the log file of > > http://www.nabble.com/file/p15840903/XmlHttpResponse.txt XmlHttpResponse.txt > > I tried to parse the attached JSON.txt file using json-lib. It is parsing > without any errors. > > In the browser (FF and IE) the JSON array is parsed without any errors and > content is displayed. > > I tried with lastest HtmlUnit (build.825) and the problem remains the same. > > Please advise how to go from here. > > Thanks, > Bala > > > Dear Bala, > > You can help isolating the issue by simply doing the following: > - Download latest HtmlUnit 'source' from http://build.canoo.com/htmlunit > - Invoke .java test with your URL. > - Look into stack trace to locate where the error in HtmlUnit thrown (we > can help if you provide the full stack trace). > - Insert 'System.out.println()' in HtmlUnit to print the offending > regular expression. > > As you can see, all is needed is the regular expression that throws the > error. > > Hope that helps, > Ahmed > > > > ____________________________________________________________________________________ > Never miss a thing. Make Yahoo your home page. > http://www.yahoo.com/r/hs > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > http://www.nabble.com/file/p15840903/XmlHttpResponse.txt XmlHttpResponse.txt > http://www.nabble.com/file/p15840903/XmlHttpResponse.txt XmlHttpResponse.txt |