Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8152950

BasicLauncherTest.java fails due to type error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2
    • 9
    • 9
    • hotspot
    • svc
    • b122
    • Verified

    Description

      The test sun/tools/jhsdb/BasicLauncherTest.java when attempting to start up the Nashorn Javascript engine. The problem might happen due to the recent integration of Jigsaw.

      Here is the output generated by the failure:

      Starting clhsdb against 77378
      Starting LingeredApp
      Command line: ['/export/local/aurora/CommonData/TEST_JAVA_HOME/bin/java' '-cp' '/export/local/aurora/sandbox/results/workDir/classes/0/sun/tools/jhsdb:/export/local/aurora/sandbox/results/workDir/classes/0/lib/testlibrary:/export/local/aurora/sandbox/results/workDir/classes/0/test/lib/share/classes' 'jdk.test.lib.apps.LingeredApp' 'b6f00030-5e58-4ca0-8df6-a4caeaed84fb.lck' ]
      Starting jhsdb jstack against 77485
      ----------System.err:(73/6224)----------
      Attaching to process 77378, please wait...
      javax.script.ScriptException: TypeError: sapkg.runtime.VM.getVM is not a function in sa.js at line number 54
      javax.script.ScriptException: TypeError: sapkg.runtime.VM.getVM is not a function in sa.js at line number 54
      Exception in thread "main" java.lang.RuntimeException: javax.script.ScriptException: TypeError: so["has(java.lang.String)"] is not a function in sa.js at line number 133
      at sun.jvm.hotspot.utilities.soql.JSJavaScriptEngine.call(jdk.hotspot.agent@9-internal/JSJavaScriptEngine.java:82)
      at sun.jvm.hotspot.utilities.soql.JSJavaScriptEngine.start(jdk.hotspot.agent@9-internal/JSJavaScriptEngine.java:434)
      at sun.jvm.hotspot.utilities.soql.JSJavaScriptEngine.start(jdk.hotspot.agent@9-internal/JSJavaScriptEngine.java:61)
      at sun.jvm.hotspot.CommandProcessor.postAttach(jdk.hotspot.agent@9-internal/CommandProcessor.java:1750)
      at sun.jvm.hotspot.CommandProcessor.<init>(jdk.hotspot.agent@9-internal/CommandProcessor.java:1788)
      at sun.jvm.hotspot.CLHSDB.run(jdk.hotspot.agent@9-internal/CLHSDB.java:98)
      at sun.jvm.hotspot.CLHSDB.main(jdk.hotspot.agent@9-internal/CLHSDB.java:40)
      at sun.jvm.hotspot.SALauncher.runCLHSDB(jdk.hotspot.agent@9-internal/SALauncher.java:134)
      at sun.jvm.hotspot.SALauncher.main(jdk.hotspot.agent@9-internal/SALauncher.java:334)
      Caused by: javax.script.ScriptException: TypeError: so["has(java.lang.String)"] is not a function in sa.js at line number 133
      at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(jdk.scripting.nashorn@9-internal/NashornScriptEngine.java:466)
      at jdk.nashorn.api.scripting.NashornScriptEngine.invokeImpl(jdk.scripting.nashorn@9-internal/NashornScriptEngine.java:388)
      at jdk.nashorn.api.scripting.NashornScriptEngine.invokeFunction(jdk.scripting.nashorn@9-internal/NashornScriptEngine.java:189)
      at sun.jvm.hotspot.utilities.soql.JSJavaScriptEngine.call(jdk.hotspot.agent@9-internal/JSJavaScriptEngine.java:78)
      ... 8 more
      Caused by: sa.js:133 TypeError: so["has(java.lang.String)"] is not a function
      at jdk.nashorn.internal.runtime.ECMAErrors.error(jdk.scripting.nashorn@9-internal/ECMAErrors.java:57)
      at jdk.nashorn.internal.runtime.ECMAErrors.typeError(jdk.scripting.nashorn@9-internal/ECMAErrors.java:213)
      at jdk.nashorn.internal.runtime.ECMAErrors.typeError(jdk.scripting.nashorn@9-internal/ECMAErrors.java:185)
      at jdk.nashorn.internal.runtime.ECMAErrors.typeError(jdk.scripting.nashorn@9-internal/ECMAErrors.java:172)
      at jdk.nashorn.internal.runtime.Undefined.lookup(jdk.scripting.nashorn@9-internal/Undefined.java:105)
      at jdk.nashorn.internal.runtime.linker.NashornLinker.getGuardedInvocation(jdk.scripting.nashorn@9-internal/NashornLinker.java:106)
      at jdk.nashorn.internal.runtime.linker.NashornLinker.getGuardedInvocation(jdk.scripting.nashorn@9-internal/NashornLinker.java:96)
      at jdk.dynalink.linker.support.CompositeTypeBasedGuardingDynamicLinker.getGuardedInvocation(jdk.dynalink@9-internal/CompositeTypeBasedGuardingDynamicLinker.java:184)
      at jdk.dynalink.linker.support.CompositeGuardingDynamicLinker.getGuardedInvocation(jdk.dynalink@9-internal/CompositeGuardingDynamicLinker.java:132)
      at jdk.dynalink.LinkerServicesImpl.lambda$getGuardedInvocation$0(jdk.dynalink@9-internal/LinkerServicesImpl.java:160)
      at jdk.dynalink.LinkerServicesImpl.getWithLookupInternal(jdk.dynalink@9-internal/LinkerServicesImpl.java:191)
      at jdk.dynalink.LinkerServicesImpl.getGuardedInvocation(jdk.dynalink@9-internal/LinkerServicesImpl.java:158)
      at jdk.dynalink.DynamicLinker.relink(jdk.dynalink@9-internal/DynamicLinker.java:262)
      at jdk.nashorn.internal.scripts.Script$Recompilation$24$4193A$sa.main$wrapScriptObject$__has__(jdk.scripting.nashorn.scripts/sa.js:133)
      at jdk.nashorn.internal.scripts.Script$Recompilation$23$5023A$sa$cu1$restOf.main$wrapScriptObject$__get__(jdk.scripting.nashorn.scripts/sa.js:161)
      at jdk.nashorn.internal.scripts.Script$Recompilation$21$2804AA$sa$cu1$restOf.main(jdk.scripting.nashorn.scripts/sa.js:204)
      at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(jdk.scripting.nashorn@9-internal/ScriptFunctionData.java:658)
      at jdk.nashorn.internal.runtime.ScriptFunction.invoke(jdk.scripting.nashorn@9-internal/ScriptFunction.java:513)
      at jdk.nashorn.internal.runtime.ScriptRuntime.apply(jdk.scripting.nashorn@9-internal/ScriptRuntime.java:471)
      at jdk.nashorn.api.scripting.ScriptObjectMirror.callMember(jdk.scripting.nashorn@9-internal/ScriptObjectMirror.java:198)
      at jdk.nashorn.api.scripting.NashornScriptEngine.invokeImpl(jdk.scripting.nashorn@9-internal/NashornScriptEngine.java:382)
      ... 10 more

      Attachments

        Issue Links

          Activity

            People

              dsamersoff Dmitriy Samersoff
              zmajo Zoltan Majo (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: