javax.script.ScriptException: Failure running script NO_SCRIPT_NAME: null

sling-dev | Felix Meschberger (JIRA) | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    [jira] [Assigned] (SLING-3308) [Javascript] Upgrading Rhino version from 1.6R2 to 1.7R4

    sling-dev | 3 years ago | Felix Meschberger (JIRA)
    javax.script.ScriptException: Failure running script NO_SCRIPT_NAME: null
  2. 0

    [jira] [Commented] (SLING-3308) [Javascript] Upgrading Rhino version from 1.6R2 to 1.7R4

    sling-dev | 3 years ago | Felix Meschberger (JIRA)
    javax.script.ScriptException: Failure running script NO_SCRIPT_NAME: null

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.apache.sling.scripting.javascript.wrapper.ScriptableNode.has()
    2. org.apache.sling
      ScriptableNode.has
      1. org.apache.sling.scripting.javascript.wrapper.ScriptableNode.has(ScriptableNode.java:406)
      1 frame
    3. Rhino
      ScriptRuntime.enumInit
      1. org.mozilla.javascript.ScriptableObject.getBase(ScriptableObject.java:2531)
      2. org.mozilla.javascript.ScriptableObject.hasProperty(ScriptableObject.java:2284)
      3. org.mozilla.javascript.ScriptRuntime.toIterator(ScriptRuntime.java:1984)
      4. org.mozilla.javascript.ScriptRuntime.enumInit(ScriptRuntime.java:2033)
      4 frames
    4. org.mozilla.javascript
      NO_SCRIPT_NAME_41.call
      1. org.mozilla.javascript.gen.NO_SCRIPT_NAME_41._c_script_0(NO_SCRIPT_NAME:1)
      2. org.mozilla.javascript.gen.NO_SCRIPT_NAME_41.call(NO_SCRIPT_NAME)
      2 frames
    5. Rhino
      ScriptRuntime.doTopCall
      1. org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
      2. org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
      2 frames
    6. org.mozilla.javascript
      NO_SCRIPT_NAME_41.exec
      1. org.mozilla.javascript.gen.NO_SCRIPT_NAME_41.call(NO_SCRIPT_NAME)
      2. org.mozilla.javascript.gen.NO_SCRIPT_NAME_41.exec(NO_SCRIPT_NAME)
      2 frames
    7. Rhino
      Context.evaluateReader
      1. org.mozilla.javascript.Context.evaluateReader(Context.java:1110)
      1 frame
    8. org.apache.sling
      ScriptableNodeTest.testForCurrentNode
      1. org.apache.sling.scripting.javascript.internal.RhinoJavaScriptEngine.eval(RhinoJavaScriptEngine.java:115)
      2. org.apache.sling.scripting.api.AbstractSlingScriptEngine.eval(AbstractSlingScriptEngine.java:44)
      3. org.apache.sling.scripting.javascript.internal.ScriptEngineHelper.eval(ScriptEngineHelper.java:103)
      4. org.apache.sling.scripting.javascript.internal.ScriptEngineHelper.evalToString(ScriptEngineHelper.java:83)
      5. org.apache.sling.scripting.wrapper.ScriptableNodeTest.testForCurrentNode(ScriptableNodeTest.java:279)
      5 frames
    9. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    10. JUnit
      JUnit38ClassRunner.run
      1. junit.framework.TestCase.runTest(TestCase.java:176)
      2. junit.framework.TestCase.runBare(TestCase.java:141)
      3. junit.framework.TestResult$1.protect(TestResult.java:122)
      4. junit.framework.TestResult.runProtected(TestResult.java:142)
      5. junit.framework.TestResult.run(TestResult.java:125)
      6. junit.framework.TestCase.run(TestCase.java:129)
      7. junit.framework.TestSuite.runTest(TestSuite.java:255)
      8. junit.framework.TestSuite.run(TestSuite.java:250)
      9. org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
      9 frames
    11. JUnit4 Provider
      JUnit4Provider.invoke
      1. org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
      2. org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
      3. org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
      3 frames
    12. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    13. SureFire
      ForkedBooter.main
      1. org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
      2. org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
      3. org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
      4. org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
      5. org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
      5 frames