Problem searching for local JVMs

The public knowledge pool and discussion forum of the OWS community. Do not post confidential information here!
Paul Gellissen
Posts: 15
Joined: 17 Jun 2020, 14:42

Problem searching for local JVMs

Post 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
Attachments
2020-10-08_16_22_57.0-ows-settings.log.7z
(2.73 KiB) Downloaded 301 times

Stephan Classen
Posts: 232
Joined: 27 Mar 2020, 09:55

Re: Problem searching for local JVMs

Post by Stephan Classen »

Can you please also provide us with the path of the directories where you have installed the JVMs

Paul Gellissen
Posts: 15
Joined: 17 Jun 2020, 14:42

Re: Problem searching for local JVMs

Post by Paul Gellissen »

C:\Program Files\AdoptOpenJDK\jre-8.0.265.01-hotspot
C:\Program Files\Java\jre1.8.0_202

Janak Mulani
Posts: 726
Joined: 24 Mar 2020, 13:37

Re: Problem searching for local JVMs

Post 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.

Paul Gellissen
Posts: 15
Joined: 17 Jun 2020, 14:42

Re: Problem searching for local JVMs

Post by Paul Gellissen »

Hi,

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

Stephan Classen
Posts: 232
Joined: 27 Mar 2020, 09:55

Re: Problem searching for local JVMs

Post by Stephan Classen »

We can reproduce the issue. Will get back to you once we have a fix.

stjepan.baric@daimler.com
Posts: 14
Joined: 29 Apr 2020, 15:29

Re: Problem searching for local JVMs

Post 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!

Janak Mulani
Posts: 726
Joined: 24 Mar 2020, 13:37

Re: Problem searching for local JVMs

Post 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.

Post Reply