java.lang.StringIndexOutOfBoundsException

String index out of range: -2

Samebug tips2

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


rprp

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


rafaelrafael

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web2406

  • via Unknown by Viktoryia Shalkova,
  • via Unknown by Viktoryia Shalkova,
  • Stack trace

    • java.lang.StringIndexOutOfBoundsException: String index out of range: -2 at java.lang.String.substring(String.java:1958) at org.pentaho.di.core.util.StringUtil.substitute(StringUtil.java:139) at org.pentaho.di.core.util.StringUtil.substitute(StringUtil.java:104) at org.pentaho.di.core.util.StringUtil.substituteWindows(StringUtil.java:270) at org.pentaho.di.core.util.StringUtil.environmentSubstitute(StringUtil.java:238) at org.pentaho.di.core.variables.Variables.environmentSubstitute(Variables.java:165) at org.pentaho.di.trans.TransMeta.environmentSubstitute(TransMeta.java:6492) at org.pentaho.di.ui.core.widget.TextVar$1.modifyText(TextVar.java:170) at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Text.wmCommandChild(Unknown Source) at org.eclipse.swt.widgets.Control.WM_COMMAND(Unknown Source) at org.eclipse.swt.widgets.Control.windowProc(Unknown Source) at org.eclipse.swt.widgets.Display.windowProc(Unknown Source) at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method) at org.eclipse.swt.internal.win32.OS.CallWindowProc(Unknown Source) at org.eclipse.swt.widgets.Text.callWindowProc(Unknown Source) at org.eclipse.swt.widgets.Control.windowProc(Unknown Source) at org.eclipse.swt.widgets.Text.windowProc(Unknown Source) at org.eclipse.swt.widgets.Display.windowProc(Unknown Source) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1250) at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7564) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:8885) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:626) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.pentaho.commons.launcher.Launcher.main(Launcher.java:151)

    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

    CasperCasper
    8 times, last one
    marcbouvierdavmarcbouvierdav
    4 times, last one
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    94 more bugmates