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

FX Samples broken

    XMLWordPrintable

    Details

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

      Description

      jjs cd jdk9/nashorn/samples

      jjs -fx barchart_weather.js
      Caused by: java.lang.RuntimeException: java.io.IOException: Server returned HTTP response code: 401 for URL: http://api.openweathermap.org/data/2.5/forecast?q=chennai,india&units=metric&mode=json

      jjs -fx browser_dom.js
      Doesn't print in console
      Works in JDK8

      jjs -fx colorfulcircles.fx
      Caused by: fx:bootstrap.js:47 TypeError: Cannot load script from colorfulcircles.fx
      Doesn't work in JDK8 either

      jjs -fx datepick.js
      Caused by: datepick.js:48 ReferenceError: "Scene" is not defined
      Works in JDK8

      jjs -fx filebrowser.js -- .
      Caused by: java.lang.BootstrapMethodError: call site initialization exception
      Works in JDK8

      jjs -fx jsonviewer.js
      Caused by: java.lang.RuntimeException: java.io.IOException: Server returned HTTP response code: 401 for URL: http://api.openweathermap.org/data/2.5/forecast/daily?q=Chennai&mode=json&units=metric&cnt=7`
      Doesn't work in JDK8

      All other work


        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sdama Srinivas Dama (Inactive)
              Reporter:
              jlaskey Jim Laskey
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: