5 Replies Latest reply on Feb 28, 2011 4:58 AM by Claus Ibsen

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

    John Harrison Newbie

      Hello All,

      I am new to Fuse ESB so please go easy with me :). In the past my SAO development was all in Oracle / Weblogic env. But this new project mandated Open source and hence looking at the Fuse ESB(laest bundle).

      I am following "Getting started" tutorial and currently deploying Payment-API as per the video. When I do mvn -e -Dmaven.test.skip=true install I get following exception:

      Tests are skipped.

      bundle:bundle {execution: default-bundle}

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

           at java.lang.String.substring(String.java:1937)

           at java.lang.String.substring(String.java:1904)

           at org.apache.felix.bundleplugin.BundlePlugin.getMavenResourcePaths(BundlePlugin.java:433)

           at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:165)

           at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:123)

           at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:118)

           at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)

           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)

           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)

           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)

           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)

           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)

           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)

           at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)

           at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)

           at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)

           at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)

           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

           at java.lang.reflect.Method.invoke(Method.java:597)

           at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

           at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)

           at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

           at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

      -


      BUILD ERROR

      -


      Unknown error occurred

       

      Embedded error: String index out of range: -1

      -


      Trace

      org.apache.maven.lifecycle.LifecycleExecutionException: Unknown error occurred

           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)

           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)

           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)

           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)

           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)

           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)

           at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)

           at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)

           at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)

           at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)

           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

           at java.lang.reflect.Method.invoke(Method.java:597)

           at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

           at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)

           at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

           at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

      Caused by: org.apache.maven.plugin.MojoExecutionException: Unknown error occurred

           at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:209)

           at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:123)

           at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:118)

           at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)

           at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)

           ... 17 more

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

           at java.lang.String.substring(String.java:1937)

           at java.lang.String.substring(String.java:1904)

           at org.apache.felix.bundleplugin.BundlePlugin.getMavenResourcePaths(BundlePlugin.java:433)

           at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:165)

           ... 21 more

      -


      Total time: 6 seconds

      Finished at: Sat Feb 26 23:37:44 GMT 2011

      Final Memory: 18M/81M

      -


       

      Anybody has experienced this before?

      Could you please me to resolve this issue.

      My Dev environement is as follows:

      Mac OS X, Mac JDK 1.6, Springsource STS eclipse version.

       

      As mentioned this is my first project / PoC with FUSE ESB. Any help in resolving this error is very much appreciated.

       

      Thanks and Regards

      John H