JDK-8253276 : eclipse: An internal error occurred during: "Load QML Analyzer". Cannot invoke "
  • Type: Bug
  • Component: core-libs
  • Sub-Component: javax.script
  • Affected Version: 15
  • Priority: P4
  • Status: Closed
  • Resolution: Not an Issue
  • OS: linux_redhat_6.0
  • CPU: x86_64
  • Submitted: 2020-09-16
  • Updated: 2021-03-10
  • Resolved: 2020-12-15
Related Reports
Relates :  
Description
ADDITIONAL SYSTEM INFORMATION :
% ./java --version
openjdk 15 2020-09-15
OpenJDK Runtime Environment (build 15+36-1562)
OpenJDK 64-Bit Server VM (build 15+36-1562, mixed mode, sharing)


A DESCRIPTION OF THE PROBLEM :
Bringing up the latest eclipse for C++ gives the error in the Synopsis.  When brought up with Open-jdk 14, it works fine.

Eclipse IDE for C/C++ Developers (includes Incubating components)
Version: 2020-09 (4.17.0)
Build id: 20200910-1200
OS: Linux, v.3.10.0-862.6.3.el7.x86_64, x86_64 / gtk 3.22.26
Java version: 15


STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Bring up eclipse with this jvm.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
eclipse would come up without giving the error.
ACTUAL -
An internal error occurred during: "Load QML Analyzer".
Cannot invoke "javax.script.ScriptEngine.getContext()" because "this.engine" is null


CUSTOMER SUBMITTED WORKAROUND :
Go back to jdk-14

FREQUENCY : always



Comments
This is not a bug. Nashorn has been removed from the JDK in release 15. Starting with release 15, there are no pre-configured JavaScript engine available. One must configure it before use. https://bugs.openjdk.java.net/browse/JDK-8236933
15-12-2020

Requested the submitter to clarify the EXPECTED BEHAVIOR and ACTUAL BEHAVIOR.
17-09-2020

The observation on Windows 10: Downloaded Eclipse Eclipse IDE for C/C++ Developers Version: 2020-09 (4.17.0) Could not observe the error as described in the report. It is probably an issue of Eclipse. Moved to JDK for more comments.
17-09-2020