java.lang.StringIndexOutOfBoundsException: String index out of range: 195 String index out of range: 195

Pentaho BI Platform Tracking | C John Klehm | 2 years ago
  1. 0

    [PDI-12523] Text file input: StringIndexOutOfBoundsException when multicharacter enclosure and zip file type - Pentaho BI Platform Tracking

    pentaho.com | 1 year ago
    java.lang.StringIndexOutOfBoundsException: String index out of range: 195 String index out of range: 195
  2. 0

    I use text file output to create a zip file with a multi-character enclosure. Then I try to use text file input to read in this file using the same multi-character enclosure. All is well if the the enclosure setting is 1 character. For 2 characters or more I get this exception: 2014/06/27 12:32:13 - Conform Patient Demographic.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : Error converting line : java.lang.StringIndexOutOfBoundsException: String index out of range: 195 2014/06/27 12:32:13 - Conform Patient Demographic.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : String index out of range: 195 2014/06/27 12:32:13 - Conform Patient Demographic.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : 2014/06/27 12:32:13 - Conform Patient Demographic.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : 2014/06/27 12:32:13 - Conform Patient Demographic.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : at org.pentaho.di.trans.steps.textfileinput.TextFileInput.convertLineToRow(TextFileInput.java:844) 2014/06/27 12:32:13 - Conform Patient Demographic.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : at org.pentaho.di.trans.steps.textfileinput.TextFileInput.processRow(TextFileInput.java:1149) 2014/06/27 12:32:13 - Conform Patient Demographic.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : at org.pentaho.di.trans.step.RunThread.run(RunThread.java:50) 2014/06/27 12:32:13 - Conform Patient Demographic.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : at java.lang.Thread.run(Thread.java:662) 2014/06/27 12:32:13 - Conform Patient Demographic.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : Caused by: org.pentaho.di.core.exception.KettleException: 2014/06/27 12:32:13 - Conform Patient Demographic.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : Error converting line : java.lang.StringIndexOutOfBoundsException: String index out of range: 195 2014/06/27 12:32:13 - Conform Patient Demographic.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : String index out of range: 195 2014/06/27 12:32:13 - Conform Patient Demographic.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : 2014/06/27 12:32:13 - Conform Patient Demographic.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : at org.pentaho.di.trans.steps.textfileinput.TextFileInput.convertLineToStrings(TextFileInput.java:618) 2014/06/27 12:32:13 - Conform Patient Demographic.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : at org.pentaho.di.trans.steps.textfileinput.TextFileInput.convertLineToRow(TextFileInput.java:671) 2014/06/27 12:32:13 - Conform Patient Demographic.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : ... 3 more 2014/06/27 12:32:13 - Conform Patient Demographic.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 195 2014/06/27 12:32:13 - Conform Patient Demographic.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : at java.lang.String.substring(String.java:1934) 2014/06/27 12:32:13 - Conform Patient Demographic.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : at org.pentaho.di.trans.steps.textfileinput.TextFileInput.convertLineToStrings(TextFileInput.java:431) 2014/06/27 12:32:13 - Conform Patient Demographic.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : ... 4 more

    Pentaho BI Platform Tracking | 2 years ago | C John Klehm
    java.lang.StringIndexOutOfBoundsException: String index out of range: 195 String index out of range: 195
  3. 0

    I use text file output to create a zip file with a multi-character enclosure. Then I try to use text file input to read in this file using the same multi-character enclosure. All is well if the the enclosure setting is 1 character. For 2 characters or more I get this exception: 2014/06/27 12:32:13 - Conform Patient Demographic.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : Error converting line : java.lang.StringIndexOutOfBoundsException: String index out of range: 195 2014/06/27 12:32:13 - Conform Patient Demographic.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : String index out of range: 195 2014/06/27 12:32:13 - Conform Patient Demographic.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : 2014/06/27 12:32:13 - Conform Patient Demographic.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : 2014/06/27 12:32:13 - Conform Patient Demographic.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : at org.pentaho.di.trans.steps.textfileinput.TextFileInput.convertLineToRow(TextFileInput.java:844) 2014/06/27 12:32:13 - Conform Patient Demographic.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : at org.pentaho.di.trans.steps.textfileinput.TextFileInput.processRow(TextFileInput.java:1149) 2014/06/27 12:32:13 - Conform Patient Demographic.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : at org.pentaho.di.trans.step.RunThread.run(RunThread.java:50) 2014/06/27 12:32:13 - Conform Patient Demographic.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : at java.lang.Thread.run(Thread.java:662) 2014/06/27 12:32:13 - Conform Patient Demographic.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : Caused by: org.pentaho.di.core.exception.KettleException: 2014/06/27 12:32:13 - Conform Patient Demographic.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : Error converting line : java.lang.StringIndexOutOfBoundsException: String index out of range: 195 2014/06/27 12:32:13 - Conform Patient Demographic.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : String index out of range: 195 2014/06/27 12:32:13 - Conform Patient Demographic.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : 2014/06/27 12:32:13 - Conform Patient Demographic.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : at org.pentaho.di.trans.steps.textfileinput.TextFileInput.convertLineToStrings(TextFileInput.java:618) 2014/06/27 12:32:13 - Conform Patient Demographic.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : at org.pentaho.di.trans.steps.textfileinput.TextFileInput.convertLineToRow(TextFileInput.java:671) 2014/06/27 12:32:13 - Conform Patient Demographic.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : ... 3 more 2014/06/27 12:32:13 - Conform Patient Demographic.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 195 2014/06/27 12:32:13 - Conform Patient Demographic.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : at java.lang.String.substring(String.java:1934) 2014/06/27 12:32:13 - Conform Patient Demographic.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : at org.pentaho.di.trans.steps.textfileinput.TextFileInput.convertLineToStrings(TextFileInput.java:431) 2014/06/27 12:32:13 - Conform Patient Demographic.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : ... 4 more

    Pentaho BI Platform Tracking | 2 years ago | C John Klehm
    java.lang.StringIndexOutOfBoundsException: String index out of range: 195 String index out of range: 195
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [PDI-10241] Text File Input step: Missing setting up the Position while working on fix file type throws StringIndexOutOfBoundsException on preview - Pentaho BI Platform Tracking

    pentaho.com | 1 year ago
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1 String index out of range: -1
  6. 0

    Follow up from DOC-1386: 2. The Fields tab does not contain all the columns described The one particular that is missing is Position. Missing setting up the Position while working on fix file type for this step causes that the below error gets displayed on doing a preview: -------------------------- 2013/06/13 13:56:10 - Text file input.0 - ERROR (version 4.4.0-GA, build 17542 from 2012-11-01 20.06.29 by buildguy) : Unexpected error 2013/06/13 13:56:10 - Text file input.0 - ERROR (version 4.4.0-GA, build 17542 from 2012-11-01 20.06.29 by buildguy) : org.pentaho.di.core.exception.KettleException: 2013/06/13 13:56:10 - Text file input.0 - ERROR (version 4.4.0-GA, build 17542 from 2012-11-01 20.06.29 by buildguy) : Error converting line 2013/06/13 13:56:10 - Text file input.0 - ERROR (version 4.4.0-GA, build 17542 from 2012-11-01 20.06.29 by buildguy) : 2013/06/13 13:56:10 - Text file input.0 - ERROR (version 4.4.0-GA, build 17542 from 2012-11-01 20.06.29 by buildguy) : Error converting line : java.lang.StringIndexOutOfBoundsException: String index out of range: -1 2013/06/13 13:56:10 - Text file input.0 - ERROR (version 4.4.0-GA, build 17542 from 2012-11-01 20.06.29 by buildguy) : String index out of range: -1 2013/06/13 13:56:10 - Text file input.0 - ERROR (version 4.4.0-GA, build 17542 from 2012-11-01 20.06.29 by buildguy) : 2013/06/13 13:56:10 - Text file input.0 - ERROR (version 4.4.0-GA, build 17542 from 2012-11-01 20.06.29 by buildguy) : 2013/06/13 13:56:10 - Text file input.0 - ERROR (version 4.4.0-GA, build 17542 from 2012-11-01 20.06.29 by buildguy) : at org.pentaho.di.trans.steps.textfileinput.TextFileInput.convertLineToRow(TextFileInput.java:844) 2013/06/13 13:56:10 - Text file input.0 - ERROR (version 4.4.0-GA, build 17542 from 2012-11-01 20.06.29 by buildguy) : at org.pentaho.di.trans.steps.textfileinput.TextFileInput.processRow(TextFileInput.java:1149) 2013/06/13 13:56:10 - Text file input.0 - ERROR (version 4.4.0-GA, build 17542 from 2012-11-01 20.06.29 by buildguy) : at org.pentaho.di.trans.step.RunThread.run(RunThread.java:50) 2013/06/13 13:56:10 - Text file input.0 - ERROR (version 4.4.0-GA, build 17542 from 2012-11-01 20.06.29 by buildguy) : at java.lang.Thread.run(Unknown Source) 2013/06/13 13:56:10 - Text file input.0 - ERROR (version 4.4.0-GA, build 17542 from 2012-11-01 20.06.29 by buildguy) : Caused by: org.pentaho.di.core.exception.KettleException: 2013/06/13 13:56:10 - Text file input.0 - ERROR (version 4.4.0-GA, build 17542 from 2012-11-01 20.06.29 by buildguy) : Error converting line : java.lang.StringIndexOutOfBoundsException: String index out of range: -1 2013/06/13 13:56:10 - Text file input.0 - ERROR (version 4.4.0-GA, build 17542 from 2012-11-01 20.06.29 by buildguy) : String index out of range: -1 2013/06/13 13:56:10 - Text file input.0 - ERROR (version 4.4.0-GA, build 17542 from 2012-11-01 20.06.29 by buildguy) : 2013/06/13 13:56:10 - Text file input.0 - ERROR (version 4.4.0-GA, build 17542 from 2012-11-01 20.06.29 by buildguy) : at org.pentaho.di.trans.steps.textfileinput.TextFileInput.convertLineToStrings(TextFileInput.java:618) 2013/06/13 13:56:10 - Text file input.0 - ERROR (version 4.4.0-GA, build 17542 from 2012-11-01 20.06.29 by buildguy) : at org.pentaho.di.trans.steps.textfileinput.TextFileInput.convertLineToRow(TextFileInput.java:671) 2013/06/13 13:56:10 - Text file input.0 - ERROR (version 4.4.0-GA, build 17542 from 2012-11-01 20.06.29 by buildguy) : ... 3 more 2013/06/13 13:56:10 - Text file input.0 - ERROR (version 4.4.0-GA, build 17542 from 2012-11-01 20.06.29 by buildguy) : Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 2013/06/13 13:56:10 - Text file input.0 - ERROR (version 4.4.0-GA, build 17542 from 2012-11-01 20.06.29 by buildguy) : at java.lang.String.substring(Unknown Source) 2013/06/13 13:56:10 - Text file input.0 - ERROR (version 4.4.0-GA, build 17542 from 2012-11-01 20.06.29 by buildguy) : at org.pentaho.di.trans.steps.textfileinput.TextFileInput.convertLineToStrings(TextFileInput.java:600) 2013/06/13 13:56:10 - Text file input.0 - ERROR (version 4.4.0-GA, build 17542 from 2012-11-01 20.06.29 by buildguy) : ... 4 more

    Pentaho BI Platform Tracking | 3 years ago | Jens Bleuel
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1 String index out of range: -1

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.StringIndexOutOfBoundsException

      String index out of range: 195 String index out of range: 195

      at org.pentaho.di.trans.steps.textfileinput.TextFileInput.convertLineToRow()
    2. org.pentaho.di
      RunThread.run
      1. org.pentaho.di.trans.steps.textfileinput.TextFileInput.convertLineToRow(TextFileInput.java:844)
      2. org.pentaho.di.trans.steps.textfileinput.TextFileInput.processRow(TextFileInput.java:1149)
      3. org.pentaho.di.trans.step.RunThread.run(RunThread.java:50)
      3 frames
    3. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:662)
      1 frame