You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(6) |
Jul
(17) |
Aug
(18) |
Sep
(22) |
Oct
(16) |
Nov
(6) |
Dec
(11) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(11) |
Feb
(10) |
Mar
(34) |
Apr
(26) |
May
(6) |
Jun
(22) |
Jul
(14) |
Aug
(4) |
Sep
(47) |
Oct
(69) |
Nov
(23) |
Dec
(21) |
2005 |
Jan
(53) |
Feb
(33) |
Mar
(92) |
Apr
(65) |
May
(63) |
Jun
(57) |
Jul
(43) |
Aug
(132) |
Sep
(61) |
Oct
(75) |
Nov
(60) |
Dec
(130) |
2006 |
Jan
(74) |
Feb
(87) |
Mar
(101) |
Apr
(58) |
May
(54) |
Jun
(42) |
Jul
(31) |
Aug
(67) |
Sep
(61) |
Oct
(71) |
Nov
(28) |
Dec
(58) |
2007 |
Jan
(53) |
Feb
(50) |
Mar
(96) |
Apr
(66) |
May
(55) |
Jun
(130) |
Jul
(99) |
Aug
(115) |
Sep
(37) |
Oct
(78) |
Nov
(24) |
Dec
(70) |
2008 |
Jan
(94) |
Feb
(85) |
Mar
(197) |
Apr
(274) |
May
(119) |
Jun
(143) |
Jul
(193) |
Aug
(99) |
Sep
(160) |
Oct
(120) |
Nov
(178) |
Dec
(109) |
2009 |
Jan
(238) |
Feb
(169) |
Mar
(115) |
Apr
(109) |
May
(131) |
Jun
(167) |
Jul
(144) |
Aug
(193) |
Sep
(155) |
Oct
(154) |
Nov
(97) |
Dec
(127) |
2010 |
Jan
(108) |
Feb
(127) |
Mar
(176) |
Apr
(113) |
May
(130) |
Jun
(200) |
Jul
(115) |
Aug
(80) |
Sep
(92) |
Oct
(101) |
Nov
(124) |
Dec
(53) |
2011 |
Jan
(67) |
Feb
(144) |
Mar
(88) |
Apr
(60) |
May
(89) |
Jun
(54) |
Jul
(68) |
Aug
(81) |
Sep
(48) |
Oct
(40) |
Nov
(10) |
Dec
(20) |
2012 |
Jan
(21) |
Feb
(28) |
Mar
(17) |
Apr
(35) |
May
(41) |
Jun
(44) |
Jul
(68) |
Aug
(67) |
Sep
(89) |
Oct
(58) |
Nov
(47) |
Dec
(56) |
2013 |
Jan
(49) |
Feb
(28) |
Mar
(46) |
Apr
(31) |
May
(28) |
Jun
(37) |
Jul
(34) |
Aug
(52) |
Sep
(42) |
Oct
(108) |
Nov
(59) |
Dec
(56) |
2014 |
Jan
(41) |
Feb
(72) |
Mar
(46) |
Apr
(21) |
May
(19) |
Jun
(17) |
Jul
(15) |
Aug
(40) |
Sep
(11) |
Oct
(3) |
Nov
(5) |
Dec
(31) |
2015 |
Jan
(11) |
Feb
(12) |
Mar
(19) |
Apr
(19) |
May
(38) |
Jun
(54) |
Jul
(14) |
Aug
(42) |
Sep
(14) |
Oct
(16) |
Nov
(26) |
Dec
(14) |
2016 |
Jan
(3) |
Feb
(1) |
Mar
(24) |
Apr
(5) |
May
(15) |
Jun
(14) |
Jul
(33) |
Aug
(19) |
Sep
(8) |
Oct
(10) |
Nov
|
Dec
(2) |
2017 |
Jan
(16) |
Feb
(12) |
Mar
(23) |
Apr
(8) |
May
(11) |
Jun
(20) |
Jul
(21) |
Aug
(20) |
Sep
|
Oct
(6) |
Nov
(9) |
Dec
(2) |
2018 |
Jan
(7) |
Feb
(5) |
Mar
(6) |
Apr
(5) |
May
(1) |
Jun
(2) |
Jul
(2) |
Aug
|
Sep
(4) |
Oct
(3) |
Nov
|
Dec
(4) |
2019 |
Jan
(2) |
Feb
(2) |
Mar
(3) |
Apr
(4) |
May
|
Jun
(4) |
Jul
(9) |
Aug
(2) |
Sep
|
Oct
(4) |
Nov
(1) |
Dec
(7) |
2020 |
Jan
(2) |
Feb
(6) |
Mar
(9) |
Apr
(1) |
May
(1) |
Jun
(15) |
Jul
(1) |
Aug
(1) |
Sep
(2) |
Oct
(6) |
Nov
(3) |
Dec
(5) |
2021 |
Jan
(3) |
Feb
(1) |
Mar
(2) |
Apr
(1) |
May
|
Jun
(1) |
Jul
(1) |
Aug
(3) |
Sep
(1) |
Oct
|
Nov
(1) |
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
(1) |
Jul
(4) |
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
(6) |
2025 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Brad C. <yo...@br...> - 2004-11-23 18:55:04
|
Are you sure the html page being returned the same in both cases? You could try testing your fixture instead of letting fitnesse run it to help locate the problem. You might also try upgrading to 0.9.4 of nekohtml to see if that fixes it. Might also be that one of the jars we're listing as optional isn't so optional anymore... --- "Rousseau, Jean Rene" <JRR...@Ba...> wrote: > Fitnesse only use fitnesse.jar in its classpath, and there is no embedded > xml apis in that jar. Here the jars on the classpath used to run my > fixture: > > htmlunit-1.3.jar; > commons-httpclient-2.0.1.jar; > commons-logging-1.0.4.jar; > xmlParserAPIs-2.2.1.jar; > commons-io-1.0.jar; > saxpath-1.0-FCS.jar; > xercesImpl-2.6.2.jar; > nekohtml-0.9.1.jar; > js-1.5R4.1.jar; > C:\dev\pca\bin --> no xml API here ! > > thanks, > > Jean-Rene > > > -----Original Message----- > > From: Brad Clarke [mailto:yo...@br...] > > Sent: Tuesday, November 23, 2004 1:16 PM > > To: htm...@li... > > Subject: Re: [Htmlunit-user] XMIException when reading response page > > > > > > Sounds like an xml library on the fitnesse classpath is > > conflicting with htmlunit's > > classpath. Is there a way to have fitnesse run your fixture > > in it's own jvm? > > > > Brad C > > > > --- "Rousseau, Jean Rene" <JRR...@Ba...> wrote: > > > > > Hi All, > > > > > > I'm currently evaluating HtmlUnit to perform our > > inegration testing. When > > > used insed JUnit, my simple test worked perfectly. I then > > moved the code > > > inside a Fitnesse Fixture. Unfortunalely now, my simple > > test does not work > > > anymore (when called from Fitnesse). > > > > > > The Fitnesse server calls my login method that then perform > > the following > > > HtmlUnit code: > > > > > > WebClient webClient = new WebClient(); > > > URL url = new URL("http://banctec-bxx87tc/pca/index.html"); > > > HtmlPage page = (HtmlPage)webClient.getPage(url); > > > (...) > > > > > > When reading the index page, it throws the following exception: > > > > > > org.apache.xerces.xni.XNIException at > > > org.cyberneko.html.HTMLScanner$ContentScanner.scan(Unknown > > Source) at > > > org.cyberneko.html.HTMLScanner.scanDocument(Unknown Source) at > > > org.cyberneko.html.HTMLConfiguration.parse(Unknown Source) at > > > org.cyberneko.html.HTMLConfiguration.parse(Unknown Source) at > > > org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at > > > > > com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuild > > er.parse(HTMLP > > > arser.java:302) at > > > > > com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser > > .java:223) at > > > > > com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPag > > e(DefaultPageC > > > reator.java:110) at > > > > > com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(De > > faultPageCreat > > > or.java:82) at > > > > > com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(We > > bClient.java:5 > > > 83) at > > com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:550) > > > at > > com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:465) at > > > > > com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:337) at > > > > > com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:281) at > > > > > web.fitnesse.PCAQueryScreenFixture.login(PCAQueryScreenFixture > > .java:46) at > > > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at > > > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess > > orImpl.java:39 > > > ) at > > > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth > > odAccessorImpl > > > .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at > > > fit.ActionFixture.doCells(Unknown Source) at > > fit.Fixture.doRow(Unknown > > > Source) at fit.Fixture.doRows(Unknown Source) at > > fit.Fixture.doTable(Unknown > > > Source) at fit.Fixture.doTables(Unknown Source) at > > > fit.FitServer.process(Unknown Source) at > > fit.FitServer.run(Unknown Source) > > > at fit.FitServer.main(Unknown Source) > > > > > > Any ideas ? > > > > > > thanks, > > > > > > Jean-Rene Rousseau > > > > > > > > > ------------------------------------------------------- > > > SF email is sponsored by - The IT Product Guide > > > Read honest & candid reviews on hundreds of IT Products > > from real users. > > > Discover which products truly live up to the hype. Start > > reading now. > > > http://productguide.itmanagersjournal.com/ > > > _______________________________________________ > > > Htmlunit-user mailing list > > > Htm...@li... > > > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > > > > > > > > > ------------------------------------------------------- > > SF email is sponsored by - The IT Product Guide > > Read honest & candid reviews on hundreds of IT Products from > > real users. > > Discover which products truly live up to the hype. Start reading now. > > http://productguide.itmanagersjournal.com/ > > _______________________________________________ > > Htmlunit-user mailing list > > Htm...@li... > > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: Rousseau, J. R. <JRR...@Ba...> - 2004-11-23 18:40:47
|
Fitnesse only use fitnesse.jar in its classpath, and there is no embedded xml apis in that jar. Here the jars on the classpath used to run my fixture: htmlunit-1.3.jar; commons-httpclient-2.0.1.jar; commons-logging-1.0.4.jar; xmlParserAPIs-2.2.1.jar; commons-io-1.0.jar; saxpath-1.0-FCS.jar; xercesImpl-2.6.2.jar; nekohtml-0.9.1.jar; js-1.5R4.1.jar; C:\dev\pca\bin --> no xml API here ! thanks, Jean-Rene > -----Original Message----- > From: Brad Clarke [mailto:yo...@br...] > Sent: Tuesday, November 23, 2004 1:16 PM > To: htm...@li... > Subject: Re: [Htmlunit-user] XMIException when reading response page > > > Sounds like an xml library on the fitnesse classpath is > conflicting with htmlunit's > classpath. Is there a way to have fitnesse run your fixture > in it's own jvm? > > Brad C > > --- "Rousseau, Jean Rene" <JRR...@Ba...> wrote: > > > Hi All, > > > > I'm currently evaluating HtmlUnit to perform our > inegration testing. When > > used insed JUnit, my simple test worked perfectly. I then > moved the code > > inside a Fitnesse Fixture. Unfortunalely now, my simple > test does not work > > anymore (when called from Fitnesse). > > > > The Fitnesse server calls my login method that then perform > the following > > HtmlUnit code: > > > > WebClient webClient = new WebClient(); > > URL url = new URL("http://banctec-bxx87tc/pca/index.html"); > > HtmlPage page = (HtmlPage)webClient.getPage(url); > > (...) > > > > When reading the index page, it throws the following exception: > > > > org.apache.xerces.xni.XNIException at > > org.cyberneko.html.HTMLScanner$ContentScanner.scan(Unknown > Source) at > > org.cyberneko.html.HTMLScanner.scanDocument(Unknown Source) at > > org.cyberneko.html.HTMLConfiguration.parse(Unknown Source) at > > org.cyberneko.html.HTMLConfiguration.parse(Unknown Source) at > > org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at > > > com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuild > er.parse(HTMLP > > arser.java:302) at > > > com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser > .java:223) at > > > com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPag > e(DefaultPageC > > reator.java:110) at > > > com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(De > faultPageCreat > > or.java:82) at > > > com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(We > bClient.java:5 > > 83) at > com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:550) > > at > com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:465) at > > > com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:337) at > > > com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:281) at > > > web.fitnesse.PCAQueryScreenFixture.login(PCAQueryScreenFixture > .java:46) at > > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess > orImpl.java:39 > > ) at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth > odAccessorImpl > > .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at > > fit.ActionFixture.doCells(Unknown Source) at > fit.Fixture.doRow(Unknown > > Source) at fit.Fixture.doRows(Unknown Source) at > fit.Fixture.doTable(Unknown > > Source) at fit.Fixture.doTables(Unknown Source) at > > fit.FitServer.process(Unknown Source) at > fit.FitServer.run(Unknown Source) > > at fit.FitServer.main(Unknown Source) > > > > Any ideas ? > > > > thanks, > > > > Jean-Rene Rousseau > > > > > > ------------------------------------------------------- > > SF email is sponsored by - The IT Product Guide > > Read honest & candid reviews on hundreds of IT Products > from real users. > > Discover which products truly live up to the hype. Start > reading now. > > http://productguide.itmanagersjournal.com/ > > _______________________________________________ > > Htmlunit-user mailing list > > Htm...@li... > > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from > real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: Brad C. <yo...@br...> - 2004-11-23 18:16:29
|
Sounds like an xml library on the fitnesse classpath is conflicting with htmlunit's classpath. Is there a way to have fitnesse run your fixture in it's own jvm? Brad C --- "Rousseau, Jean Rene" <JRR...@Ba...> wrote: > Hi All, > > I'm currently evaluating HtmlUnit to perform our inegration testing. When > used insed JUnit, my simple test worked perfectly. I then moved the code > inside a Fitnesse Fixture. Unfortunalely now, my simple test does not work > anymore (when called from Fitnesse). > > The Fitnesse server calls my login method that then perform the following > HtmlUnit code: > > WebClient webClient = new WebClient(); > URL url = new URL("http://banctec-bxx87tc/pca/index.html"); > HtmlPage page = (HtmlPage)webClient.getPage(url); > (...) > > When reading the index page, it throws the following exception: > > org.apache.xerces.xni.XNIException at > org.cyberneko.html.HTMLScanner$ContentScanner.scan(Unknown Source) at > org.cyberneko.html.HTMLScanner.scanDocument(Unknown Source) at > org.cyberneko.html.HTMLConfiguration.parse(Unknown Source) at > org.cyberneko.html.HTMLConfiguration.parse(Unknown Source) at > org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at > com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLP > arser.java:302) at > com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:223) at > com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageC > reator.java:110) at > com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreat > or.java:82) at > com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:5 > 83) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:550) > at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:465) at > com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:337) at > com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:281) at > web.fitnesse.PCAQueryScreenFixture.login(PCAQueryScreenFixture.java:46) at > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 > ) at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl > .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at > fit.ActionFixture.doCells(Unknown Source) at fit.Fixture.doRow(Unknown > Source) at fit.Fixture.doRows(Unknown Source) at fit.Fixture.doTable(Unknown > Source) at fit.Fixture.doTables(Unknown Source) at > fit.FitServer.process(Unknown Source) at fit.FitServer.run(Unknown Source) > at fit.FitServer.main(Unknown Source) > > Any ideas ? > > thanks, > > Jean-Rene Rousseau > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: Rousseau, J. R. <JRR...@Ba...> - 2004-11-23 17:42:28
|
Hi All, I'm currently evaluating HtmlUnit to perform our inegration testing. When used insed JUnit, my simple test worked perfectly. I then moved the code inside a Fitnesse Fixture. Unfortunalely now, my simple test does not work anymore (when called from Fitnesse). The Fitnesse server calls my login method that then perform the following HtmlUnit code: WebClient webClient = new WebClient(); URL url = new URL("http://banctec-bxx87tc/pca/index.html"); HtmlPage page = (HtmlPage)webClient.getPage(url); (...) When reading the index page, it throws the following exception: org.apache.xerces.xni.XNIException at org.cyberneko.html.HTMLScanner$ContentScanner.scan(Unknown Source) at org.cyberneko.html.HTMLScanner.scanDocument(Unknown Source) at org.cyberneko.html.HTMLConfiguration.parse(Unknown Source) at org.cyberneko.html.HTMLConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLP arser.java:302) at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:223) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageC reator.java:110) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreat or.java:82) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:5 83) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:550) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:465) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:337) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:281) at web.fitnesse.PCAQueryScreenFixture.login(PCAQueryScreenFixture.java:46) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at fit.ActionFixture.doCells(Unknown Source) at fit.Fixture.doRow(Unknown Source) at fit.Fixture.doRows(Unknown Source) at fit.Fixture.doTable(Unknown Source) at fit.Fixture.doTables(Unknown Source) at fit.FitServer.process(Unknown Source) at fit.FitServer.run(Unknown Source) at fit.FitServer.main(Unknown Source) Any ideas ? thanks, Jean-Rene Rousseau |
From: Vinay M. <vin...@gm...> - 2004-11-19 04:09:52
|
Hi Chris, Yes, it is infact mybutton and not mysubmit that's getting sent. Browsers would typically send mysubmit across. Looks like this particular function of HtmlForm is flagging off an input tag of the type "submit" as not-submittable..... private boolean isSubmittable( final HtmlElement element ) { <some code> if( tagName.equals( "input" ) ) { final HtmlInput input = (HtmlInput)element; final String type = input.getTypeAttribute().toLowerCase(); if( type.equals("submit") || type.equals("image") ){ return false; } } <some code> } This code snippet is from the 1.3 final release. As far as the issue of input tag being of the kind button (the <name,value> pair associated wih an input tag of the type button, was being sent across during submission) , I got around it by replacing the nested if in the code snippet above with: if( type.equals("submit") || type.equals("image") || type.equals("button")) { return false; } Regards Vinay |
From: Erskine, C. <chr...@ed...> - 2004-11-18 12:14:11
|
When you click on the submit button, is mybutton submitted or is it mysubmit? By the html spec, mysubmit will be submitted to the server. This is due to the name value pair being on the submit button tag. Chris Erskine EDS Consulting Services F5-EDS-001 2424 Garden of the Gods Rd Colorado Springs, CO 80919 Phone: 719-535-6064 > -----Original Message----- > From: Vinay Murthy [mailto:vin...@gm...] > Sent: Thursday, November 18, 2004 2:01 AM > To: htm...@li... > Subject: [Htmlunit-user] input type="button" > > Hi, > > I am still with 1.3 pre 2. I noticed that when I submit a form(with > method= get) containing certain buttons in it, the <name,value> pairs > associated with the buttons get sent across as submittable parameters. > This doesnt generally happen on a browser right ? Is this some kind of > an intentional behaviour of HtmlUnit ? > > For example , for the html code given below: > <html> > <head> > <title> Test Button Submission </title> > </head> > <body> > <form name="myform" method="GET" > action="http://localhost:8080/QS/thanks.html"> > Name: <input type="text" name="myname"> > Email: <input type="text" name="myaddress"> > <input type="button" name="mybutton" > value="DontClickMe!!!"> > <input type="submit" name="mysubmit" value="ClickMe!!!"> > </form> > </body> > </html> > > the method getAllSubmittableElements() outputs > "[HtmlTextInput[<input type="text" name="myname">], > HtmlTextInput[<input type="text" name="myaddress">], > HtmlButtonInput[<input name="mybutton" type="button" > value="DontClickMe!!!">]]" > > while getParameterListForSubmit() outputs > "[KeyValuePair("myname", ""), KeyValuePair("myaddress", ""), > KeyValuePair("mybutton", "DontClickMe!!!")]" > > And on a browser(FF), the url would be something like -> > http://localhost:8080/QS/thanks.html?myname=&myaddress=&mysubmit=ClickMe%2 > 1%21%21 > > I am running into some kind of a stored procedure on the server side, > which throws up an error page whenever it sees the button names and > values in the parameter string. > Regards > Vinay > > > ------------------------------------------------------- > This SF.Net email is sponsored by: InterSystems CACHE > FREE OODBMS DOWNLOAD - A multidimensional database that combines > robust object and relational technologies, making it a perfect match > for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Mike B. <mb...@Ga...> - 2004-11-18 11:39:30
|
Vinay Murthy wrote: >I am still with 1.3 pre 2. I noticed that when I submit a form(with >method= get) containing certain buttons in it, the <name,value> pairs >associated with the buttons get sent across as submittable parameters. >This doesnt generally happen on a browser right ? Is this some kind of >an intentional behaviour of HtmlUnit ? > > > HtmlUnit is supposed to behave the same way that the browsers do. There were some fixes around button usage that went in not too long ago so what you're seeing may already be fixed. If this is still a problem with 1.3 final then please open a bug. Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: Vinay M. <vin...@gm...> - 2004-11-18 09:01:18
|
Hi, I am still with 1.3 pre 2. I noticed that when I submit a form(with method= get) containing certain buttons in it, the <name,value> pairs associated with the buttons get sent across as submittable parameters. This doesnt generally happen on a browser right ? Is this some kind of an intentional behaviour of HtmlUnit ? For example , for the html code given below: <html> <head> <title> Test Button Submission </title> </head> <body> <form name="myform" method="GET" action="http://localhost:8080/QS/thanks.html"> Name: <input type="text" name="myname"> Email: <input type="text" name="myaddress"> <input type="button" name="mybutton" value="DontClickMe!!!"> <input type="submit" name="mysubmit" value="ClickMe!!!"> </form> </body> </html> the method getAllSubmittableElements() outputs "[HtmlTextInput[<input type="text" name="myname">], HtmlTextInput[<input type="text" name="myaddress">], HtmlButtonInput[<input name="mybutton" type="button" value="DontClickMe!!!">]]" while getParameterListForSubmit() outputs "[KeyValuePair("myname", ""), KeyValuePair("myaddress", ""), KeyValuePair("mybutton", "DontClickMe!!!")]" And on a browser(FF), the url would be something like -> http://localhost:8080/QS/thanks.html?myname=&myaddress=&mysubmit=ClickMe%21%21%21 I am running into some kind of a stored procedure on the server side, which throws up an error page whenever it sees the button names and values in the parameter string. Regards Vinay |
From: Mike B. <mb...@Ga...> - 2004-11-13 01:22:48
|
HtmlUnit 1.3 final has been released. The full changelog can be found at http://htmlunit.sourceforge.net/changes-report.html Thanks to everyone who has contributed to this project. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: Brad C. <yo...@br...> - 2004-11-12 21:52:31
|
The thing I sent before is the "Checkstyle Properties File" and the attachment shows you how to set it up in that dialog. Brad C --- "Erskine, Chris" <chr...@ed...> wrote: > If you take a look at the project properties, there is a tab for > checkclipse. This is the configuration that I am looking for and the files > that would be needed. > > Thanks > > Chris Erskine > > EDS Consulting Services > F5-EDS-001 > 2424 Garden of the Gods Rd > Colorado Springs, CO 80919 > > Phone: 719-535-6064 > > > -----Original Message----- > > From: Brad Clarke [mailto:yo...@br...] > > Sent: Friday, November 12, 2004 10:27 AM > > To: htm...@li... > > Subject: Re: [Htmlunit-user] checkclipse > > > > I have this property file: > > > > checkstyle.cache.file=$SAMEDIR/eclipse_build/checkstyle.cache > > basedir=$SAMEDIR > > > > I don't recall setting up anything else differently but it's been a while. > > > > > > --- "Erskine, Chris" <chr...@ed...> wrote: > > > > > Brad, > > > I am looking at checkclipse. You said that you are using it for > > htmlUnit. > > > What are your configuration file settings for it and do you have some > > custom > > > files that you are using with htmlUnit? > > > > > > Thanks > > > > > > Chris Erskine > > > > > > EDS Consulting Services > > > F5-EDS-001 > > > 2424 Garden of the Gods Rd > > > Colorado Springs, CO 80919 > > > > > > Phone: 719-535-6064 > > > |
From: Erskine, C. <chr...@ed...> - 2004-11-12 21:07:10
|
If you take a look at the project properties, there is a tab for checkclipse. This is the configuration that I am looking for and the files that would be needed. Thanks Chris Erskine EDS Consulting Services F5-EDS-001 2424 Garden of the Gods Rd Colorado Springs, CO 80919 Phone: 719-535-6064 > -----Original Message----- > From: Brad Clarke [mailto:yo...@br...] > Sent: Friday, November 12, 2004 10:27 AM > To: htm...@li... > Subject: Re: [Htmlunit-user] checkclipse > > I have this property file: > > checkstyle.cache.file=$SAMEDIR/eclipse_build/checkstyle.cache > basedir=$SAMEDIR > > I don't recall setting up anything else differently but it's been a while. > > > --- "Erskine, Chris" <chr...@ed...> wrote: > > > Brad, > > I am looking at checkclipse. You said that you are using it for > htmlUnit. > > What are your configuration file settings for it and do you have some > custom > > files that you are using with htmlUnit? > > > > Thanks > > > > Chris Erskine > > > > EDS Consulting Services > > F5-EDS-001 > > 2424 Garden of the Gods Rd > > Colorado Springs, CO 80919 > > > > Phone: 719-535-6064 > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Sybase ASE Linux Express Edition - download now for FREE > LinuxWorld Reader's Choice Award Winner for best database on Linux. > http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Brad C. <yo...@br...> - 2004-11-12 17:27:25
|
I have this property file: checkstyle.cache.file=$SAMEDIR/eclipse_build/checkstyle.cache basedir=$SAMEDIR I don't recall setting up anything else differently but it's been a while. --- "Erskine, Chris" <chr...@ed...> wrote: > Brad, > I am looking at checkclipse. You said that you are using it for htmlUnit. > What are your configuration file settings for it and do you have some custom > files that you are using with htmlUnit? > > Thanks > > Chris Erskine > > EDS Consulting Services > F5-EDS-001 > 2424 Garden of the Gods Rd > Colorado Springs, CO 80919 > > Phone: 719-535-6064 > |
From: Erskine, C. <chr...@ed...> - 2004-11-12 12:48:13
|
Brad, I am looking at checkclipse. You said that you are using it for htmlUnit. What are your configuration file settings for it and do you have some custom files that you are using with htmlUnit? Thanks Chris Erskine EDS Consulting Services F5-EDS-001 2424 Garden of the Gods Rd Colorado Springs, CO 80919 Phone: 719-535-6064 |
From: Brad C. <yo...@br...> - 2004-11-03 19:51:01
|
setTimeout occurs on a new thread and nothing is syncronized but I really don't know what would make it crash. --- Mike Bowler <mb...@Ga...> wrote: > Erskine, Chris wrote: > > I am having a case where I am crashing the JVM due to a race condition. > > If I run my test in debug mode and wait for the processing of the > > JavaScript on the page to complete, it works. If I just run the test, > > the JVM is dumping. Is there some flag that can be used to test that > > the page is fully loaded and the background processing is done? This > > JavaScript processing by a onLoad processing on the body of the page. > > No, there are no flags but there technically isn't any *background* > processing - everything is done on the same thread. > > Look at the constructors for HtmlPage and also HtmlPage.initialize() > > > -- > Mike Bowler > Principal, Gargoyle Software Inc. > Voice: (416) 822-0973 | Email : mb...@Ga... > Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com > |
From: Mike B. <mb...@Ga...> - 2004-10-31 13:38:12
|
Erskine, Chris wrote: > I am having a case where I am crashing the JVM due to a race condition. > If I run my test in debug mode and wait for the processing of the > JavaScript on the page to complete, it works. If I just run the test, > the JVM is dumping. Is there some flag that can be used to test that > the page is fully loaded and the background processing is done? This > JavaScript processing by a onLoad processing on the body of the page. No, there are no flags but there technically isn't any *background* processing - everything is done on the same thread. Look at the constructors for HtmlPage and also HtmlPage.initialize() -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: Erskine, C. <chr...@ed...> - 2004-10-30 13:36:09
|
I am having a case where I am crashing the JVM due to a race condition. If I run my test in debug mode and wait for the processing of the JavaScript on the page to complete, it works. If I just run the test, the JVM is dumping. Is there some flag that can be used to test that the page is fully loaded and the background processing is done? This JavaScript processing by a onLoad processing on the body of the page. Chris Erskine EDS Consulting Services F5-EDS-001 2424 Garden of the Gods Rd Colorado Springs, CO 80919 Phone: 719-535-6064 |
From: Gian F. C. <gia...@to...> - 2004-10-29 04:33:23
|
I'm afraid it's a framework other than Htmlunit: Httpunit. Cheers, Gian ----- Original Message ----- From: "David D.Kilzer" <ddk...@ki...> To: <htm...@li...> Sent: Thursday, October 28, 2004 4:52 PM Subject: Re: [Htmlunit-user] Exception when using Page.submit() > Did you mean a framework other than WebSphere, or a framework other > than Htmlunit? > > My concern about running the code in the context of the JSP was that > the JSP engine performs redirection of normal I/O paths. I was > wondering if Htmlunit or any of its dependent libraries (like > commons-httpclient) didn't handle this I/O redirection, then it might > cause issues. > > However, if you used a framework other than WebSphere, then it sounds > like a bug in WebSphere. I've had some experience with it at my > current job, and IBM comes out with "fix packs" and patches all the > time. It's possible that you may need to update to the latest fix > pack, or install a patch. You also have the option of opening a > support request with them if you have a maintenance contract. > > Here's the web site for IBM product support. Hit the "W" link, and > select the correct WebSphere product, then you can search for fixes. > > http://www.ibm.com/software/support/ > > Dave > > > On Oct 28, 2004, at 5:52 AM, Gian Franco Casula wrote: > > > I've just tried another framework and the same proces > > does not occur. > > > > Thanks for looking at the problem. > > > > Gian > > > > ----- Original Message ----- > > From: "David D.Kilzer" <ddk...@ki...> > > To: <htm...@li...> > > Sent: Tuesday, October 26, 2004 3:46 PM > > Subject: Re: [Htmlunit-user] Exception when using Page.submit() > > > > > > It looks like WebSphere is running out of memory. Have you tried > > profiling your application using either WSAD or the WAS Admin Console > > utilities? Have you tried increasing the heap size for your > > application? > > > > Have you considered running the Htmlunit code in an Action (if you're > > using Struts) or a servlet before you get to the JSP so that you simply > > output data once you're in the JSP? (Typically, it's not considered > > good design to write Java code inside a JSP.) > > > > I've written a "screen scraping" application using Htmlunt recently, > > and found that after creating some 200-300 HtmlPage objects, the JVM > > runs out of memory using a heap size of 128MB. If I increase the heap > > size to 256MB, I can load 600-700 HtmlPage objects before running out > > of memory. I suspect that the loop between the WebClient and the > > WebConnection may be causing the garbage collector issues (although I > > haven't had time to try to profile the code or testing the "breaking" > > of the circular dependency): > > > > > > HtmlPage.getWebClient().getWebConnection().getWebClient().getWebConnect > > i > > on().adNaseum(); > > > > Is this a known issue? > > > > Dave > > > > > > On Oct 26, 2004, at 5:41 AM, Gian Franco Casula wrote: > > > >> Hi, > >> > >> I've written some code in a jsp page that > >> calls some java code that uses HtmlUnit to > >> connect to a web site. > >> > >> The java code works correctly when I use it > >> in isolation as a java application. > >> > >> Problems arise with the above mentioned jsp > >> page. When the code is running I get a long > >> list with the same message: > >> ---------------list begin--------------- > >> > >> ... > >> [26-10-04 8:54:20:914 CEST] 5dc773e1 HttpMethodBas W > >> org.apache.commons.httpclient.HttpMethodBase > >> Response content length is not known > >> [26-10-04 8:54:30:398 CEST] 5dc773e1 HttpMethodBas W > >> org.apache.commons.httpclient.HttpMethodBase > >> Response content length is not known > >> ... > >> ---------------list end--------------- > >> > >> This continues for a long time, until I get the message: > >> > >> ---------------list begin--------------- > >> JVMDG315: JVM Requesting Heap dump file > >> ...JVMDG318: Heap dump file written to E:\Program > >> Files\IBM\WebSphere... > >> JVMDG303: JVM Requesting Java core file > >> JVMDG304: Java core file written to E:\Program Files\IBM\WebSphere\... > >> JVMDG215: Dump Handler has Processed Outofmemory Signal -1. > >> ---------------list end--------------- > >> > >> A printStackTrace() shows the following: > >> > >> ---------------list begin--------------- > >> com.gargoylesoftware.htmlunit.ObjectInstantiationException: > >> Exception when calling constructor > >> [com.gargoylesoftware.htmlunit.html.HtmlFrame > >> > >> (com.gargoylesoftware.htmlunit.html.HtmlPage,org.w3c.dom.Element)] > >> com.gargoylesoftware.htmlunit.html.SimpleHtmlElementCreator.create > >> (SimpleHtmlElementCreator.java:91) > >> com.gargoylesoftware.htmlunit.html.HtmlPage.getHtmlElement > >> (HtmlPage.java:464) > >> > >> com.gargoylesoftware.htmlunit.html.HtmlElement.getHtmlElementsByTagNam > >> e > >> s > >> (HtmlElement.java:721) > >> > >> com.gargoylesoftware.htmlunit.html.HtmlPage.initializeFramesIfNeeded > >> (HtmlPage.java:1108) > >> > >> com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java: > >> 172) > >> com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:356) > >> com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:276) > >> > >> com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:169) > >> > >> com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:120) > >> ---------------list end--------------- > >> > >> > >> Can anyone help me with this? > >> > >> Cheers, > >> > >> Gian Franco Casula > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: IT Product Guide on > > ITManagersJournal > > Use IT products in your business? Tell us what you think of them. Give > > us > > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out > > more > > http://productguide.itmanagersjournal.com/guidepromo.tmpl > > _______________________________________________ > > Htmlunit-user mailing list > > Htm...@li... > > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: > > Sybase ASE Linux Express Edition - download now for FREE > > LinuxWorld Reader's Choice Award Winner for best database on Linux. > > http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click > > _______________________________________________ > > Htmlunit-user mailing list > > Htm...@li... > > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Sybase ASE Linux Express Edition - download now for FREE > LinuxWorld Reader's Choice Award Winner for best database on Linux. > http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: David D.K. <ddk...@ki...> - 2004-10-28 14:53:26
|
Did you mean a framework other than WebSphere, or a framework other than Htmlunit? My concern about running the code in the context of the JSP was that the JSP engine performs redirection of normal I/O paths. I was wondering if Htmlunit or any of its dependent libraries (like commons-httpclient) didn't handle this I/O redirection, then it might cause issues. However, if you used a framework other than WebSphere, then it sounds like a bug in WebSphere. I've had some experience with it at my current job, and IBM comes out with "fix packs" and patches all the time. It's possible that you may need to update to the latest fix pack, or install a patch. You also have the option of opening a support request with them if you have a maintenance contract. Here's the web site for IBM product support. Hit the "W" link, and select the correct WebSphere product, then you can search for fixes. http://www.ibm.com/software/support/ Dave On Oct 28, 2004, at 5:52 AM, Gian Franco Casula wrote: > I've just tried another framework and the same proces > does not occur. > > Thanks for looking at the problem. > > Gian > > ----- Original Message ----- > From: "David D.Kilzer" <ddk...@ki...> > To: <htm...@li...> > Sent: Tuesday, October 26, 2004 3:46 PM > Subject: Re: [Htmlunit-user] Exception when using Page.submit() > > > It looks like WebSphere is running out of memory. Have you tried > profiling your application using either WSAD or the WAS Admin Console > utilities? Have you tried increasing the heap size for your > application? > > Have you considered running the Htmlunit code in an Action (if you're > using Struts) or a servlet before you get to the JSP so that you simply > output data once you're in the JSP? (Typically, it's not considered > good design to write Java code inside a JSP.) > > I've written a "screen scraping" application using Htmlunt recently, > and found that after creating some 200-300 HtmlPage objects, the JVM > runs out of memory using a heap size of 128MB. If I increase the heap > size to 256MB, I can load 600-700 HtmlPage objects before running out > of memory. I suspect that the loop between the WebClient and the > WebConnection may be causing the garbage collector issues (although I > haven't had time to try to profile the code or testing the "breaking" > of the circular dependency): > > > HtmlPage.getWebClient().getWebConnection().getWebClient().getWebConnect > i > on().adNaseum(); > > Is this a known issue? > > Dave > > > On Oct 26, 2004, at 5:41 AM, Gian Franco Casula wrote: > >> Hi, >> >> I've written some code in a jsp page that >> calls some java code that uses HtmlUnit to >> connect to a web site. >> >> The java code works correctly when I use it >> in isolation as a java application. >> >> Problems arise with the above mentioned jsp >> page. When the code is running I get a long >> list with the same message: >> ---------------list begin--------------- >> >> ... >> [26-10-04 8:54:20:914 CEST] 5dc773e1 HttpMethodBas W >> org.apache.commons.httpclient.HttpMethodBase >> Response content length is not known >> [26-10-04 8:54:30:398 CEST] 5dc773e1 HttpMethodBas W >> org.apache.commons.httpclient.HttpMethodBase >> Response content length is not known >> ... >> ---------------list end--------------- >> >> This continues for a long time, until I get the message: >> >> ---------------list begin--------------- >> JVMDG315: JVM Requesting Heap dump file >> ...JVMDG318: Heap dump file written to E:\Program >> Files\IBM\WebSphere... >> JVMDG303: JVM Requesting Java core file >> JVMDG304: Java core file written to E:\Program Files\IBM\WebSphere\... >> JVMDG215: Dump Handler has Processed Outofmemory Signal -1. >> ---------------list end--------------- >> >> A printStackTrace() shows the following: >> >> ---------------list begin--------------- >> com.gargoylesoftware.htmlunit.ObjectInstantiationException: >> Exception when calling constructor >> [com.gargoylesoftware.htmlunit.html.HtmlFrame >> >> (com.gargoylesoftware.htmlunit.html.HtmlPage,org.w3c.dom.Element)] >> com.gargoylesoftware.htmlunit.html.SimpleHtmlElementCreator.create >> (SimpleHtmlElementCreator.java:91) >> com.gargoylesoftware.htmlunit.html.HtmlPage.getHtmlElement >> (HtmlPage.java:464) >> >> com.gargoylesoftware.htmlunit.html.HtmlElement.getHtmlElementsByTagNam >> e >> s >> (HtmlElement.java:721) >> >> com.gargoylesoftware.htmlunit.html.HtmlPage.initializeFramesIfNeeded >> (HtmlPage.java:1108) >> >> com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java: >> 172) >> com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:356) >> com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:276) >> >> com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:169) >> >> com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:120) >> ---------------list end--------------- >> >> >> Can anyone help me with this? >> >> Cheers, >> >> Gian Franco Casula > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on > ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give > us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out > more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Sybase ASE Linux Express Edition - download now for FREE > LinuxWorld Reader's Choice Award Winner for best database on Linux. > http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Gian F. C. <gia...@to...> - 2004-10-28 10:52:19
|
I've just tried another framework and the same proces does not occur. Thanks for looking at the problem. Gian ----- Original Message ----- From: "David D.Kilzer" <ddk...@ki...> To: <htm...@li...> Sent: Tuesday, October 26, 2004 3:46 PM Subject: Re: [Htmlunit-user] Exception when using Page.submit() It looks like WebSphere is running out of memory. Have you tried profiling your application using either WSAD or the WAS Admin Console utilities? Have you tried increasing the heap size for your application? Have you considered running the Htmlunit code in an Action (if you're using Struts) or a servlet before you get to the JSP so that you simply output data once you're in the JSP? (Typically, it's not considered good design to write Java code inside a JSP.) I've written a "screen scraping" application using Htmlunt recently, and found that after creating some 200-300 HtmlPage objects, the JVM runs out of memory using a heap size of 128MB. If I increase the heap size to 256MB, I can load 600-700 HtmlPage objects before running out of memory. I suspect that the loop between the WebClient and the WebConnection may be causing the garbage collector issues (although I haven't had time to try to profile the code or testing the "breaking" of the circular dependency): HtmlPage.getWebClient().getWebConnection().getWebClient().getWebConnecti on().adNaseum(); Is this a known issue? Dave On Oct 26, 2004, at 5:41 AM, Gian Franco Casula wrote: > Hi, > > I've written some code in a jsp page that > calls some java code that uses HtmlUnit to > connect to a web site. > > The java code works correctly when I use it > in isolation as a java application. > > Problems arise with the above mentioned jsp > page. When the code is running I get a long > list with the same message: > ---------------list begin--------------- > > ... > [26-10-04 8:54:20:914 CEST] 5dc773e1 HttpMethodBas W > org.apache.commons.httpclient.HttpMethodBase > Response content length is not known > [26-10-04 8:54:30:398 CEST] 5dc773e1 HttpMethodBas W > org.apache.commons.httpclient.HttpMethodBase > Response content length is not known > ... > ---------------list end--------------- > > This continues for a long time, until I get the message: > > ---------------list begin--------------- > JVMDG315: JVM Requesting Heap dump file > ...JVMDG318: Heap dump file written to E:\Program > Files\IBM\WebSphere... > JVMDG303: JVM Requesting Java core file > JVMDG304: Java core file written to E:\Program Files\IBM\WebSphere\... > JVMDG215: Dump Handler has Processed Outofmemory Signal -1. > ---------------list end--------------- > > A printStackTrace() shows the following: > > ---------------list begin--------------- > com.gargoylesoftware.htmlunit.ObjectInstantiationException: > Exception when calling constructor > [com.gargoylesoftware.htmlunit.html.HtmlFrame > > (com.gargoylesoftware.htmlunit.html.HtmlPage,org.w3c.dom.Element)] > com.gargoylesoftware.htmlunit.html.SimpleHtmlElementCreator.create > (SimpleHtmlElementCreator.java:91) > com.gargoylesoftware.htmlunit.html.HtmlPage.getHtmlElement > (HtmlPage.java:464) > > com.gargoylesoftware.htmlunit.html.HtmlElement.getHtmlElementsByTagName > s > (HtmlElement.java:721) > > com.gargoylesoftware.htmlunit.html.HtmlPage.initializeFramesIfNeeded > (HtmlPage.java:1108) > > com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java: > 172) > com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:356) > com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:276) > > com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:169) > > com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:120) > ---------------list end--------------- > > > Can anyone help me with this? > > Cheers, > > Gian Franco Casula ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Brad C. <yo...@br...> - 2004-10-27 22:56:43
|
Sounds like it might be a problem with xerces or nekohtml. What versions of these are you running? Could you make a simple test case for this? (I can get to things much quicker when I don't have to write a test) Brad C --- Niklas Vargensten <nik...@ja...> wrote: > OK, so maybe the hyphen is not the issue. The problem is that the documents > don't have a complete ending tag. In my example, > i) <! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" > > > is skipped altogether. I suppose the reason is that the space at the end of > the tag (before the >) confuses the parser, making it expect > a url such as "http://www.w3.org/TR/html4/loose.dtd" at the end. > > But - simply removing the last space, which gives us: > ii) <! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> > > works just fine with htmlunit. This is very strange behaviour, wouldn't you > say? If it is ok to exclude the ending url, then it should of course be ok to > have spaces at the end of the tag (before the >). In particular since a HTML > parser is not supposed to care too much about spaces. It just seems a bit too > picky :) > > / Niklas |
From: Brad C. <yo...@br...> - 2004-10-27 22:54:00
|
Since it works sometimes I really can't tell you much without seeing it fail. Why are you doing this anyway? :) Brad C --- Vinay Murthy <vin...@gm...> wrote: > Hi, > I am trying to append an option into a drop down list using > HtmlSelect's appendOption. > Is there a reason why this might not work on a list ? > This is what I am trying to do: > > HtmlSelect dropDownList = (HtmlSelect)myForm.getSelectByName("cars"); > Map attributesMap = new HashMap(); > attributesMap.put("text","ford"); > attributesMap.put("value","FORD"); > HtmlOption newOption = new HtmlOption(myPage,attributesMap); > dropDownList.appendOption(newOption); > > myPage contains myForm which in turn contains dropDownList > > This works on a testpage(page on my machine) but when I try a similar > thing on a different site, I am unable to add the new option. I looked > into the options in the drop down list using > dropDownList.getAllOptions(). > > Best Regards > Vinay |
From: Vinay M. <vin...@gm...> - 2004-10-27 11:39:35
|
Hi, I am trying to append an option into a drop down list using HtmlSelect's appendOption. Is there a reason why this might not work on a list ? This is what I am trying to do: HtmlSelect dropDownList = (HtmlSelect)myForm.getSelectByName("cars"); Map attributesMap = new HashMap(); attributesMap.put("text","ford"); attributesMap.put("value","FORD"); HtmlOption newOption = new HtmlOption(myPage,attributesMap); dropDownList.appendOption(newOption); myPage contains myForm which in turn contains dropDownList This works on a testpage(page on my machine) but when I try a similar thing on a different site, I am unable to add the new option. I looked into the options in the drop down list using dropDownList.getAllOptions(). Best Regards Vinay |
From: Gian F. C. <gia...@to...> - 2004-10-26 14:15:28
|
Hi Dave, I haven't tried to increase the heap size, because it's not really an option in my situation. The java code in the jsp is just limited to the call of the "screen scraper" method in a java class. Do you have any clue why the same java class works fine in isolation as a java application? Cheers, Gian ----- Original Message ----- From: "David D.Kilzer" <ddk...@ki...> To: <htm...@li...> Sent: Tuesday, October 26, 2004 3:46 PM Subject: Re: [Htmlunit-user] Exception when using Page.submit() It looks like WebSphere is running out of memory. Have you tried profiling your application using either WSAD or the WAS Admin Console utilities? Have you tried increasing the heap size for your application? Have you considered running the Htmlunit code in an Action (if you're using Struts) or a servlet before you get to the JSP so that you simply output data once you're in the JSP? (Typically, it's not considered good design to write Java code inside a JSP.) I've written a "screen scraping" application using Htmlunt recently, and found that after creating some 200-300 HtmlPage objects, the JVM runs out of memory using a heap size of 128MB. If I increase the heap size to 256MB, I can load 600-700 HtmlPage objects before running out of memory. I suspect that the loop between the WebClient and the WebConnection may be causing the garbage collector issues (although I haven't had time to try to profile the code or testing the "breaking" of the circular dependency): HtmlPage.getWebClient().getWebConnection().getWebClient().getWebConnecti on().adNaseum(); Is this a known issue? Dave On Oct 26, 2004, at 5:41 AM, Gian Franco Casula wrote: > Hi, > > I've written some code in a jsp page that > calls some java code that uses HtmlUnit to > connect to a web site. > > The java code works correctly when I use it > in isolation as a java application. > > Problems arise with the above mentioned jsp > page. When the code is running I get a long > list with the same message: > ---------------list begin--------------- > > ... > [26-10-04 8:54:20:914 CEST] 5dc773e1 HttpMethodBas W > org.apache.commons.httpclient.HttpMethodBase > Response content length is not known > [26-10-04 8:54:30:398 CEST] 5dc773e1 HttpMethodBas W > org.apache.commons.httpclient.HttpMethodBase > Response content length is not known > ... > ---------------list end--------------- > > This continues for a long time, until I get the message: > > ---------------list begin--------------- > JVMDG315: JVM Requesting Heap dump file > ...JVMDG318: Heap dump file written to E:\Program > Files\IBM\WebSphere... > JVMDG303: JVM Requesting Java core file > JVMDG304: Java core file written to E:\Program Files\IBM\WebSphere\... > JVMDG215: Dump Handler has Processed Outofmemory Signal -1. > ---------------list end--------------- > > A printStackTrace() shows the following: > > ---------------list begin--------------- > com.gargoylesoftware.htmlunit.ObjectInstantiationException: > Exception when calling constructor > [com.gargoylesoftware.htmlunit.html.HtmlFrame > > (com.gargoylesoftware.htmlunit.html.HtmlPage,org.w3c.dom.Element)] > com.gargoylesoftware.htmlunit.html.SimpleHtmlElementCreator.create > (SimpleHtmlElementCreator.java:91) > com.gargoylesoftware.htmlunit.html.HtmlPage.getHtmlElement > (HtmlPage.java:464) > > com.gargoylesoftware.htmlunit.html.HtmlElement.getHtmlElementsByTagName > s > (HtmlElement.java:721) > > com.gargoylesoftware.htmlunit.html.HtmlPage.initializeFramesIfNeeded > (HtmlPage.java:1108) > > com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java: > 172) > com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:356) > com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:276) > > com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:169) > > com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:120) > ---------------list end--------------- > > > Can anyone help me with this? > > Cheers, > > Gian Franco Casula ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: David D.K. <ddk...@ki...> - 2004-10-26 13:47:21
|
It looks like WebSphere is running out of memory. Have you tried =20 profiling your application using either WSAD or the WAS Admin Console =20= utilities? Have you tried increasing the heap size for your =20 application? Have you considered running the Htmlunit code in an Action (if you're =20= using Struts) or a servlet before you get to the JSP so that you simply =20= output data once you're in the JSP? (Typically, it's not considered =20 good design to write Java code inside a JSP.) I've written a "screen scraping" application using Htmlunt recently, =20 and found that after creating some 200-300 HtmlPage objects, the JVM =20 runs out of memory using a heap size of 128MB. If I increase the heap =20= size to 256MB, I can load 600-700 HtmlPage objects before running out =20= of memory. I suspect that the loop between the WebClient and the =20 WebConnection may be causing the garbage collector issues (although I =20= haven't had time to try to profile the code or testing the "breaking" =20= of the circular dependency): =20 HtmlPage.getWebClient().getWebConnection().getWebClient().getWebConnecti=20= on().adNaseum(); Is this a known issue? Dave On Oct 26, 2004, at 5:41 AM, Gian Franco Casula wrote: > Hi, > > I've written some code in a jsp page that > calls some java code that uses HtmlUnit to > connect to a web site. > > The java code works correctly when I use it > in isolation as a java application. > > Problems arise with the above mentioned jsp > page. When the code is running I get a long > list with the same message: > ---------------list begin--------------- > > =A0=A0=A0 ... > =A0=A0=A0 [26-10-04 8:54:20:914 CEST] 5dc773e1 HttpMethodBas W > =A0=A0=A0 org.apache.commons.httpclient.HttpMethodBase > =A0=A0=A0 Response content length is not known > =A0=A0=A0 [26-10-04 8:54:30:398 CEST] 5dc773e1 HttpMethodBas W > =A0=A0=A0 org.apache.commons.httpclient.HttpMethodBase > =A0=A0=A0 Response content length is not known > =A0=A0=A0 ... > ---------------list end--------------- > =A0 > This continues for a long time, until I get the message: > =A0 > ---------------list begin--------------- > JVMDG315: JVM Requesting Heap dump file > ...JVMDG318: Heap dump file written to E:\Program =20 > Files\IBM\WebSphere... > JVMDG303: JVM Requesting Java core file > JVMDG304: Java core file written to E:\Program Files\IBM\WebSphere\... > JVMDG215: Dump Handler has Processed Outofmemory Signal -1. > ---------------list end--------------- > =A0 > A printStackTrace() shows the following: > > ---------------list begin--------------- > =A0=A0=A0 com.gargoylesoftware.htmlunit.ObjectInstantiationException: > =A0=A0=A0 =A0=A0=A0=A0 Exception when calling constructor > =A0=A0=A0 =A0=A0=A0=A0 [com.gargoylesoftware.htmlunit.html.HtmlFrame > =A0=A0=A0=A0=A0=A0=A0=A0 =20 > (com.gargoylesoftware.htmlunit.html.HtmlPage,org.w3c.dom.Element)] > =A0=A0=A0 = com.gargoylesoftware.htmlunit.html.SimpleHtmlElementCreator.create > =A0=A0=A0 =A0=A0=A0=A0 (SimpleHtmlElementCreator.java:91) > =A0=A0=A0 com.gargoylesoftware.htmlunit.html.HtmlPage.getHtmlElement > =A0=A0=A0 =A0=A0=A0=A0 (HtmlPage.java:464) > =A0=A0=A0 =20 > = com.gargoylesoftware.htmlunit.html.HtmlElement.getHtmlElementsByTagName=20= > s > =A0=A0=A0 =A0=A0=A0=A0 (HtmlElement.java:721) > =A0=A0=A0 =20 > com.gargoylesoftware.htmlunit.html.HtmlPage.initializeFramesIfNeeded > =A0=A0=A0 =A0=A0=A0=A0 (HtmlPage.java:1108) > =A0=A0=A0 =20 > com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:=20= > 172) > =A0=A0=A0 = com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:356) > =A0=A0=A0 = com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:276) > =A0=A0=A0 =20 > com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:169) > =A0=A0=A0 =20 > com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:120) > ---------------list end--------------- > =A0 > =A0 > Can anyone help me with this? > =A0 > Cheers, > =A0 > Gian Franco Casula |
From: David D.K. <ddk...@ki...> - 2004-10-26 13:36:27
|
Htmlunit wraps "stand-alone" JavaScript (like you'd see in an onclick attribute or a "javascript:" url) in a wrapper function before passing the JavaScript to the Rhino engine for execution. (Rhino is the Mozilla project that implements a JavaScript engine in Java. It's integrated with Htmlunit to provide JavaScript functionality.) This is perfectly normal behavior. Note that the number after the "GargoyleWrapper" function name may vary upon each invocation. This happens in the HtmlPage class in the executeJavaScriptIfPossible() method. Dave On Oct 26, 2004, at 12:43 AM, Vinay Murthy wrote: > Hi, > Do onClick attributes get wrapped by GargoyleWrapper0() ? I have a > button whose onclick attribute corresponds to calling a javascript > function. As I click the button, the ScriptPreProcessor traps a js > corresponding to "function GargoyleWrapper0() { Submitform("XYZ")} " > Is this normal ? Could you please help me figure out what might be > happening here ? I would normally expect the ScriptPreProcessor to > trap all js snippets appearing in a page. And if it has trapped the > one mentioned above, was the wrapper added into the response somewhere > by HtnlUnit ? > > Best Regards > Vinay |