This fatal error may happen when extension Security for Java requires a higher version of Java, which is not present in the installation folder of CAST.
In the analysis log file, you may find the following error message
Information MODULMSG ; Job execution [com.castsoftware.securityforjava] config path NOT FOUND = D:\CAST\CAST\Extensions\com.castsoftware.securityforjava.1.5.0-funcrel\config.ini
Information MODULMSG ; Job execution [com.castsoftware.securityforjava] calling ['D:\\CAST\\CAST\\Extensions\\com.castsoftware.securityforjava.1.5.0-funcrel\\com\\castsoftware\\resources\\ProjectXmlReview.exe', '-p', 'N:\\CastWork\\Storage\\LISA_AM_83\\LISA\\deec18b01d1c444aa0a447f5d14220fc\\Scr78d23a2481b14ce88c72f6df8e5bad33\\project.xml']
Information MODULMSG ; Job execution [com.castsoftware.securityforjava] calling ['D:\\CAST\\8.3\\jre\\bin\\java', '-Xmx13G', '-jar', 'D:\\CAST\\CAST\\Extensions\\com.castsoftware.securityforjava.1.5.0-funcrel\\com\\castsoftware\\resources\\java2castil.jar', '-c', 'N:\\CastWork\\Storage\\LISA_AM_83\\LISA\\deec18b01d1c444aa0a447f5d14220fc\\Scr78d23a2481b14ce88c72f6df8e5bad33\\project_filtered.xml', '-d', 'N:\\CastWork\\Storage\\LISA_AM_83\\LISA\\deec18b01d1c444aa0a447f5d14220fc\\Scr78d23a2481b14ce88c72f6df8e5bad33\\']
Warning MODULMSG ; Job execution [com.castsoftware.securityforjava] Exception in thread "main" java.lang.UnsupportedClassVersionError: org/eclipse/jdt/core/dom/FileASTRequestor : Unsupported major.minor version 52.0
Warning MODULMSG ; Job execution [com.castsoftware.securityforjava] at java.lang.ClassLoader.defineClass1(Native Method)
Warning MODULMSG ; Job execution [com.castsoftware.securityforjava] at java.lang.ClassLoader.defineClass(Unknown Source)
Warning MODULMSG ; Job execution [com.castsoftware.securityforjava] at java.security.SecureClassLoader.defineClass(Unknown Source)
Warning MODULMSG ; Job execution [com.castsoftware.securityforjava] at java.net.URLClassLoader.defineClass(Unknown Source)
Warning MODULMSG ; Job execution [com.castsoftware.securityforjava] at java.net.URLClassLoader.access$100(Unknown Source)
Warning MODULMSG ; Job execution [com.castsoftware.securityforjava] at java.net.URLClassLoader$1.run(Unknown Source)
Warning MODULMSG ; Job execution [com.castsoftware.securityforjava] at java.net.URLClassLoader$1.run(Unknown Source)
Warning MODULMSG ; Job execution [com.castsoftware.securityforjava] at java.security.AccessController.doPrivileged(Native Method)
Warning MODULMSG ; Job execution [com.castsoftware.securityforjava] at java.net.URLClassLoader.findClass(Unknown Source)
Warning MODULMSG ; Job execution [com.castsoftware.securityforjava] at java.lang.ClassLoader.loadClass(Unknown Source)
Warning MODULMSG ; Job execution [com.castsoftware.securityforjava] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
Warning MODULMSG ; Job execution [com.castsoftware.securityforjava] at java.lang.ClassLoader.loadClass(Unknown Source)
Warning MODULMSG ; Job execution [com.castsoftware.securityforjava] at com.castsoftware.castil.translation.ApplicationTranslator.getProjectTranslator(ApplicationTranslator.java:60)
Warning MODULMSG ; Job execution [com.castsoftware.securityforjava] at com.castsoftware.castil.translation.ApplicationTranslator.build(ApplicationTranslator.java:77)
Warning MODULMSG ; Job execution [com.castsoftware.securityforjava] at com.castsoftware.castil.translation.Main.loadConfigAndDo(Main.java:100)
Warning MODULMSG ; Job execution [com.castsoftware.securityforjava] at com.castsoftware.castil.translation.Main.main(Main.java:174)
For more information, refer to
- Official documentation
- Online-help : CAST Management Studio - Help > How To > Regular audience > Run analysis only
- TKB page for INFORMATION GUIDE > CMS Snapshot Analysis
Release | Yes/No |
---|---|
Security for Java-1.3 | |
Security for Java-1.4 | |
Security for Java-1.5 |
- Open the analysis log and check for the error which is as shown below:
23:33:21.506 [main] ERROR com.castsoftware.castil.translation.Main - java.lang.UnsupportedClassVersionError: org/eclipse/jdt/core/dom/FileASTRequestor : Unsupported major.minor version 52.0
SecurityForJava is compiled with Java 8 syntax (JavaSE 8 = 52, cf. https://en.wikipedia.org/wiki/Java_class_file) and uses the JRE provided in the CAST installation path. - Check the version of JRE present in the installation folder, if the JRE present is lesser than 8 then we will have the above error.
- The JRE version 8 is present in the flat since version 8.3.10 (before this version 8.3.10, the JRE was version 7).
So, we will have an error in the definition of the SecurityForJava extension: it works with CASTAIP >= 8.3.10 only. - If you are using 8.3.3 which contains Java 7 and hence SecurityForJava is crashing with an unsupported version, upgrade to a higher version and run the analysis.
- If this does not solve the problem, contact CAST Technical Support with the following Relevant Input.
Ticket # 25593