Opened 21 months ago
Closed 21 months ago
#23558 closed defect (worksforme)
Fehlermeldung bei Start; Error message at startup
| Reported by: | anonymous | Owned by: | team |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Core | Version: | |
| Keywords: | Cc: |
Description
Hallo zusammen,
seit dem Update auf Version 19017 bekomme ich beim Start folgende Fehlermeldung:
Fehlende JVM-Argumente:
--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
Woran liegt das und was kann ich machen damit die Fehlermeldung nicht mehr kommt ?
deepl:
Hello everyone,
Since updating to version 19017, I get the following error message on startup:
Fehlende JVM-Argumente:
--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
What is the reason for this and what can I do so that the error message no longer appears?
Attachments (0)
Change History (10)
comment:1 by , 21 months ago
| Owner: | changed from to |
|---|---|
| Status: | new → needinfo |
follow-up: 3 comment:2 by , 21 months ago
oh, Entschuldigung, die Angaben hatte ich leider vergessen. Hier sind sie jetzt. Übrigens starte ich Josm bisher immer direkt über die.jar Datei ohne Start Skript.
Schon mal vielen Dank für die Hife.
deepl:
oh, sorry, I had unfortunately forgotten the details. Here they are now. By the way, I always start Josm directly via the.jar file without a start script.
Thank you very much for your help.
Relative:URL: ^/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2024-03-12 17:31:19 +0100 (Tue, 12 Mar 2024) Revision:19017 Build-Date:2024-03-13 02:30:59 URL:https://josm.openstreetmap.de/svn/trunk Identification: JOSM/1.5 (19017 de) Linux Mint 21.3 Memory Usage: 1131 MB / 3980 MB (324 MB allocated, but free) Java version: 11.0.22+7-post-Ubuntu-0ubuntu222.04.1, Ubuntu, OpenJDK 64-Bit Server VM Look and Feel: javax.swing.plaf.metal.MetalLookAndFeel Screen: :0.0 1920×1080 (scaling 1.00×1.00) Maximum Screen Size: 1920×1080 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: X-Cinnamon Java package: openjdk-11-jre:amd64-11.0.22+7-0ubuntu2~22.04.1 libcommons-logging-java: libcommons-logging-java:all-1.2-2 fonts-noto: fonts-noto:- Plugins: + PicLayer (1.0.3) + RoadSigns (36226) + buildings_tools (36226) + gridify (1606242219) + reverter (36226) + terracer (36205) + undelete (36226) + utilsplugin2 (36226) Tagging presets: + https://josm.openstreetmap.de/josmfile?page=Presets/Healthcare&zip=1 + https://josm.openstreetmap.de/josmfile?page=Presets/ParkingLanes&zip=1 + https://josm.openstreetmap.de/josmfile?page=Presets/PostPartner&zip=1 Map paint styles: + https://josm.openstreetmap.de/josmfile?page=Styles/Potlatch2&zip=1
comment:3 by , 21 months ago
Thanks, especially with Linux we got lots of tickets about exceptions as the additional arguments were missing.
Replying to anonymous:
By the way, I always start Josm directly via the.jar file without a start script.
So, you would need to add these arguments (plus some more) directly when starting JOSM from the console. Probably the easiest solution would be to use our Ubuntu packages which include the arguments in their start scripts.
comment:5 by , 21 months ago
I've been launching with a simple command line for a long time now. What's the change that makes these necessary now? Have I been just blissfully unaware I was doing it wrong before?
My current command line to add more ram but no other frills: "C:\Program Files\Zulu\zulu-17\bin\java" -jar -Xmx16g josm-custom.jar
follow-up: 9 comment:6 by , 21 months ago
See #21059 and the long list of duplicates. I am not sure but my understanding is that the error is triggered when you have unexpected data in the clipboard, e.g. a screenshot.
I think the errors didn't happen on Windows systems, but I didn't invest much time in analysis.
comment:7 by , 21 months ago
i'm using the old script from user cobra, made some changes in the makred (+) lines at the end of the script, works for me
# use aoss only if it's installed aoss > /dev/null 2>&1 if [ $? -eq 1 ]; then + aoss java --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 -XX:+AggressiveHeap -Dsun.java2d.opengl=$useopengl + -jar $jarfile $@ >~/.josm/josm.log 2>&1 & #aoss java -jar -Xmx$mem -Dsun.java2d.opengl=$useopengl $jarfile $@ >~/.josm/josm.log 2>&1 & else + java --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 -Xmx$mem -Dsun.java2d.opengl=$useopengl + -jar $jarfile $@ >~/.josm/josm.log 2>&1 & #java -jar -Xmx$mem -Dsun.java2d.opengl=$useopengl $jarfile $@ >~/.josm/josm.log 2>&1 & fi
comment:8 by , 21 months ago
| Owner: | changed from to |
|---|---|
| Status: | needinfo → new |
comment:9 by , 21 months ago
Replying to GerdP:
See #21059 and the long list of duplicates. I am not sure but my understanding is that the error is triggered when you have unexpected data in the clipboard, e.g. a screenshot.
Yes, plus some plugin as Donvip mentioned in 21059#comment:10.
comment:10 by , 21 months ago
| Resolution: | → worksforme |
|---|---|
| Status: | new → closed |



These arguments need to be added to the JOSM start script. As this depends on the OS and the way JOSM is started we need more info to tell you where to add them.
Thanks for your report, however your ticket is incomplete and therefore not helpful in its current form.
Please add all needed information according to this list:
To ensure that all technical relevant information is contained, create new tickets by clicking in JOSMs Main Menu on Help →
Report Bug.
Remember: This is a generic notice so we don't need to write the same stuff again and again. It may only apply in parts to the specific case!