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: Mike B. <mb...@Ga...> - 2004-04-01 14:08:48
|
Dave Smith wrote: >>OK. I download last nights snapshot and it test just hangs. A thread >>dump is below. Also why is >>[junit] at >>com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:575) >> [junit] at >>com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:535) >> [junit] at >>com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:453) >> [junit] at >>com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:325) >> [junit] at >>com.gargoylesoftware.htmlunit.html.HtmlPage.executeRefreshIfNeeded(HtmlPage.java:954) >> [junit] at >>com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:141) >> >>Repeated at least 20 times before the top of the dump below? There are 6 >>.js includes and one .css include but it does not match the number of >>occurrences of the loop. It would appear that a page refresh is being triggered every time the page gets loaded and that you're consequently in an infinite loop. Refresh can be triggered by javascript (onload handler) or a <meta> tag or a refresh header in the http response. I assume that this page loads fine in a browser btw. The first thing I'd try would be a breakpoint or print statement in HtmlPage.executeRefreshIfNeeded() to see what specifically has triggered the refresh each time. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: Dave S. <dav...@ca...> - 2004-04-01 13:48:59
|
Damm.. I thought this was going somewhere .. Mike any ideas? On Wed, 2004-03-31 at 09:42, Dave Smith wrote: > OK. I download last nights snapshot and it test just hangs. A thread > dump is below. Also why is > [junit] at > com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:575) > [junit] at > com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:535) > [junit] at > com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:453) > [junit] at > com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:325) > [junit] at > com.gargoylesoftware.htmlunit.html.HtmlPage.executeRefreshIfNeeded(HtmlPage.java:954) > [junit] at > com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:141) > > Repeated at least 20 times before the top of the dump below? There are 6 > .js includes and one .css include but it does not match the number of > occurrences of the loop. > > > at java.lang.Throwable.getStackTraceElement(Native Method) > [junit] at > java.lang.Throwable.getOurStackTrace(Throwable.java:591) > [junit] - locked <0x446808f8> (a java.lang.Throwable) > [junit] at java.lang.Throwable.getStackTrace(Throwable.java:582) > [junit] at > org.apache.commons.logging.impl.Jdk14Logger.log(Jdk14Logger.java:115) > [junit] at > org.apache.commons.logging.impl.Jdk14Logger.trace(Jdk14Logger.java:256) > [junit] at > org.apache.commons.httpclient.HeaderElement.parsePair(HeaderElement.java:407) > [junit] at > org.apache.commons.httpclient.HeaderElement.parse(HeaderElement.java:342) > [junit] at > org.apache.commons.httpclient.Header.getValues(Header.java:130) > [junit] at > org.apache.commons.httpclient.HttpMethodBase.readResponseBody(HttpMethodBase.java:2056) > [junit] at > org.apache.commons.httpclient.HttpMethodBase.readResponseBody(HttpMethodBase.java:2004) > [junit] at > org.apache.commons.httpclient.methods.GetMethod.readResponseBody(GetMethod.java:403) > [junit] at > org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1962) > [junit] at > org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.java:2659) > [junit] at > org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1093) > [junit] at > org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:675) > [junit] at > org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:529) > [junit] at > com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:150) > [junit] at > com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1303) > > > On Tue, 2004-03-30 at 17:40, Mike Bowler wrote: > > The question I should have asked right off the bat is "what version of > > HtmlUnit are you using?". If you're using something older than 1.3pre1 > > then I'd recommend upgrading - there have been a lot of fixes put in > > since then. > > > > There are tests for form["somename"] that are working in the latest code > > so I'm wondering if you're stumbling across something that's already > > been fixed in cvs. -- Dave Smith CANdata Systems Ltd 416-493-9020 |
From: Dave S. <dav...@ca...> - 2004-03-31 14:37:36
|
OK. I download last nights snapshot and it test just hangs. A thread dump is below. Also why is [junit] at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:575) [junit] at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:535) [junit] at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:453) [junit] at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:325) [junit] at com.gargoylesoftware.htmlunit.html.HtmlPage.executeRefreshIfNeeded(HtmlPage.java:954) [junit] at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:141) Repeated at least 20 times before the top of the dump below? There are 6 .js includes and one .css include but it does not match the number of occurrences of the loop. at java.lang.Throwable.getStackTraceElement(Native Method) [junit] at java.lang.Throwable.getOurStackTrace(Throwable.java:591) [junit] - locked <0x446808f8> (a java.lang.Throwable) [junit] at java.lang.Throwable.getStackTrace(Throwable.java:582) [junit] at org.apache.commons.logging.impl.Jdk14Logger.log(Jdk14Logger.java:115) [junit] at org.apache.commons.logging.impl.Jdk14Logger.trace(Jdk14Logger.java:256) [junit] at org.apache.commons.httpclient.HeaderElement.parsePair(HeaderElement.java:407) [junit] at org.apache.commons.httpclient.HeaderElement.parse(HeaderElement.java:342) [junit] at org.apache.commons.httpclient.Header.getValues(Header.java:130) [junit] at org.apache.commons.httpclient.HttpMethodBase.readResponseBody(HttpMethodBase.java:2056) [junit] at org.apache.commons.httpclient.HttpMethodBase.readResponseBody(HttpMethodBase.java:2004) [junit] at org.apache.commons.httpclient.methods.GetMethod.readResponseBody(GetMethod.java:403) [junit] at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1962) [junit] at org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.java:2659) [junit] at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1093) [junit] at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:675) [junit] at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:529) [junit] at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:150) [junit] at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1303) On Tue, 2004-03-30 at 17:40, Mike Bowler wrote: > The question I should have asked right off the bat is "what version of > HtmlUnit are you using?". If you're using something older than 1.3pre1 > then I'd recommend upgrading - there have been a lot of fixes put in > since then. > > There are tests for form["somename"] that are working in the latest code > so I'm wondering if you're stumbling across something that's already > been fixed in cvs. -- Dave Smith CANdata Systems Ltd 416-493-9020 |
From: Alexei G. <al...@go...> - 2004-03-31 12:11:37
|
Hello Dave and Mike, I had to implement some methods for some host objects at the time of HtmlUnit 1.2.3, and I used to modify SimpleScriptable get(...) and put(...) methods to dump javascript execution step by step. I think this methods did not change with HtmlUnit 1.3, so you con probably use my code from patch '[ 852838 ] Couple of javascript features for HtmlUnit 1.2.3' for SimpleScriptable. This produces very comfortable step by step dump with a lot of information about how javasctipt is executed, and you will see the exception or 'null' returned somewhere in the dump, which is the reason for your JavascriptException. Detailed description (changes.html) is also in the patch. Have fun Alexei Dave Smith wrote: >Nope. I'm using the latest. I'll pull the latest out of CVS and >recompile ... >On Tue, 2004-03-30 at 17:40, Mike Bowler wrote: > > >>The question I should have asked right off the bat is "what version of >>HtmlUnit are you using?". If you're using something older than 1.3pre1 >>then I'd recommend upgrading - there have been a lot of fixes put in >>since then. >> >>There are tests for form["somename"] that are working in the latest code >>so I'm wondering if you're stumbling across something that's already >>been fixed in cvs. >> >> > > > >------------------------------------------------------- >This SF.Net email is sponsored by: IBM Linux Tutorials >Free Linux tutorial presented by Daniel Robbins, President and CEO of >GenToo technologies. Learn everything from fundamentals to system >administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >_______________________________________________ >Htmlunit-user mailing list >Htm...@li... >https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > > |
From: Dave S. <dav...@ca...> - 2004-03-31 03:59:03
|
Nope. I'm using the latest. I'll pull the latest out of CVS and recompile ... On Tue, 2004-03-30 at 17:40, Mike Bowler wrote: > The question I should have asked right off the bat is "what version of > HtmlUnit are you using?". If you're using something older than 1.3pre1 > then I'd recommend upgrading - there have been a lot of fixes put in > since then. > > There are tests for form["somename"] that are working in the latest code > so I'm wondering if you're stumbling across something that's already > been fixed in cvs. |
From: Mike B. <mb...@Ga...> - 2004-03-30 22:38:57
|
The question I should have asked right off the bat is "what version of HtmlUnit are you using?". If you're using something older than 1.3pre1 then I'd recommend upgrading - there have been a lot of fixes put in since then. There are tests for form["somename"] that are working in the latest code so I'm wondering if you're stumbling across something that's already been fixed in cvs. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: Dave S. <dav...@ca...> - 2004-03-30 22:09:41
|
It is attribute ie name of the input field. form is the HtmlForm object. So the first iteration should translate into like ... var field = form["consols.file_num"]; On Tue, 2004-03-30 at 16:52, Mike Bowler wrote: > Dave Smith wrote: > > > If I understand you then I'm going to guess it is Array or Function, but > > here is the offending code... > > All the standard javascript functions are implemented by the Rhino > engine so I'd guess that Array and Function aren't the problem. The > parts that HtmlUnit needs to implement are the browser specific host > objects like Form and Window and Frame. > > It might be the array indexing part of Form that is the problem. > > > var field = form[oRequired[x][0]]; > > It would appear that field is null so form[] is not returning the object > you need. What is the value being passed into form[]? Does it match > the name attribute of an object inside that form? Or is it an index? -- Dave Smith CANdata Systems Ltd 416-493-9020 |
From: Mike B. <mb...@Ga...> - 2004-03-30 21:51:08
|
Dave Smith wrote: > If I understand you then I'm going to guess it is Array or Function, but > here is the offending code... All the standard javascript functions are implemented by the Rhino engine so I'd guess that Array and Function aren't the problem. The parts that HtmlUnit needs to implement are the browser specific host objects like Form and Window and Frame. It might be the array indexing part of Form that is the problem. > var field = form[oRequired[x][0]]; It would appear that field is null so form[] is not returning the object you need. What is the value being passed into form[]? Does it match the name attribute of an object inside that form? Or is it an index? -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: Dave S. <dav...@ca...> - 2004-03-30 21:27:55
|
If I understand you then I'm going to guess it is Array or Function, but here is the offending code... Line 123 is the if (field.type == 'text' etc ... function required () { this.aa = new Array("consols.file_num", "House Bill Number is required.", new Function ("varName", " return this[varName];")); this.ab = new Array("consols.cargo_ctl_num", "Orginal Cargo Control Number is required.", new Function ("varName", " return this[varName];")); this.ac = new Array("consols.carrier_code", "Carrier Code is required.", new Function ("varName", " return this[varName];")); this.ad = new Array("invoice.data.country", "Destination Country is required.", new Function ("varName", " return this[varName];")); this.ae = new Array("invoice.data.city", "Destination City is required.", new Function ("varName", " return this[varName];")); this.af = new Array("invoice.data.port_name", "Entry Port is required.", new Function ("varName", " return this[varName];")); this.ag = new Array("invoice.consignee.nameAddr.name", "Consignee Name is required.", new Function ("varName", " return this[varName];")); this.ah = new Array("invoice.consignee.nameAddr.addr1", "Consignee Address is required.", new Function ("varName", " return this[varName];")); this.ai = new Array("invoice.consignee.nameAddr.city", "Consignee City is required.", new Function ("varName", " return this[varName];")); this.aj = new Array("invoice.consignee.nameAddr.prov", "Consignee Province is required.", new Function ("varName", " return this[varName];")); this.ak = new Array("invoice.consignee.nameAddr.postal_code", "Consignee Postal Code is required.", new Function ("varName", " return this[varName];")); this.al = new Array("invoice.consignee.nameAddr.country_id", "Consignee Country is required.", new Function ("varName", " return this[varName];")); this.am = new Array("invoice.consignor.nameAddr.name", "Consignor Name is required.", new Function ("varName", " return this[varName];")); this.an = new Array("invoice.consignor.nameAddr.addr1", "Consignor Address is required.", new Function ("varName", " return this[varName];")); this.ao = new Array("invoice.consignor.nameAddr.city", "Consignor City is required.", new Function ("varName", " return this[varName];")); this.ap = new Array("invoice.consignor.nameAddr.country_id", "Consignor Country is required.", new Function ("varName", " return this[varName];")); } function validateRequired(form) { var isValid = true; var focusField = null; var i = 0; var fields = new Array(); oRequired = new required(); for (x in oRequired) { var field = form[oRequired[x][0]]; if (field.type == 'text' || field.type == 'textarea' || field.type == 'file' || field.type == 'select-one' || field.type == 'radio' || field.type == 'password') { var value = ''; // get field's value if (field.type == "select-one") { var si = field.selectedIndex; if (si >= 0) { value = field.options[si].value; } } else { value = field.value; } if (trim(value).length == 0) { if (i == 0) { focusField = field; } fields[i++] = oRequired[x][1]; isValid = false; } } } if (fields.length > 0) { focusField.focus(); alert(fields.join('\n')); } return isValid; } On Tue, 2004-03-30 at 16:09, Mike Bowler wrote: > Dave Smith wrote: > > I saw this in the archives but no response so I guess I will ask it > > again. I am testing an application that uses struts with javascript > > field required checking when a form is submitted. When the user > > presses save it checks that all of the required fields and filled in > > and if not pops up an alert box with the fields that are required. I > > get the following back trace when running my test. > > > > [junit] Testcase: testAddWithoutData took 13.554 sec > > [junit] Caused an ERROR > > [junit] The undefined value has no properties. > > [junit] ======= EXCEPTION START ======== > > [junit] EcmaError: lineNumber=[123] column=[0] lineSource=[null] > > name=[ConversionError] sourceName=[/aci/images/static.js] message=[The > > undefined value has no properties.] errorObject=[ConversionError: The > > undefined value has no properties.] > > This is a fairly generic symptom that means "some javascript object that > you're trying to use hasn't been implemented yet". The trick is to > discover what javascript host object you're referencing so that we can > implement it (or at least stub it out as a temporary fix). > > Can you share the javascript (and the HtmlUnit code you're using to hit > it)? Even better, is this on a publicly available server that we could > hit on remotely? -- Dave Smith CANdata Systems Ltd 416-493-9020 |
From: Mike B. <mb...@Ga...> - 2004-03-30 21:08:03
|
Dave Smith wrote: > I saw this in the archives but no response so I guess I will ask it > again. I am testing an application that uses struts with javascript > field required checking when a form is submitted. When the user > presses save it checks that all of the required fields and filled in > and if not pops up an alert box with the fields that are required. I > get the following back trace when running my test. > > [junit] Testcase: testAddWithoutData took 13.554 sec > [junit] Caused an ERROR > [junit] The undefined value has no properties. > [junit] ======= EXCEPTION START ======== > [junit] EcmaError: lineNumber=[123] column=[0] lineSource=[null] > name=[ConversionError] sourceName=[/aci/images/static.js] message=[The > undefined value has no properties.] errorObject=[ConversionError: The > undefined value has no properties.] This is a fairly generic symptom that means "some javascript object that you're trying to use hasn't been implemented yet". The trick is to discover what javascript host object you're referencing so that we can implement it (or at least stub it out as a temporary fix). Can you share the javascript (and the HtmlUnit code you're using to hit it)? Even better, is this on a publicly available server that we could hit on remotely? -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: Dave S. <dav...@ca...> - 2004-03-30 20:30:44
|
I saw this in the archives but no response so I guess I will ask it again. I am testing an application that uses struts with javascript field required checking when a form is submitted. When the user presses save it checks that all of the required fields and filled in and if not pops up an alert box with the fields that are required. I get the following back trace when running my test. [junit] Testcase: testAddWithoutData took 13.554 sec [junit] Caused an ERROR [junit] The undefined value has no properties. [junit] ======= EXCEPTION START ======== [junit] EcmaError: lineNumber=[123] column=[0] lineSource=[null] name=[ConversionError] sourceName=[/aci/images/static.js] message=[The undefined value has no properties.] errorObject=[ConversionError: The undefined value has no properties.] [junit] com.gargoylesoftware.htmlunit.ScriptException: The undefined value has no properties. [junit] at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:250) [junit] at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:886) [junit] at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:138) [junit] at com.gargoylesoftware.htmlunit.html.HtmlInput.doClickAction(HtmlInput.java:165) [junit] at com.gargoylesoftware.htmlunit.html.HtmlInput.click(HtmlInput.java:142) [junit] at tests.aci.web.TestShipment.testAddWithoutData(UnknownSource) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [junit] Enclosed exception: [junit] ConversionError: The undefined value has no properties. (/aci/images/static.js; line 123) [junit] at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:597) [junit] at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:557) [junit] at org.mozilla.javascript.ScriptRuntime.getProp(ScriptRuntime.java:712) [junit] at org.mozilla.javascript.gen.c87.call(/aci/images/static.js:123) [junit] at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1191) [junit] at org.mozilla.javascript.gen.c113.call(Embeddedscript:9) [junit] at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1191) [junit] at org.mozilla.javascript.gen.c119.call(Wrapper definition for onSubmit:1) [junit] at org.mozilla.javascript.optimizer.OptRuntime.callSimple(OptRuntime.java:275) [junit] at org.mozilla.javascript.gen.c121.call(onSubmit:1) [junit] at org.mozilla.javascript.gen.c121.exec(onSubmit) [junit] at org.mozilla.javascript.Context.evaluateReader(Context.java:820) [junit] at org.mozilla.javascript.Context.evaluateString(Context.java:784) [junit] at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:242) [junit] at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:886) [junit] at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:138) [junit] at com.gargoylesoftware.htmlunit.html.HtmlInput.doClickAction(HtmlInput.java:165) [junit] at com.gargoylesoftware.htmlunit.html.HtmlInput.click(HtmlInput.java:142) [junit] at tests.aci.web.TestShipment.testAddWithoutData(Unknown Source) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [junit] == CALLING JAVASCRIPT == [junit] GargoyleWrapper0() [junit] ======= EXCEPTION END ======== [junit] Testcase: testAddWithoutData [junit] TEST tests.aci.web.TestShipment FAILED -- Dave Smith CANdata Systems Ltd 416-493-9020 |
From: Mike B. <mb...@Ga...> - 2004-03-25 11:38:12
|
mbr...@vi... wrote: > There appears to be a connection leak in 1.3. My test suite is > running IIS out of connections. I then get 403 errors. I am creating > a WebClient in my setUp() function and setting it to null in my > tearDown() function. I don't see any API to directly close the > connection. There shouldn't be any connections left open between requests - what we're doing is supposed to be stateless. Can you try a different version of commons-httpclient to see if that fixes the problem? That's the part that actuallly makes the connection to the server. http://jakarta.apache.org/commons/httpclient/ -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: <mbr...@vi...> - 2004-03-24 22:51:38
|
There appears to be a connection leak in 1.3. My test suite is running IIS out of connections. I then get 403 errors. I am creating a WebClient in my setUp () function and setting it to null in my tearDown() function. I don't see any API to directly close the connection. Mike Bresnahan |
From: Biju A. <bij...@ya...> - 2004-03-24 16:38:57
|
Yes I am using the same webclient instance, let me try out ur solution. --bijua --- Mike Bresnahan <mbr...@vi...> wrote: > Are you reusing the same WebClient instance? As I > remember, it caches some > data and the only way to flush it is to dump the > WebClient instance and > create a new one. This was pre 1.3 though. > > Mike > > > -----Original Message----- > > From: htm...@li... > > > [mailto:htm...@li...]On > Behalf Of Biju > > Arjunan > > Sent: Wednesday, March 24, 2004 12:32 AM > > To: Mike Bowler; > htm...@li... > > Subject: [Htmlunit-user] Performance Problems > > > > > > I am also observing some performance problem with > > htmlUnit1.3, ,my requirement is to submit a form > > 500,000 thousand times > > > > But after 10,000 or so it gives java out of memory > > exception, I tried to execute the program by > givimg > > more memory 1GB (java -xm 1GB ProgramName), it > goes > > further more iteration but never reaches 500,000, > > There is some memory leak in HTML Unit sources. > > > > Thanks, > > bijua > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux > Tutorials > Free Linux tutorial presented by Daniel Robbins, > President and CEO of > GenToo technologies. Learn everything from > fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user ===== They say hard work never hurt anybody, but why take the chance. __________________________________ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html |
From: Mike B. <mbr...@vi...> - 2004-03-24 15:17:32
|
Are you reusing the same WebClient instance? As I remember, it caches some data and the only way to flush it is to dump the WebClient instance and create a new one. This was pre 1.3 though. Mike > -----Original Message----- > From: htm...@li... > [mailto:htm...@li...]On Behalf Of Biju > Arjunan > Sent: Wednesday, March 24, 2004 12:32 AM > To: Mike Bowler; htm...@li... > Subject: [Htmlunit-user] Performance Problems > > > I am also observing some performance problem with > htmlUnit1.3, ,my requirement is to submit a form > 500,000 thousand times > > But after 10,000 or so it gives java out of memory > exception, I tried to execute the program by givimg > more memory 1GB (java -xm 1GB ProgramName), it goes > further more iteration but never reaches 500,000, > There is some memory leak in HTML Unit sources. > > Thanks, > bijua |
From: Brad C. <bc...@bo...> - 2004-03-24 15:11:55
|
Are you using the same WebClient or a new one each interation? Brad C At 12:31 AM 3/24/2004, Biju Arjunan wrote: >I am also observing some performance problem with >htmlUnit1.3, ,my requirement is to submit a form >500,000 thousand times > >But after 10,000 or so it gives java out of memory >exception, I tried to execute the program by givimg >more memory 1GB (java -xm 1GB ProgramName), it goes >further more iteration but never reaches 500,000, >There is some memory leak in HTML Unit sources. > >Thanks, >bijua |
From: Biju A. <bij...@ya...> - 2004-03-24 06:31:33
|
I am also observing some performance problem with htmlUnit1.3, ,my requirement is to submit a form 500,000 thousand times But after 10,000 or so it gives java out of memory exception, I tried to execute the program by givimg more memory 1GB (java -xm 1GB ProgramName), it goes further more iteration but never reaches 500,000, There is some memory leak in HTML Unit sources. Thanks, bijua __________________________________ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html |
From: <mbr...@vi...> - 2004-03-23 20:41:53
|
> Try adding this line before the tests run: > System.getProperties().put( > "org.apache.commons.logging.Log", > "org.apache.commons.logging.impl.SimpleLog"); > > This will force commons-logging to use SimpleLog. I'm guessing that > it's defaulting to a different logger and as a result is ignoring the > system property that you set. That fixed it. Thanks again! Mike Bresnahan |
From: <mbr...@vi...> - 2004-03-23 20:40:33
|
> I actually see my tests running 5-10% faster than before. Could it be that > the HTML you're testing against is highly malformed and nekohtml must spend > longer fixing it? That's quite possible, most of it is being generated by ASP.NET server controls and we're dealing with Microsoft after all. Have you ever looked at the HTML MS Word generates? Egads yuk! It wouldn't surprise me if ASP.NET intentionally generates HTML code that is hard to parse by Nekohtml. Ok, call me a conspiracy theory nut. Mike |
From: <mbr...@vi...> - 2004-03-23 20:35:46
|
> new WebClient( BrowserVersion.MOZILLA_1_0 ) That fixed it. Thanks! Of course I am still unable to test the validators, but that is probably a whole new project. Mike Bresnahan |
From: Mike B. <mb...@Ga...> - 2004-03-23 19:44:29
|
mbr...@vi... wrote: > I would have expected "warn" to not show "info" messages but perhaps > that is a misunderstanding of mine. In any case, I changed the > logging level to "fatal" and I still see messages like the following: > > .Mar 23, 2004 12:22:52 PM org.apache.commons.httpclient.HttpMethodBase > readResponse > INFO: Discarding unexpected response: HTTP/1.1 100 Continue Try adding this line before the tests run: System.getProperties().put( "org.apache.commons.logging.Log", "org.apache.commons.logging.impl.SimpleLog"); This will force commons-logging to use SimpleLog. I'm guessing that it's defaulting to a different logger and as a result is ignoring the system property that you set. -- 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. <bc...@bo...> - 2004-03-23 18:59:27
|
I actually see my tests running 5-10% faster than before. Could it be that the HTML you're testing against is highly malformed and nekohtml must spend longer fixing it? Brad C At 11:12 AM 3/23/2004, mbr...@vi... wrote: >HtmlUnit 1.3 is a lot slower than I remember the older versions being. It is >taking about a second for each page visit on a PIII 1.0Ghz desktop. I only >have 10 tests and I'm up to 40-50 seconds total run time. I did some quick >profiling of the code and found that a majority of the time is being spent in >the Nekohtml layer. Is this a known problem? > >Mike Bresnahan > |
From: <mbr...@vi...> - 2004-03-23 18:26:07
|
> I would expect "warn" to allow warn, info, error and fatal to pass > through. Am I missing something? I would have expected "warn" to not show "info" messages but perhaps that is a misunderstanding of mine. In any case, I changed the logging level to "fatal" and I still see messages like the following: .Mar 23, 2004 12:22:52 PM org.apache.commons.httpclient.HttpMethodBase readResponse INFO: Discarding unexpected response: HTTP/1.1 100 Continue Mike Bresnahan |
From: Mike B. <mb...@Ga...> - 2004-03-23 18:13:54
|
mbr...@vi... wrote: > HtmlUnit 1.3 is a lot slower than I remember the older versions being. It is > taking about a second for each page visit on a PIII 1.0Ghz desktop. I only > have 10 tests and I'm up to 40-50 seconds total run time. I did some quick > profiling of the code and found that a majority of the time is being spent in > the Nekohtml layer. Is this a known problem? No. I haven't timed my tests recently but they're certainly not in the 4-5 second range. I don't have any HtmlUnit tests on this machine but I'll pay attention when I next run my tests. -- 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-03-23 18:13:02
|
mbr...@vi... wrote: > The following does not appear to work in 1.3-pre1. > > System.getProperties().put > ("org.apache.commons.logging.simplelog.defaultlog", "warn"); > > I still get INFO messages from httpclient. I would expect "warn" to allow warn, info, error and fatal to pass through. Am I missing something? The logging shouldn't have changed in any case. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |