From: <ddk...@ki...> - 2004-06-23 23:04:13
|
The basic authentication problem is being caused by JavaScript code that htmlunit's JavaScript engine is having problems running. (See excerpted stacktrace below.) In order to fix the basic authentication problem, you need to find out why some JavaScript variable is undefined within the DocReady() method in the /ourapp/scripts/tabs.js file. It would help to narrow down this test case (rather than posting the whole JavaScript file and HTML page) if possible. Dave Chad wrote: > We are trying to use HtmlUnit. Out app uses basic authentication, and > we are having problems with it. > [...] > And here is the stacktrace: > [...] > Enclosed exception: ======= EXCEPTION START ======== > EcmaError: lineNumber=[34] column=[0] lineSource=[null] name=[ConversionError] sourceName=[/ourapp/scripts/tabs.js] message=[The undefined value has no properties.] errorObject=[ConversionError: The undefined value has no properties.] > com.gargoylesoftware.htmlunit.ScriptException: The undefined value has no properties. > at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:250) > [...] > == CALLING JAVASCRIPT == > DocReady() > ======= EXCEPTION END ======== |