There are several steps that are performed in Run extensions at application level for Security for Java extension, so first you will have to identify the step where the issue occurs. Following list has been created from issues that have already occurred and is not exhaustive of all steps.
If issue is happening before launching Java2CastIL.jar which is responsible for the creation of castil bytecode files this means that following information message is missing: Calling ['C:\\Program Files\\CAST\\8.3\\jre\\bin\\java', '-Xmx19G', '-jar', 'C:\\ProgramData\\CAST\\CAST\\Extensions\\com.castsoftware.securityforjava.1.6.4-funcrel\\com\\castsoftware\\resources\\Java2CastIL.jar', '-g', '1', '-p', '0', '-c', 'S:\\LISA\\LISA\\db86d52e77504e919e76ade2939b29e0\\Scr1f97027e7f854325888b8ac670e1c9fc\\project.xml', '-d', 'S:\\LISA\\LISA\\db86d52e77504e919e76ade2939b29e0\\Scr1f97027e7f854325888b8ac670e1c9fc\\']
Then please do the following:
Check if project.xml file is missing in the LISA subfolder. Each Java execution unit is using a different Java sub-folder (in the most common scenario there is a single execution unit) and the relevant sub-folder can be retrieved in the header of the J2EE analysis unit.
If project.xml is missing, then this indicates that a problem in main JEE analysis has happened, since this file is created when JEE analysis is running with SecurityForJava extension:
Retrieve JEE analysis log. This is not trivial and can be dependent on whether you run analysis/snapshot as 1 or 2 steps.
Verify in analysis log the SecurityForJava extension is installed.
If not, then the extension was not installed when analysis ran(as a separate step) and this is the explanation.
Run full analysis/snapshot again
Verify that SecurityForJava extension ran on top of Java extension
Check for existence of following information messages [com.castsoftware.securityforjava] LISA path : C:\CASTMS\Storage\LISA\a42646dc1f644bd7bdb8493bf59f1985\Scr5b62a77005fc44ad9d70a7ea2c3431e3\ [com.castsoftware.securityforjava] Flat path : C:\Working_Directory\8.3.37_Build2813_flat_for_customer
If they are missing this indicates a problem of AIP or Extension installation
Reinstall AIP and all extension and if problem is reproduced go to last step
Verify analysis log and that there was no warning, more specifically 'hidden' crashes that stopped analysis from finishing.
If the main JEE analysis has not finished correctly and crashed before the creation of project.xml then the command line is not launched
If issue is happening after launching Java2Castil then depending on the version of SecurityForJava, the root cause may be visible in the log. Java2Castil also logs the process inside a subfolder in LISQ. For the example already given this subfolder would be S:\LISA\LISA\db86d52e77504e919e76ade2939b29e0\Scr1f97027e7f854325888b8ac670e1c9fc\Logs
Open subfolder, inside it there are a Job_generation.log file and 1 or more Project.log files.
Using a grep on all Project.log files verify that the following 2 lines are present INFO castil - Success to save generated code for: XA-SM0-WS_380dd915.castil in N:\CastWork\Storage\LISA_AM_83\LISA\2a22b876923e420f9367ad3d16ba3812\Scrddac897b95d440b18b375310e898cec7 INFO castil - Success to create Assemblies.txt file in N:\CastWork\Storage\LISA_AM_83\LISA\2a22b876923e420f9367ad3d16ba3812\Scrddac897b95d440b18b375310e898cec7
If not then then Project.log name and the referenced files in the log will help you identify the AU that causes the issue.
Check the log for any fatal error/crash messages
If you find message [main] ERROR com.castsoftware.castil.translation.Main - OUT OF MEMORY ERROR - CASTIL generation aborted
Previous information log line inform on number of files parsed and mmeoty. Example: Parsed files: 6064 - Current: S:\SourceCodeDeploy\Batch\project\src\com\cast\cast\castsomething.java - Used RAM: 16,242,906,352 - Free RAM: 1,955,130,128
Castil creation needs approximately 3.5MB/file. Java2CastIL.jar is launched with a memory argument that is dynamically calculated on the available memory at the time of launch
Estimate needed memory in relation to the size of the application.
If the needed memory for largest AU is lower then the available memory - 6GB then you need to add more memory. A WA can also be to split the largest AU in several smaller ones, though links can be affected by splitting
Make sure that no other process is running in parallel and kill any process that is not needed.
If memory issue is not explained by above, go to last step.