java.lang.RuntimeException: java.lang.StringIndexOutOfBoundsException: String index out of range: -1

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

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by airudah2000
, 1 year ago
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
via GitHub by KarthigaMuthusamy
, 2 months ago
org.apache.http.conn.HttpHostConnectException: Connect to chromedriver.storage.googleapis.com:443 [chromedriver.storage.googleapis.com/216.58.206.16] failed: Connection timed out: connect
via GitHub by christian-draeger
, 10 months ago
java.net.SocketTimeoutException: Read timed out
java.lang.RuntimeException: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at io.github.bonigarcia.wdm.BrowserManager.manage(BrowserManager.java:272)
at io.github.bonigarcia.wdm.BrowserManager.setup(BrowserManager.java:103)
at io.github.bonigarcia.wdm.BrowserManager.setup(BrowserManager.java:82)
at safe.SafeBaseSpec.(SafeBaseSpec.scala:87)
at safe.A_BeforeTestsSpec.(A_BeforeTestsSpec.scala:10)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
at java.lang.Class.newInstance(Class.java:442)
at org.scalatest.tools.Runner$.genSuiteConfig(Runner.scala:2644)
at org.scalatest.tools.Runner$$anonfun$37.apply(Runner.scala:2461)
at org.scalatest.tools.Runner$.doRunRunRunDaDoRunRun(Runner.scala:2460)
at org.scalatest.tools.Runner$$anonfun$runOptionallyWithPassFailReporter$2.apply(Runner.scala:1044)
at org.scalatest.tools.Runner$$anonfun$runOptionallyWithPassFailReporter$2.apply(Runner.scala:1043)
at org.scalatest.tools.Runner$.withClassLoaderAndDispatchReporter(Runner.scala:2722)
at org.scalatest.tools.Runner$.runOptionallyWithPassFailReporter(Runner.scala:1043)
at org.scalatest.tools.Runner$.run(Runner.scala:883)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.