Modify

Opened 10 months ago

Last modified 8 days ago

#23548 new defect

Help Center does not work

Reported by: uwe@… Owned by: team
Priority: normal Milestone:
Component: Core Webstart Version: tested
Keywords: template_report linux Cc:

Description

What steps will reproduce the problem?

  1. Asking for help

What is the expected result?

Getting help

What happens instead?

Error occured. Empty page shown.

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

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2024-02-05 12:56:34 +0100 (Mon, 05 Feb 2024)
Revision:18969
Build-Date:2024-02-06 02:30:58
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (18969 de) Linux Debian GNU/Linux 12 (bookworm)
Memory Usage: 778 MB / 2962 MB (382 MB allocated, but free)
Java version: 17.0.10+7-Debian-1deb12u1, Debian, OpenJDK 64-Bit Server VM
Look and Feel: javax.swing.plaf.metal.MetalLookAndFeel
Screen: :0.0 1280×720 (scaling 1.00×1.00)
Maximum Screen Size: 1280×720
Best cursor sizes: 16×16→16×16, 32×32→32×32
Environment variable LANG: de_DE.UTF-8
System property file.encoding: UTF-8
System property sun.jnu.encoding: UTF-8
Locale info: de_DE
Numbers with default locale: 1234567890 -> 1234567890
Desktop environment: GNOME
Java package: openjdk-17-jre:amd64-17.0.10+7-1~deb12u1
WebStart package: icedtea-netx:all-1.8.8-2
Java ATK Wrapper package: libatk-wrapper-java:all-0.40.0-3
fonts-noto: fonts-noto:-
VM arguments: [--patch-module=java.desktop=/usr/share/icedtea-web/javaws.jar:, --add-reads=java.base=ALL-UNNAMED,java.desktop, --add-reads=java.desktop=ALL-UNNAMED,java.naming, --add-reads=java.naming=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/sun.awt=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/javax.jnlp=ALL-UNNAMED,java.desktop, --add-exports=java.base/com.sun.net.ssl.internal.ssl=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.net.www.protocol.jar=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.action=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.provider=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.util=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.validator=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.x509=ALL-UNNAMED,java.desktop, --add-exports=java.base/jdk.internal.util.jar=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.net.www.protocol.http=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/sun.awt.X11=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/sun.applet=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/sun.applet=ALL-UNNAMED,jdk.jsobject, --add-exports=java.naming/com.sun.jndi.toolkit.url=ALL-UNNAMED,java.desktop, -Dicedtea-web.bin.name=javaws, -Dicedtea-web.bin.location=/usr/share/icedtea-web/bin/javaws.sh, -Djava.security.manager, -Djava.security.policy=/etc/icedtea-web/javaws.policy]
Dataset consistency test: No problems found

Last errors/warnings:
- 00525.058 E: Handled by bug report queue: java.lang.reflect.InaccessibleObjectException: Unable to make field private java.awt.Image javax.swing.text.html.ImageView.image accessible: module java.desktop does not "opens javax.swing.text.html" to unnamed module @3cd59f9b



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

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-1 (27) of JOSM
java.lang.reflect.InaccessibleObjectException: Unable to make field private java.awt.Image javax.swing.text.html.ImageView.image accessible: module java.desktop does not "opens javax.swing.text.html" to unnamed module @3cd59f9b
	at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
	at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
	at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178)
	at java.base/java.lang.reflect.Field.setAccessible(Field.java:172)
	at org.openstreetmap.josm.tools.ReflectionUtils.lambda$setObjectsAccessible$0(ReflectionUtils.java:32)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
	at org.openstreetmap.josm.tools.ReflectionUtils.setObjectsAccessible(ReflectionUtils.java:29)
	at org.openstreetmap.josm.gui.widgets.JosmImageView.<init>(JosmImageView.java:50)
	at org.openstreetmap.josm.gui.widgets.JosmHTMLFactory.create(JosmHTMLFactory.java:29)
	at java.desktop/javax.swing.text.html.TableView.create(TableView.java:942)
	at java.desktop/javax.swing.text.CompositeView.loadChildren(CompositeView.java:112)
	at java.desktop/javax.swing.text.FlowView$LogicalView.loadChildren(FlowView.java:722)
	at java.desktop/javax.swing.text.CompositeView.setParent(CompositeView.java:139)
	at java.desktop/javax.swing.text.FlowView.loadChildren(FlowView.java:147)
	at java.desktop/javax.swing.text.CompositeView.setParent(CompositeView.java:139)
	at java.desktop/javax.swing.text.FlowView.setParent(FlowView.java:297)
	at java.desktop/javax.swing.text.html.ParagraphView.setParent(ParagraphView.java:75)
	at java.desktop/javax.swing.text.CompositeView.replace(CompositeView.java:219)
	at java.desktop/javax.swing.text.BoxView.replace(BoxView.java:182)
	at java.desktop/javax.swing.text.CompositeView.loadChildren(CompositeView.java:114)
	at java.desktop/javax.swing.text.CompositeView.setParent(CompositeView.java:139)
	at java.desktop/javax.swing.text.html.BlockView.setParent(BlockView.java:72)
	at java.desktop/javax.swing.text.CompositeView.replace(CompositeView.java:219)
	at java.desktop/javax.swing.text.BoxView.replace(BoxView.java:182)
	at java.desktop/javax.swing.text.html.TableView$RowView.replace(TableView.java:1474)
	at java.desktop/javax.swing.text.CompositeView.loadChildren(CompositeView.java:114)
	at java.desktop/javax.swing.text.CompositeView.setParent(CompositeView.java:139)
	at java.desktop/javax.swing.text.CompositeView.replace(CompositeView.java:219)
	at java.desktop/javax.swing.text.BoxView.replace(BoxView.java:182)
	at java.desktop/javax.swing.text.html.TableView.replace(TableView.java:913)
	at java.desktop/javax.swing.text.CompositeView.loadChildren(CompositeView.java:114)
	at java.desktop/javax.swing.text.CompositeView.setParent(CompositeView.java:139)
	at java.desktop/javax.swing.text.html.TableView.setParent(TableView.java:817)
	at java.desktop/javax.swing.text.CompositeView.replace(CompositeView.java:219)
	at java.desktop/javax.swing.text.BoxView.replace(BoxView.java:182)
	at java.desktop/javax.swing.text.CompositeView.loadChildren(CompositeView.java:114)
	at java.desktop/javax.swing.text.CompositeView.setParent(CompositeView.java:139)
	at java.desktop/javax.swing.text.html.BlockView.setParent(BlockView.java:72)
	at java.desktop/javax.swing.text.CompositeView.replace(CompositeView.java:219)
	at java.desktop/javax.swing.text.BoxView.replace(BoxView.java:182)
	at java.desktop/javax.swing.text.CompositeView.loadChildren(CompositeView.java:114)
	at java.desktop/javax.swing.text.CompositeView.setParent(CompositeView.java:139)
	at java.desktop/javax.swing.text.html.BlockView.setParent(BlockView.java:72)
	at java.desktop/javax.swing.text.CompositeView.replace(CompositeView.java:219)
	at java.desktop/javax.swing.text.BoxView.replace(BoxView.java:182)
	at java.desktop/javax.swing.text.CompositeView.loadChildren(CompositeView.java:114)
	at java.desktop/javax.swing.text.CompositeView.setParent(CompositeView.java:139)
	at java.desktop/javax.swing.text.html.BlockView.setParent(BlockView.java:72)
	at java.desktop/javax.swing.text.html.HTMLEditorKit$HTMLFactory$BodyBlockView.setParent(HTMLEditorKit.java:1476)
	at java.desktop/javax.swing.text.CompositeView.replace(CompositeView.java:219)
	at java.desktop/javax.swing.text.BoxView.replace(BoxView.java:182)
	at java.desktop/javax.swing.text.CompositeView.loadChildren(CompositeView.java:114)
	at java.desktop/javax.swing.text.CompositeView.setParent(CompositeView.java:139)
	at java.desktop/javax.swing.text.html.BlockView.setParent(BlockView.java:72)
	at java.desktop/javax.swing.plaf.basic.BasicTextUI$RootView.setView(BasicTextUI.java:1432)
	at java.desktop/javax.swing.plaf.basic.BasicTextUI.setView(BasicTextUI.java:713)
	at java.desktop/javax.swing.plaf.basic.BasicTextUI.modelChanged(BasicTextUI.java:702)
	at java.desktop/javax.swing.plaf.basic.BasicTextUI$UpdateHandler.propertyChange(BasicTextUI.java:1898)
	at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
	at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
	at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268)
	at java.desktop/java.awt.Component.firePropertyChange(Component.java:8722)
	at java.desktop/javax.swing.text.JTextComponent.setDocument(JTextComponent.java:456)
	at org.openstreetmap.josm.gui.help.HelpBrowser.loadTopic(HelpBrowser.java:236)
	at org.openstreetmap.josm.gui.help.HelpBrowser.loadRelativeHelpTopic(HelpBrowser.java:332)
	at org.openstreetmap.josm.gui.help.HelpBrowser.openHelpTopic(HelpBrowser.java:411)
	at org.openstreetmap.josm.gui.help.HelpBrowser.lambda$setUrlForHelpTopic$1(HelpBrowser.java:116)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

Attachments (0)

Change History (17)

comment:1 by skyper, 10 months ago

Cannot reproduce with our Ubuntu/Debian package. Is this a webstart problem?

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2024-02-05 12:56:34 +0100 (Mon, 05 Feb 2024)
Revision:18969
Build-Date:2024-02-06 02:30:58
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (18969 de) Linux Debian GNU/Linux 12 (bookworm)
Memory Usage: 202 MB / 1970 MB (57 MB allocated, but free)
Java version: 17.0.10+7-Debian-1deb12u1, Debian, OpenJDK 64-Bit Server VM
Look and Feel: javax.swing.plaf.metal.MetalLookAndFeel

Environment variable LANG: en_US.UTF-8
System property file.encoding: UTF-8
System property sun.jnu.encoding: UTF-8
Locale info: de_US
Numbers with default locale: 1234567890 -> 1234567890
Desktop environment: GNOME

VM arguments: [--module-path=/usr/share/openjfx/lib, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, -Djosm.restart=true, -Djava.net.useSystemProxies=true, --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]

comment:2 by GerdP, 10 months ago

I assume --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED is missing?

comment:3 by GerdP, 10 months ago

BTW: On my Windows system the context sensitive help for the image viewer dialog is only opened when the dialog is in the side pane.

in reply to:  2 comment:4 by skyper, 10 months ago

Replying to GerdP:

I assume --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED is missing?

It works for me without it but maybe this ticket is related to webstart.

comment:5 by uwe@…, 10 months ago

Yes, it's a webstart problem. Working with Icedtea on Debian.
Just tested:

  1. start Application
  2. Menu: Help - Help
  3. Error occures

I made an error with version, right? Sorry for this

in reply to:  2 comment:6 by taylor.smock, 10 months ago

Replying to GerdP:

I assume --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED is missing?

It isn't in the start arguments, so it is missing. Assuming @uwe isn't using an old version of the JNLP file, it should be present. So either webstart is trimming start arguments, or there is a bug in the debian webstart package.

comment:7 by taylor.smock, 5 months ago

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

comment:8 by taylor.smock, 5 months ago

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

comment:9 by taylor.smock, 4 months ago

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

comment:10 by skyper, 4 months ago

Component: CoreCore Webstart
Keywords: linux added

This ticket and all duplicates are about Debian based Linux systems.
Is this a problem with our Webstart file or related to a bug of the Debian Webstart package (icedtea-netx)?

comment:11 by taylor.smock, 4 months ago

It could be either. Until someone experiencing the problem tests with a newly downloaded JNLP file, I won't know.

I'll check in a VM, but there may be something specific to their setups.

comment:12 by taylor.smock, 4 months ago

OK. I am pretty certain that it is related to the debian package. It is missing the required arguments.

OWS works as expected. On Mac.

I think OWS might be shipping a newer version of icedtea while Debian has a 3 year old version. And the 3 year old version seems to be dropping arguments.

For all the reporters, I would recommend installing OWS. They have a debian package available.
Alternatively, you can try using the unofficial JOSM flatpak.

I'll check and see if we can add a module-info file now that we are on Java 11. Last time I looked into it, some of our dependencies didn't have the required metadata available. It isn't super important to us, but it may be important to the plugins.

comment:13 by skyper, 4 months ago

I tried it on my Debian system. I had to install icedtea-netx and I am sure I had never run a .jnlp.

  1. I get warnings about the ssl certificate of the website as:
    • it is untrusted
    • the signers certificate has an end time which is less than 6 month from now
      Version	3
      Serial	271583117875880159961421963008493596900524
      Signature Algorithm	SHA256withRSA
      Issuer	CN=R10, O=Let's Encrypt, C=US
      Validity	Validity: [From: Thu Jul 18 05:45:09 CEST 2024,
                     To: Wed Oct 16 05:45:08 CEST 2024]
      Subject	CN=josm.openstreetmap.de
      Signature	0000: BF 0D 53 9B C7 F2 57 01   7E 08 49 8C FF C5 0C C4  ..S...W...I.....
      0010: 30 9A 46 7E D8 4F 61 E9   80 58 A8 9D 9F 94 A8 8C  0.F..Oa..X......
      0020: 5A 49 6F DD 51 46 C1 70   21 AC 79 9C F5 0B 4F 22  ZIo.QF.p!.y...O"
      0030: 27 61 CD 93 1E 2A 3D 3E   BE F3 20 CC 0D 1F 8E C0  'a...*=>.. .....
      0040: BF 6C 85 42 32 E6 80 5F   4C 83 36 EE 73 C0 75 17  .l.B2.._L.6.s.u.
      0050: D3 B7 6E 97 A3 E6 68 59   39 0E 89 61 8F 6C DC DD  ..n...hY9..a.l..
      0060: E6 DE 1F AE 14 5A B5 2E   48 39 DE 43 6A 52 FA C4  .....Z..H9.CjR..
      0070: B1 A5 72 D1 1E 8D 86 E8   99 2C 32 1E BC 71 08 BA  ..r......,2..q..
      0080: 18 B8 95 02 12 F4 8E 3E   20 DC D7 5D 19 EC 6B 49  .......> ..]..kI
      0090: 66 5D 9D C6 E9 05 86 F7   76 A0 28 7C E7 53 21 E7  f]......v.(..S!.
      00A0: BE 10 C6 2F 3A 0A 5B 03   6E 28 13 FE 87 2F 72 4C  .../:.[.n(.../rL
      00B0: EA 58 6B C7 2D 03 3C 8A   46 95 30 28 B1 94 D6 83  .Xk.-.<.F.0(....
      00C0: 28 52 27 EF 5C EC 97 6D   94 CE 49 7C A1 E8 63 74  (R'.\..m..I...ct
      00D0: D9 01 A2 ED 7D 83 B3 A1   7D 38 C8 77 82 00 04 59  .........8.w...Y
      00E0: 25 1B A9 49 35 F4 66 23   79 93 98 AC 3F A3 52 2B  %..I5.f#y...?.R+
      00F0: A9 AD 69 B3 93 28 FD 5E   11 D5 9D 2B A9 B8 A1 21  ..i..(.^...+...!
      
      MD5 Fingerprint	79:C7:03:D7:93:30:C1:DC:EC:02:1F:95:64:59:D4:F9
      SHA1 Fingerprint	8D:D3:0D:77:29:FC:D7:20:7C:60:B5:3C:D8:C4:63:82:43:AA:F3:B4
      

Fun fact: My window manager (gnome-session) does not capture the icedTea window and I cannot get back to it in this state once I switch to another window. Had to use kill several times

  1. Choosing to run in sandbox mode results in an exception
    net.sourceforge.jnlp.LaunchException: Fatal: Launch Error: Could not launch JNLP file. The application has not been initialized, for more information execute javaws/browser from the command line and send a bug report.
    	at java.desktop/net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:583)
    	at java.desktop/net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:946)
    Caused by: java.lang.reflect.InvocationTargetException
    	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
    	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
    	at java.desktop/net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:577)
    	... 1 more
    Caused by: java.lang.SecurityException: Unable to create temporary file or directory
    	at java.base/java.nio.file.TempFileHelper.create(TempFileHelper.java:141)
    	at java.base/java.nio.file.TempFileHelper.createTempFile(TempFileHelper.java:159)
    	at java.base/java.nio.file.Files.createTempFile(Files.java:923)
    	at org.openstreetmap.josm.tools.Utils.execOutput(Utils.java:861)
    	at org.openstreetmap.josm.tools.Utils.execOutput(Utils.java:841)
    	at org.openstreetmap.josm.tools.PlatformHookUnixoid.isDebianOrUbuntu(PlatformHookUnixoid.java:127)
    	at org.openstreetmap.josm.tools.PlatformHookUnixoid.preStartupHook(PlatformHookUnixoid.java:56)
    	at org.openstreetmap.josm.gui.MainApplication.mainJOSM(MainApplication.java:817)
    	at org.openstreetmap.josm.gui.MainApplication$3.processArguments(MainApplication.java:280)
    	at org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:766)
    	... 6 more
    
  1. Running in normal mode brings use to the warning
    * Missing JVM Arguments:
      --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED
      --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED
      These arguments should be added in the command line or start script before the -jar parameter.
    

Conclusion:

  • The missing JVM arguments are a problem of the Debian package
  • I do not know what the problem with the ssl cert is about as my firefox has no problem with it. What's true is the fact that is will expiring in a few month.
  • I do not know if the exception running sandbox mode is a problem of JOSM or the Debian package.
  • There is a problem in Debian with the Gnome WM and icedTea in the early stages.

comment:14 by taylor.smock, 4 months ago

Debian is kind of in a hard place right now. We are broken in their version since their version doesn't keep our JVM arguments. They cannot update their version since there hasn't been a stable release in October 2021 (almost 3 years ago).

The last official release from the IcedTea project was v1.8.8. This is what Debian ships.

The last commit to IcedTea was setting the version to 2.0.0-SNAPSHOT a few weeks ago.

I'm pretty certain that OWS is using the 2.0-SNAPSHOT, which is why it doesn't have the problem.

comment:15 by anonymous, 4 months ago

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

in reply to:  14 comment:16 by skyper, 4 months ago

Replying to taylor.smock:

Debian is kind of in a hard place right now. We are broken in their version since their version doesn't keep our JVM arguments. They cannot update their version since there hasn't been a stable release in October 2021 (almost 3 years ago).

The last official release from the IcedTea project was v1.8.8. This is what Debian ships.

The last commit to IcedTea was setting the version to 2.0.0-SNAPSHOT a few weeks ago.

I'm pretty certain that OWS is using the 2.0-SNAPSHOT, which is why it doesn't have the problem.

Well, the good news is that you do not need Webstart for JOSM on Debian as we provide packages and Debian also has a package of a recent version under backports, see Download#GNUDebian

comment:17 by taylor.smock, 8 days ago

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team to the specified user.
Next status will be 'needinfo'. The owner will be changed from team to uwe@….
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 be changed from team to 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.