Modify

Opened 2 years ago

Last modified 22 months ago

#22409 needinfo defect

IOE: Unable to make protected javax.print.attribute.EnumSyntax[] sun.print.Win32MediaSize.getEnumValueTable() accessible

Reported by: anonymous Owned by: anonymous
Priority: normal Milestone:
Component: Plugin print Version:
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

What is the expected result?

What happens instead?

Please provide any additional information below. Attach a screenshot if possible.

Revision:18543
Build-Date:2022-08-30 13:34:09

Identification: JOSM/1.5 (18543 fr) Windows 10 64-Bit
OS Build number: Windows 10 Pro 2009 (19043)
Memory Usage: 454 MB / 4058 MB (163 MB allocated, but free)
Java version: 17.0.4+8-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Screen: \Display0 1920×1080 (scaling 1.25×1.25)
Maximum Screen Size: 1920×1080
Best cursor sizes: 16×16→32×32, 32×32→32×32
System property file.encoding: Cp1252
System property sun.jnu.encoding: Cp1252
Locale info: fr_FR
Numbers with default locale: 1234567890 -> 1234567890
VM arguments: [-Djpackage.app-version=1.5.18543, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, --add-exports=java.base/sun.security.action=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED, --add-opens=java.base/java.lang=ALL-UNNAMED, --add-opens=java.base/java.nio=ALL-UNNAMED, --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED, --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED, --add-opens=java.desktop/javax.imageio.spi=ALL-UNNAMED, --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED, --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED, -Djpackage.app-path=%UserProfile%\AppData\Local\JOSM\JOSM.exe]
Dataset consistency test: No problems found

Plugins:
+ CADTools (1008)
+ DxfImport (1014)
+ ImportImagePlugin (36013)
+ Mapillary (2.0.0-beta.17)
+ apache-commons (36003)
+ apache-http (35924)
+ buildings_tools (36011)
+ ejml (35924)
+ geotools (36015)
+ imagery-xml-bounds (35976)
+ importvec (35976)
+ jackson (36006)
+ jaxb (35952)
+ jna (36005)
+ jts (36004)
+ measurement (35978)
+ opendata (36011)
+ print (35893)
+ terracer (35978)
+ utilsplugin2 (36011)

Last errors/warnings:
- 00000.448 W: extended font config - overriding 'filename.Myanmar_Text=mmrtext.ttf' with 'MMRTEXT.TTF'
- 00000.450 W: extended font config - overriding 'filename.Mongolian_Baiti=monbaiti.ttf' with 'MONBAITI.TTF'
- 00002.710 E: java.security.KeyStoreException: Windows-ROOT not found. Cause : java.security.NoSuchAlgorithmException: Windows-ROOT KeyStore not available
- 00089.040 E: Handled by bug report queue: java.lang.reflect.InaccessibleObjectException: Unable to make protected javax.print.attribute.EnumSyntax[] sun.print.Win32MediaSize.getEnumValueTable() accessible: module java.desktop does not "opens sun.print" to unnamed module @7817fd62



=== REPORTED CRASH DATA ===
BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (24) of main
java.lang.reflect.InaccessibleObjectException: Unable to make protected javax.print.attribute.EnumSyntax[] sun.print.Win32MediaSize.getEnumValueTable() accessible: module java.desktop does not "opens sun.print" to unnamed module @7817fd62
	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 org.openstreetmap.josm.tools.ReflectionUtils.lambda$setObjectsAccessible$0(ReflectionUtils.java:32)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at org.openstreetmap.josm.tools.ReflectionUtils.setObjectsAccessible(ReflectionUtils.java:29)
	at org.openstreetmap.josm.plugins.print.PrintDialog.unmarshallPrintSetting(PrintDialog.java:526)
	at org.openstreetmap.josm.plugins.print.PrintDialog.loadPrintSettings(PrintDialog.java:554)
	at org.openstreetmap.josm.plugins.print.PrintDialog.<init>(PrintDialog.java:136)
	at org.openstreetmap.josm.plugins.print.PrintAction.run(PrintAction.java:50)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)

Attachments (0)

Change History (9)

comment:1 by taylor.smock, 2 years ago

Milestone: Longterm

comment:2 by taylor.smock, 2 years ago

Owner: changed from team to anonymous
Status: newneedinfo

I wasn't able to reproduce using the Windows installer.
With that said, the print plugin didn't give useful output (see other tickets for the plugin).

Can you give me steps to reproduce?

comment:3 by skyper, 2 years ago

I do not get the exception but I still get no useful prints caused by #14278.

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2022-09-27 21:25:50 +0200 (Tue, 27 Sep 2022)
Revision:18564
Build-Date:2022-09-28 01:30:57
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (18564 en) Linux Debian GNU/Linux 11 (bullseye)
Java version: 17.0.4+8-Debian-1deb11u1, Debian, OpenJDK 64-Bit Server VM

Plugins:
+ print (35893)

comment:4 by taylor.smock, 2 years ago

Should we just move print to oldplugins and add it to the deprecated plugin list? It hasn't been working properly for at least 6 years.

in reply to:  4 comment:5 by skyper, 2 years ago

Version: latest

Replying to taylor.smock:

Should we just move print to oldplugins and add it to the deprecated plugin list? It hasn't been working properly for at least 6 years.

I think this the idea behind the plugin is useful but it makes no sense to delivery a plugin that is not working and nobody has time and energy to fix it in near future.

comment:6 by skyper, 2 years ago

Summary: the plug in "print " does not work and crashesInaccessibleObjectException: Unable to make protected javax.print.attribute.EnumSyntax[] sun.print.Win32MediaSize.getEnumValueTable() accessible

Anyway, this looks like a missing jvm argument at startup as of module java.desktop does not "opens sun.print" to unnamed module @7817fd62. Some --add-opens and possibly add-exports is missing.

Last edited 2 years ago by skyper (previous) (diff)

comment:7 by skyper, 2 years ago

Strange, I never had problems running josm without these exports and opens to unamed module when starting it by java -jar from the console.

comment:8 by skyper, 2 years ago

Summary: InaccessibleObjectException: Unable to make protected javax.print.attribute.EnumSyntax[] sun.print.Win32MediaSize.getEnumValueTable() accessibleIOE: Unable to make protected javax.print.attribute.EnumSyntax[] sun.print.Win32MediaSize.getEnumValueTable() accessible

comment:9 by skyper, 22 months ago

Ticket #22717 has been marked as a duplicate of this ticket.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as needinfo The owner will remain anonymous.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from anonymous to the specified user. Next status will be 'new'.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will remain anonymous. Next status will be 'assigned'.

Add Comment


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