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: Vinay M. <vin...@gm...> - 2005-03-03 06:44:31
|
Hi, I am using HtmlUnit to connect to a site that requires me to perform a SSL client authentication. The site works by installing a certificate in my browser using the IE ActiveX object XEnroll to make the certificate request. I trying to do the same through HtmlUnit and I think I havent been to load the ActiveX object at all. The page specifies the ActiveX object within a span element as : <span id="spanXenroll" style="display:none"> <Object ClassID="....." Codebase="...." ID="XEnroll"> </Object> </span> The code relating to the ActiveX Object is set dynamically using span's innerHtml property. The page also has a method to check if the ActiveX object has been loaded. This method is executed every 500ms using javascript's setTimeOut method. This method gets executed five times after which I get the following exception trace: Exception class=[org.mozilla.javascript.WrappedException] com.gargoylesoftware.htmlunit.ScriptException: Wrapped java.lang.IllegalArgumentException at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:294) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:709) at com.gargoylesoftware.htmlunit.javascript.host.Window$1.run(Window.java:266) at java.lang.Thread.run(Thread.java:534) WrappedException: org.mozilla.javascript.WrappedException: Wrapped java.lang.IllegalArgumentException at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1776) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:191) at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:456) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:3026) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2164) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:140) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:304) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2769) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2145) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:140) at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:149) at org.mozilla.javascript.Context.evaluateString(Context.java:1220) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:289) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:709) at com.gargoylesoftware.htmlunit.javascript.host.Window$1.run(Window.java:266) at java.lang.Thread.run(Thread.java:534) Caused by: java.lang.IllegalArgumentException at java.lang.Thread.setPriority(Thread.java:873) at com.gargoylesoftware.htmlunit.javascript.host.Window.jsFunction_setTimeout(Window.java:287) 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 org.mozilla.javascript.MemberBox.invoke(MemberBox.java:174) ... 14 more Inside wrapped exception: java.lang.IllegalArgumentException at java.lang.Thread.setPriority(Thread.java:873) at com.gargoylesoftware.htmlunit.javascript.host.Window.jsFunction_setTimeout(Window.java:287) 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 org.mozilla.javascript.MemberBox.invoke(MemberBox.java:174) at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:456) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:3026) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2164) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:140) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:304) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2769) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2145) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:140) at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:149) at org.mozilla.javascript.Context.evaluateString(Context.java:1220) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:289) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:709) at com.gargoylesoftware.htmlunit.javascript.host.Window$1.run(Window.java:266) at java.lang.Thread.run(Thread.java:534) == CALLING JAVASCRIPT == GargoyleWrapper4() ======= EXCEPTION END ======== The currentThread's priority falls out of the accepted range because of the repeated execution of the above function to test if the ActiveX object has been loaded. Is there anything else that I need to be doing to load the ActiveX object ? Any help would be greatly appreciated... Regards Vinay |
From: Mike F. <mik...@ho...> - 2005-03-03 06:23:12
|
Yes, it works in IE and Safari. So how do you do manual redirection, since auto-redirect isn't working properly? The closest things I can find to a spec on status code 302 are: * /javadoc/javax/servlet/http/HttpServletResponse.html#SC_MOVED_TEMPORARILY * http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/http/HttpServletResponse.html#sendRedirect(java.lang.String) * http://www.faqs.org/rfcs/rfc2068.html >From: Brad Clarke <yo...@br...> >Reply-To: htm...@li... >To: htm...@li... >Subject: Re: [Htmlunit-user] Redirect to relative address in a frame causes >loop >Date: Wed, 2 Mar 2005 08:15:21 -0800 (PST) > >Assuming that this works in the browser for you then it's likely a bug with >no >simple fix (you could pull latest CVS and make a custom RefreshHandler but >it would >not be a generic fix because the data it's given would be incorrect). > >That seems like a strange thing to specify in a Location header for the >response you >expect. Is there a spec anywhere on interpretation of incomplete URIs in >HTTP >Location headers? > >--- Mike Firth <mik...@ho...> wrote: > > > Hi, > > > > Is there a quick workaround to this problem? And should I submit it as a > > bug? > > > > A redirect (302) occurs in a frame. It specifies a relative location, >but > > HtmlUnit is truncating the address, causing the website to respond with >the > > whole frameset. When autoredirect is on, this causes an infinite loop! I > > never get past webClient.getPage(url) and the log fills up with: > > > > 22:33:15,132 (HttpMethodDirector:780) INFO [main] - Redirect requested >but > > followRedirects is disabled > > 22:33:17,059 (HttpMethodDirector:780) INFO [main] - Redirect requested >but > > followRedirects is disabled > > etc, etc, etc. > > > > My code: > > final WebClient webClient = new > > WebClient(BrowserVersion.INTERNET_EXPLORER_6_0); > > webClient.setRedirectEnabled(true); > > final URL url = new URL("http://somewhere.com/main/"); > > final HtmlPage page = (HtmlPage) webClient.getPage(url); > > > > The response is 200 OK and this: > > > > <html> > > <head> > > <title>somewhere.com</title> > > <meta http-equiv="Content-Type" content="text/html"> > > </head> > > <frameset rows="0,*" frameborder="NO" border="0" framespacing="0"> > > <frame src="blank.php" name="stealthFrame" scrolling="NO" noresize > > > <frame src="front.php" name="frontFrame"> > > </frameset> > > <noframes> > > <body> > > </body></noframes> > > </html> > > > > but front.php returns 302 Found, with location: ?choice=first , which >should > > cause this: > > > > GET /main/front.php?choice=first > > > > but instead HtmlUnit does this: > > > > GET /main/?choice=first > > > > which the website responds to by sending the first page again. Instant >loop. > > > > Is there a quick workaround? How do you code to handle a redirect >manually? > > > > Regards, > > > > Mike > > > >------------------------------------------------------- >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://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >_______________________________________________ >Htmlunit-user mailing list >Htm...@li... >https://lists.sourceforge.net/lists/listinfo/htmlunit-user _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ |
From: Dan L. <dl...@ca...> - 2005-03-02 18:45:45
|
Rares, HtmlUnit is a tool for simulating a browser and the API allows you to simulate user actions. As such, you have access to the Web/Client tier, not the business tier. Once the browser reads the page, there is no way to determine the values of an object kept in session. It is possible to simulate this behavior by having the page print the values of the session objects and then doing a compare. Something like: (if your page is jsp) <span id='sessionObjectIdValue'><%= session.getAttribute("objectId") %></span> <form name="myform"><input type="text" name="objectId"></form> then you could use the HtmlUnit API to get the asText() value of the element with Id = 'sessionObjectIdValue' and get the asText() value of the input object in the form by name, and do a compare on them. if you dont want the value to appear in the page, you could use a hidden field or something similar and do the compare on that. There are other similar ways to acheive what you are looking for, but accessing session objects is not possible by the time the data reaches HtmlUnit. dan -----Original Message----- From: htm...@li... [mailto:htm...@li...]On Behalf Of Rares Portan/SPR/RO Sent: Wednesday, March 02, 2005 6:19 AM To: htm...@li... Subject: [Htmlunit-user] htmlunit and sessions Hello, I'm using HtmlUnit for a couple of days to create tests for a web app. To test some of the pages I need to compare the form values with the values of some objects kept in session. I wasn't able to get access to the session, is it possible? How can I do that? Thank you |
From: Brad C. <yo...@br...> - 2005-03-02 16:25:54
|
I'm not sure exactly what you mean by "access to the session". Could you give an example? --- Rares Portan/SPR/RO <rp...@sa...> wrote: > Hello, > > I'm using HtmlUnit for a couple of days to create tests for a web app. > To test some of the pages I need to compare the form values with the > values of some objects kept in session. > > I wasn't able to get access to the session, is it possible? How can I do > that? > > Thank you |
From: Brad C. <yo...@br...> - 2005-03-02 16:20:52
|
The WARNING is harmless but suggests that your system does not have a mime type setup for the .js file extension. For file URLs we pass off content type interpretation to java which should query whatever method your OS uses to keep up with that kind of thing. The SEVERE is a syntax error in your javascript file. --- nikola <web...@ya...> wrote: > hi, I have problem including external javascript file > here is the code: > > String js_1 = > "file://D:/FoxServ/www/app/javascript/main.js"; > > final String content = > "<html><head><title>aaa</title>" > > +"<script language=\"JavaScript\" src=" + js_1 +" > type=\"text/javascript\"></script>" > > ... > when I load the page > > final HtmlPage page = loadPage(content); > > I get this error: > > 2005.03.02 09:43:16 > com.gargoylesoftware.htmlunit.html.HtmlPage > loadJavaScriptFromUrl > WARNING: Expected content type of text/javascript or > application/x-javascript for remotely loaded > javascript element > file://D:/FoxServ/www/app/javascript/main.js but got > [text/html] > 2005.03.02 09:43:16 > com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter > error > SEVERE: error: message=[syntax error] > sourceName=[file://D:/FoxServ/www/app/javascript/main.js] > > what am I doing wrong ? > thanks ... |
From: Brad C. <yo...@br...> - 2005-03-02 16:15:32
|
Assuming that this works in the browser for you then it's likely a bug with no simple fix (you could pull latest CVS and make a custom RefreshHandler but it would not be a generic fix because the data it's given would be incorrect). That seems like a strange thing to specify in a Location header for the response you expect. Is there a spec anywhere on interpretation of incomplete URIs in HTTP Location headers? --- Mike Firth <mik...@ho...> wrote: > Hi, > > Is there a quick workaround to this problem? And should I submit it as a > bug? > > A redirect (302) occurs in a frame. It specifies a relative location, but > HtmlUnit is truncating the address, causing the website to respond with the > whole frameset. When autoredirect is on, this causes an infinite loop! I > never get past webClient.getPage(url) and the log fills up with: > > 22:33:15,132 (HttpMethodDirector:780) INFO [main] - Redirect requested but > followRedirects is disabled > 22:33:17,059 (HttpMethodDirector:780) INFO [main] - Redirect requested but > followRedirects is disabled > etc, etc, etc. > > My code: > final WebClient webClient = new > WebClient(BrowserVersion.INTERNET_EXPLORER_6_0); > webClient.setRedirectEnabled(true); > final URL url = new URL("http://somewhere.com/main/"); > final HtmlPage page = (HtmlPage) webClient.getPage(url); > > The response is 200 OK and this: > > <html> > <head> > <title>somewhere.com</title> > <meta http-equiv="Content-Type" content="text/html"> > </head> > <frameset rows="0,*" frameborder="NO" border="0" framespacing="0"> > <frame src="blank.php" name="stealthFrame" scrolling="NO" noresize > > <frame src="front.php" name="frontFrame"> > </frameset> > <noframes> > <body> > </body></noframes> > </html> > > but front.php returns 302 Found, with location: ?choice=first , which should > cause this: > > GET /main/front.php?choice=first > > but instead HtmlUnit does this: > > GET /main/?choice=first > > which the website responds to by sending the first page again. Instant loop. > > Is there a quick workaround? How do you code to handle a redirect manually? > > Regards, > > Mike |
From: Rares Portan/SPR/RO <rp...@sa...> - 2005-03-02 14:21:14
|
Hello, I'm using HtmlUnit for a couple of days to create tests for a web app. To test some of the pages I need to compare the form values with the values of some objects kept in session. I wasn't able to get access to the session, is it possible? How can I do that? Thank you |
From: nikola <web...@ya...> - 2005-03-02 08:48:09
|
hi, I have problem including external javascript file here is the code: String js_1 = "file://D:/FoxServ/www/app/javascript/main.js"; final String content = "<html><head><title>aaa</title>" +"<script language=\"JavaScript\" src=" + js_1 +" type=\"text/javascript\"></script>" ... when I load the page final HtmlPage page = loadPage(content); I get this error: 2005.03.02 09:43:16 com.gargoylesoftware.htmlunit.html.HtmlPage loadJavaScriptFromUrl WARNING: Expected content type of text/javascript or application/x-javascript for remotely loaded javascript element file://D:/FoxServ/www/app/javascript/main.js but got [text/html] 2005.03.02 09:43:16 com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter error SEVERE: error: message=[syntax error] sourceName=[file://D:/FoxServ/www/app/javascript/main.js] what am I doing wrong ? thanks ... __________________________________ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ |
From: Mike F. <mik...@ho...> - 2005-03-01 13:03:30
|
Hi, Is there a quick workaround to this problem? And should I submit it as a bug? A redirect (302) occurs in a frame. It specifies a relative location, but HtmlUnit is truncating the address, causing the website to respond with the whole frameset. When autoredirect is on, this causes an infinite loop! I never get past webClient.getPage(url) and the log fills up with: 22:33:15,132 (HttpMethodDirector:780) INFO [main] - Redirect requested but followRedirects is disabled 22:33:17,059 (HttpMethodDirector:780) INFO [main] - Redirect requested but followRedirects is disabled etc, etc, etc. My code: final WebClient webClient = new WebClient(BrowserVersion.INTERNET_EXPLORER_6_0); webClient.setRedirectEnabled(true); final URL url = new URL("http://somewhere.com/main/"); final HtmlPage page = (HtmlPage) webClient.getPage(url); The response is 200 OK and this: <html> <head> <title>somewhere.com</title> <meta http-equiv="Content-Type" content="text/html"> </head> <frameset rows="0,*" frameborder="NO" border="0" framespacing="0"> <frame src="blank.php" name="stealthFrame" scrolling="NO" noresize > <frame src="front.php" name="frontFrame"> </frameset> <noframes> <body> </body></noframes> </html> but front.php returns 302 Found, with location: ?choice=first , which should cause this: GET /main/front.php?choice=first but instead HtmlUnit does this: GET /main/?choice=first which the website responds to by sending the first page again. Instant loop. Is there a quick workaround? How do you code to handle a redirect manually? Regards, Mike _________________________________________________________________ Dont just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ |
From: Erskine, C. <chr...@ed...> - 2005-02-24 15:25:16
|
Often this may mean that you have a bug in your JS which looks like it works or may use a bug within the browser to work but does not work with the standard DOM. Try running this in your browser with errors turned on to see if it complains. Also look at the HtmlUnit web site to see how to help debug JS problems. If you still can not find it, try building a jUnit testcase that will duplicate the problem. You can capture the HTML source from your browser to get the JSP and Struts artifacts out of the code and then reduce the HTML to the least amount that still produces the error. Chris Erskine EDS Consulting Services Colorado Springs, CO Phone: 719-265-5962 Cell: 719-640-6488 > -----Original Message----- > From: htm...@li... [mailto:htmlunit-user- > ad...@li...] On Behalf Of Jeff Marendo > Sent: Thursday, February 24, 2005 7:45 AM > To: htm...@li... > Subject: [Htmlunit-user] Javascript Errors > > Hello, > > I'm using HtmlUnit and have run into a problem that is related to the > interaction between the software and our usage of JavaScript. I've > stepped > through our application, HtmlUnit and Rhino source code using the debugger > in WebSphere Studio Application Developer 5.1.0, and I'm getting an > EvaluatorException at runtime like so: > > org.mozilla.javascript.EvaluatorException: The undefined value has no > properties. > > It is caught in the execute(HtmlPage, String, String, HtmlElement) method > of > the JavaScriptEngine class, but I think it might actually be occurring in > either the evaluateReader(Scriptable, Reader, String, int, Object) or > evaluteString(Scriptable, String, String, int, Object) method of the > org.mozilla.javascript.Context class. I realize that class is part of the > Rhino distribution, but I'm posting this message b/c of information I > found > in this link: > > http://sourceforge.net/mailarchive/message.php?msg_id=7662863 > > indicated that the exception "...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)...". > > The script that is being executed is pasted below: > > function submittingToCms() { > var i, numEls = document.cmsForm.elements.length; > for(i=0; i<numEls; i++) { > document.cmsForm.elements[i].disabled = false; > } > document.cmsForm.elements.sendButton.disabled = true; > } > > It is executed after posting from an HTML form using a submit button like > so: > > <html-el:form action="/cms/update" focus="${focusField}" > onsubmit="return submittingToCms();" > styleId="cmsForm"> > ... > </html-el:form> > > The script is embedded within the page that contains the form, and that > page > has a number of Struts (version 1.1) tags from the struts-html-el.tld and > struts-html.tld libraries. I'm not sure if that is part of the problem or > not. > > We don't have a public server to access to try to troubleshoot the problem, > but I'm hoping someone might be able to help without that. I've included > a > simplified view that shows the general sequence of classes and methods > that > I stepped through until the exception was thrown. I can provide more > information as necessary. Please take a look and share your ideas for how > I > can work through this problem. We stopped using jWebUnit b/c it couldn't > handle our JavaScript, which I think is minimal and straightforward > (compared to other apps on which I've worked!), and switched to HmtlUnit > b/c > of the greater support it offers. > > Thank you. > > Jeff > > Debugging Steps: > 1. org.mozilla.javascript.Context > - evaluateReader(Scriptable, Reader, String, int, Object) > > 2. org.mozilla.javascript.gen.c196 (could not be found) > > 3. org.mozilla.javascript.Context > - evaluateReader(Scriptable, Reader, String, int, Object > > 4. org.mozilla.javascript.Context > - evaluateString(Scriptable, String, String, int, Object) > - evaluateReader(Scriptable, Reader, String, int, Object) > > 5. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine > - execute(HtmlPage, String, String, HtmlElement) > > 6. com.gargoylesoftware.htmlunit.html.HtmlPage > - executeJavaScriptIfPossible(String, String, boolean, HtmlElement) > > 7. org.mozilla.javascript.Context > - evaluateReader(Scriptable, Reader, String, int, Object) > > 8. org.mozilla.javascript.gen.c197 (could not be found) > > 9. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine > - execute(HtmlPage, String, String, HtmlElement) ---> Throwable: > org.mozilla.javascript.EvaluatorException: The undefined value has no > properties. > > > > > ------------------------------------------------------- > 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://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Jeff M. <jma...@ho...> - 2005-02-24 14:46:42
|
Hello, I'm using HtmlUnit and have run into a problem that is related to the interaction between the software and our usage of JavaScript. I've stepped through our application, HtmlUnit and Rhino source code using the debugger in WebSphere Studio Application Developer 5.1.0, and I'm getting an EvaluatorException at runtime like so: org.mozilla.javascript.EvaluatorException: The undefined value has no properties. It is caught in the execute(HtmlPage, String, String, HtmlElement) method of the JavaScriptEngine class, but I think it might actually be occurring in either the evaluateReader(Scriptable, Reader, String, int, Object) or evaluteString(Scriptable, String, String, int, Object) method of the org.mozilla.javascript.Context class. I realize that class is part of the Rhino distribution, but I'm posting this message b/c of information I found in this link: http://sourceforge.net/mailarchive/message.php?msg_id=7662863 indicated that the exception "...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)...". The script that is being executed is pasted below: function submittingToCms() { var i, numEls = document.cmsForm.elements.length; for(i=0; i<numEls; i++) { document.cmsForm.elements[i].disabled = false; } document.cmsForm.elements.sendButton.disabled = true; } It is executed after posting from an HTML form using a submit button like so: <html-el:form action="/cms/update" focus="${focusField}" onsubmit="return submittingToCms();" styleId="cmsForm"> ... </html-el:form> The script is embedded within the page that contains the form, and that page has a number of Struts (version 1.1) tags from the struts-html-el.tld and struts-html.tld libraries. I'm not sure if that is part of the problem or not. We don't have a public server to access to try to troubleshoot the problem, but I'm hoping someone might be able to help without that. I've included a simplified view that shows the general sequence of classes and methods that I stepped through until the exception was thrown. I can provide more information as necessary. Please take a look and share your ideas for how I can work through this problem. We stopped using jWebUnit b/c it couldn't handle our JavaScript, which I think is minimal and straightforward (compared to other apps on which I've worked!), and switched to HmtlUnit b/c of the greater support it offers. Thank you. Jeff Debugging Steps: 1. org.mozilla.javascript.Context - evaluateReader(Scriptable, Reader, String, int, Object) 2. org.mozilla.javascript.gen.c196 (could not be found) 3. org.mozilla.javascript.Context - evaluateReader(Scriptable, Reader, String, int, Object 4. org.mozilla.javascript.Context - evaluateString(Scriptable, String, String, int, Object) - evaluateReader(Scriptable, Reader, String, int, Object) 5. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine - execute(HtmlPage, String, String, HtmlElement) 6. com.gargoylesoftware.htmlunit.html.HtmlPage - executeJavaScriptIfPossible(String, String, boolean, HtmlElement) 7. org.mozilla.javascript.Context - evaluateReader(Scriptable, Reader, String, int, Object) 8. org.mozilla.javascript.gen.c197 (could not be found) 9. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine - execute(HtmlPage, String, String, HtmlElement) ---> Throwable: org.mozilla.javascript.EvaluatorException: The undefined value has no properties. |
From: Erskine, C. <chr...@ed...> - 2005-02-21 01:52:06
|
Quick guess without looking into the code is that your web server is not configured to send content type of JavaScript for the type of file that you are requesting. As an example, for my web server, based upon Apache, I have 'application/x-javascript js' in my mime.types file and I name my JavaScript include files *.js. Chris Erskine EDS Consulting Services Colorado Springs, CO Phone: 719-265-5962 Cell: 719-640-6488 _____ From: htm...@li... [mailto:htm...@li...] On Behalf Of Jeff Barrett Sent: Sunday, February 20, 2005 3:27 PM To: htm...@li... Subject: [Htmlunit-user] javascript and "expected content type" warnings The below WARN messages are displayed when trying to retrieve the front page of our web application. Each message seems to represent one of the javascript files loaded for our front page. I'm using jdk1.4.2 and weblogic 8.1sp2. I've tried tracing it through w/ a debugger but it's a bit hard to follow what's going on. Any idea why it would do this and how to fix the warning? I know I can suppress the warnings but I'd rather fix the problem. Thanks. [testSpec] WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected content type of text/javascript or application/x-javascript for remotely loaded javascript element http://localhost/fwm/js/request.js;jsessionid=CZK1ZMmy8RkZpjAzjOo8VkgN7Z4ShX FedXpIN5FONXIJ2Lqqn01g!-1241152151 but got [] [testSpec] WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected content type of text/javascript or application/x-javascript for remotely loaded javascript element http://localhost/fwm/js/fwmgb.js;jsessionid=CZK1ZMmy8RkZpjAzjOo8VkgN7Z4ShXFe dXpIN5FONXIJ2Lqqn01g!-1241152151 but got [] [testSpec] WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected content type of text/javascript or application/x-javascript for remotely loaded javascript element http://localhost/fwm/js/date.js;jsessionid=CZK1ZMmy8RkZpjAzjOo8VkgN7Z4ShXFed XpIN5FONXIJ2Lqqn01g!-1241152151 but got [] [testSpec] WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected content type of text/javascript or application/x-javascript for remotely loaded javascript element http://localhost/fwm/js/calendar1.js;jsessionid=CZK1ZMmy8RkZpjAzjOo8VkgN7Z4S hXFedXpIN5FONXIJ2Lqqn01g!-1241152151 but got [] [testSpec] WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected content type of text/javascript or application/x-javascript for remotely loaded javascript element http://localhost/fwm/js/calendar2.js;jsessionid=CZK1ZMmy8RkZpjAzjOo8VkgN7Z4S hXFedXpIN5FONXIJ2Lqqn01g!-1241152151 but got [] [testSpec] WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected content type of text/javascript or application/x-javascript for remotely loaded javascript element http://localhost/fwm/js/coolmenupro.js;jsessionid=CZK1ZMmy8RkZpjAzjOo8VkgN7Z 4ShXFedXpIN5FONXIJ2Lqqn01g!-1241152151 but got [] [testSpec] WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected content type of text/javascript or application/x-javascript for remotely loaded javascript element http://localhost/fwm/js/select.js;jsessionid=CZK1ZMmy8RkZpjAzjOo8VkgN7Z4ShXF edXpIN5FONXIJ2Lqqn01g!-1241152151 but got [] [testSpec] WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected content type of text/javascript or application/x-javascript for remotely loaded javascript element http://localhost/fwm/js/showhide.js;jsessionid=CZK1ZMmy8RkZpjAzjOo8VkgN7Z4Sh XFedXpIN5FONXIJ2Lqqn01g!-1241152151 but got [] [testSpec] WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected content type of text/javascript or application/x-javascript for remotely loaded javascript element http://localhost/fwm/js/date-picker.js;jsessionid=CZK1ZMmy8RkZpjAzjOo8VkgN7Z 4ShXFedXpIN5FONXIJ2Lqqn01g!-1241152151 but got [] [testSpec] WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected content type of text/javascript or application/x-javascript for remotely loaded javascript element http://localhost/fwm/js/checkbox.js;jsessionid=CZK1ZMmy8RkZpjAzjOo8VkgN7Z4Sh XFedXpIN5FONXIJ2Lqqn01g!-1241152151 but got [] [testSpec] WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected content type of text/javascript or application/x-javascript for remotely loaded javascript element http://localhost/fwm/js/dom2.js;jsessionid=CZK1ZMmy8RkZpjAzjOo8VkgN7Z4ShXFed XpIN5FONXIJ2Lqqn01g!-1241152151 but got [] |
From: Jeff B. <jba...@fi...> - 2005-02-20 22:27:26
|
The below WARN messages are displayed when trying to retrieve the front page of our web application. Each message seems to represent one of the javascript files loaded for our front page. I'm using jdk1.4.2 and weblogic 8.1sp2. I've tried tracing it through w/ a debugger but it's a bit hard to follow what's going on. =20 =20 Any idea why it would do this and how to fix the warning? I know I can suppress the warnings but I'd rather fix the problem. =20 =20 Thanks. =20 [testSpec] WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected content type of text/javascript or application/x-javascript for remotely loaded javascript element http://localhost/fwm/js/request.js;jsessionid=3DCZK1ZMmy8RkZpjAzjOo8VkgN7= Z 4ShXFedXpIN5FONXIJ2Lqqn01g!-1241152151 but got [] [testSpec] WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected content type of text/javascript or application/x-javascript for remotely loaded javascript element http://localhost/fwm/js/fwmgb.js;jsessionid=3DCZK1ZMmy8RkZpjAzjOo8VkgN7Z4= S hXFedXpIN5FONXIJ2Lqqn01g!-1241152151 but got [] [testSpec] WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected content type of text/javascript or application/x-javascript for remotely loaded javascript element http://localhost/fwm/js/date.js;jsessionid=3DCZK1ZMmy8RkZpjAzjOo8VkgN7Z4S= h XFedXpIN5FONXIJ2Lqqn01g!-1241152151 but got [] [testSpec] WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected content type of text/javascript or application/x-javascript for remotely loaded javascript element http://localhost/fwm/js/calendar1.js;jsessionid=3DCZK1ZMmy8RkZpjAzjOo8Vkg= N 7Z4ShXFedXpIN5FONXIJ2Lqqn01g!-1241152151 but got [] [testSpec] WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected content type of text/javascript or application/x-javascript for remotely loaded javascript element http://localhost/fwm/js/calendar2.js;jsessionid=3DCZK1ZMmy8RkZpjAzjOo8Vkg= N 7Z4ShXFedXpIN5FONXIJ2Lqqn01g!-1241152151 but got [] [testSpec] WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected content type of text/javascript or application/x-javascript for remotely loaded javascript element http://localhost/fwm/js/coolmenupro.js;jsessionid=3DCZK1ZMmy8RkZpjAzjOo8V= k gN7Z4ShXFedXpIN5FONXIJ2Lqqn01g!-1241152151 but got [] [testSpec] WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected content type of text/javascript or application/x-javascript for remotely loaded javascript element http://localhost/fwm/js/select.js;jsessionid=3DCZK1ZMmy8RkZpjAzjOo8VkgN7Z= 4 ShXFedXpIN5FONXIJ2Lqqn01g!-1241152151 but got [] [testSpec] WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected content type of text/javascript or application/x-javascript for remotely loaded javascript element http://localhost/fwm/js/showhide.js;jsessionid=3DCZK1ZMmy8RkZpjAzjOo8VkgN= 7 Z4ShXFedXpIN5FONXIJ2Lqqn01g!-1241152151 but got [] [testSpec] WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected content type of text/javascript or application/x-javascript for remotely loaded javascript element http://localhost/fwm/js/date-picker.js;jsessionid=3DCZK1ZMmy8RkZpjAzjOo8V= k gN7Z4ShXFedXpIN5FONXIJ2Lqqn01g!-1241152151 but got [] [testSpec] WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected content type of text/javascript or application/x-javascript for remotely loaded javascript element http://localhost/fwm/js/checkbox.js;jsessionid=3DCZK1ZMmy8RkZpjAzjOo8VkgN= 7 Z4ShXFedXpIN5FONXIJ2Lqqn01g!-1241152151 but got [] [testSpec] WARN (com.gargoylesoftware.htmlunit.html.HtmlPage) - Expected content type of text/javascript or application/x-javascript for remotely loaded javascript element http://localhost/fwm/js/dom2.js;jsessionid=3DCZK1ZMmy8RkZpjAzjOo8VkgN7Z4S= h XFedXpIN5FONXIJ2Lqqn01g!-1241152151 but got [] |
From: Vinay M. <vin...@gm...> - 2005-02-18 05:06:22
|
Hi, I am trying to connect to a site that performs client authentication as a part of the SSL handshake. I have jdk 1.4.2_06 and HtmlUnit 1.4. JSSE comes integrated with the jdk. JSSE doesnt seem to be picking up the certificate from the keystore during the client authentication phase. I googled around and found some code snippets that involved writing my own KeyManager and forcing my certificate's alias to be returned whenever there's a request to the KeyManager to pick a client alias. This successfully, results in the the required certificate being sent to the server. 1) Is this is a known bug about JSSE and should I be sending this mail to a java forum instead ? 2) Has anybody been able to use HtmlUnit and perform the client authentication using JSSE but without the force-picking of the client alias ? 3) If it is required to actually have a custom KeyManager, then I presume changes should be made to the HttpClient code to use the customer KeyManager. Is there a way to do this by setting a system property ? Any help would be greatly appreciated. code snippets I was talking about are available at: http://forum.java.sun.com/thread.jsp?forum=2&thread=198871 http://forum.java.sun.com/thread.jspa?forumID=2&threadID=244247 Best Regards, Vinay |
From: Vinay M. <vin...@gm...> - 2005-02-16 11:40:13
|
Hi, I am trying to use HtmlUnit to connect to a site over https. When I access this site through a browser, the site first installs a certificate on my machine and expects me to use this certificate everytime I connect to the site. I would like to know of how I could make HtmlUnit use this particular certificate when it tries to hit the site. Thanks and Best Regards Vinay Murthy |
From: Mike B. <mb...@Ga...> - 2005-02-16 11:38:04
|
Damien Taylor wrote: > When trying to run the simplest of HtmlUnit tests using the junit awt > and swing runners I get the following error. > This generally indicates class loader issues. If there is an option to reload classes dynamically then turn that off. If you're trying to run this from within an IDE such as eclipse then try to run the tests outside of the IDE. Hope this helps. -- Mike Bowler President, Gargoyle Software Inc. Website: http://www.GargoyleSoftware.com Weblog : http://www.SphericalImprovement.com/blogs/mbowler/ |
From: Damien T. <D.T...@ka...> - 2005-02-16 09:16:53
|
When trying to run the simplest of HtmlUnit tests using the junit awt and swing runners I get the following error.=20 java.lang.ExceptionInInitializerError at com.gargoylesoftware.htmlunit.HttpWebConnection.getHttpClientFor HttpWebConnection.java:333) at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConne ction.java:145) .. .. .. Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed. (Caused by org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed.) (Caused by org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed. (Caused by org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed.)) I only have reference to commons-logging-1.0.4.jar on my class path. When I remove it from the class path I get a different error indicating that it cannot find the logging classes. Any ideas what could be causing this or how i could ifx it. Note: the test works fine when using the text runner. Thanks Damien This e-mail is confidential and is intended for the named recipient = only. If you receive it in error please destroy the message and all copies. = Kainos Software Ltd. does not accept liability for damage sustained as a result = of malicious software (e.g. viruses). Kainos does not accept liability for, = or permit, the creation of contracts on its behalf by e-mail, the = publication of any defamatory statement by its employees by e-mail, or changes = subsequently made to the original message. The Company's registered office is located = at 4-6 Upper Crescent, Belfast, BT7 1NT, Northern Ireland, Tel +44 28 9057 = 1100. |
From: Sridhar R. <Sri...@Su...> - 2005-02-15 22:05:24
|
Thanks.. :) Brad Clarke wrote: > I put my method on a wiki page for you: >=20 > http://htmlunit.sourceforge.net/phpwiki/index.php/SelectOptionByTex= t >=20 >=20 > --- Sridhar Ranganathan <Sri...@Su...> wrote: >=20 >=20 >>Hi, >> >>Is there any way to click the drop-down option using the caption di= splayed ? >> >> >>I have a drop-down with options like : >> >><option class=3D"MnuJmpOpt" value=3D"0">=97 Operations =97</option> >><option class=3D"MnuJmpOptDis" value=3D"8" disabled=3D"disabled">Cr= eate </option> >><option class=3D"MnuJmpOptDis" value=3D"6" disabled=3D"disabled">Mo= dify</option> >><option class=3D"MnuJmpOptDis" value=3D"1" disabled=3D"disabled">De= lete</option> >><option class=3D"MnuJmpOptDis" value=3D"2" disabled=3D"disabled">Se= ttings</option> >> >> >>Currently, I am choosing using the value like "1" or "2" etc., Is t= here >>any way to choose using "Create" / "Modify" - which the user sees o= n the >>screen. >> >>thanks >>Sridhar >=20 >=20 >=20 >=20 > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real u= sers. > Discover which products truly live up to the hype. Start reading no= w. > http://ads.osdn.com/?ad_id=3D6595&alloc_id=3D14396&op=3Dclick > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user --=20 Sridhar R |
From: Brad C. <yo...@br...> - 2005-02-15 21:44:01
|
I put my method on a wiki page for you: http://htmlunit.sourceforge.net/phpwiki/index.php/SelectOptionByText --- Sridhar Ranganathan <Sri...@Su...> wrote: > > Hi, > > Is there any way to click the drop-down option using the caption displayed ? > > > I have a drop-down with options like : > > <option class="MnuJmpOpt" value="0"> Operations </option> > <option class="MnuJmpOptDis" value="8" disabled="disabled">Create </option> > <option class="MnuJmpOptDis" value="6" disabled="disabled">Modify</option> > <option class="MnuJmpOptDis" value="1" disabled="disabled">Delete</option> > <option class="MnuJmpOptDis" value="2" disabled="disabled">Settings</option> > > > Currently, I am choosing using the value like "1" or "2" etc., Is there > any way to choose using "Create" / "Modify" - which the user sees on the > screen. > > thanks > Sridhar |
From: Sridhar R. <Sri...@Su...> - 2005-02-15 21:34:01
|
Hi, Is there any way to click the drop-down option using the caption displayed ? I have a drop-down with options like : <option class="MnuJmpOpt" value="0">— Operations —</option> <option class="MnuJmpOptDis" value="8" disabled="disabled">Create </option> <option class="MnuJmpOptDis" value="6" disabled="disabled">Modify</option> <option class="MnuJmpOptDis" value="1" disabled="disabled">Delete</option> <option class="MnuJmpOptDis" value="2" disabled="disabled">Settings</option> Currently, I am choosing using the value like "1" or "2" etc., Is there any way to choose using "Create" / "Modify" - which the user sees on the screen. thanks Sridhar |
From: Brad C. <yo...@br...> - 2005-02-15 18:11:54
|
I'm not exactly sure how it works myself but this might be what you're looking for: http://htmlunit.sourceforge.net/jelly-reference.html --- "Bru, Pierre" <Pie...@sp...> wrote: > hi, > > html evolved a lot since the old days of html 3.2and I'm in the process or > replacing my old WebL procedures(http://research.compaq.com/SRC/WebL/) with > something more up-to-date. > > searching the web I found htmlunit. I mainly use WebL to check pages for update or > merge info from multiple page into a summary html page. > > htmlunit seems to do the trick but it seems that I need to recompile a javaprogram > each time I want to change a little thing in my test/summary. am I right ? can I > drive htmlunit with an interpreted language (à-la WebL) ? if not, are you aware of > another tool that could help me ? > > TIA, > Pierre. > |
From: Bru, P. <Pie...@sp...> - 2005-02-15 18:04:50
|
hi, =20 html evolved a lot since the old days of html 3.2and I'm in the process = or replacing my old WebL = procedures(http://research.compaq.com/SRC/WebL/) with something more = up-to-date. =20 searching the web I found htmlunit. I mainly use WebL to check pages for = update or merge info from multiple page into a summary html page. =20 htmlunit seems to do the trick but it seems that I need to recompile a = javaprogram each time I want to change a little thing in my = test/summary. am I right ? can I drive htmlunit with an interpreted = language (=E0-la WebL) ? if not, are you aware of another tool that = could help me ? =20 TIA, Pierre. |
From: David D.K. <ddk...@ki...> - 2005-02-11 16:19:03
|
Try a "/" at the end of the proxy URL? :) You should be able to write a log4j.properties (or log4j.xml) file that enables debugging on the commmons-httpclient software (which is the software that is doing all the http requests for htmlunit). http://jakarta.apache.org/commons/httpclient/ http://jakarta.apache.org/commons/httpclient/logging.html Dave On Feb 9, 2005, at 10:58 AM, Gil Hauer wrote: > Hi, > > Thanks for the suggestions. > > Yes, nslookup works and fully qualified domain names also fail in the > same manner. No WINS involved on this network as this is running on a > Linux client against Solaris servers. > > Is there any debugging or logging that I can do to help diagnose this > problem? > > Thanks, > Gil > > > On Wed, 2005-02-09 at 00:55, David D.Kilzer wrote: >> Does "nslookup webcache" work? I'm always distrustful of hostnames >> that aren't fully qualified. It's usually a sign of a Windows network >> that is lacking proper DNS. As far as I know, Java is going to >> attempt >> to lookup the hostname using DNS, as opposed to WINS. The "nslookup" >> command will force Windows to resolve the hostname through DNS instead >> of WINS on your PC. >> >> Dave >> >> >> On Feb 8, 2005, at 1:48 PM, Gil Hauer wrote: >> >>> When I try and run a simple test program behind a corporate firewall >>> I >>> get: >>> >>> java.net.UnknownHostException: http://webcache >>> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177) >>> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364) >>> at java.net.Socket.connect(Socket.java:505) >>> >>> 'webcache' is the proxy and I've set it in the code as: >>> final WebClient webClient = >>> new WebClient(BrowserVersion.MOZILLA_1_0, >>> "http://webcache", >>> 8080); >>> >>> Is there any reason why it would not be found? If I ping from the it >>> seems to be found ... >>> >>> Any help would be appreciated. >>> >>> Thanks, >>> Gil >> > |
From: Gil H. <gi...@te...> - 2005-02-09 16:59:28
|
Hi, Thanks for the suggestions. Yes, nslookup works and fully qualified domain names also fail in the same manner. No WINS involved on this network as this is running on a Linux client against Solaris servers. Is there any debugging or logging that I can do to help diagnose this problem? Thanks, Gil On Wed, 2005-02-09 at 00:55, David D.Kilzer wrote: > Does "nslookup webcache" work? I'm always distrustful of hostnames > that aren't fully qualified. It's usually a sign of a Windows network > that is lacking proper DNS. As far as I know, Java is going to attempt > to lookup the hostname using DNS, as opposed to WINS. The "nslookup" > command will force Windows to resolve the hostname through DNS instead > of WINS on your PC. > > Dave > > > On Feb 8, 2005, at 1:48 PM, Gil Hauer wrote: > > > When I try and run a simple test program behind a corporate firewall I > > get: > > > > java.net.UnknownHostException: http://webcache > > at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177) > > at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364) > > at java.net.Socket.connect(Socket.java:505) > > > > 'webcache' is the proxy and I've set it in the code as: > > final WebClient webClient = > > new WebClient(BrowserVersion.MOZILLA_1_0, > > "http://webcache", > > 8080); > > > > Is there any reason why it would not be found? If I ping from the it > > seems to be found ... > > > > Any help would be appreciated. > > > > Thanks, > > Gil > > > > ------------------------------------------------------- > 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://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: David D.K. <ddk...@ki...> - 2005-02-09 05:56:09
|
Does "nslookup webcache" work? I'm always distrustful of hostnames that aren't fully qualified. It's usually a sign of a Windows network that is lacking proper DNS. As far as I know, Java is going to attempt to lookup the hostname using DNS, as opposed to WINS. The "nslookup" command will force Windows to resolve the hostname through DNS instead of WINS on your PC. Dave On Feb 8, 2005, at 1:48 PM, Gil Hauer wrote: > When I try and run a simple test program behind a corporate firewall I > get: > > java.net.UnknownHostException: http://webcache > at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177) > at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364) > at java.net.Socket.connect(Socket.java:505) > > 'webcache' is the proxy and I've set it in the code as: > final WebClient webClient = > new WebClient(BrowserVersion.MOZILLA_1_0, > "http://webcache", > 8080); > > Is there any reason why it would not be found? If I ping from the it > seems to be found ... > > Any help would be appreciated. > > Thanks, > Gil |