JDK-8264267 : Running jdeps --jdk-internals --multi-release 11 sometimes fails on the same JAR
  • Type: Bug
  • Component: tools
  • Affected Version: 11
  • Priority: P4
  • Status: Closed
  • Resolution: Incomplete
  • OS: generic
  • CPU: generic
  • Submitted: 2021-03-25
  • Updated: 2021-11-23
  • Resolved: 2021-08-16
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdResolved
Related Reports
Relates :  
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



Comments
Requested the submitter for the reproducer, but there has been no response from the submitter after 14 days.
01-09-2021

Can you request the submitter to get the reproducer and the error message from com.sun.tools.jdeps.MultiReleaseException? It's not obvious from code inspection how this can happen. Need more information for further investigation. I move this issue to incomplete.
16-08-2021

Additional Information from Submitter: =========================== This issue happened in JDK 11.0.11. However, downgrading to 11.0.9 solved the issue. I believe that you need to check what may have changed between 11.0.9 and 11.0.11 that might have caused it
26-05-2021

jdeps --jdk-internals --multi-release 11 --class-path '<OUR_PATH>/build/output/libs/*' <OUR_PATH>/build/libs/<OUR_JAR>.jar' Using the above command randomly crashes with following error. The failure is not always: [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) The reproducer is not there. If a reproducer is required, will request one from the submitter.
26-03-2021