How to debug "String index out of range: -1" exception ?

Solution Unverified - Updated -

Issue

  • Users often get the following error/exception when they try to build a project containing process-definition file. How to debug this kind of issue?
...
2015-02-14 21:42:00,586 [http-apr-8080-exec-4] ERROR String index out of range:
-1
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
        at java.lang.String.substring(String.java:1911) ~[na:1.7.0_71]
        at org.guvnor.common.services.builder.Builder.getBaseFileName(Builder.ja
va:689) ~[guvnor-project-builder-6.1.0.Final.jar:6.1.0.Final]
        at org.guvnor.common.services.builder.Builder.visitPaths(Builder.java:55
4) ~[guvnor-project-builder-6.1.0.Final.jar:6.1.0.Final]
...

Environment

  • Red Hat JBoss BPM Suite (BPMS)
    • 6.0.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content