#14800 closed defect (fixed)
when Plugin imagery_offset_db is active, loading BG from DigitalGlobe Standard leads to unexpected exception
Reported by: | HLunke | Owned by: | Zverikk |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Plugin imagery_offset_db | Version: | tested |
Keywords: | plugin imagery_offset_db | Cc: |
Description
What steps will reproduce the problem?
- Start josm with plugin imagery_offset_db enabled or enable plugin before loading background
- get tile from HOT tasking Manager (via JOSM remote)
- get Background from DigitalGlobe Standard Imagery
What is the expected result?
Show Background imagery
What happens instead?
unexpected exception window Pops up, see info below
Please provide any additional information below. Attach a screenshot if possible.
URL:http://josm.openstreetmap.de/svn/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2017-05-02 23:28:33 +0200 (Tue, 02 May 2017) Build-Date:2017-05-02 21:34:40 Revision:12039 Relative:URL: ^/trunk Identification: JOSM/1.5 (12039 de) Windows 7 64-Bit Memory Usage: 306 MB / 989 MB (161 MB allocated, but free) Java version: 1.8.0_121-b13, Oracle Corporation, Java HotSpot(TM) Client VM Screen: \Display0 1920x1200, \Display1 1920x1200 Maximum Screen Size: 1920x1200 Dataset consistency test: No problems found Plugins: + imagery_offset_db (33309) Map paint styles: - https://josm.openstreetmap.de/josmfile?page=Styles/Fixme&zip=1 + https://github.com/hotosm/HDM-JOSM-style/archive/master.zip Last errors/warnings: - W: java.io.IOException: Attribution is not loaded yet - W: java.io.IOException: Attribution is not loaded yet - W: java.io.IOException: Attribution is not loaded yet - W: java.io.IOException: Attribution is not loaded yet - W: java.io.IOException: Attribution is not loaded yet - W: java.io.IOException: Attribution is not loaded yet - W: java.io.IOException: Attribution is not loaded yet - W: java.io.IOException: Attribution is not loaded yet - E: Handled by bug report queue: java.lang.NoSuchMethodError: org.openstreetmap.josm.gui.layer.imagery.TileSourceDisplaySettings.setOffsetBookmark(Lorg/openstreetmap/josm/data/imagery/OffsetBookmark;)V - W: Cannot paint layer, it is not registered: TMSLayer [info=ImageryInfo{name='DigitalGlobe Standard Imagery', countryCode='', url='http://{switch:a,b,c}.tiles.mapbox.com/v4/digitalglobe.0a8e44ba/{zoom}/{x}/{y}.png?access_token=pk.eyJ1IjoiZGlnaXRhbGdsb2JlIiwiYSI6ImNqMmFxcGJ2MjAwOHEzMm9nZmF2c3luZWkifQ.HsF19zOlj8PeOxo5BhNqyQ', imageryType=TMS}] === REPORTED CRASH DATA === BugReportExceptionHandler#handleException: No data collected. Warning issued by: BugReportExceptionHandler#handleException === STACK TRACE === Thread: AWT-EventQueue-0 (18) of main java.lang.NoSuchMethodError: org.openstreetmap.josm.gui.layer.imagery.TileSourceDisplaySettings.setOffsetBookmark(Lorg/openstreetmap/josm/data/imagery/OffsetBookmark;)V at iodb.ImageryOffsetWatcher.loadLayerOffset(ImageryOffsetWatcher.java:264) at iodb.ImageryOffsetWatcher.layerAdded(ImageryOffsetWatcher.java:206) at org.openstreetmap.josm.gui.layer.LayerManager.fireLayerAdded(LayerManager.java:458) at org.openstreetmap.josm.gui.layer.LayerManager.realAddLayer(LayerManager.java:233) at org.openstreetmap.josm.gui.layer.MainLayerManager.realAddLayer(MainLayerManager.java:251) at org.openstreetmap.josm.gui.layer.LayerManager.lambda$addLayer$0(LayerManager.java:217) at org.openstreetmap.josm.gui.util.GuiHelper.runInEDTAndWaitWithException(GuiHelper.java:138) at org.openstreetmap.josm.gui.layer.LayerManager.addLayer(LayerManager.java:217) at org.openstreetmap.josm.gui.layer.LayerManager.addLayer(LayerManager.java:206) at org.openstreetmap.josm.actions.AddImageryLayerAction.actionPerformed(AddImageryLayerAction.java:140) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.AbstractButton.doClick(Unknown Source) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source) at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$500(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)
Attachments (0)
Change History (12)
comment:1 by , 8 years ago
comment:4 by , 8 years ago
Priority: | normal → major |
---|
follow-up: 11 comment:5 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed. Alas, there is no simple way to update the plugin to get rid of the error: it will only work with the latest JOSM version. You can try downloading the older version of the plugin and putting it into you plugins directory.
To JOSM developers, PLEASE do not change API this much inside one version. You have marked relevant methods deprecated, and that is okay. You introduced replacements and disabled these after the last stable version, which made making a plugin that supports both impossible. That is absolutely not good.
comment:6 by , 8 years ago
Tell me the version requesting wrong JOSM core and I'll drop the old revision from our list.
comment:7 by , 8 years ago
I have partially solved the issue: checked out the older version, so it would rewrite the one with a bug, and then returned the new one. I hope that would fix the incompatibility.
To anyone experiencing the exception in the ticket, please try removing imagery_offset_db plugin and installing it again. I am sorry for this mess.
comment:8 by , 8 years ago
Can't you simply tell me the wrong entry, so that I can fix the references to old version? That would be much easier that any strange workarounds. JOSM handles old versions correctly as long as the authors keep increasing the main version when necessary. When the fail to do so the wrong revision must be manually removed from the lists.
comment:10 by , 8 years ago
Now that you did the checkins it is too late, but I removed 33310 from the plugin list.
comment:11 by , 8 years ago
Replying to Zverikk:
To JOSM developers, PLEASE do not change API this much inside one version. You have marked relevant methods deprecated, and that is okay. You introduced replacements and disabled these after the last stable version, which made making a plugin that supports both impossible. That is absolutely not good.
There is no need to have a plugin version that supports both. The system is designed, so users will get the appropriate version of the plugin based on the JOSM version.
The goal it to have functional plugins for all "tested" JOSM versions. For users of the nightly development version, plugins may be broken for a couple of days. It was never JOSM policy to have a stable plugin API and gentle migration. (Although we are generally more careful, when a change will affect many plugins.)
I would have fixed imagery_offset_db myself, but was glad you stepped in.
comment:12 by , 8 years ago
checked with actual testet and actual plugin Version. It is working again.
Thank you very much
I have a simimlar problem loading bing-images as background: