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

WebStart apps fails to run with reflection error with Jigsaw-nightly build

XMLWordPrintable

    • x86_64
    • windows_7

      FULL PRODUCT VERSION :
      java version "9-ea"
      Java(TM) SE Runtime Environment (build 9-ea+136-jigsaw-nightly-h5506-20160916)
      Java HotSpot(TM) Client VM (build 9-ea+136-jigsaw-nightly-h5506-20160916, mixed mode)


      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows [Version 6.1.7601]

      A DESCRIPTION OF THE PROBLEM :
      Launching web start apps doesn't work with latest Jigsaw EA builds. Similar to JDK-8152838 but with a different export missing.

      REGRESSION. Last worked in version 9

      ADDITIONAL REGRESSION INFORMATION:
      java version "9-ea"
      Java(TM) SE Runtime Environment (build 9-ea+136-jigsaw-nightly-h5506-20160916)
      Java HotSpot(TM) Client VM (build 9-ea+136-jigsaw-nightly-h5506-20160916, mixed mode)


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Deploy a web start app, try to launch it

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      App should launch and run with same behaviour as earlier JDK versions
      ACTUAL -
      App doesn't run

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      java.lang.reflect.InaccessibleObjectException: Unable to make private static java.net.InetAddress java.net.InetAddress.getByName(java.lang.String,java.net.InetAddress) throws java.net.UnknownHostException accessible: module java.base does not "exports private java.net" to module jdk.deploy
      at java.base/jdk.internal.reflect.Reflection.throwInaccessibleObjectException(Reflection.java:414)
      at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:196)
      at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:192)
      at java.base/java.lang.reflect.Method.setAccessible(Method.java:186)
      at jdk.deploy@9-ea/com.sun.deploy.cache.Cache$13.run(Cache.java:1998)
      at jdk.deploy@9-ea/com.sun.deploy.cache.Cache$13.run(Cache.java:1986)
      at java.base/java.security.AccessController.doPrivileged(Native Method)
      at jdk.deploy@9-ea/com.sun.deploy.cache.Cache.getCurrentIP(Cache.java:1985)
      at jdk.deploy@9-ea/com.sun.deploy.cache.Cache.isCacheEntryIPValid(Cache.java:2060)
      at jdk.deploy@9-ea/com.sun.deploy.cache.Cache.getCacheEntryFromIdxFiles(Cache.java:1823)
      at jdk.deploy@9-ea/com.sun.deploy.cache.Cache.getCacheEntry(Cache.java:2184)
      at jdk.deploy@9-ea/com.sun.deploy.cache.Cache.getCacheEntry(Cache.java:2102)
      at jdk.deploy@9-ea/com.sun.deploy.cache.Cache.getCacheEntry(Cache.java:2079)
      at jdk.deploy@9-ea/com.sun.deploy.cache.ResourceProviderImpl.isUpdateAvailable(ResourceProviderImpl.java:173)
      at jdk.deploy@9-ea/com.sun.deploy.cache.ResourceProviderImpl.getResource(ResourceProviderImpl.java:362)
      at jdk.deploy@9-ea/com.sun.deploy.cache.ResourceProviderImpl.getResource(ResourceProviderImpl.java:321)
      at jdk.deploy@9-ea/com.sun.deploy.model.ResourceProvider.getResource(ResourceProvider.java:85)
      at jdk.javaws@9-ea/com.sun.javaws.jnl.LaunchDescFactory._buildDescriptor(LaunchDescFactory.java:238)
      at jdk.javaws@9-ea/com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(LaunchDescFactory.java:225)
      at jdk.javaws@9-ea/com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(LaunchDescFactory.java:580)
      at jdk.javaws@9-ea/com.sun.javaws.Main.prepareLaunchDesc(Main.java:1052)
      at jdk.plugin@9-ea/sun.plugin2.main.WebStart.launchApp(WebStart.java:167)
      at jdk.plugin@9-ea/sun.plugin2.main.WebStart.continueInSecureThread(WebStart.java:138)
      at jdk.plugin@9-ea/sun.plugin2.main.WebStart.access$000(WebStart.java:48)
      at jdk.plugin@9-ea/sun.plugin2.main.WebStart$1.run(WebStart.java:71)
      at java.base/java.lang.Thread.run(Thread.java:843)


      REPRODUCIBILITY :
      This bug can be reproduced always.

            ddehaven David Dehaven (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: