Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8023609 | hs25 | Peter Allwin | P3 | Resolved | Fixed | b48 |
sa intermittently throw 'javax.script.ScriptException: TypeError: [object JSAdapter] has no such function "__has__" in sa.js at line number 150' during attaching to core
way to reproduce:
0. generate core-file, e.g.:
java -XX:ErrorHandlerTest=1'
1. try to attach:
${JAVA_HOME}/bin/java -cp ${JAVA_HOME}/lib/sa-jdi.jar sun.jvm.hotspot.CLHSDB ${JAVA_HOME}/bin/java ${CORE}
output:
Opening core file, please wait...
javax.script.ScriptException: SyntaxError: sa.js#752<eval>:1:23 Expected ( but found :
function readHeapBlock_:Header(addr) { return readVMType('HeapBlock_:Header', addr);}
^ in sa.js at line number 752
javax.script.ScriptException: SyntaxError: sa.js#752<eval>:1:23 Expected ( but found :
function readHeapBlock_:Header(addr) { return readVMType('HeapBlock_:Header', addr);}
^ in sa.js at line number 752
Exception in thread "main" java.lang.RuntimeException: javax.script.ScriptException: TypeError: [object JSAdapter] has no such function "__has__" in sa.js at line number 150
at sun.jvm.hotspot.utilities.soql.JSJavaScriptEngine.call(JSJavaScriptEngine.java:82)
at sun.jvm.hotspot.utilities.soql.JSJavaScriptEngine.start(JSJavaScriptEngine.java:434)
at sun.jvm.hotspot.utilities.soql.JSJavaScriptEngine.start(JSJavaScriptEngine.java:61)
at sun.jvm.hotspot.CommandProcessor.postAttach(CommandProcessor.java:1739)
at sun.jvm.hotspot.CommandProcessor.<init>(CommandProcessor.java:1777)
at sun.jvm.hotspot.CLHSDB.run(CLHSDB.java:90)
at sun.jvm.hotspot.CLHSDB.main(CLHSDB.java:35)
Caused by: javax.script.ScriptException: TypeError: [object JSAdapter] has no such function "__has__" in sa.js at line number 150
at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:421)
at jdk.nashorn.api.scripting.NashornScriptEngine.invokeImpl(NashornScriptEngine.java:369)
at jdk.nashorn.api.scripting.NashornScriptEngine.invokeFunction(NashornScriptEngine.java:170)
at sun.jvm.hotspot.utilities.soql.JSJavaScriptEngine.call(JSJavaScriptEngine.java:78)
... 6 more
Caused by: sa.js:150 TypeError: [object JSAdapter] has no such function "__has__"
at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:66)
at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:222)
at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:194)
at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:181)
at jdk.nashorn.internal.objects.NativeJSAdapter.findGetMethod(NativeJSAdapter.java:629)
at jdk.nashorn.internal.runtime.ScriptObject.lookup(ScriptObject.java:1603)
at jdk.nashorn.internal.runtime.linker.NashornLinker.getGuardedInvocation(NashornLinker.java:76)
at jdk.internal.dynalink.support.CompositeTypeBasedGuardingDynamicLinker.getGuardedInvocation(CompositeTypeBasedGuardingDynamicLinker.java:176)
at jdk.internal.dynalink.support.CompositeGuardingDynamicLinker.getGuardedInvocation(CompositeGuardingDynamicLinker.java:124)
at jdk.internal.dynalink.support.LinkerServicesImpl.getGuardedInvocation(LinkerServicesImpl.java:138)
at jdk.internal.dynalink.DynamicLinker.relink(DynamicLinker.java:229)
at jdk.nashorn.internal.scripts.Script$sa.main$wrapScriptObject$_L149(sa.js:150)
at jdk.nashorn.internal.scripts.Script$sa.main(sa.js:193)
at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:514)
at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:205)
at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:345)
at jdk.nashorn.internal.runtime.ScriptRuntime.checkAndApply(ScriptRuntime.java:330)
at jdk.nashorn.api.scripting.NashornScriptEngine.invokeImpl(NashornScriptEngine.java:367)
... 8 more
way to reproduce:
0. generate core-file, e.g.:
java -XX:ErrorHandlerTest=1'
1. try to attach:
${JAVA_HOME}/bin/java -cp ${JAVA_HOME}/lib/sa-jdi.jar sun.jvm.hotspot.CLHSDB ${JAVA_HOME}/bin/java ${CORE}
output:
Opening core file, please wait...
javax.script.ScriptException: SyntaxError: sa.js#752<eval>:1:23 Expected ( but found :
function readHeapBlock_:Header(addr) { return readVMType('HeapBlock_:Header', addr);}
^ in sa.js at line number 752
javax.script.ScriptException: SyntaxError: sa.js#752<eval>:1:23 Expected ( but found :
function readHeapBlock_:Header(addr) { return readVMType('HeapBlock_:Header', addr);}
^ in sa.js at line number 752
Exception in thread "main" java.lang.RuntimeException: javax.script.ScriptException: TypeError: [object JSAdapter] has no such function "__has__" in sa.js at line number 150
at sun.jvm.hotspot.utilities.soql.JSJavaScriptEngine.call(JSJavaScriptEngine.java:82)
at sun.jvm.hotspot.utilities.soql.JSJavaScriptEngine.start(JSJavaScriptEngine.java:434)
at sun.jvm.hotspot.utilities.soql.JSJavaScriptEngine.start(JSJavaScriptEngine.java:61)
at sun.jvm.hotspot.CommandProcessor.postAttach(CommandProcessor.java:1739)
at sun.jvm.hotspot.CommandProcessor.<init>(CommandProcessor.java:1777)
at sun.jvm.hotspot.CLHSDB.run(CLHSDB.java:90)
at sun.jvm.hotspot.CLHSDB.main(CLHSDB.java:35)
Caused by: javax.script.ScriptException: TypeError: [object JSAdapter] has no such function "__has__" in sa.js at line number 150
at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:421)
at jdk.nashorn.api.scripting.NashornScriptEngine.invokeImpl(NashornScriptEngine.java:369)
at jdk.nashorn.api.scripting.NashornScriptEngine.invokeFunction(NashornScriptEngine.java:170)
at sun.jvm.hotspot.utilities.soql.JSJavaScriptEngine.call(JSJavaScriptEngine.java:78)
... 6 more
Caused by: sa.js:150 TypeError: [object JSAdapter] has no such function "__has__"
at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:66)
at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:222)
at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:194)
at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:181)
at jdk.nashorn.internal.objects.NativeJSAdapter.findGetMethod(NativeJSAdapter.java:629)
at jdk.nashorn.internal.runtime.ScriptObject.lookup(ScriptObject.java:1603)
at jdk.nashorn.internal.runtime.linker.NashornLinker.getGuardedInvocation(NashornLinker.java:76)
at jdk.internal.dynalink.support.CompositeTypeBasedGuardingDynamicLinker.getGuardedInvocation(CompositeTypeBasedGuardingDynamicLinker.java:176)
at jdk.internal.dynalink.support.CompositeGuardingDynamicLinker.getGuardedInvocation(CompositeGuardingDynamicLinker.java:124)
at jdk.internal.dynalink.support.LinkerServicesImpl.getGuardedInvocation(LinkerServicesImpl.java:138)
at jdk.internal.dynalink.DynamicLinker.relink(DynamicLinker.java:229)
at jdk.nashorn.internal.scripts.Script$sa.main$wrapScriptObject$_L149(sa.js:150)
at jdk.nashorn.internal.scripts.Script$sa.main(sa.js:193)
at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:514)
at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:205)
at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:345)
at jdk.nashorn.internal.runtime.ScriptRuntime.checkAndApply(ScriptRuntime.java:330)
at jdk.nashorn.api.scripting.NashornScriptEngine.invokeImpl(NashornScriptEngine.java:367)
... 8 more
- backported by
-
JDK-8023609 sa.js: TypeError: [object JSAdapter] has no such function "__has__"
-
- Resolved
-
- relates to
-
JDK-8020750 Node::get_int: guarantee(t != NULL) failed: must be con
-
- Resolved
-
-
JDK-8023667 SA: ExceptionBlob and other C2 classes not available in client VM
-
- Resolved
-
-
JDK-8015436 compiler/ciReplay/TestSA.sh fails with assert() index is out of bounds
-
- Closed
-