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

Running jdeps --jdk-internals --multi-release 11 sometimes fails on the same JAR

    XMLWordPrintable

    Details

    • CPU:
      generic
    • OS:
      generic

      Description

      ADDITIONAL SYSTEM INFORMATION :
      MacOS, Debian

      A DESCRIPTION OF THE PROBLEM :
      We're running jdeps --jdk-internals --multi-release 11 --class-path '<OUR_PATH>/build/output/libs/*' <OUR_PATH>/build/libs/<OUR_JAR>.jar'

      Running it multiple times on the SAME jar (and classpath) sometimes fails and sometimes passes.
      The error we get is as follows:

      [01:33:32] Exception in thread "main" java.lang.Error: java.util.concurrent.ExecutionException: com.sun.tools.jdeps.MultiReleaseException
      [01:33:32] at jdk.jdeps/com.sun.tools.jdeps.DependencyFinder.waitForTasksCompleted(DependencyFinder.java:272)
      [01:33:32] at jdk.jdeps/com.sun.tools.jdeps.DependencyFinder.parse(DependencyFinder.java:132)
      [01:33:32] at jdk.jdeps/com.sun.tools.jdeps.DepsAnalyzer.run(DepsAnalyzer.java:129)
      [01:33:32] at jdk.jdeps/com.sun.tools.jdeps.JdepsTask$AnalyzeDeps.run(JdepsTask.java:747)
      [01:33:32] at jdk.jdeps/com.sun.tools.jdeps.JdepsTask$AnalyzeDeps.run(JdepsTask.java:734)
      [01:33:32] at jdk.jdeps/com.sun.tools.jdeps.JdepsTask.run(JdepsTask.java:560)
      [01:33:32] at jdk.jdeps/com.sun.tools.jdeps.JdepsTask.run(JdepsTask.java:519)
      [01:33:32] at jdk.jdeps/com.sun.tools.jdeps.Main.main(Main.java:49)
      [01:33:32] Caused by: java.util.concurrent.ExecutionException: com.sun.tools.jdeps.MultiReleaseException
      [01:33:32] at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
      [01:33:32] at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
      [01:33:32] at jdk.jdeps/com.sun.tools.jdeps.DependencyFinder.waitForTasksCompleted(DependencyFinder.java:268)



      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Not sure, it happens randomly on the same jar and classpath as explained in the description

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Always show jdeps valid output
      ACTUAL -
      Sometimes fails with an exception as described in the description

      ---------- BEGIN SOURCE ----------
      This is an internal code that we cannot publish externally.
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      None.

      FREQUENCY : occasionally


        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mchung Mandy Chung
              Reporter:
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: