This page describes assistance for the error during packaging when the delivery management tool shows an errocode of 2001 and the following message in the log:
java.lang.StringIndexOutOfBoundsException:String index out of range: -1 at java.lang.String.substring(:0) at com.castsoftware.dmt.discoverer.jee.manifest.JeeManifestDiscoverer.endDirectory(JeeManifestDiscoverer.java:338)
Figure 1
Release | Yes/No |
---|---|
8.0.x | |
7.3.x | |
7.2.x | |
7.0.x |
RDBMS | Yes/No |
---|---|
Oracle Server | |
Microsoft SQL Server | |
CSS2 | |
CSS1 |
- Try to package the source code with the Delivery Management Tool (DMT)
- DMT ends with an errorcode 2001 and the error:
java.lang.StringIndexOutOfBoundsException:String index out of range: -1 at java.lang.String.substring(:0) at com.castsoftware.dmt.discoverer.jee.manifest.JeeManifestDiscoverer.endDirectory(JeeManifestDiscoverer.java:338)
This is fixed with version 1.0.3 of the JEEManifestDiscoverer. Please see the associated documentation for this DMT plugin as to how this plugin is installed and the versions in which this can be used at JEE Manifest Discoverer 1.0
For a prior version of the JEEManifestDiscoverer, an alternative approach to resolving this issue will be to:
- Uncheck the JEE Manifest Discoverer in the Delivery Management Tool (DMT) (for further assistance with this task, please see the on-line help for DMT in the section "Package Configuration tab - Which project should we take into account for the analysis?")
- Once the code is packaged and delivered, you need to create the Analysis Units manually for each manifest file for the application
If you have a large number of manifest files, then this can be a significant amount of work and it would be best in that case to upgrade to 1.0.3 or greater to resolve this issue.
Impact of issue: No source code is packaged so no analysis is done for failing package
Impact after applying solution: Source code is packaged
Ticket # 3715