Jul 10, 2008 3:21 AM
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
I've had a DOS batch file which I've been using for quite a while to run tests but this morning I keep getting the following error:
09:10:53.903 INFO - Java: Sun Microsystems Inc. 10.0-b22
09:10:53.903 INFO - OS: Windows XP 5.1 x86
09:10:53.903 INFO - v1.0-beta-1 [2201], with Core v1.0-beta-1 [1994]
09:10:53.981 INFO - Version Jetty/5.1.x
09:10:53.997 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver]
09:10:53.997 INFO - Started HttpContext[/selenium-server,/selenium-server]
09:10:53.997 INFO - Started HttpContext[/,/]
09:10:53.997 INFO - Started SocketListener on 0.0.0.0:4444
09:10:53.997 INFO - Started org.mortbay.jetty.Server@32c41a
HTML suite exception seen:
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(Unknown Source)
at org.openqa.selenium.server.browserlaunchers.WindowsUtils$RegKeyValue.<init>(WindowsUtils.java:622)
at org.openqa.selenium.server.browserlaunchers.WindowsUtils.deleteRegistryValue(WindowsUtils.java:577)
at org.openqa.selenium.server.browserlaunchers.WindowsProxyManager.handleEvilPopupMgrBackup(WindowsProxyManager.java:106)
at org.openqa.selenium.server.browserlaunchers.WindowsProxyManager.init(WindowsProxyManager.java:81)
at org.openqa.selenium.server.browserlaunchers.WindowsProxyManager.<init>(WindowsProxyManager.java:65)
at org.openqa.selenium.server.browserlaunchers.InternetExplorerCustomProxyLauncher.<init>(InternetExplorerCustomProxyLauncher.java:48)
at org.openqa.selenium.server.browserlaunchers.InternetExplorerCustomProxyLauncher.<init>(InternetExplorerCustomProxyLauncher.java:41)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.openqa.selenium.server.browserlaunchers.BrowserLauncherFactory.createBrowserLauncher(BrowserLauncherFactory.java:124)
at org.openqa.selenium.server.browserlaunchers.BrowserLauncherFactory.getBrowserLauncher(BrowserLauncherFactory.java:81)
at org.openqa.selenium.server.htmlrunner.HTMLLauncher.runHTMLSuite(HTMLLauncher.java:87)
at org.openqa.selenium.server.htmlrunner.HTMLLauncher.runHTMLSuite(HTMLLauncher.java:141)
at org.openqa.selenium.server.SeleniumServer.runHtmlSuite(SeleniumServer.java:1138)
at org.openqa.selenium.server.SeleniumServer.main(SeleniumServer.java:386)
09:10:54.434 INFO - Shutting down...
I've been running it using the command:
java -jar %SELENIUM_HOME%\selenium-server.jar -htmlSuite *iexplore "http://mylovelysite.com" "TestSuites/TestSuite-ABC.html" "TestResults/ABC.html"
The folders containing my test suite and the tests it's running exist so I'm a bit puzzled. The only thing I can think of that's changed is I installed the latest updates from Windows this morning so maybe that's knocked something out. Any ideas would be greatly appreciated!!
