#16622 closed defect (fixed)
Plugins are no longer correctly updated
Reported by: | lmason_aph | Owned by: | Zverikk |
---|---|---|---|
Priority: | critical | Milestone: | 18.08 |
Component: | Core | Version: | |
Keywords: | template_report plugin update regression | Cc: |
Description
This is to augment a ticket I put in earlier about 'opendata' plugin not functioning.
This time a log came up.
Thank you.
What steps will reproduce the problem?
- Trying to download Bing imagery
What is the expected result?
What happens instead?
Please provide any additional information below. Attach a screenshot if possible.
URL:https://josm.openstreetmap.de/svn/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2018-07-29 00:41:59 +0200 (Sun, 29 Jul 2018) Build-Date:2018-07-29 01:32:17 Revision:14066 Relative:URL: ^/trunk Identification: JOSM/1.5 (14066 en) Windows 10 64-Bit OS Build number: Windows 10 Enterprise 1803 (17134) Memory Usage: 247 MB / 247 MB (50 MB allocated, but free) Java version: 1.8.0_181-b13, Oracle Corporation, Java HotSpot(TM) Client VM Screen: \Display0 1920x1080, \Display1 1920x1080, \Display2 1920x1080 Maximum Screen Size: 1920x1080 VM arguments: [-Djava.security.manager, -Djava.security.policy=file:<java.home>\lib\security\javaws.policy, -DtrustProxy=true, -Djnlpx.home=<java.home>\bin, -Djnlpx.origFilenameArg=%UserProfile%\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\TempState\Downloads\josm (3).jnlp, -Djnlpx.remove=true, -Djava.util.Arrays.useLegacyMergeSort=true, -Djnlpx.splashport=51440, -Djnlpx.jvm=<java.home>\bin\javaw.exe] Dataset consistency test: No problems found Plugins: + ColorPlugin (1511895663) + PicLayer (34389) + apache-commons (34389) + buildings_tools (34212) + colorscheme (34206) + ejml (34389) + geotools (34125) + imagery_offset_db (33547) + importvec (34206) + indoorhelper (34389) + jts (34206) + opendata + photoadjust (34389) + plastic_laf (34206) + public_transport (34265) + utilsplugin2 (33704) Map paint styles: + https://github.com/gmgeo/osmic-josm-style/archive/master.zip + https://josm.openstreetmap.de/josmfile?page=Styles/ColourTag&zip=1 + <josm.pref>\styles\sit.mapcss Validator rules: + <josm.pref>\validator\indoorhelper.validator.mapcss Last errors/warnings: - W: No configuration settings found. Using hardcoded default values for all pools. - E: org.openstreetmap.josm.plugins.PluginException: An error occurred in plugin opendata. Cause: java.lang.NoClassDefFoundError: org/openstreetmap/josm/io/FileImporter. Cause: java.lang.ClassNotFoundException: org.openstreetmap.josm.io.FileImporter - W: Disable plugin - Could not load plugin 'opendata'. Delete from preferences? - E: org.openstreetmap.josm.plugins.PluginException: An error occurred in plugin opendata. Cause: java.lang.NoClassDefFoundError: org/openstreetmap/josm/io/FileImporter. Cause: java.lang.ClassNotFoundException: org.openstreetmap.josm.io.FileImporter - W: Disable plugin - Could not load plugin 'opendata'. Delete from preferences? - E: Handled by bug report queue: java.lang.NoSuchMethodError: org.openstreetmap.josm.data.Preferences.getCollection(Ljava/lang/String;)Ljava/util/Collection; - W: Cannot paint layer, it is not registered: TMSLayer [info=ImageryInfo{name='Bing aerial imagery', countryCode='', url='https://www.bing.com/maps/', imageryType=BING}] - W: Warning - <html>JOSM could not find information about the following plugins:<ul><li>indoorhelper</li><li>imagery_offset_db</li><li>apache-commons</li><li>photoadjust</li><li>geotools</li><li>opendata</li><li>jts</li><li>ejml</li><li>public_transport</li><li>plastic_laf</li><li>ColorPlugin</li><li>utilsplugin2</li><li>buildings_tools</li><li>colorscheme</li><li>importvec</li><li>PicLayer</li></ul>The plugins are not going to be loaded.</html> === REPORTED CRASH DATA === BugReportExceptionHandler#handleException: No data collected. Warning issued by: BugReportExceptionHandler#handleException === STACK TRACE === Thread: AWT-EventQueue-2 (53) of javawsApplicationThreadGroup java.lang.NoSuchMethodError: org.openstreetmap.josm.data.Preferences.getCollection(Ljava/lang/String;)Ljava/util/Collection; at iodb.ImageryOffsetWatcher.loadLayerOffset(ImageryOffsetWatcher.java:248) at iodb.ImageryOffsetWatcher.layerAdded(ImageryOffsetWatcher.java:207) 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:280) at org.openstreetmap.josm.gui.layer.LayerManager.lambda$addLayer$0(LayerManager.java:217) at org.openstreetmap.josm.gui.util.GuiHelper.runInEDTAndWaitWithException(GuiHelper.java:238) 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:149) 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 (2)
Change History (28)
by , 7 years ago
Attachment: | JOSM Plugin Issue.jpg added |
---|
by , 7 years ago
Attachment: | Untitled.png added |
---|
comment:1 by , 7 years ago
Component: | Core → Plugin imagery_offset_db |
---|---|
Owner: | changed from | to
comment:2 by , 7 years ago
Summary: | Total plugin failure? PTII of previous 'opendata' failure ticket. → NoSuchMethodError: org.openstreetmap.josm.data.Preferences.getCollection |
---|
comment:3 by , 7 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
You're using version 33547
of imagery_offset_db instead of correct version 34370
. Please update your plugins.
comment:9 by , 7 years ago
Resolution: | invalid |
---|---|
Status: | closed → reopened |
comment:14 by , 7 years ago
Priority: | normal → critical |
---|
I don't understand what's happening with this plugin update.
comment:17 by , 7 years ago
Regression of r13993. When you incorporated the two if clauses into one you forgot that mainversion changes its value. Thus always the first entry with a lower mainversion is used, but choosing a higher version in later lines was prevented.
comment:18 by , 7 years ago
All the reporters:
(Temporary) solutions for you in order of recommendation
- upgrade to JOSM to version >= 14160 (released in 6 hours)
- deinstall imagery_offset_db plugin
- manually copy the right plugin version and don't automatically update
- downgrade to JOSM version below 13993 and call plugin update
comment:19 by , 7 years ago
Component: | Plugin imagery_offset_db → Core |
---|---|
Keywords: | plugin update regression added |
Milestone: | → 18.08 |
Summary: | NoSuchMethodError: org.openstreetmap.josm.data.Preferences.getCollection → Plugins are no longer correctly updated |
comment:20 by , 7 years ago
Thanks! I'll release 18.08 tomorrow then, we can't get spammed by bug reports like this for a whole week.
comment:25 by , 6 years ago
BTW, I complied a recent version of JOSM and the opendata plugin and I got this error. Error messages and backtraces were not helpful. It's only by sheer luck I resolved the issue by removing opendata.jar, starting up JOSM, quiting, and re-installing the plugin, that I got JOSM to work.
For the record, the plugin worked like 2 days ago, then stopped working.
comment:26 by , 6 years ago
I'm guessing it's related to detecting newer versions of core/plugins on the internet, because a URLClassLoader is involved and nothing changed on my system. (shrug)
Screenshot of pop-up