Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    via Stack Overflow by LittlePanda

    To restart the Selenium Webdriver mock browser in a testcase, first use driver.close() and then reinstantiate the driver.

  2. ,
    via GitHub by rawlingsj

    host port isnt set

Solutions on the web

via qanda.ren by Unknown author, 1 year ago
com.gargoylesoftware.htmlunit.ScriptException: Exception invoking submit Build info: version: '2.47.1', revision: '411b314', time: '2015-07-30 03:03:16' System info: host: '********', ip: '***********', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_40' Driver info: driver.version: HtmlUnitDriver
via sourceforge.net by Unknown author, 1 year ago
com.gargoylesoftware.htmlunit.ScriptException: Exception invoking setOnopen Build info: version: '2.42.0', revision: '5e824302019c86eae9c8c3ca9155e7307b410cf8', time: '2014-05-24 09:48:41' System info: host: 'MYCOMPUTER', ip: '192.168.0.2', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.8.0_60' Driver info: driver.version: HtmlUnitDriver
via htmlunit by eliasbalasis
, 1 year ago
com.gargoylesoftware.htmlunit.ScriptException: Exception invoking setOnopen Build info: version: '2.42.0', revision: '5e824302019c86eae9c8c3ca9155e7307b410cf8', time: '2014-05-24 09:48:41' System info: host: 'MYCOMPUTER', ip: '192.168.0.2', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.8.0_60' Driver info: driver.version: HtmlUnitDriver
java.net.ConnectException: Connection refused: connect	at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)	at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85)	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)	at java.net.Socket.connect(Socket.java:589)	at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:74)	at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:134)	at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)	at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380)	at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)	at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)	at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)	at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)	at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:71)	at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:184)	at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1316)	at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1233)	at com.gargoylesoftware.htmlunit.WebClient.download(WebClient.java:2050)	at com.gargoylesoftware.htmlunit.javascript.host.html.HTMLFormElement.submit(HTMLFormElement.java:355)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:497)	at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:153)	at net.sourceforge.htmlunit.corejs.javascript.FunctionObject.call(FunctionObject.java:449)	at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1536)	at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:798)	at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:105)	at com.gargoylesoftware.htmlunit.javascript.host.event.EventHandler.call(EventHandler.java:82)	at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:411)	at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:309)	at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3286)	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$4.doRun(JavaScriptEngine.java:772)	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:832)	at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:628)	at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:513)	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:779)	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:751)	at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:1008)	at com.gargoylesoftware.htmlunit.javascript.host.event.EventListenersContainer.executeEventHandler(EventListenersContainer.java:234)	at com.gargoylesoftware.htmlunit.javascript.host.event.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:254)	at com.gargoylesoftware.htmlunit.javascript.host.event.EventTarget.fireEvent(EventTarget.java:186)	at com.gargoylesoftware.htmlunit.html.HtmlElement$1.run(HtmlElement.java:923)	at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:628)	at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:513)	at com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent(HtmlElement.java:928)	at com.gargoylesoftware.htmlunit.html.HtmlPage.executeEventHandlersIfNeeded(HtmlPage.java:1316)	at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:286)	at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:478)	at com.gargoylesoftware.htmlunit.WebClient.loadDownloadedResponses(WebClient.java:2110)	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:875)	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.access$500(JavaScriptEngine.java:104)	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:842)	at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:628)	at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:513)	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:779)	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:751)	at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:1008)	at com.gargoylesoftware.htmlunit.javascript.host.event.EventListenersContainer.executeEventHandler(EventListenersContainer.java:234)	at com.gargoylesoftware.htmlunit.javascript.host.event.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:254)	at com.gargoylesoftware.htmlunit.javascript.host.event.EventTarget.fireEvent(EventTarget.java:186)	at com.gargoylesoftware.htmlunit.html.HtmlElement$1.run(HtmlElement.java:923)	at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:628)	at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:513)	at com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent(HtmlElement.java:928)	at com.gargoylesoftware.htmlunit.html.HtmlPage.executeEventHandlersIfNeeded(HtmlPage.java:1316)	at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:286)	at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:478)	at com.gargoylesoftware.htmlunit.WebClient.loadDownloadedResponses(WebClient.java:2110)	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:875)	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.access$500(JavaScriptEngine.java:104)	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:842)	at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:628)	at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:513)	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:779)	at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:751)	at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:1008)	at org.openqa.selenium.htmlunit.HtmlUnitDriver.executeScript(HtmlUnitDriver.java:677)	at org.openqa.selenium.htmlunit.HtmlUnitWebElement.submitForm(HtmlUnitWebElement.java:213)	at org.openqa.selenium.htmlunit.HtmlUnitWebElement.submit(HtmlUnitWebElement.java:166)	at org.openqa.selenium.htmlunit.HtmlUnitWebElement.submit(HtmlUnitWebElement.java:184)	at WasteClass.main(WasteClass.java:61)