Description

 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

Observed in CAST AIP
Release
Yes/No
8.0.x (tick) 
7.3.x (tick)
7.2.x (tick)
7.0.x (error)
Observed on RDBMS
RDBMS
Yes/No
Oracle Server (tick)
Microsoft SQL Server (tick)
CSS2 (tick)
CSS1 (error)
Step by Step Scenario
  • 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)
Action Plan

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:

  1. 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?")
  2. 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 on Analysis Results and Dashboard

Impact of issue:  No source code is packaged so no analysis is done for failing package
Impact after applying solution:  Source code is packaged

Notes/comments

Ticket # 3715

Related Pages