javax.script.ScriptException: TypeError: cannot.get.default.string in <eval> at line number 2

Stack Overflow | NishM | 8 months 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

    Nashorn runtime exception while printing JSObject implementations

    Stack Overflow | 8 months ago | NishM
    javax.script.ScriptException: TypeError: cannot.get.default.string in <eval> at line number 2
  2. 0

    Can't run FIJI updater - Issues - ImageJ Forum

    imagej.net | 5 months ago
    javax.script.ScriptException: ReferenceError: "importPackage" is not defined in <eval> at line number 1
  3. 0

    empty range in char class in <eval> when trying to run browser.js on Nashorn

    Stack Overflow | 1 year ago | Alexander Arutinyants
    java.lang.Error: javax.script.ScriptException: SyntaxError: empty range in char class in <eval> at line number 41
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 45#211943593

    GitHub | 10 months ago | pmlopes
    javax.script.ScriptException: Error: Cannot find module net in <eval> at line number 141 at column number 6
  6. 0

    Vertx docker container

    Google Groups | 9 months ago | Frank Montyne
    java.lang.IllegalStateException: Failed to eval: TypeError: null has no such function "getResourceAsStream" in null at line number 287

  1. MrMonkey 1 times, last 10 months ago
4 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. javax.script.ScriptException

    TypeError: cannot.get.default.string in <eval> at line number 2

    at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException()
  2. jdk.nashorn.api
    NashornScriptEngine.eval
    1. jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:467)
    2. jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:451)
    3. jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:403)
    4. jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:399)
    5. jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:155)
    5 frames
  3. Java RT
    AbstractScriptEngine.eval
    1. javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:264)
    1 frame
  4. test.nashorn
    NashornTest.testDefaultValMethod
    1. test.nashorn.NashornTest.testDefaultValMethod(NashornTest.java:386)
    1 frame
  5. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:497)
    4 frames
  6. JUnit
    ParentRunner.run
    1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
    2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
    4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    5. org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
    6. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
    7. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
    8. org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    9. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    10. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    11. org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    12. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    13. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
    14. org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    14 frames
  7. JUnit4 Runner
    JUnit4TestReference.run
    1. org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
    1 frame
  8. JUnit3 Runner
    RemoteTestRunner.main
    1. org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
    3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
    4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
    5. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
    5 frames