#17016 closed defect (fixed)

IllegalArgumentException when entering bad WMS URL

Reported by: anonymous Owned by: team
Priority: minor Milestone: 18.11
Component: Core imagery Version:
Keywords: Cc:


(When I booted up my computer this form was still open. I hope I'm not accidentally submitting this twice!)

What steps will reproduce the problem?

  1. Go to Imagery > Rectified Image
  2. Choose "Custom WMS Link"
  3. Enter a TMS Link: "{z}/{x}/{y}"

What is the expected result?

A nice error message (because I mixed up the two URLs)

What happens instead?

A crash

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

Thread: AWT-EventQueue-0 (16) of main
java.lang.IllegalArgumentException: {z} is not a valid WMS argument. Please check this server URL:{z}/{x}/{y}
	at org.openstreetmap.josm.gui.layer.WMSLayer.<init>(
	at org.openstreetmap.josm.gui.layer.ImageryLayer.create(
	at org.openstreetmap.josm.actions.MapRectifierWMSmenuAction.addWMSLayer(
	at org.openstreetmap.josm.actions.MapRectifierWMSmenuAction.actionPerformed(
	at javax.swing.AbstractButton.fireActionPerformed(
	at javax.swing.AbstractButton$Handler.actionPerformed(
	at javax.swing.DefaultButtonModel.fireActionPerformed(
	at javax.swing.DefaultButtonModel.setPressed(
	at javax.swing.AbstractButton.doClick(
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(
	at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(
	at java.awt.AWTEventMulticaster.mouseReleased(
	at java.awt.Component.processMouseEvent(
	at javax.swing.JComponent.processMouseEvent(
	at java.awt.Component.processEvent(
	at java.awt.Container.processEvent(
	at java.awt.Component.dispatchEventImpl(
	at java.awt.Container.dispatchEventImpl(
	at java.awt.Component.dispatchEvent(
	at java.awt.LightweightDispatcher.retargetMouseEvent(
	at java.awt.LightweightDispatcher.processMouseEvent(
	at java.awt.LightweightDispatcher.dispatchEvent(
	at java.awt.Container.dispatchEventImpl(
	at java.awt.Window.dispatchEventImpl(
	at java.awt.Component.dispatchEvent(
	at java.awt.EventQueue.dispatchEventImpl(
	at java.awt.EventQueue.access$500(
	at java.awt.EventQueue$
	at java.awt.EventQueue$
	at Method)
	at java.awt.EventQueue$
	at java.awt.EventQueue$
	at Method)
	at java.awt.EventQueue.dispatchEvent(
	at java.awt.EventDispatchThread.pumpOneEventForFilters(
	at java.awt.EventDispatchThread.pumpEventsForFilter(
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(
	at java.awt.EventDispatchThread.pumpEvents(
	at java.awt.EventDispatchThread.pumpEvents(

Attachments (0)

Change History (4)

comment:1 Changed 21 months ago by Don-vip

Summary: Crash when entering bad WMS URLIllegalArgumentException when entering bad WMS URL

comment:2 Changed 21 months ago by Don-vip

Ticket #16063 has been marked as a duplicate of this ticket.

comment:3 Changed 21 months ago by Don-vip

Component: CoreCore imagery
Milestone: 18.11

comment:4 Changed 21 months ago by Don-vip

Resolution: fixed
Status: newclosed

In 14442/josm:

fix #17016 - catch error when entering bad WMS URL

Modify Ticket

Change Properties
Set your email in Preferences
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.