Page 1 of 1

Problem searching for local JVMs

Posted: 08 Oct 2020, 16:41
by Paul Gellissen
Hi,

i have noticed that on my machine the function searching for local JVMs does not work. I have installed the latest AdoptOpenJDK version(8.265) and and older Oracle JRE. Whenever I trigger the search for local machines nothing gets found. I have tried starting the OWS settings console as an admin but that does not help either. Attached is the debug log file for the machine containing an error showing during the search for local JVMs.

PS:
Consider enabling the upload for .log files in this forum.

Paul

Re: Problem searching for local JVMs

Posted: 08 Oct 2020, 16:47
by Stephan Classen
Can you please also provide us with the path of the directories where you have installed the JVMs

Re: Problem searching for local JVMs

Posted: 08 Oct 2020, 16:52
by Paul Gellissen
C:\Program Files\AdoptOpenJDK\jre-8.0.265.01-hotspot
C:\Program Files\Java\jre1.8.0_202

Re: Problem searching for local JVMs

Posted: 08 Oct 2020, 18:59
by Janak Mulani
Hi

I presume you are using OWS 1.2.1 on Windows.

There is an exception in the logs:

Code: Select all

[ITW-APP ][2020-10-08 16:23:08.707 MESZ][ERROR][sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221)] Exception in thread "ows-pool-1" java.util.ServiceConfigurationError: com.openwebstart.jvm.localfinder.RuntimeFinder: Provider com.openwebstart.jvm.localfinder.MacRuntimeFinder not a subtype
Ideally you should see a log message as follows:

Code: Select all

[ITW-CORE][2020-10-08 21:53:26.638 IST][INFO ][com.openwebstart.jvm.ui.RuntimeManagerPanel] Starting to search for local JVMs
[ITW-CORE][2020-10-08 21:53:26.642 IST][DEBUG][com.openwebstart.jvm.localfinder.WindowsRuntimeFinder] Searching for local runtimes
[ITW-CORE][2020-10-08 21:53:26.643 IST][DEBUG][com.openwebstart.jvm.localfinder.JdkFinder] About to look for local jdks at the following locations: [C:\Program Files (x86)\java, C:\Program Files\java, C:\Program Files (x86)\Amazon Corretto, C:\Program Files\Amazon Corretto, C:\Program Files (x86)\AdoptOpenJDK, C:\Program Files\AdoptOpenJDK, C:\Program Files (x86)\Zulu, C:\Program Files\Zulu, C:\Program Files (x86)\BellSoft, C:\Program Files\BellSoft, C:\cygwin64\home\Janak\.sdkman]
I will investigate and come back to you.

Re: Problem searching for local JVMs

Posted: 09 Oct 2020, 11:23
by Paul Gellissen
Hi,

yes that is correct. I use OWS 1.2.1 on Windows 1909.

Re: Problem searching for local JVMs

Posted: 09 Oct 2020, 17:16
by Stephan Classen
We can reproduce the issue. Will get back to you once we have a fix.

Re: Problem searching for local JVMs

Posted: 12 Oct 2020, 12:38
by stjepan.baric@daimler.com
Hi Karakun,

we are running into the same problem here. OWS 1.2.1 on Win10 1909. We can't find our locally installed Amazon Corretto packages anymore. Installation paths are:

C:\Program Files (x86)\Amazon Corretto
C:\Program Files\Amazon Corretto

As we are in the middle of the internal package creation this is going to be a showstopper for our rollout. Do you guys know when and how this is going to be fixed?

Regards!

Re: Problem searching for local JVMs

Posted: 12 Oct 2020, 15:19
by Janak Mulani
Thanks for reporting this problem. It is some problem with ServiceLoader which is not always reproducible.

We decided to fix it by doing away with the ServiceLoader.

We are making a bug fix release OWS 1.2.2. We will announce as soon as it is out.