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

Pentaho BI Platform Tracking | Curtis Boyden | 3 years ago
  1. 0

    My 4.8.3 configuration is using LDAP Authentication. I cannot import a migration bundle from a 4.8.3 BI Server that has a public schedule with generated content. Reproduce: 1) Create a public schedule that can execute Inventory List and add that report to be executed (as the admin user). -- It doesn't matter what you name the report when scheduling the content, I named mine "CurtisInv space.html"; It shows up in the import log as 'Importing file name =[ Inventory ]' 2) Export using the migrator 3) Reset 5.0 server repository 3a) Delete all contents of pentaho-solutions/system/jackrabbit/repository/ 3b) Rerun database scripts: create_repository, create_jcr 4) Start 5.0 server 5) Log in as admin -- Sets up the repository 6) Stop 5.0 server 7) Run migrator for import against 5.0 server ------ At this point you will find the following exception in the migration.log: 2014-01-22 14:22:01,322 INFO [org.pentaho.platform.migration.utils.SOutObserver] [STARTING]: Starting generated content import 2014-01-22 14:22:01,324 INFO [org.pentaho.platform.migration.utils.SOutObserver] [PROGRESS]: Processing Generated Contents for user [u1] 2014-01-22 14:22:01,324 INFO [org.pentaho.platform.migration.utils.SOutObserver] [PROGRESS]: Processing background executed and private scheduled contents 2014-01-22 14:22:01,324 INFO [org.pentaho.platform.migration.utils.SOutObserver] [PROGRESS]: Processing generated contents for subscription of Inventory.prpt content 2014-01-22 14:22:01,325 INFO [org.pentaho.platform.migration.utils.SOutObserver] [PROGRESS]: Importing file name =[ Inventory ]0 of 3 to /home/u1/MigratedContents folder 2014-01-22 14:22:01,325 INFO [org.pentaho.platform.migration.utils.SOutObserver] [PROGRESS]: Importing dependent generated content 0 of 11 to /home/u1/MigratedContents folder 2014-01-22 14:22:01,326 ERROR [org.pentaho.platform.migration.utils.SOutObserver] [EXCEPTION]: Error importing generated contents for user: u1 java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1931) at org.pentaho.migration.v50.agents.MigrationAgentGeneratedContent.importFile(MigrationAgentGeneratedContent.java:212) at org.pentaho.migration.v50.agents.MigrationAgentGeneratedContent.importDependentFiles(MigrationAgentGeneratedContent.java:195) at org.pentaho.migration.v50.agents.MigrationAgentGeneratedContent.performMigration(MigrationAgentGeneratedContent.java:156) at org.pentaho.platform.migration.PlatformMigrator$1.run(PlatformMigrator.java:153) at java.lang.Thread.run(Thread.java:662)

    Pentaho BI Platform Tracking | 3 years ago | Curtis Boyden
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
  2. 0

    My 4.8.3 configuration is using LDAP Authentication. I cannot import a migration bundle from a 4.8.3 BI Server that has a public schedule with generated content. Reproduce: 1) Create a public schedule that can execute Inventory List and add that report to be executed (as the admin user). -- It doesn't matter what you name the report when scheduling the content, I named mine "CurtisInv space.html"; It shows up in the import log as 'Importing file name =[ Inventory ]' 2) Export using the migrator 3) Reset 5.0 server repository 3a) Delete all contents of pentaho-solutions/system/jackrabbit/repository/ 3b) Rerun database scripts: create_repository, create_jcr 4) Start 5.0 server 5) Log in as admin -- Sets up the repository 6) Stop 5.0 server 7) Run migrator for import against 5.0 server ------ At this point you will find the following exception in the migration.log: 2014-01-22 14:22:01,322 INFO [org.pentaho.platform.migration.utils.SOutObserver] [STARTING]: Starting generated content import 2014-01-22 14:22:01,324 INFO [org.pentaho.platform.migration.utils.SOutObserver] [PROGRESS]: Processing Generated Contents for user [u1] 2014-01-22 14:22:01,324 INFO [org.pentaho.platform.migration.utils.SOutObserver] [PROGRESS]: Processing background executed and private scheduled contents 2014-01-22 14:22:01,324 INFO [org.pentaho.platform.migration.utils.SOutObserver] [PROGRESS]: Processing generated contents for subscription of Inventory.prpt content 2014-01-22 14:22:01,325 INFO [org.pentaho.platform.migration.utils.SOutObserver] [PROGRESS]: Importing file name =[ Inventory ]0 of 3 to /home/u1/MigratedContents folder 2014-01-22 14:22:01,325 INFO [org.pentaho.platform.migration.utils.SOutObserver] [PROGRESS]: Importing dependent generated content 0 of 11 to /home/u1/MigratedContents folder 2014-01-22 14:22:01,326 ERROR [org.pentaho.platform.migration.utils.SOutObserver] [EXCEPTION]: Error importing generated contents for user: u1 java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1931) at org.pentaho.migration.v50.agents.MigrationAgentGeneratedContent.importFile(MigrationAgentGeneratedContent.java:212) at org.pentaho.migration.v50.agents.MigrationAgentGeneratedContent.importDependentFiles(MigrationAgentGeneratedContent.java:195) at org.pentaho.migration.v50.agents.MigrationAgentGeneratedContent.performMigration(MigrationAgentGeneratedContent.java:156) at org.pentaho.platform.migration.PlatformMigrator$1.run(PlatformMigrator.java:153) at java.lang.Thread.run(Thread.java:662)

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

    2013-03-18 0%-%33-0%-33% - 快乐的瑾 - 博客频道 - CSDN.NET

    csdn.net | 1 year ago
    java.lang.RuntimeException: org.apache.hadoop.hive.ql.metadata.HiveException: Hive Runtime Error while processing row (tag=0) {"key":{"_col0":"2013-03-12 02:00:00","_col1":"\"GET /status HTTP/1.1\""},"value":{"_col0":2},"alias":0}
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java - libGDX Error loading font file - Netbeans - Game Development Stack Exchange

    stackexchange.com | 1 year ago
    com.badlogic.gdx.utils.GdxRuntimeException: Error loading font file: fonts/white.font
  6. 0

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

    GitHub | 12 months ago | pomac303
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1

  1. archenroot 17 times, last 1 week ago
  2. Alexandru Popa 2 times, last 3 weeks ago
  3. poroszd 3 times, last 3 weeks ago
  4. DoktorDoener666 6 times, last 4 weeks ago
  5. eti22 3 times, last 1 month ago
16 more registered users
58 unregistered visitors
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: -1

    at java.lang.String.substring()
  2. Java RT
    String.substring
    1. java.lang.String.substring(String.java:1931)
    1 frame
  3. org.pentaho.migration
    MigrationAgentGeneratedContent.performMigration
    1. org.pentaho.migration.v50.agents.MigrationAgentGeneratedContent.importFile(MigrationAgentGeneratedContent.java:212)
    2. org.pentaho.migration.v50.agents.MigrationAgentGeneratedContent.importDependentFiles(MigrationAgentGeneratedContent.java:195)
    3. org.pentaho.migration.v50.agents.MigrationAgentGeneratedContent.performMigration(MigrationAgentGeneratedContent.java:156)
    3 frames
  4. org.pentaho.platform
    PlatformMigrator$1.run
    1. org.pentaho.platform.migration.PlatformMigrator$1.run(PlatformMigrator.java:153)
    1 frame
  5. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:662)
    1 frame