You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to run Mapillary JOSM plugin using "runJosm" task, I'm facing following issue:
2022-07-07 16:57:44.657 SEVERE: Handled by bug report queue: java.lang.NoClassDefFoundError: Could not initialize class org.openstreetmap.josm.tools.WinRegistry
java.lang.NoClassDefFoundError: Could not initialize class org.openstreetmap.josm.tools.WinRegistry
at org.openstreetmap.josm.tools.PlatformHookWindows.isDotNet45Installed(PlatformHookWindows.java:628)
at org.openstreetmap.josm.tools.PlatformHookWindows.webRequest(PlatformHookWindows.java:676)
at org.openstreetmap.josm.tools.PlatformHookWindows.getX509Certificate(PlatformHookWindows.java:362)
at org.openstreetmap.josm.io.CertificateAmendment.addMissingCertificates(CertificateAmendment.java:240)
at org.openstreetmap.josm.gui.MainApplication.mainJOSM(MainApplication.java:878)
at org.openstreetmap.josm.gui.MainApplication$3.processArguments(MainApplication.java:277)
at org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:741)
2022-07-07 16:57:45.004 SEVERE: Unable to get Windows build number: java.lang.NoClassDefFoundError: Could not initialize class org.openstreetmap.josm.tools.WinRegistry
2022-07-07 16:57:45.236 SEVERE: java.lang.IllegalStateException: HTTP factory has not been set
java.lang.IllegalStateException: HTTP factory has not been set
at org.openstreetmap.josm.tools.HttpClient.create(HttpClient.java:557)
at org.openstreetmap.josm.tools.HttpClient.create(HttpClient.java:545)
at org.openstreetmap.josm.io.CachedFile.checkLocal(CachedFile.java:491)
at org.openstreetmap.josm.io.CachedFile.getFile(CachedFile.java:284)
at org.openstreetmap.josm.io.CachedFile.getInputStream(CachedFile.java:227)
at org.openstreetmap.josm.io.CachedFile.getByteContent(CachedFile.java:245)
at org.openstreetmap.josm.gui.bugreport.JosmUpdatePanel.getTestedVersion(JosmUpdatePanel.java:70)
at org.openstreetmap.josm.gui.bugreport.JosmUpdatePanel.readCurrentVersion(JosmUpdatePanel.java:53)
at java.base/java.lang.Thread.run(Thread.java:833)
I've even tried to crate a new project with such build.gradle:
plugins {
id 'java'
id "org.openstreetmap.josm" version "0.8.2"
}
group 'org.example'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
josm {
pluginName = "MyAwesomePluginName"
josmCompileVersion = 18511
manifest {
description = "The description of my awesome plugin"
mainClass = "org.openstreetmap.josm.plugins.myawesomeplugin.MyAwesomePlugin"
minJosmVersion = 18511
}
}
Results were the same. I'm using IntelliJ IDEA on Windows 10, Azul 17 JDK.
The text was updated successfully, but these errors were encountered:
ireun
changed the title
java.lang.NoClassDefFoundError: Could not initialize class org.openstreetmap.josm.tools.WinRegistry
Exception on runJosm taks: Could not initialize class org.openstreetmap.josm.tools.WinRegistry
Jul 7, 2022
ireun
changed the title
Exception on runJosm taks: Could not initialize class org.openstreetmap.josm.tools.WinRegistry
Exception on runJosm task: Could not initialize class org.openstreetmap.josm.tools.WinRegistry
Jul 7, 2022
Edit: I can reproduce this in a Windows 10 VM with Azul JDK 17
This part of the console output seems to be the relevant portion:
2022-07-08 07:46:24.402 WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0xffffffff80000002. Windows RegCreateKeyEx(...) returned error code 5.
2022-07-08 07:46:24.417 SEVERE: java.lang.ExceptionInInitializerError. Cause: java.lang.reflect.InaccessibleObjectException: Unable to make private static native long[] java.util.prefs.WindowsPreferences.WindowsRegOpenKey(long,byte[],int) accessible: module java.prefs does not "opens java.util.prefs" to unnamed module @5d20e46
Hi.
I was trying to run Mapillary JOSM plugin using "runJosm" task, I'm facing following issue:
I've even tried to crate a new project with such
build.gradle
:Results were the same. I'm using IntelliJ IDEA on Windows 10, Azul 17 JDK.
The text was updated successfully, but these errors were encountered: