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

,
via GitHub by Omertron

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

,
Expert tip

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

Solutions on the web

java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(Unknown Source)
at org.eclipse.swordfish.plugins.cxf.support.NMROutputStream.unwrapEnvelope(NMROutputStream.java:215)
at org.eclipse.swordfish.plugins.cxf.support.NMROutputStream.getMessageContent(NMROutputStream.java:187)
at org.eclipse.swordfish.plugins.cxf.support.NMROutputStream.createNMRMessageExchange(NMROutputStream.java:166)
at org.eclipse.swordfish.plugins.cxf.support.NMROutputStream.sendOutputMessage(NMROutputStream.java:89)
at org.eclipse.swordfish.plugins.cxf.support.NMROutputStream.doClose(NMROutputStream.java:77)
at org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:167)
at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:466)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:299)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
at org.eclipse.swordfish.samples.flightreservation.sample.FlightReservationClientInvoker.performRequest(FlightReservationClientInvoker.java:62)
at org.eclipse.swordfish.samples.flightreservation.sample.FlightReservationClientInvoker.access$0(FlightReservationClientInvoker.java:59)
at org.eclipse.swordfish.samples.flightreservation.sample.FlightReservationClientInvoker$1.run(FlightReservationClientInvoker.java:50)
at java.util.TimerThread.mainLoop(Unknown Source)
at java.util.TimerThread.run(Unknown Source)

Users with the same issue

Once, 2 months ago
Samebug visitor profile picture
Unknown user
Once, 2 months 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
105 more bugmates

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