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

tools/jlink/JLinkToolProviderTest.java fails when run w/ limited modules

XMLWordPrintable

      tools/jlink/JLinkToolProviderTest.java fails when run w/ --limit-modules java.logging,java.scripting,java.rmi,java.sql,java.xml due to java.lang.RuntimeException: jlink tool not found:

      #section:main
      ----------messages:(4/213)----------
      command: main JLinkToolProviderTest
      reason: User specified action: run main/othervm/java.security.policy=toolprovider.policy JLinkToolProviderTest
      Mode: othervm [/othervm specified]
      elapsed time (seconds): 1.115
      ----------configuration:(3/84)----------
      Boot Layer
        limit modules: java.logging java.scripting java.rmi java.sql java.xml

      ----------System.out:(0/0)----------
      ----------System.err:(13/881)----------
      java.lang.ExceptionInInitializerError
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:563)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
      at java.base/java.lang.Thread.run(Thread.java:844)
      Caused by: java.lang.RuntimeException: jlink tool not found
      at JLinkToolProviderTest.lambda$static$0(JLinkToolProviderTest.java:37)
      at java.base/java.util.Optional.orElseThrow(Optional.java:385)
      at JLinkToolProviderTest.<clinit>(JLinkToolProviderTest.java:36)
      ... 6 more
      STATUS:Failed.`main' threw exception: java.lang.ExceptionInInitializerError

            anazarov Andrey Nazarov (Inactive)
            iignatyev Igor Ignatyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: