Modify

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#8478 closed defect (duplicate)

Adding WMS manually produces exception

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

Description

What steps will reproduce the problem?

  1. Open the new WMS dialog
  2. Enter the URL directly in step 3, e.g. http://gistmaps.itos.uga.edu/ArcGIS/services/HOT/af12oct12/ImageServer/WMSServer?FORMAT=image/jpeg&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&LAYERS=0&STYLES=&SRS={proj}&WIDTH={width}&HEIGHT={height}&BBOX={bbox}
  3. Enter a title in step 4, e.g. "Kunduz, Afghanistan - DigitalGlobe imagery"
  4. Click OK

What is the expected result?

WMS layer is configured

What happens instead?

NullPointerException

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

Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2013-02-06 02:31:34
Last Changed Author: Don-vip
Revision: 5697
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2013-02-06 01:35:48 +0100 (Wed, 06 Feb 2013)
Last Changed Rev: 5697

Identification: JOSM/1.5 (5697 en_GB)
Memory Usage: 81 MB / 4069 MB (30 MB allocated, but free)
Java version: 1.6.0_41, Apple Inc., Java HotSpot(TM) 64-Bit Server VM
Operating system: Mac OS X

Plugin: AddrInterpolation (29210)
Plugin: CommandLine (29210)
Plugin: DirectDownload (29222)
Plugin: DirectUpload (29210)
Plugin: FixAddresses (29210)
Plugin: OpeningHoursEditor (29210)
Plugin: PicLayer (29210)
Plugin: RoadSigns (29230)
Plugin: buildings_tools (29210)
Plugin: cadastre-fr (29210)
Plugin: conflation (0.1.6)
Plugin: contourmerge (1003)
Plugin: dataimport (29222)
Plugin: download_along (29210)
Plugin: geotools (29116)
Plugin: importvec (29210)
Plugin: jts (28945)
Plugin: livegps (29222)
Plugin: mapdust (29210)
Plugin: merge-overlap (29210)
Plugin: namemanager (29210)
Plugin: opendata (29210)
Plugin: openstreetbugs (29210)
Plugin: pdfimport (29210)
Plugin: public_transport (29222)
Plugin: restart (29210)
Plugin: reverter (29216)
Plugin: surveyor (29210)
Plugin: tageditor (29210)
Plugin: terracer (29210)
Plugin: todo (29155)
Plugin: turnlanes (29210)
Plugin: turnrestrictions (29210)
Plugin: utilsplugin2 (29241)
Plugin: wayselector (29210)

java.lang.NullPointerException
	at org.openstreetmap.josm.io.imagery.WMSImagery.buildRootUrl(WMSImagery.java:62)
	at org.openstreetmap.josm.io.imagery.WMSImagery.buildGetMapUrl(WMSImagery.java:81)
	at org.openstreetmap.josm.io.imagery.WMSImagery.toImageryInfo(WMSImagery.java:171)
	at org.openstreetmap.josm.gui.preferences.imagery.AddWMSLayerPanel.getImageryInfo(AddWMSLayerPanel.java:125)
	at org.openstreetmap.josm.gui.preferences.imagery.ImageryPreference$ImageryProvidersPanel$NewEntryAction.actionPerformed(ImageryPreference.java:446)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
	at java.awt.Component.processMouseEvent(Component.java:6382)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3275)
	at java.awt.Component.processEvent(Component.java:6147)
	at java.awt.Container.processEvent(Container.java:2083)
	at java.awt.Component.dispatchEventImpl(Component.java:4744)
	at java.awt.Container.dispatchEventImpl(Container.java:2141)
	at java.awt.Component.dispatchEvent(Component.java:4572)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4619)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4280)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4210)
	at java.awt.Container.dispatchEventImpl(Container.java:2127)
	at java.awt.Window.dispatchEventImpl(Window.java:2489)
	at java.awt.Component.dispatchEvent(Component.java:4572)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:710)
	at java.awt.EventQueue.access$400(EventQueue.java:82)
	at java.awt.EventQueue$2.run(EventQueue.java:669)
	at java.awt.EventQueue$2.run(EventQueue.java:667)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
	at java.awt.EventQueue$3.run(EventQueue.java:683)
	at java.awt.EventQueue$3.run(EventQueue.java:681)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:680)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:205)
	at java.awt.Dialog$1.run(Dialog.java:1049)
	at java.awt.Dialog$3.run(Dialog.java:1101)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.awt.Dialog.show(Dialog.java:1099)
	at java.awt.Component.show(Component.java:1591)
	at java.awt.Component.setVisible(Component.java:1543)
	at java.awt.Window.setVisible(Window.java:843)
	at java.awt.Dialog.setVisible(Dialog.java:984)
	at org.openstreetmap.josm.gui.preferences.PreferenceDialog.setVisible(PreferenceDialog.java:126)
	at org.openstreetmap.josm.actions.PreferencesAction.run(PreferencesAction.java:38)
	at org.openstreetmap.josm.actions.PreferencesAction.actionPerformed(PreferencesAction.java:34)
	at org.openstreetmap.josm.tools.PlatformHookOsx.invoke(PlatformHookOsx.java:56)
	at com.sun.proxy.$Proxy0.handlePreferences(Unknown Source)
	at com.apple.eawt._AppEventLegacyHandler$2.dispatchEvent(_AppEventLegacyHandler.java:90)
	at com.apple.eawt._AppEventLegacyHandler.sendEventToEachListenerUntilHandled(_AppEventLegacyHandler.java:168)
	at com.apple.eawt._AppEventLegacyHandler.handlePreferences(_AppEventLegacyHandler.java:88)
	at com.apple.eawt._AppEventHandler$_PreferencesDispatcher.performUsing(_AppEventHandler.java:253)
	at com.apple.eawt._AppEventHandler$_PreferencesDispatcher.performUsing(_AppEventHandler.java:244)
	at com.apple.eawt._AppEventHandler$_AppEventDispatcher$1.run(_AppEventHandler.java:489)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:708)
	at java.awt.EventQueue.access$400(EventQueue.java:82)
	at java.awt.EventQueue$2.run(EventQueue.java:669)
...<snip>.

Attachments (0)

Change History (4)

comment:1 by skyper, 12 years ago

Component: CoreCore imagery
Version: tested

comment:2 by Don-vip, 12 years ago

Can you try with latest ? Fixed some bugs in r5731.

comment:3 by Stereo, 12 years ago

Resolution: fixed
Status: newclosed

Indeed, I cannot reproduce the problem with latest. Thank you!

comment:4 by Don-vip, 12 years ago

Resolution: fixedduplicate

Closed as duplicate of #8444.

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.