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


Samebug tips

You need to make sure that capitalisation of the case for the plugin in the properties file is exactly: "AllocinePlugin" and not "allocineplugin"


,
via GitHub by Omertron

This is a bug when using Micromax devices with VideoView. You can either exclude these devices or look at this workaround: http://stackoverflow.com/a/31942841/4347859


5 months ago
Expert tip

Solutions on the web

Solution icon of coderanch
via Coderanch by santosh malreddy, 10 months ago
String index out of range: -1

Solution icon of coderanch
String index out of range: -1

Solution icon of coderanch
via Coderanch by David Yutzy, 11 months ago
String index out of range: -1

Solution icon of coderanch
via Coderanch by David Yutzy, 11 months ago
String index out of range: -1

Solution icon of bugzilla
via Eclipse Bugzilla by spb, 1 year ago
String index out of range: -1

Solution icon of bugzilla
via Eclipse Bugzilla by channingwalton, 1 year ago
String index out of range: -1

Solution icon of bugzilla
String index out of range: -1

Solution icon of bugzilla
String index out of range: -1

Solution icon of bugzilla
via Eclipse Bugzilla by rfuhrer, 1 year ago
String index out of range: -1

Solution icon of bugzilla
via Eclipse Bugzilla by steffen.pingel, 1 year ago
String index out of range: -1

Stack trace

java.lang.StringIndexOutOfBoundsException: String index out of range: -1
	at java.lang.String.substring(String.java:1937)
	at com.sun.appserv.connectors.internal.api.ConnectorsUtil.getEmbeddedRarModuleName(ConnectorsUtil.java:690)
	at com.sun.enterprise.connectors.module.ConnectorDeployer.load(ConnectorDeployer.java:184)
	at com.sun.enterprise.connectors.module.ConnectorDeployer.load(ConnectorDeployer.java:95)
	at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:186)
	at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:257)
	at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)
	at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
	at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:382)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1064)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1244)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1232)
	at com.sun.enterprise.admin.cli.embeddable.DeployerImpl.deploy(DeployerImpl.java:129)
	at org.glassfish.ejb.embedded.EJBContainerImpl.deploy(EJBContainerImpl.java:142)
	at org.glassfish.ejb.embedded.EJBContainerProviderImpl.createEJBContainer(EJBContainerProviderImpl.java:134)
	at javax.ejb.embeddable.EJBContainer.createEJBContainer(EJBContainer.java:127)
	at javax.ejb.embeddable.EJBContainer.createEJBContainer(EJBContainer.java:102)
	at test.AbstractEJBTestCase.setUp(AbstractEJBTestCase.java:22)
	at test.Main.testAll(Main.java:18)
	at test.Main.main(Main.java:27)

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

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
2 times, 2 weeks ago
103 more bugmates