Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via sling-dev by Felix Meschberger (JIRA), 1 year ago
via sling-dev by Felix Meschberger (JIRA), 1 year ago
javax.script.ScriptException: Failure running script NO_SCRIPT_NAME: null at org.apache.sling.scripting.javascript.internal.RhinoJavaScriptEngine.eval(RhinoJavaScriptEngine.java:158) at org.apache.sling.scripting.api.AbstractSlingScriptEngine.eval(AbstractSlingScriptEngine.java:44) at org.apache.sling.scripting.javascript.internal.ScriptEngineHelper.eval(ScriptEngineHelper.java:103) at org.apache.sling.scripting.javascript.internal.ScriptEngineHelper.evalToString(ScriptEngineHelper.java:83) at org.apache.sling.scripting.wrapper.ScriptableNodeTest.testForCurrentNode(ScriptableNodeTest.java:279) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at junit.framework.TestCase.runTest(TestCase.java:176) at junit.framework.TestCase.runBare(TestCase.java:141) at junit.framework.TestResult$1.protect(TestResult.java:122) at junit.framework.TestResult.runProtected(TestResult.java:142) at junit.framework.TestResult.run(TestResult.java:125) at junit.framework.TestCase.run(TestCase.java:129) at junit.framework.TestSuite.runTest(TestSuite.java:255) at junit.framework.TestSuite.run(TestSuite.java:250) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165) at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)Caused by: java.lang.NullPointerException at org.apache.sling.scripting.javascript.wrapper.ScriptableNode.has(ScriptableNode.java:406) at org.mozilla.javascript.ScriptableObject.getBase(ScriptableObject.java:2531) at org.mozilla.javascript.ScriptableObject.hasProperty(ScriptableObject.java:2284) at org.mozilla.javascript.ScriptRuntime.toIterator(ScriptRuntime.java:1984) at org.mozilla.javascript.ScriptRuntime.enumInit(ScriptRuntime.java:2033) at org.mozilla.javascript.gen.NO_SCRIPT_NAME_41._c_script_0(NO_SCRIPT_NAME:1) at org.mozilla.javascript.gen.NO_SCRIPT_NAME_41.call(NO_SCRIPT_NAME) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091) at org.mozilla.javascript.gen.NO_SCRIPT_NAME_41.call(NO_SCRIPT_NAME) at org.mozilla.javascript.gen.NO_SCRIPT_NAME_41.exec(NO_SCRIPT_NAME) at org.mozilla.javascript.Context.evaluateReader(Context.java:1110) at org.apache.sling.scripting.javascript.internal.RhinoJavaScriptEngine.eval(RhinoJavaScriptEngine.java:115) ... 29 more