Opened 6 years ago

Closed 6 years ago

Last modified 4 years ago

#15343 closed defect (fixed)

InaccessibleObjectException when launching via Java 9 Webstart

Reported by: simon04 Owned by: Don-vip
Priority: critical Milestone: 17.09
Component: Core Webstart Version:
Keywords: webstart java9 Cc:

Description (last modified by simon04)

JOSM does not start in the end! Tested using r12712=tested, r12885=latest. The stack trace for r12885=latest is as follows:

java.lang.reflect.InaccessibleObjectException: Unable to make private static native int[] java.util.prefs.WindowsPreferences.WindowsRegOpenKey(int,byte[],int) accessible: module java.prefs does not "opens java.util.prefs" to unnamed module @57a4fe17
	at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(Unknown Source)
	at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(Unknown Source)
	at java.base/java.lang.reflect.Method.checkCanSetAccessible(Unknown Source)
	at java.base/java.lang.reflect.Method.setAccessible(Unknown Source)
	at java.base/ Method)
	at org.openstreetmap.josm.gui.MainApplication.applyWorkarounds(
	at org.openstreetmap.josm.gui.MainApplication.mainJOSM(
	at org.openstreetmap.josm.gui.MainApplication$2.processArguments(
	at org.openstreetmap.josm.gui.MainApplication.main(
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
	at jdk.javaws@9/com.sun.javaws.Launcher.executeApplication(Unknown Source)
	at jdk.javaws@9/com.sun.javaws.Launcher.executeMainClass(Unknown Source)
	at jdk.javaws@9/com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
	at jdk.javaws@9/ Source)
	at java.base/ Source)
C:\Users\simon>java -version
java version "9"
Java(TM) SE Runtime Environment (build 9+181)
Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)

Attachments (0)

Change History (8)

comment:1 by simon04, 6 years ago

Description: modified (diff)

comment:2 by Don-vip, 6 years ago

Owner: changed from team to Don-vip
Status: newassigned

comment:3 by Don-vip, 6 years ago

WebStart seems to ignore the directives in our MANIFEST:

Add-Opens: java.base/java.lang java.base/jdk.internal.loader java.base
 / java.desktop/javax.imageio.spi java.desktop/javax.
 swing.text.html java.prefs/java.util.prefs

comment:4 by Don-vip, 6 years ago

We must include the command-line option in the JNLP file.

comment:5 by Don-vip, 6 years ago

In 12887/josm:

see #15343 - catch Java 9 exceptions

comment:7 by Don-vip, 6 years ago

Resolution: fixed
Status: assignedclosed

In 12890/josm:

fix #15333, fix #15343: Java 9: fix problems with Web Start (jnlp) and plugin scripting

comment:8 by Don-vip, 4 years ago

Component: CoreCore Webstart

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Don-vip.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

E-mail address and name can be saved in the Preferences .
Note: See TracTickets for help on using tickets.