com.gargoylesoftware.htmlunit.ScriptException

unterminated string literal (script in http://10.224.38.199:8080/UA/full_record.do?product=UA&search_mode=GeneralSearch&qid=1&SID=ICcNbBmlB9OO3CFDIb8&page=1&doc=1 from (12730, 32) to (12780, 10)#12753)

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

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

Solutions on the web316

  • unterminated string literal (script in http://10.224.38.199:8080/UA/full_record.do?product=UA&search_mode=GeneralSearch&qid=1&SID=ICcNbBmlB9OO3CFDIb8&page=1&doc=1 from (12730, 32) to (12780, 10)#12753)
  • via htmlunit by blooo
    , 5 months ago
    TypeError: Expected argument of type object, but instead had type string (script in http://localhost:8000/prototype-stuff.html from (1, 9) to (37, 10)#17)
  • unterminated string literal (http://ad.yieldmanager.com/pixel?id=128563&id=128564&id=128624&id=128625&t=1#3)
  • Stack trace

    • com.gargoylesoftware.htmlunit.ScriptException: unterminated string literal (script in http://10.224.38.199:8080/UA/full_record.do?product=UA&search_mode=GeneralSearch&qid=1&SID=ICcNbBmlB9OO3CFDIb8&page=1&doc=1 from (12730, 32) to (12780, 10)#12753) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:601) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:537) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:538) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:456) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:473) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:880) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:312) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:379) at com.gargoylesoftware.htmlunit.html.HtmlScript$1.execute(HtmlScript.java:225) at com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:245) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:578) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:536) at org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1136) at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1038) at org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:206) at org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:329) at org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:2999) at org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1991) at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:895) at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499) at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:765) at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:211) at com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:165) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:225) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:108) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:429) at com.gargoylesoftware.htmlunit.WebClient.loadDownloadedResponses(WebClient.java:2127) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:627) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.processPostponedActions(JavaScriptEngine.java:705) at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1265) at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1214) at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1177) at com.thomson.ts.ua.test.GeneralSearch.testGeneralSearch(GeneralSearch.java:49) Caused by: net.sourceforge.htmlunit.corejs.javascript.EvaluatorException: unterminated string literal (script in http://10.224.38.199:8080/UA/full_record.do?product=UA&search_mode=GeneralSearch&qid=1&SID=ICcNbBmlB9OO3CFDIb8&page=1&doc=1 from (12730, 32) to (12780, 10)#12753) at com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter.error(StrictErrorReporter.java:64) at net.sourceforge.htmlunit.corejs.javascript.Parser.addError(Parser.java:230) at net.sourceforge.htmlunit.corejs.javascript.Parser.addError(Parser.java:208) at net.sourceforge.htmlunit.corejs.javascript.Parser.addError(Parser.java:204) at net.sourceforge.htmlunit.corejs.javascript.TokenStream.getToken(TokenStream.java:548) at net.sourceforge.htmlunit.corejs.javascript.Parser.peekToken(Parser.java:327) at net.sourceforge.htmlunit.corejs.javascript.Parser.matchToken(Parser.java:380) at net.sourceforge.htmlunit.corejs.javascript.Parser.argumentList(Parser.java:2434) at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExprTail(Parser.java:2583) at net.sourceforge.htmlunit.corejs.javascript.Parser.memberExpr(Parser.java:2502) at net.sourceforge.htmlunit.corejs.javascript.Parser.unaryExpr(Parser.java:2376) at net.sourceforge.htmlunit.corejs.javascript.Parser.mulExpr(Parser.java:2299) at net.sourceforge.htmlunit.corejs.javascript.Parser.addExpr(Parser.java:2281) at net.sourceforge.htmlunit.corejs.javascript.Parser.shiftExpr(Parser.java:2260) at net.sourceforge.htmlunit.corejs.javascript.Parser.relExpr(Parser.java:2233) at net.sourceforge.htmlunit.corejs.javascript.Parser.eqExpr(Parser.java:2203) at net.sourceforge.htmlunit.corejs.javascript.Parser.bitAndExpr(Parser.java:2190) at net.sourceforge.htmlunit.corejs.javascript.Parser.bitXorExpr(Parser.java:2177) at net.sourceforge.htmlunit.corejs.javascript.Parser.bitOrExpr(Parser.java:2164) at net.sourceforge.htmlunit.corejs.javascript.Parser.andExpr(Parser.java:2151) at net.sourceforge.htmlunit.corejs.javascript.Parser.orExpr(Parser.java:2138) at net.sourceforge.htmlunit.corejs.javascript.Parser.condExpr(Parser.java:2114) at net.sourceforge.htmlunit.corejs.javascript.Parser.assignExpr(Parser.java:2083) at net.sourceforge.htmlunit.corejs.javascript.Parser.expr(Parser.java:2060) at net.sourceforge.htmlunit.corejs.javascript.Parser.nameOrLabel(Parser.java:1818) at net.sourceforge.htmlunit.corejs.javascript.Parser.statementHelper(Parser.java:1082) at net.sourceforge.htmlunit.corejs.javascript.Parser.statement(Parser.java:951) at net.sourceforge.htmlunit.corejs.javascript.Parser.parse(Parser.java:568) at net.sourceforge.htmlunit.corejs.javascript.Parser.parse(Parser.java:506) at net.sourceforge.htmlunit.corejs.javascript.Context.compileImpl(Context.java:2412) at net.sourceforge.htmlunit.corejs.javascript.Context.compileString(Context.java:1383) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory$TimeoutContext.compileString(HtmlUnitContextFactory.java:175) at net.sourceforge.htmlunit.corejs.javascript.Context.compileString(Context.java:1372) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$2.doRun(JavaScriptEngine.java:447) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:595)

    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

    Unknown user
    Once, 1 year ago