Modify

Opened 3 years ago

Closed 3 years ago

#13115 closed defect (fixed)

josm wms get layers causes NullPointerException

Reported by: flohoff Owned by: team
Priority: normal Milestone: 16.06
Component: Core imagery Version:
Keywords: template_report Cc:

Description

Hi,
while trying to add a new WMS source i am getting a NullPointerException.

I was trying with the WMS URL Below and had problems. Works flawless in QGIS. Does
not work in older JOSM so i upgraded the josm. Now i get a NullPointerException.

What steps will reproduce the problem?

  1. Add new Imagery WMS URL https://geoportal.kreis-guetersloh.de/WMS/ALKIS_Basis_public/guest?
  2. Click on Get Layers
  3. NullPointerException

What is the expected result?

See the layer list

What happens instead?

NullPointerException

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: 2016-07-06 01:34:35 +0200 (Wed, 06 Jul 2016)
Build-Date:2016-07-06 01:33:35
Revision:10519
Relative:URL: ^/trunk

Identification: JOSM/1.5 (10519 en) Linux Debian GNU/Linux 8.5 (jessie)
Memory Usage: 496 MB / 1820 MB (383 MB allocated, but free)
Java version: 1.8.0_92-b14, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM

Plugins:
- Mapillary (32396)
- Tracer2 (32309)
- apache-commons (32309)
- apache-http (32309)
- buildings_tools (32309)
- continuosDownload (53)
- gson (32309)
- jogl (1.0.46)
- kendzi3d (1.0.190.1)
- kendzi3d-resources (0.0.1)
- log4j (32309)
- mapdust (32329)
- reverter (32309)
- terracer (32309)
- utilsplugin2 (32333)

Map paint styles:
- https://josm.openstreetmap.de/josmfile?page=Styles/Coloured_Streets&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Lane_and_Road_Attributes&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Lit&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Maxspeed&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Modified&zip=1

Last errors/warnings:
- W: Unable to delete file <josm.pref>/cache/tiles/WMS_INDEX.key
- W: Unable to delete file <josm.pref>/cache/tiles/WMS_INDEX.data
- W: Unable to delete file <josm.pref>/cache/tiles/WMS_INDEX_v2.key
- W: Unable to delete file <josm.pref>/cache/tiles/WMS_INDEX_v2.data
- W: Unable to delete file <josm.pref>/cache/tiles/WMTS_BLOCK.key
- W: Unable to delete file <josm.pref>/cache/tiles/WMTS_BLOCK.data
- W: Unable to delete file <josm.pref>/cache/tiles/WMTS_INDEX.key
- W: Unable to delete file <josm.pref>/cache/tiles/WMTS_INDEX.data
- W: Unable to delete file <josm.pref>/cache/tiles/WMTS_INDEX_v2.key
- W: Unable to delete file <josm.pref>/cache/tiles/WMTS_INDEX_v2.data

Attachments (0)

Change History (3)

comment:1 Changed 3 years ago by Don-vip

Stacktrace:

java.lang.NullPointerException
	at org.openstreetmap.josm.io.imagery.WMSImagery.getChildren(WMSImagery.java:329)
	at org.openstreetmap.josm.io.imagery.WMSImagery.attemptGetCapabilities(WMSImagery.java:168)
	at org.openstreetmap.josm.gui.preferences.imagery.AddWMSLayerPanel$1.actionPerformed(AddWMSLayerPanel.java:81)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
	at java.awt.Component.processMouseEvent(Component.java:6535)
...
	at org.openstreetmap.josm.gui.ExtendedDialog.setVisible(ExtendedDialog.java:502)
	at org.openstreetmap.josm.gui.ExtendedDialog.showDialog(ExtendedDialog.java:289)
	at org.openstreetmap.josm.gui.preferences.imagery.ImageryPreference$ImageryProvidersPanel$NewEntryAction.actionPerformed(ImageryPreference.java:522)
...
	at org.openstreetmap.josm.gui.preferences.PreferenceDialog.setVisible(PreferenceDialog.java:129)
	at org.openstreetmap.josm.actions.PreferencesAction.run(PreferencesAction.java:112)
	at org.openstreetmap.josm.actions.PreferencesAction.actionPerformed(PreferencesAction.java:101)
...
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

comment:2 Changed 3 years ago by Don-vip

Milestone: 16.06

comment:3 Changed 3 years ago by Don-vip

Resolution: fixed
Status: newclosed

In 10520/josm:

fix #13115 - fix NPE, improve WMS errors handling

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.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.