From: Mike B. <mb...@Ga...> - 2002-07-10 17:12:39
|
Hi Brian, Admittedly it's a horrible error message but what it's telling you is that it can't load a javascript file that is referenced from a <script> tag in the main html page. I'll see if I can get a better error message (something that at least tells you what file couldn't be loaded) for 1.1pre2. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com On Wed, 10 Jul 2002, Brian Knorr wrote: > Thanks for the info.... I am trying out htmlunit 1.1pre1 right now and am experiencing some issues. If I disable javascript all seems to work fine, but if I turn it on and request the same page I get the following error: > > Error loading javascript: > com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException: 404 Not Found > at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:266) > at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:156) > at com.gargoylesoftware.htmlunit.html.HtmlPage.loadJavaScriptFromUrl(HtmlPage.java:714) > at com.gargoylesoftware.htmlunit.html.HtmlPage.executeScriptTagsIfNeeded(HtmlPage.java:703) > at com.gargoylesoftware.htmlunit.html.HtmlPage.<init>(HtmlPage.java:101) > at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:269) > at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:156) > at com.nextjet.htmlunit.HtmlTest.testLoginPage(HtmlTest.java:31) > at java.lang.reflect.Method.invoke(Native Method) > at junit.framework.TestCase.runTest(TestCase.java:166) > at junit.framework.TestCase.runBare(TestCase.java:140) > at junit.framework.TestResult$1.protect(TestResult.java:106) > at junit.framework.TestResult.runProtected(TestResult.java:124) > at junit.framework.TestResult.run(TestResult.java:109) > at junit.framework.TestCase.run(TestCase.java:131) > at junit.framework.TestSuite.runTest(TestSuite.java:173) > at junit.framework.TestSuite.run(TestSuite.java:168) > at junit.swingui.TestRunner$17.run(TestRunner.java:644) > > Thanks, > > Brian > > |