Description

During a VB6 analysis the analysis ended with the error "The analysis has not ended correctly (Error code 2)" in the CAST-MS.

Please find the screen shot below:

 

Below is the error in the analysis log:

Observed in CAST AIP
Release
Yes/No
8.3.x(error)
8.2.x(error)
8.1.x(tick) x < 1
8.0.x(tick) x < 3
7.3.x(tick) x < 10
7.2.x(tick)
7.0.x(tick)
Observed on RDBMS
RDBMS
Yes/No
Oracle Server(tick)
Microsoft SQL Server(tick)
CSS3(error)
CSS2(tick)
CSS1(tick)
Step by Step Scenario
  1. Package the source code
  2. Run the analysis, analysis ends with error in the analysis log.
Action Plan

The problem comes from the project file.

The analyzer expect to find in a vbp file, a line of the form : 
Type=<Project kind>

A project kind may take the following values : Exe, Dll

If the Type is missing analyzer would throw an exception as seen in the analysis log.

  1. Identify which analysis unit is failing, you can identify the failing analysis unit by checking the analysis log.
    1. Check in the analysis log just above the Fatal error which analysis unit is under processing and then open the corresponding project file and check for the Project type.
    2. Search for "Type=" in the project file
    3. if it is missing then manually enter the project kind in the project file and save it.
      For example: Type=exe or Type=Dll
  2. Run the analysis.
Impact on Analysis Results and Dashboard

Impact of issue: Analysis crashes with error message in the analysis log
Impact after applying solution: Analysis runs fine.

Notes/comments

Ticket # 4135

Related Pages