java.lang.NoClassDefFoundError: com.sun.script.javascript.RhinoScriptEngine (initialization failure)

codegur.com | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Using PowerMock causes java.lang.VerifyError exception

    codegur.com | 6 months ago
    java.lang.NoClassDefFoundError: com.sun.script.javascript.RhinoScriptEngine (initialization failure)
  2. 0

    ExceptionInInitializerError when run test in context PowerMockRunner

    Stack Overflow | 7 months ago | MacTire
    java.lang.NoClassDefFoundError: com.sun.script.javascript.RhinoScriptEngine (initialization failure)

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      com.sun.script.javascript.RhinoScriptEngine (initialization failure)

      at sun.org.mozilla.javascript.internal.ContextFactory.initGlobal()
    2. sun.org.mozilla
      ContextFactory.initGlobal
      1. sun.org.mozilla.javascript.internal.ContextFactory.initGlobal(ContextFactory.java:196)
      1 frame
    3. com.sun.script
      RhinoScriptEngine.<clinit>
      1. com.sun.script.javascript.RhinoScriptEngine.<clinit>(RhinoScriptEngine.java:49)
      1 frame
    4. Java RT
      J9VMInternals.initialize
      1. java.lang.J9VMInternals.initializeImpl(Native Method)
      2. java.lang.J9VMInternals.initialize(J9VMInternals.java:236)
      2 frames
    5. com.sun.script
      RhinoScriptEngineFactory.getScriptEngine
      1. com.sun.script.javascript.RhinoScriptEngineFactory.getScriptEngine(RhinoScriptEngineFactory.java:57)
      1 frame
    6. Java RT
      ScriptEngineManager.getEngineByName
      1. javax.script.ScriptEngineManager.getEngineByName(ScriptEngineManager.java:226)
      1 frame
    7. ru.blogic.lecm
      DocumentIndicatorTest.resolutionHasExecutionReportTest
      1. ru.blogic.lecm.common.scripting.ScriptExecutorImpl.getEngine(ScriptExecutorImpl.java:28)
      2. ru.blogic.lecm.common.scripting.ScriptExecutorImpl.addScript(ScriptExecutorImpl.java:39)
      3. ru.blogic.lecm.util.js.CommandResolverJsImpl.resolveScript(CommandResolverJsImpl.java:53)
      4. ru.blogic.lecm.util.js.CommandResolverJsImpl.resolve(CommandResolverJsImpl.java:70)
      5. ru.blogic.lecm.util.DocumentIndicatorTest.assertResultCode(DocumentIndicatorTest.java:1226)
      6. ru.blogic.lecm.util.DocumentIndicatorTest.resolutionHasReportTest(DocumentIndicatorTest.java:125)
      7. ru.blogic.lecm.util.DocumentIndicatorTest.resolutionHasExecutionReportTest(DocumentIndicatorTest.java:184)
      7 frames