From: Brad C. <yo...@br...> - 2005-06-09 15:31:01
|
That exception is a known bug when a loaded page is using a recursive setTimeout. You can monitor the status of the bug here: http://sourceforge.net/tracker/index.php?func=detail&aid=1103735&group_id=47038&atid=448266 Brad C --- Gael Harbonnier <gae...@ho...> wrote: > Hi, > > >I've just committed a patch of Daniel Gredler making the window the top > >scope for the JS engine, what should only be an internal thing but has > >although good consequences: some js code that I was testing and that had > >strange errors now works fine. > >Therefore I recommend you to wait for this code to be available on the > >public CVS. I don't know what the current update delay is (I guess 2 or 3 > >hours). > > I tried the lastest version from CVS but I've still this exception: > > GRAVE: Caught exception in Window.setTimeout() > ======= EXCEPTION START ======== > Exception class=[org.mozilla.javascript.WrappedException] > com.gargoylesoftware.htmlunit.ScriptException: Wrapped > java.lang.IllegalArgumentException > (http://us.i1.yimg.com/us.yimg.com/i/mc/mc2.js#296) > at > com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:249) > at > com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:718) > at > com.gargoylesoftware.htmlunit.javascript.host.Window$1.run(Window.java:272) > at java.lang.Thread.run(Unknown Source) > WrappedException: org.mozilla.javascript.WrappedException: Wrapped > java.lang.IllegalArgumentException > (http://us.i1.yimg.com/us.yimg.com/i/mc/mc2.js#296) > 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:245) > at > com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:718) > at > com.gargoylesoftware.htmlunit.javascript.host.Window$1.run(Window.java:272) > at java.lang.Thread.run(Unknown Source) > Caused by: java.lang.IllegalArgumentException > at java.lang.Thread.setPriority(Unknown Source) > at > com.gargoylesoftware.htmlunit.javascript.host.Window.jsxFunction_setTimeout(Window.java:287) > at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:174) > ... 14 more > Inside wrapped exception: > java.lang.IllegalArgumentException > at java.lang.Thread.setPriority(Unknown Source) > at > com.gargoylesoftware.htmlunit.javascript.host.Window.jsxFunction_setTimeout(Window.java:287) > at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > 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:245) > at > com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:718) > at > com.gargoylesoftware.htmlunit.javascript.host.Window$1.run(Window.java:272) > at java.lang.Thread.run(Unknown Source) > == CALLING JAVASCRIPT == > GargoyleWrapper34() > ======= EXCEPTION END ======== > 9 juin 2005 12:29:41 com.gargoylesoftware.htmlunit.javascript.host.Window$1 > run > GRAVE: Caught exception in Window.setTimeout() > ======= EXCEPTION START ======== > Exception class=[org.mozilla.javascript.WrappedException] > com.gargoylesoftware.htmlunit.ScriptException: Wrapped > java.lang.IllegalArgumentException > (http://us.i1.yimg.com/us.yimg.com/i/mc/mc2.js#296) > at > com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:249) > at > com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:718) > at > com.gargoylesoftware.htmlunit.javascript.host.Window$1.run(Window.java:272) > at java.lang.Thread.run(Unknown Source) > WrappedException: org.mozilla.javascript.WrappedException: Wrapped > java.lang.IllegalArgumentException > (http://us.i1.yimg.com/us.yimg.com/i/mc/mc2.js#296) > 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:245) > at > com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:718) > at > com.gargoylesoftware.htmlunit.javascript.host.Window$1.run(Window.java:272) > at java.lang.Thread.run(Unknown Source) > Caused by: java.lang.IllegalArgumentException > at java.lang.Thread.setPriority(Unknown Source) > at > com.gargoylesoftware.htmlunit.javascript.host.Window.jsxFunction_setTimeout(Window.java:287) > at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:174) > ... 14 more > Inside wrapped exception: > java.lang.IllegalArgumentException > at java.lang.Thread.setPriority(Unknown Source) > at > com.gargoylesoftware.htmlunit.javascript.host.Window.jsxFunction_setTimeout(Window.java:287) > at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > 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:245) > at > com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:718) > at > com.gargoylesoftware.htmlunit.javascript.host.Window$1.run(Window.java:272) > at java.lang.Thread.run(Unknown Source) > == CALLING JAVASCRIPT == > GargoyleWrapper35() > ======= EXCEPTION END ======== > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput > a projector? How fast can you ride your desk chair down the office luge track? > If you want to score the big prize, get to know the little guy. > Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |