com.gargoylesoftware.htmlunit.ScriptException

SyntaxError: illegal character (eval code#1(eval)#1)

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web102

  • Stack trace

    • com.gargoylesoftware.htmlunit.ScriptException: SyntaxError: illegal character (eval code#1(eval)#1) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:718) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:606) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:540) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:650) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.setState(XMLHttpRequest.java:225) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.doSend(XMLHttpRequest.java:760) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.access$000(XMLHttpRequest.java:104) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest$1.run(XMLHttpRequest.java:621) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:606) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:540) at com.gargoylesoftware.htmlunit.javascript.background.JavascriptXMLHttpRequestJob.run(JavascriptXMLHttpRequestJob.java:36) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl.runSingleJob(JavaScriptJobManagerImpl.java:365) at com.gargoylesoftware.htmlunit.javascript.background.DefaultJavaScriptExecutor.run(DefaultJavaScriptExecutor.java:168) at java.lang.Thread.run(Thread.java:662) Caused by: net.sourceforge.htmlunit.corejs.javascript.EcmaError: SyntaxError: illegal character (eval code#1(eval)#1) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3768) at net.sourceforge.htmlunit.corejs.javascript.DefaultErrorReporter.error(DefaultErrorReporter.java:57) at net.sourceforge.htmlunit.corejs.javascript.Parser.addError(Parser.java:188) at net.sourceforge.htmlunit.corejs.javascript.Parser.addError(Parser.java:166) at net.sourceforge.htmlunit.corejs.javascript.Parser.addError(Parser.java:162) at net.sourceforge.htmlunit.corejs.javascript.TokenStream.getToken(TokenStream.java:829) at net.sourceforge.htmlunit.corejs.javascript.Parser.peekToken(Parser.java:296) at net.sourceforge.htmlunit.corejs.javascript.Parser.parse(Parser.java:524) at net.sourceforge.htmlunit.corejs.javascript.Parser.parse(Parser.java:478) at net.sourceforge.htmlunit.corejs.javascript.Context.compileImpl(Context.java:2465) at net.sourceforge.htmlunit.corejs.javascript.Context.compileString(Context.java:1452) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory$TimeoutContext.compileString(HtmlUnitContextFactory.java:201) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.evalSpecial(ScriptRuntime.java:2553) at net.sourceforge.htmlunit.corejs.javascript.NativeGlobal.js_eval(NativeGlobal.java:498) at net.sourceforge.htmlunit.corejs.javascript.NativeGlobal.execIdCall(NativeGlobal.java:158) at net.sourceforge.htmlunit.corejs.javascript.IdFunctionObject.call(IdFunctionObject.java:97) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2479) at net.sourceforge.htmlunit.corejs.javascript.BaseFunction.execIdCall(BaseFunction.java:269) at net.sourceforge.htmlunit.corejs.javascript.IdFunctionObject.call(IdFunctionObject.java:97) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1473) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:815) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:111) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:430) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:309) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3155) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:109) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$4.doRun(JavaScriptEngine.java:643) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:703) ... 13 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    DavidDavid
    9 times, last one
    raytestraytest
    4 times, last one
    MoYaproMoYapro
    2 times, last one
    mellsonmellson
    Once,
    Unknown visitor
    Unknown visitorOnce,
    1 more bugmates