Purpose (problem description)
The page helps you to resolve the error - "ERROR MODULMSG ; Body Java runtime found but Highlight Analyzer requires at least Java JRE 11 or newer." when running analysis using AIP Console.
Observed in CAST Version
Release | Yes/No |
---|---|
V1 | |
V2 |
Observed in RDBMS
RDBMS | Yes/No |
---|---|
CSS3 | |
CSS4 |
Step by Step scenario
- Install the application with Highlight to MRI Extension.
- Add version using AIP Console
- Initiate the Analysis.
- Run extension before analysis step. Will show the error.
Error stack is shown below
2023-03-09 13:13:02,076 INFO MODULMSG ; Body Running plugin com.castsoftware.highlight2mri... 2023-03-09 13:13:02,076 INFO MODULMSG ; Body Found JRE: C:\Program Files (x86)\Common Files\Oracle\Java\javapath\java.exe 2023-03-09 13:13:02,374 ERROR MODULMSG ; Body Java runtime found but Highlight Analyzer requires at least Java JRE 11 or newer. 2023-03-09 13:13:02,374 INFO MODULMSG ; Body Scanning application code... 2023-03-09 13:13:02,418 INFO MODULMSG ; Body SOURCE dir> C:\deploy\switch\main_sources 2023-03-09 13:13:02,420 INFO MODULMSG ; Body OUTPUT dir>C:\ProgramData\CAST\CAST\CASTMS\LISA/02a8b56574a24131a9ad2653126c4e09\com.castsoftware.highlight2mri\HL\switch 2023-03-09 13:13:02,428 INFO MODULMSG ; Body Highlight server settings have not been found 2023-03-09 13:13:02,439 INFO MODULMSG ; Body Automation JAR dir>C:\ProgramData\CAST\CAST\Extensions\com.castsoftware.highlight2mri.1.0.1-funcrel\hl_automation 2023-03-09 13:13:02,439 INFO MODULMSG ; Body Agent PERL dir>C:\ProgramData\CAST\CAST\Extensions\com.castsoftware.highlight2mri.1.0.1-funcrel\strawberry\perl 2023-03-09 13:13:02,909 INFO MODULMSG ; Body Error: A JNI error has occurred, please check your installation and try again 2023-03-09 13:13:02,910 INFO MODULMSG ; Body Exception in thread "main" java.lang.UnsupportedClassVersionError: com/castsoftware/highlight/HighlightAutomation has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 2023-03-09 13:13:02,910 INFO MODULMSG ; Body at java.lang.ClassLoader.defineClass1(Native Method) 2023-03-09 13:13:02,910 INFO MODULMSG ; Body at java.lang.ClassLoader.defineClass(Unknown Source) 2023-03-09 13:13:02,910 INFO MODULMSG ; Body at java.security.SecureClassLoader.defineClass(Unknown Source) 2023-03-09 13:13:02,910 INFO MODULMSG ; Body at java.net.URLClassLoader.defineClass(Unknown Source) 2023-03-09 13:13:02,910 INFO MODULMSG ; Body at java.net.URLClassLoader.access$100(Unknown Source) 2023-03-09 13:13:02,910 INFO MODULMSG ; Body at java.net.URLClassLoader$1.run(Unknown Source) 2023-03-09 13:13:02,910 INFO MODULMSG ; Body at java.net.URLClassLoader$1.run(Unknown Source) 2023-03-09 13:13:02,910 INFO MODULMSG ; Body at java.security.AccessController.doPrivileged(Native Method) 2023-03-09 13:13:02,911 INFO MODULMSG ; Body at java.net.URLClassLoader.findClass(Unknown Source) 2023-03-09 13:13:02,911 INFO MODULMSG ; Body at java.lang.ClassLoader.loadClass(Unknown Source) 2023-03-09 13:13:02,911 INFO MODULMSG ; Body at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) 2023-03-09 13:13:02,911 INFO MODULMSG ; Body at java.lang.ClassLoader.loadClass(Unknown Source) 2023-03-09 13:13:02,911 INFO MODULMSG ; Body at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source) 2023-03-09 13:13:02,947 WARNING MODULMSG ; Body plugin has encountered the following error : Traceback (most recent call last): File "C:\Program Files\CAST\8.3\ThirdParty\Python34\lib\site-packages\cast\application\internal\find_plugins.py", line 83, in call parameter) File "C:\Program Files\CAST\8.3\ThirdParty\Python34\lib\site-packages\cast\__init__.py", line 100, in _call_extension2 method(parameter) File "C:\ProgramData\CAST\CAST\Extensions\com.castsoftware.highlight2mri.1.0.1-funcrel\main.py", line 121, in start_application self.run_scanner(application, highlight_options, application_id) File "C:\ProgramData\CAST\CAST\Extensions\com.castsoftware.highlight2mri.1.0.1-funcrel\main.py", line 209, in run_scanner raise RuntimeError('Analysis ran with errors') RuntimeError: Analysis ran with errors 2023-03-09 13:13:02,947 INFO MODULMSG ; Body Done running plugin com.castsoftware.highlight2mri.
Action Plan
The issue happens when the Highlight to MRI extension is unable to find the correct Java Version from the environment variables.
To troubleshoot the issue -
- Check whether the Java version has changed recently. If yes, is the new java path updated in the environment variable? The Highlight to MRI extension uses the environment variable - PATH to get the Java location. You need to make sure to have the environment variable PATH consisting of the Java path configured in the 1st column -
- If you make changes to the system environment variables, you need to restart the machine. Only then will the changes be taken into account when you run analysis.
- Restart Console and Node Services.
- If the above steps do not solve your issue contact CAST Technical Support. with the following Relevant input for CAST Technical Support to carry out further investigation.
Relevant input
- CAST AIP Console Logs CAST Management Studio - Information - How to find logs
- Detail of specific steps done
- Any applicable screenshots
Notes/comments
Ticket # 40533
Related Pages