Modify

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#22953 closed defect (duplicate)

Unexpecter error trying to donwload data

Reported by: anonymous Owned by: team
Priority: normal Milestone:
Component: Core Version: tested
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

  1. run josm ( java -jar josm-tested.jar )
  2. try to open download data dialog (File -> Download data)

What is the expected result?

Open download data dialog, as it was until yesterday, with the same version of JOSM.
I already updated plugins manually (the preferences screeen and the uptdate plugins works ok)

What happens instead?

"An unexpected exception occured" dialog is shown.
"This is always a coding error. If you are running the latest version of JOSM, please consider being kind and file a bug report"

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

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2023-05-01 18:25:03 +0200 (Mon, 01 May 2023)
Revision:18721
Build-Date:2023-05-02 01:30:57
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (18721 es) Linux openSUSE Tumbleweed
Memory Usage: 534 MB / 3876 MB (340 MB allocated, but free)
Java version: 17.0.7+0-suse-1.1-x8664, N/A, OpenJDK 64-Bit Server VM
Look and Feel: javax.swing.plaf.metal.MetalLookAndFeel
Screen: :0.0 1920×1080 (scaling 1.00×1.00) :0.1 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: es_UY.UTF-8
System property file.encoding: UTF-8
System property sun.jnu.encoding: UTF-8
Locale info: es_UY
Numbers with default locale: 1234567890 -> 1234567890
Desktop environment: KDE
Java package: java-17-openjdk:x86_64-17.0.7.0
apache-commons-logging: apache-commons-logging:noarch-1.2

Plugins:
+ ImportImagePlugin (36013)
+ ImproveWay (32)
+ Lanes (${version.entry.commit.revision})
+ PicLayer (1.0.2)
+ apache-commons (36034)
+ conflation (0.6.11)
+ contourmerge (v0.1.9)
+ ejml (35924)
+ geotools (36068)
+ highwayNameModification (0.0.9)
+ intersection (0.0.7)
+ jackson (36034)
+ jaxb (35952)
+ jts (36004)
+ junctionchecking (36079)
+ opendata (36079)
+ reverter (36066)
+ tageditor (36079)
+ turnlanes (36079)
+ turnlanes-tagging (0.0.5)
+ turnrestrictions (36079)
+ undelete (36066)
+ utilsplugin2 (36079)
+ wikipedia (605)

Map paint styles:
- https://josm.openstreetmap.de/josmfile?page=Styles/Surface&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Surface-DataEntry&zip=1

Last errors/warnings:
- 00063.480 E: Handled by bug report queue: java.lang.IllegalAccessError: class com.sun.media.imageioimpl.plugins.pnm.PNMImageWriter (in unnamed module @0x2db2a05f) cannot access class sun.security.action.GetPropertyAction (in module java.base) because module java.base does not export sun.security.action to unnamed module @0x2db2a05f



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

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (21) of main
java.lang.IllegalAccessError: class com.sun.media.imageioimpl.plugins.pnm.PNMImageWriter (in unnamed module @0x2db2a05f) cannot access class sun.security.action.GetPropertyAction (in module java.base) because module java.base does not export sun.security.action to unnamed module @0x2db2a05f
	at com.sun.media.imageioimpl.plugins.pnm.PNMImageWriter.<clinit>(PNMImageWriter.java:111)
	at com.sun.media.imageioimpl.plugins.pnm.PNMImageWriterSpi.createWriterInstance(PNMImageWriterSpi.java:117)
	at java.desktop/javax.imageio.spi.ImageWriterSpi.createWriterInstance(ImageWriterSpi.java:351)
	at java.desktop/javax.imageio.ImageIO$ImageWriterIterator.next(ImageIO.java:851)
	at java.desktop/javax.imageio.ImageIO$ImageWriterIterator.next(ImageIO.java:835)
	at java.desktop/sun.awt.X11.XDataTransferer.getPlatformMappingsForFlavor(XDataTransferer.java:412)
	at java.desktop/sun.awt.datatransfer.DesktopDatatransferServiceImpl.getPlatformMappingsForFlavor(DesktopDatatransferServiceImpl.java:87)
	at java.datatransfer/java.awt.datatransfer.SystemFlavorMap.flavorToNativeLookup(SystemFlavorMap.java:447)
	at java.datatransfer/java.awt.datatransfer.SystemFlavorMap.getNativesForFlavor(SystemFlavorMap.java:561)
	at java.desktop/sun.awt.datatransfer.DataTransferer.getFlavorsForFormats(DataTransferer.java:458)
	at java.desktop/sun.awt.datatransfer.ClipboardTransferable.<init>(ClipboardTransferable.java:88)
	at java.desktop/sun.awt.X11.XClipboard.getContents(XClipboard.java:108)
	at org.openstreetmap.josm.gui.datatransfer.ClipboardUtils.getClipboardContent(ClipboardUtils.java:107)
	at org.openstreetmap.josm.gui.datatransfer.ClipboardUtils.getClipboardContent(ClipboardUtils.java:95)
	at org.openstreetmap.josm.gui.datatransfer.ClipboardUtils.getClipboardStringContent(ClipboardUtils.java:80)
	at org.openstreetmap.josm.gui.widgets.AbstractIdTextField.tryToPasteFromClipboard(AbstractIdTextField.java:75)
	at org.openstreetmap.josm.gui.dialogs.changeset.SingleChangesetDownloadPanel.build(SingleChangesetDownloadPanel.java:64)
	at org.openstreetmap.josm.gui.dialogs.changeset.SingleChangesetDownloadPanel.<init>(SingleChangesetDownloadPanel.java:40)
	at org.openstreetmap.josm.gui.dialogs.changeset.ChangesetCacheManager.buildToolbarPanel(ChangesetCacheManager.java:143)
	at org.openstreetmap.josm.gui.dialogs.changeset.ChangesetCacheManager.build(ChangesetCacheManager.java:315)
	at org.openstreetmap.josm.gui.dialogs.changeset.ChangesetCacheManager.<init>(ChangesetCacheManager.java:333)
	at org.openstreetmap.josm.gui.dialogs.changeset.ChangesetCacheManager.getInstance(ChangesetCacheManager.java:93)
	at org.openstreetmap.josm.gui.download.BookmarkList.load(BookmarkList.java:289)
	at org.openstreetmap.josm.gui.download.BookmarkList.<init>(BookmarkList.java:245)
	at org.openstreetmap.josm.gui.download.BookmarkSelection.addGui(BookmarkSelection.java:117)
	at org.openstreetmap.josm.gui.download.DownloadDialog.buildMainPanel(DownloadDialog.java:162)
	at org.openstreetmap.josm.gui.download.DownloadDialog.<init>(DownloadDialog.java:263)
	at org.openstreetmap.josm.gui.download.DownloadDialog.<init>(DownloadDialog.java:251)
	at org.openstreetmap.josm.gui.download.DownloadDialog.getInstance(DownloadDialog.java:92)
	at org.openstreetmap.josm.actions.DownloadAction.actionPerformed(DownloadAction.java:40)
	at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1972)
	at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2313)
	at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
	at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
	at java.desktop/javax.swing.AbstractButton.doClick(AbstractButton.java:374)
	at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1028)
	at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1072)
	at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:297)
	at java.desktop/java.awt.Component.processMouseEvent(Component.java:6626)
	at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3389)
	at java.desktop/java.awt.Component.processEvent(Component.java:6391)
	at java.desktop/java.awt.Container.processEvent(Container.java:2266)
	at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5001)
	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4833)
	at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4948)
	at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4575)
	at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4516)
	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310)
	at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2780)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4833)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97)
	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:746)
	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:744)
	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:743)
	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 (7)

comment:1 by taylor.smock, 3 years ago

Resolution: duplicate
Status: newclosed

Closed as duplicate of #21059.
You are missing some start arguments. Please look at source:trunk/native/linux/tested/usr/bin/josm.

comment:2 by anonymous, 3 years ago

Thank you. Until today i was using java -jar josm-tested.jar for years.
The josm script you suggest didn't work (says javafx not found)
so i tried the RPM package from https://josm.openstreetmap.de/wiki/Download#Opensuse
and it worked ok.

The only issue is that packaged with version 18700 (not the last tested today 18721), so i read their josm script and it is just one line and adopted it to my josm-tested.jar

The command line that worked ok is:
java -Xms128M -Xmx4096M --add-modules java.scripting,java.sql --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 -jar josm-tested.jar "$@"

comment:3 by taylor.smock, 3 years ago

If you have openjfx installed, you need to set the JAVAFX_HOME env variable.
With that said, the javafx stuff is optional. It is only required for playing mp3 files and for some plugins (specifically Microsoft Streetside).

comment:4 by anonymous, 3 years ago

openjfx was not installed when the issue started.
i installed later when it said that some modules were missing.
with openjfx installed and JAVAFX_HOME set, it said that the module was duplicated (openjfx package puts them in /usr/lib64/java/openjfx/)
so i stopped trying this way, uninstalled openjfx and solved like i described in my previous comment.
thanks again.

I still haven't figured out what changed between the time when the simple command line worked ok the previous day (java -jar josm.tested.jar) and when it stop working. It was the same JOSM jar since May 7, the same java version and system (OS auto updates are disabled, and there were no manual updates in between)

comment:5 by taylor.smock, 3 years ago

The problem comes from plugins. We (JOSM core) have set some MANIFEST.MF entries that will work fine, but only for the jar file started by java -jar (this is per the specification for those manifest entries, nothing we can do to fix this).

If you didn't have any plugins, you wouldn't need to add the command line arguments. But I assume you want the plugins. What you can do, as a workaround, is copy some text prior to opening JOSM. The problem occurs when you have a picture in the clipboard.

For the JAVAFX_HOME issue, you can try doing something like this: JAVAFX_HOME="$(ls /usr/lib/jvm/default-runtime/lib/javafx*.jar | tr "\n" ":" | sed '"'"'s/.$//'"'"')"'. But you said that the JavaFX packages were installed to /usr/lib64/java/openjfx/, so I don't know why you would have had that particular error.

comment:6 by stoecker, 3 years ago

Or on openSUSE simply use the provided RPM package :-) See Download.

comment:7 by anonymous, 3 years ago

@taylor.smock,
Thanks for the explanation.
The workaround of clearing the clipboard also works.

@stoecker,
Sure, but it is easier for me to keep using the standalone jar, like I have been doing for the last 10 years. Just downloading and updating the jar when is announced. I think it's better to not add additional repos if it can be avoided.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
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.