question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TornadoVM silently includes (an outdated) commons-math3 that causes problems.

See original GitHub issue

Describe the bug Some of our unit tests fail when using Tornado VM options due to (surprisingly) included commons-math3 ver 3.2 that is silently added to the classpath.

How To Reproduce Run any code needing commons-math functionality included in a newer commons-math, i.e. the latest 3.6.1: it fails for us trying to resolve org.apache.commons.math3.fitting.WeightedObservedPoints class.

The error is misleading by implying there’s a problem with modules management while this is a normal resolving conflict.

Error occurred during initialization of boot layer
java.lang.module.FindException: Module org.apache.commons.math3 not found

Provide a test-case and instructions of how to reproduce the issue. Expected behavior Commons math of the project should be used, not supplied tornadovm/bin/sdk/share/java/tornado/commons-math3-3.2.jar A clear and concise description of what you expected to happen.

While resolving

jdk.internal.loader.BuiltinClassLoader::loadClassOrNull

should either skip TornadoVM supplied version or should provide an option to put user classpath in front of the the jars supplied with the distribution, commons-math in this case.

Computing system setup (please complete the following information):

  • OS: [e.g. Ubuntu 20] MacOS
  • OpenCL Version 1.2
  • TornadoVM develop 0.13

Additional context

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
jjfumerocommented, Jan 11, 2022
1reaction
jjfumerocommented, Jan 10, 2022

We got the issue. It is now under code review. Thanks a lot for the report.

Read more comments on GitHub >

github_iconTop Results From Across the Web

beehive-lab/TornadoVM - GitHub
TornadoVM is a plug-in to OpenJDK and GraalVM that allows programmers to automatically run Java programs on heterogeneous hardware. TornadoVM currently targets ...
Read more >
🌪️ TornadoVM: A practical and efficient heterogeneous ...
Tornado is a practical heterogeneous programming framework for automatically accelerating Java programs on heterogeneous (OpenCL-compatible) hardware. Releases.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found