How to debug "String index out of range: -1" exception ?
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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
