Post

1 follower Follow
0

Successful Java analysis

When you run Java analysis you need to make sure that the Java base classes should be parsed first from rt.jar
When you analysis starts after some time (depend on the size of an application) in the analysis log you will have a below message:

2019-12-29 17:31:57.123315 Information MODULMSG ; Job execution JEE053: Parsing Framework java files...

2019-12-29 17:31:59.278352 Information MODULMSG ; Job execution Loading jar XML description from : C:\ProgramData\CAST\CAST\Extensions\com.castsoftware.jee.1.2.7-funcrel\EnvProf\J2EE\JSE\JSE 1.8\rt.jar.header.xml

2019-12-29 17:31:59.320223 Information MODULMSG ; Job execution Generating code skeleton for java.lang.Object in C:\ProgramData\CAST\CAST\CASTMS\LISA\9686918b388e4c4b8a5759cb88c243e5\Scrf0504180fab64f13b36715ffc02b0a6d\JavaExtractedFiles\Classes\java\lang\Object_1b1c34e9d831ffc8.java
2019-12-29 17:31:59.363024 Information MODULMSG ; Job execution Parsing Java file (phase 1) : [C:\ProgramData\CAST\CAST\Extensions\com.castsoftware.jee.1.2.7-funcrel\EnvProf\J2EE\JSE\JSE 1.8\rt.jar.header.xml]\java\lang\Object.class
2019-12-29 17:31:59.407382 Information MODULMSG ; Job execution End parsing Java file (phase 1) : [C:\ProgramData\CAST\CAST\Extensions\com.castsoftware.jee.1.2.7-funcrel\EnvProf\J2EE\JSE\JSE 1.8\rt.jar.header.xml]\java\lang\Object.class

2019-12-29 17:31:59.508253 Information MODULMSG ; Job execution Generating code skeleton for java.lang.Class in C:\ProgramData\CAST\CAST\CASTMS\LISA\9686918b388e4c4b8a5759cb88c243e5\Scrf0504180fab64f13b36715ffc02b0a6d\JavaExtractedFiles\Classes\java\lang\Class_1b1c34e9d831ffc8.java
2019-12-29 17:31:59.516711 Information MODULMSG ; Job execution Parsing Java file (phase 1) : [C:\ProgramData\CAST\CAST\Extensions\com.castsoftware.jee.1.2.7-funcrel\EnvProf\J2EE\JSE\JSE 1.8\rt.jar.header.xml]\java\lang\Class.class
2019-12-29 17:31:59.616239 Information MODULMSG ; Job execution End parsing Java file (phase 1) : [C:\ProgramData\CAST\CAST\Extensions\com.castsoftware.jee.1.2.7-funcrel\EnvProf\J2EE\JSE\JSE 1.8\rt.jar.header.xml]\java\lang\Class.class

2019-12-29 17:31:59.688720 Information MODULMSG ; Job execution Generating code skeleton for java.lang.String in C:\ProgramData\CAST\CAST\CASTMS\LISA\9686918b388e4c4b8a5759cb88c243e5\Scrf0504180fab64f13b36715ffc02b0a6d\JavaExtractedFiles\Classes\java\lang\String_1b1c34e9d831ffc8.java
2019-12-29 17:31:59.692709 Information MODULMSG ; Job execution Parsing Java file (phase 1) : [C:\ProgramData\CAST\CAST\Extensions\com.castsoftware.jee.1.2.7-funcrel\EnvProf\J2EE\JSE\JSE 1.8\rt.jar.header.xml]\java\lang\String.class
2019-12-29 17:31:59.749831 Information MODULMSG ; Job execution End parsing Java file (phase 1) : [C:\ProgramData\CAST\CAST\Extensions\com.castsoftware.jee.1.2.7-funcrel\EnvProf\J2EE\JSE\JSE 1.8\rt.jar.header.xml]\java\lang\String.class

2019-12-29 17:31:59.800041 Information MODULMSG ; Job execution Generating code skeleton for java.lang.annotation.Annotation in C:\ProgramData\CAST\CAST\CASTMS\LISA\9686918b388e4c4b8a5759cb88c243e5\Scrf0504180fab64f13b36715ffc02b0a6d\JavaExtractedFiles\Classes\java\lang\annotation\Annotation_1b1c34e9d831ffc8.java
2019-12-29 17:31:59.805184 Information MODULMSG ; Job execution Parsing Java file (phase 1) : [C:\ProgramData\CAST\CAST\Extensions\com.castsoftware.jee.1.2.7-funcrel\EnvProf\J2EE\JSE\JSE 1.8\rt.jar.header.xml]\java\lang\annotation\Annotation.class
2019-12-29 17:31:59.813473 Information MODULMSG ; Job execution End parsing Java file (phase 1) : [C:\ProgramData\CAST\CAST\Extensions\com.castsoftware.jee.1.2.7-funcrel\EnvProf\J2EE\JSE\JSE 1.8\rt.jar.header.xml]\java\lang\annotation\Annotation.class

In the above messages you will see these are four most important base classes getting parsed from rt.jar file:

Object.class
Class.class
String.class
Annotation.class

After the above classes loaded the parsing for functional Java classes will take place and you need to make sure that you have Parsing messages for those Java files, if you do not have parsing messages delete the LISA folder and relauch the analysis once again.

Basically during Java analysis we have below processes:

Parsing of Base classes
Parsing of Java source files
Resolving declarations of packages by parsing of classes from jars or some other resource packages
Starting external link processing
External link processing
Computing dynamic links -> Inference Engine
Resolving parametrization links
Finished Resolving parametrization links
Resolving dynamic links
Finished resolving dynamic links
Saving of objects.

We should have everything of above steps in the analysis log.
If there is an issue in teh analysis log for any of the above step we need to check the configuration of analysis and then run analysis it again.

 

 

Please sign in to leave a comment.