Modify

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#5187 closed defect (duplicate)

Error when loading WMS from file

Reported by: xxlbiker Owned by: team
Priority: normal Component: Core imagery
Version: tested Keywords: WMS load from File
Cc: alan.mintz@…

Description

Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2010-06-11 01:31:34
Last Changed Author: stoecker
Revision: 3329
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2010-06-10 09:53:42 +0200 (Thu, 10 Jun 2010)
Last Changed Rev: 3329

Identification: JOSM/1.5 (3329 de)
Memory Usage: 494 MB / 494 MB (119 MB allocated, but free)
Java version: 1.6.0_18, Sun Microsystems Inc., Java HotSpot(TM) Client VM
Operating system: Windows Vista
Dataset consistency test: No problems found

Plugin: openstreetbugs (21706)
Plugin: remotecontrol (21706)
Plugin: validator (22004)
Plugin: wmsplugin (22008)

java.lang.NullPointerException

at wmsplugin.GeorefImage.paint(GeorefImage.java:63)
at wmsplugin.WMSLayer.paint(WMSLayer.java:196)
at org.openstreetmap.josm.gui.MapView.paint(MapView.java:516)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JSplitPane.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintToOffscreen(Unknown Source)
at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown Source)
at javax.swing.RepaintManager$PaintManager.paint(Unknown Source)
at javax.swing.RepaintManager.paint(Unknown Source)
at javax.swing.JComponent._paintImmediately(Unknown Source)
at javax.swing.JComponent.paintImmediately(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(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 (5)

comment:1 Changed 3 years ago by anonymous

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

comment:2 Changed 3 years ago by xxlbiker

  • Keywords load from added

Additional Info:
Happens w/ Yahoo Aerial as well as PCN Italy - haven't tried others yet.
first time you try to load the file, you simply get an error message "Failed loading..." but you can continue.
2nd lime Josm halts and suggest to remove the WMS plugin. When declining, JOSM hangs - i.e. stays in and endless loop of Error Message and suggestion to remove Plugin. Need to kill JOSM from system console/Task Manager.
happens on all PCs I have access to regardless of Vista or XP OS.
All the more, a nuisance since PCN Italia blocks IP numbers after (very low) download limit is exceeded. I just want to work on a small area in high detail but JOSM reloads WMS every time I pan the map. Set wms cache size and sticky time to very high numbers, still JOSM seems to disregard these settings.

comment:3 Changed 3 years ago by Am909

  • Cc alan.mintz@… added

Dirk recently wrote: "To get a caching over sessions, you need to use the bookmark function to bookmark a specific zoomlevel. Otherwise the cache will be invalidated each time you open a new WMS layer."

This seems to work. Zoom to the desired resolution. Create the WMS layer. Right-click on the WMS layer in the Layers dialog and choose Set WMS bookmark. You will then see a new line in the WMS menu with the original name of the source, followed by "#PPD=" and a long number. The next time you start JOSM, if you select that bookmark from the WMS menu, it will show you tiles from the cache (that have not expired). I just confirmed that this works with an area I worked on a couple days ago. The tiles along the road I was editing appear immediately (from cache) while others that I did not download last time take a while to fetch from the server.

I have cache.wmsplugin.expire set to 2419200 (28 days) and cache.wmsplugin.maxsize set to 5000 (5000 MB).

comment:4 Changed 3 years ago by bastiK

  • Resolution set to duplicate
  • Status changed from new to closed

comment:5 Changed 3 years ago by bastiK

Closed as duplicate of #4822.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed .
as The resolution will be set. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.