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

b36 of 9 introduces regressions over b35 when running lyra

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 8u40, 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:

      Backports

        Description

        from the lyra dir:

        mvn clean
        ant

        set DYLD_PATH correctly
        export JAVA_HOME to a JDK9 build with a nashorn.jar that points to b35 or b36

         bin/avatar -ot -t 2 ../benchmarks/restjs/restjs.js

        Causes

        com.oracle.avatar.js.ServerException: TypeError: Cannot call undefined in jar:file:/Users/marcus/src/avatar/closed/lyra/target/lib/avatar-js-0.10.32-SNAPSHOT.jar!/lib/net.js at line number 578
        at com.oracle.avatar.js.Server.run(Server.java:219)
        at com.oracle.avatar.core.EventThread.run(EventThread.java:215)
        Caused by: javax.script.ScriptException: TypeError: Cannot call undefined in jar:file:/Users/marcus/src/avatar/closed/lyra/target/lib/avatar-js-0.10.32-SNAPSHOT.jar!/lib/net.js at line number 578
        at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:455)
        at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:439)
        at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:401)
        at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:397)
        at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:147)
        at com.oracle.avatar.js.Server.eval(Server.java:475)
        at com.oracle.avatar.js.Server.access$1300(Server.java:66)
        at com.oracle.avatar.js.Server$SystemScriptRunner.run(Server.java:694)
        at com.oracle.avatar.js.Server.runSystemScript(Server.java:255)
        at com.oracle.avatar.js.Server.runEventLoop(Server.java:297)
        at com.oracle.avatar.js.Server.runUserScripts(Server.java:271)
        at com.oracle.avatar.js.Server.run(Server.java:214)
        ... 1 more
        Caused by: jar:file:/Users/marcus/src/avatar/closed/lyra/target/lib/avatar-js-0.10.32-SNAPSHOT.jar!/lib/net.js:578 TypeError: Cannot call undefined
        at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:57)
        at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:213)
        at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:185)
        at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:172)
        at jdk.nashorn.internal.runtime.Undefined.lookupTypeError(Undefined.java:128)
        at jdk.nashorn.internal.runtime.Undefined.lookup(Undefined.java:100)
        at jdk.nashorn.internal.runtime.linker.NashornLinker.getGuardedInvocation(NashornLinker.java:102)
        at jdk.nashorn.internal.runtime.linker.NashornLinker.getGuardedInvocation(NashornLinker.java:94)
        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:149)
        at jdk.internal.dynalink.DynamicLinker.relink(DynamicLinker.java:233)
        at jdk.nashorn.internal.scripts.Script$Recompilation$359$1AAAAA$net$cu1$restOf.L:1(jar:file:/Users/marcus/src/avatar/closed/lyra/target/lib/avatar-js-0.10.32-SNAPSHOT.jar!/lib/net.js:578)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:625)
        at jdk.nashorn.internal.scripts.Script$Recompilation$45$4681$init.L:65$compile$run(/com/oracle/avatar/js/init.js:134)
        at jdk.nashorn.javaadapters.java.security.PrivilegedAction.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.lang.invoke.MethodHandleImpl$BindCaller$T/431778633.invoke_V(MethodHandleImpl.java:1100)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at jdk.nashorn.internal.scripts.Script$Recompilation$53$4515$init.L:65$compile(/com/oracle/avatar/js/init.js:131)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at jdk.nashorn.internal.scripts.Script$Recompilation$184$3252A$init.L:65$require(/com/oracle/avatar/js/init.js:97)
        at jdk.nashorn.internal.scripts.Script$Recompilation$235$1AAAAA$tty$cu1$restOf.L:1(jar:file:/Users/marcus/src/avatar/closed/lyra/target/lib/avatar-js-0.10.32-SNAPSHOT.jar!/lib/tty.js:24)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:625)
        at jdk.nashorn.internal.scripts.Script$Recompilation$45$4681$init.L:65$compile$run(/com/oracle/avatar/js/init.js:134)
        at jdk.nashorn.javaadapters.java.security.PrivilegedAction.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.lang.invoke.MethodHandleImpl$BindCaller$T/431778633.invoke_V(MethodHandleImpl.java:1100)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at jdk.nashorn.internal.scripts.Script$Recompilation$53$4515$init.L:65$compile(/com/oracle/avatar/js/init.js:131)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at jdk.nashorn.internal.scripts.Script$Recompilation$184$3252A$init.L:65$require(/com/oracle/avatar/js/init.js:97)
        at jdk.nashorn.internal.scripts.Script$Recompilation$228$6581I$process$cu1$restOf.L:1$wrapStdOutputStream(jar:file:/Users/marcus/src/avatar/closed/lyra/target/lib/avatar-js-0.10.32-SNAPSHOT.jar!/lib/process.js:186)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:625)
        at jdk.nashorn.internal.scripts.Script$Recompilation$198$8550$process.L:1$get-1(jar:file:/Users/marcus/src/avatar/closed/lyra/target/lib/avatar-js-0.10.32-SNAPSHOT.jar!/lib/process.js:239)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:625)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at jdk.nashorn.internal.runtime.UserAccessorProperty.invokeGetterAccessor(UserAccessorProperty.java:289)
        at jdk.nashorn.internal.scripts.Script$Recompilation$197$1AAAAA$console$cu1$restOf.L:1(jar:file:/Users/marcus/src/avatar/closed/lyra/target/lib/avatar-js-0.10.32-SNAPSHOT.jar!/lib/console.js:107)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:625)
        at jdk.nashorn.internal.scripts.Script$Recompilation$45$4681$init.L:65$compile$run(/com/oracle/avatar/js/init.js:134)
        at jdk.nashorn.javaadapters.java.security.PrivilegedAction.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.lang.invoke.MethodHandleImpl$BindCaller$T/431778633.invoke_V(MethodHandleImpl.java:1100)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at jdk.nashorn.internal.scripts.Script$Recompilation$53$4515$init.L:65$compile(/com/oracle/avatar/js/init.js:131)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at jdk.nashorn.internal.scripts.Script$Recompilation$184$3252A$init.L:65$require(/com/oracle/avatar/js/init.js:97)
        at jdk.nashorn.internal.scripts.Script$Recompilation$187$2787$init$cu1$restOf.L:65(/com/oracle/avatar/js/init.js:185)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:625)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:625)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:625)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:625)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at jdk.nashorn.internal.scripts.Script$Recompilation$8$init$cu1$restOf.:program(/com/oracle/avatar/js/init.js:65)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:625)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at java.lang.invoke.LambdaForm.interpret_L(LambdaForm.java:664)
        at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:636)
        at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:229)
        at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:387)
        at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:437)
        ... 11 more



        This does not happen with b35

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                attila Attila Szegedi
                Reporter:
                lagergren Marcus Lagergren
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: