CMS Snapshot Analysis - Run Analyzer - Missing objects - Shell with extension - Missing Shell program artifacts
Purpose (problem description)
This page handle the case when there are missing Shell program artifacts.
Observed in CAST AIP
| Release | Yes/No |
|---|---|
| 8.3.x | ✅ |
| 8.2.x | ✅ |
| 8.1.x | ✅ |
| 8.0.x | ✅ |
| 7.3.x | ✅ |
Observed on RDBMS
| RDBMS | Yes/No |
|---|---|
| Oracle Server | ✅ |
| Microsoft SQL Server | ✅ |
| CSS3 | ✅ |
| CSS2 | ✅ |
Step by Step scenario
- Run analysis for SHELL application
Action Plan
- Check if the pre-processor log file was created (refer the following file for the log file location: CAST Management Studio - Information - How to find logs)
- If the pre-processor log file was created then Check if the pre-processor has crashed, then re-mediate, else go to the next step
In order to check if the pre-processor has crashed,open the SHELL pre-processor log file “shell_pp_report_MM-DD-YYY_HHMMSS.txt” (refer to the following file for the log file location: CAST Management Studio - Information - How to find logs):
The SHELL pre-processor log file should be as follows:
Pre-processor for Shell Beginning of process…
- Processing file ‘path\file 1’
….
- Processing file ‘path\file n’
End of process.
If the log file stops before the message "End of process" then the pre-processor has crashed. The pre-processor crashes because of the file indicated in the latest row from the log file (As a consequence the file will be analyzed from the deployment folder instead of the LISA folder).
2. As a workaround remove the file that caused the crash of the pre-processor
3. Then analyse your source code.
3. If you are using CAST AIP < 8.2.1, then the issue is due to the JAVA\_HOME environment variable, as a workaround perform the following steps:
1. The JAVA\_HOME should be set to the JRE of CAST installation directory, you can find it on < CAST installation dir >\jre

2. if CAST-MS is already opened, then close it and open again
3. Run analysisStarting from CAST AIP 8.2.1 the JAVA\_HOME environment variable will be set by the UA on the current JRE from CAST AIP.
4. If you are using Shell extension < Shell 1.0.6, then the issue is due to a bug in the launch.bat, as a workaround perform the following steps:
1. Edit the launch.bat file, you will find it on <CAST installation dir>\CustomPlugins\com.castsoftware.shell\Configuration\Languages\SHELL\prepro
2. Replace the following code line:

By this line of code:
"%JAVA\_HOME%\bin\java.exe" -jar "%local\_path%com.castsoftware.shell.prepro.jar" %1 %target\_path% Info, you should have a file as follow:

3. If CAST-MS is already opened, then close it and open again
4. Run analysis
5. If the checks above don't resolve your issue then contact [CAST Technical Support](https://help.castsoftware.com/hc/en-us/requests/new) with the following [Relevant input](#CMSSnapshotAnalysisRunAnalyzerMissingobjectsShellwithextensionMissingShellprogramartifacts-Relevantinput)
#### Relevant input
1. The name of the object that you are expecting to get.
2. Sherlock export with the following options: **Export Logs** (feature checked by default), **Export Configuration files (**feature checked by default), **Export Computer Environment** (feature checked by default),**Export CAST Bases,** source code
**Notes/comments**
Ticket # 8515, 8203, 7417, 7342
**Related Pages**