Modify

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#4281 closed defect (duplicate)

image == null when using WMSplugin

Reported by: dpaleino Owned by: team
Priority: major Component: Core imagery
Version: latest Keywords: proxy
Cc:

Description

Hello,
I'm having a problem with one of the WMS sources I added -- and which was recently added to WMSplugin, i.e. "Sicily - Italy". While trying to understand what is happening, I tried, and it also happens with the Yahoo! imagery. Loading one of these WMS causes no tiles appearing in JOSM, and "image == null!" appearing in console.

Could this be related to network latency?
I tried with other WMS sources (i.e. Lodi - Italy), and they load just fine. Also, the failing WMS's work on other mappers' computer/networks.

If this is caused by network latency, could you please print a more explanatory message? And eventually increase the timeout :)

Thank you!
David

Attachments (1)

josm-wms-sicily.log (15.0 KB) - added by dpaleino 3 years ago.

Download all attachments as: .zip

Change History (16)

Changed 3 years ago by dpaleino

comment:1 Changed 3 years ago by dpaleino

  • Owner changed from team to dpaleino
  • Status changed from new to needinfo

I just tried connecting to my router via ethernet rather than wifi, to try reducing latencies, but this still happends.

I just attached the log of this session; this time I could see an Exception, which might be a good point to start investigating the bug.

Thank you!
David

comment:2 Changed 3 years ago by dpaleino

  • Owner changed from dpaleino to team
  • Status changed from needinfo to new

Ehm, oops.

comment:3 Changed 3 years ago by dpaleino

$ grep -inR ^wmsplugin ~/.josm/preferences
50:wmsplugin.default.html:http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?=true
51:wmsplugin.default.http://onearth.jpl.nasa.gov/wms.cgi?request_GetMap&layers_global_mosaic&styles_&format_image/jpeg&=true
52:wmsplugin.timeout.connect=1000
53:wmsplugin.timeout.read=1000
54:wmsplugin.url.0.name=Landsat
55:wmsplugin.url.0.url=http://onearth.jpl.nasa.gov/wms.cgi?request=GetMap&layers=global_mosaic&styles=&format=image/jpeg&
56:wmsplugin.url.1.name=Lodi - Italy
57:wmsplugin.url.1.url=http://sit.provincia.lodi.it/mapserver/mapserv.exe?map=ortofoto_wgs84.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&LAYERS=Terraitaly%20Ortofoto%202007&STYLES=%2C%2C&FORMAT=image/png&TRANSPARENT=TRUE&
58:wmsplugin.url.2.name=Sicily - Italy
59:wmsplugin.url.2.url=http://88.53.214.52/arcgis/services/OrtofotoATA_20072008_f33/MapServer/WMSServer?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&CRS=CRS:84&LAYERS=0&STYLES=default&FORMAT=image/jpeg&
60:wmsplugin.url.3.name=Yahoo Satellite
61:wmsplugin.url.3.url=html:http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?
62:wmsplugin.url.overlap=false
63:wmsplugin.url.overlapEast=14
64:wmsplugin.url.overlapNorth=4

Even adding high timeout values, doesn't work. I suspect the culprit is the first Exception raised -- the messages "image == null!" appear immediately, without waiting for any timeout to happen.

comment:4 Changed 3 years ago by dpaleino

  • Priority changed from normal to critical

Reading the Java API, I saw that it's possible to directly pass an URL to Image.IO.read(). I tried this too, but it still fails.

Any info on how I should debug this? I'm willing to provide more information, just I don't know how to do it.

Next thing I'm trying to do is reading the Java source, to see where Image.IO.read() could fail. However, for the tests with wmsplugin, I needed to recompile it each time. Please don't let me recompile Java N times. :)

Setting priority to critical: the wmsplugin is not at all usable with this bug.

David

comment:5 Changed 3 years ago by dpaleino

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

And, it turns out that it works with Sun's Java. I'm using OpenJDK, and installing Sun's indeed works.

However, it worked before with OpenJDK as well, so I'm going to report this to them with a minimal testcase.

Thanks for the.. "attention" *grin*
David

comment:6 Changed 3 years ago by anonymous

same here on debian testing:

/usr/lib/jvm/java-6-openjdk/jre/bin/java
fails with WMS and Yahoo and runs a lot slower!

/usr/lib/jvm/java-6-sun/jre/bin/java
works fine.

comment:7 Changed 3 years ago by anonymous

  • Resolution invalid deleted
  • Status changed from closed to reopened

still have this problem even when I use java from Sun

comment:8 Changed 3 years ago by WillyTM

I never got WMSplugin work, whether under Linux nor under Windows; using proxy or not
example URL: http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?bbox=12.4135785,51.3545402,12.4446903,51.3739653&srs=EPSG:4326&width=500&height=500
If enter this URL in Firefox, it works fine; in JOSM the console says "im == null!"

this is the status overview

Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2010-01-25 02:32:20
Last Changed Author: bastiK
Revision: 2890
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2010-01-24 17:55:56 +0100 (Sun, 24 Jan 2010)
Last Changed Rev: 2890

Memory Usage: 35 MB / 254 MB (12 MB allocated, but free)
Java version: 1.6.0_06

Dataset consistency test:
No problems found


Plugins: PicLayer,buildings_tools,measurement,multipoly,openstreetbugs,osmarender,remotecontrol,terracer,validator,walkingpapers,wmsplugin
Plugin walkingpapers Version: 19074
Plugin openstreetbugs Version: 19366
Plugin wmsplugin Version: 19306
Plugin PicLayer Version: 19062
Plugin remotecontrol Version: 19298
Plugin buildings_tools Version: 28
Plugin validator Version: 19335
Plugin osmarender Version: 19296
Plugin terracer Version: 19234
Plugin multipoly Version: 19138
Plugin measurement Version: 19058

cache.motd.html=1264445918
cache.motd.html.lang=De:
cache.motd.html.version=2890
cache.wmsplugin.expire=2419200
cache.wmsplugin.maxsize=70
coordinates=DECIMAL_DEGREES
download.places.history=sellerhausen
sellehausen
gui.geometry=1280x985+0+0
gui.maximized=true
josm.version=2890
lastDirectory=/home/benjamin/osm
marker.audiofromstart=false
marker.buttonlabels=false
message.pluginmanger.version=false
message.pluginmanger.version.value=1
mirror.http://josm.openstreetmap.de/presets=1263139498686;/home/benjamin/.josm/mirror_http___josm.openstreetmap.de_presets
mirror.http://josm.openstreetmap.de/styles=1263139490379;/home/benjamin/.josm/mirror_http___josm.openstreetmap.de_styles
mirror.http://svn.openstreetmap.org/applications/editors/josm/plugins/validator/ignoretags.cfg=1264445922125;/home/benjamin/.josm/plugins/validator/mirror_http___svn.openstreetmap.org_applications_editors_josm_plugins_validator_ignoretags.cfg
mirror.http://svn.openstreetmap.org/applications/editors/josm/plugins/validator/tagchecker.cfg=1264445922311;/home/benjamin/.josm/plugins/validator/mirror_http___svn.openstreetmap.org_applications_editors_josm_plugins_validator_tagchecker.cfg
mirror.http://svn.openstreetmap.org/applications/editors/josm/plugins/wmsplugin/sources.cfg=1264445921301;/home/benjamin/.josm/plugins/wmsplugin/mirror_http___svn.openstreetmap.org_applications_editors_josm_plugins_wmsplugin_sources.cfg
mirror.http://svn.openstreetmap.org/applications/utils/planet.osm/java/speller/words.cfg=1264445921873;/home/benjamin/.josm/plugins/validator/mirror_http___svn.openstreetmap.org_applications_utils_planet.osm_java_speller_words.cfg
org.openstreetmap.josm.gui.download.DownloadDialog.geometry=x=261,y=252,width=1000,height=600
org.openstreetmap.josm.gui.io.UploadDialog.geometry=x=440,y=188,width=567,height=600
org.openstreetmap.josm.gui.oauth.OAuthAuthorisationWizard.geometry=x=439,y=288,width=599,height=595
org.openstreetmap.josm.gui.preferences.PreferenceDialog.geometry=x=387,y=64,width=876,height=702
osb.api.disabled=false
osb.auto_download=true
osb.include_date=true
osb.uri.close=http://openstreetbugs.schokokeks.org/api/0.1/closePOIexec
osb.uri.download=http://openstreetbugs.schokokeks.org/api/0.1/getBugs
osb.uri.edit=http://openstreetbugs.schokokeks.org/api/0.1/editPOIexec
osb.uri.new=http://openstreetbugs.schokokeks.org/api/0.1/addPOIexec
osm-download.bounds=51.3232809;12.4078097;51.3632809;12.4478097
osm-server.auth-method=oauth
osm-server.upload-strategy=singlerequest
pluginmanager.dontshowagain.version=true
pluginmanager.lastupdate=1263749058861
pluginmanager.version=2867
plugins=PicLayer
buildings_tools
measurement
multipoly
openstreetbugs
osmarender
remotecontrol
terracer
validator
walkingpapers
wmsplugin
proxy.http.host=192.168.13.2
proxy.http.port=3128
proxy.policy=no-proxy
save.keepbackup=false
shortcut.groups.1=128
shortcut.groups.10=64
shortcut.groups.11=576
shortcut.groups.12=64
shortcut.groups.13=512
shortcut.groups.15=640
shortcut.groups.16=640
shortcut.groups.17=576
shortcut.groups.18=512
shortcut.groups.19=128
shortcut.groups.2=128
shortcut.groups.20=512
shortcut.groups.3=0
shortcut.groups.4=512
shortcut.groups.5=0
shortcut.groups.6=512
shortcut.groups.8=192
shortcut.groups.9=192
shortcut.groups.configured=true
upload.comment.history=Hausnummern Portitzer Straße
validator.tests=Coastlines=true,MultipolygonTest=true,SimilarNamedWays=true,UntaggedNode=true,CrossingWays=true,NodesWithSameName=true,TagChecker=true,OverlappingWays=true,UnclosedWays=true,WronglyOrderedWays=true,UnconnectedWays=true,SelfIntersectingWay=true,DuplicatedWayNodes=true,NameMismatch=true,DuplicateWay=true,UntaggedWay=true,DuplicateNode=true
validator.testsBeforeUpload=Coastlines=true,MultipolygonTest=true,SimilarNamedWays=true,UntaggedNode=true,CrossingWays=true,NodesWithSameName=true,TagChecker=true,OverlappingWays=true,UnclosedWays=true,WronglyOrderedWays=true,UnconnectedWays=true,SelfIntersectingWay=true,DuplicatedWayNodes=true,NameMismatch=true,DuplicateWay=true,UntaggedWay=true,DuplicateNode=true
wmsplugin.alpha_channel=true
wmsplugin.default.html:http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?=true
wmsplugin.default.http://onearth.jpl.nasa.gov/wms.cgi?request_GetMap&layers_global_mosaic&styles_&format_image/jpeg&=true
wmsplugin.url.0.name=LandSat
wmsplugin.url.0.url=http://onearth.jpl.nasa.gov/wms.cgi?request=GetMap&layers=global_mosaic&styles=&format=image/jpeg&
wmsplugin.url.1.name=Yahoo Sat
wmsplugin.url.1.url=html:http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?
wmsplugin.url.overlap=false
wmsplugin.url.overlapEast=14
wmsplugin.url.overlapNorth=4

comment:9 Changed 3 years ago by anonymous

  • Priority changed from critical to major
  • Version set to latest

comment:10 Changed 3 years ago by anonymous

Please don't mix this up. Yahoo-access and WMS Sicily are two different things, as they use totally different ways of acquiring the data. For Yahoo you need a download tool, WMS is accessed by plugin directly.

@WillyTM: Your installation of the download tool is probably wrong. How to do this right has been discussed often enough. Use Google to find help.

comment:11 Changed 3 years ago by WillyTM

Download tool in all cases is webkit-image. It semms to be found, when the path is changed to an inexistend path the console of JOSM mentions this: java.lang.Exception: Could not start browser. Please check that the executable path is correct.

This is the output of the console running JOSM 2890 with WMSPlugin 19626:

Grabbing HTML http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?bbox=12.42
13836,51.2971698,12.4606918,51.3364780&srs=EPSG:4326&width=500&height=500
im == null!
Grabbing HTML http://josm.openstreetmap.de/wmsplugin/YahooDirect.html?bbox=12.42
13836,51.3364780,12.4606918,51.3757862&srs=EPSG:4326&width=500&height=500
im == null!

In this case the instalation was under Windows, josm-latest.jar, webkit-image, Qtxxx.dll, mingwm10.dll and imageformats folder in one directory, starting from console from this directory

All installations done according to http://wiki.openstreetmap.org/wiki/JOSM/Plugins/WMSPlugin

comment:12 Changed 3 years ago by WillyTM <willy.tm@…>

I think I have the solution: WMSplugin/Webkit-image does not like connections over proxies, when I use JOSM without a proxy WMS works as expected
But it is nowhere written that WMSplugin cannot be used with proxies

so it is still a defect either in WMSplugin/Webkit-image or in the documentation

comment:13 Changed 3 years ago by stoecker

  • Resolution set to worksforme
  • Status changed from reopened to closed

WMS plugin does not use JOSM proxy. It needs to use either system setup or proxy environment variables.

comment:14 Changed 3 years ago by stoecker

Correction: webkit-image does not use josm proxy settings.

comment:15 Changed 3 years ago by anonymous

  • Keywords proxy added
  • Resolution changed from worksforme to duplicate

see #1886

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.