Modify

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#2985 closed defect (worksforme)

wmsplugin 16442 not working with JOSM 1788

Reported by: anonymous Owned by: team
Priority: blocker Milestone:
Component: Core imagery Version: tested
Keywords: Cc:

Description

After upgrading from JOSM 1669 to 1788 on MAC OS and refreshing the plugins no wms layer showed results. Neither the default ones (yahoo, Openstreet etc.) nor my own. Either errors due to incompatible types (image/jpg) or red errors. This happened to all wms layers I have. The problem is based on wmsplugin 16442. Didn't try 16443 yet.
I restored the old wmsplugin.jar (15961) and use it with JOSM 1788. It works fine again. So I assume not an eror on my wms site settings, but more an error in the wmsplugin, or in it's combination with JOSM 1788!

Attachments (0)

Change History (6)

comment:1 by anonymous, 15 years ago

Have problems with same versions. Spotted that wmsplugin is not adding & chacacter before bbox parameter, that cause these errors for me.

comment:2 by stoecker, 15 years ago

It may be necessary to add "&" or '? behind some old URL's. WMSplugin is a bit more strict now when interpreting URLs.

comment:3 by anonymous, 15 years ago

Here are examples, i am not wms expert, i am just using links from wiki or mailinglists. Both work with wmsplugin 16290, but have problem with 16442:

1) WMS URL: http://serverx/wms.asp?service=WMS&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&LAYERS=layer1&FORMAT=image/png&TRANSPARENT=FALSE

getting error:
<!DOCTYPE ServiceExceptionReport SYSTEM "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd">
<ServiceExceptionReport version="1.1.1">
<ServiceException code="MissingParameterValue">
msWMSLoadGetMapParams(): WMS server error. Missing required parameter BBOX
</ServiceException>
</ServiceExceptionReport>

Image couldn't be fetched: http://severx/map?service=wms&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&LAYERS=layer&STYLES=&FORMAT=i
mage/jpeg&TRANSPARENT=TRUEbbox=14.4254710,50.0733088,14.4257941,50.0736319&width=500&height=500

at wmsplugin.WMSGrabber.fetch(WMSGrabber.java:70)
at wmsplugin.Grabber.attempt(Grabber.java:68)
at wmsplugin.WMSGrabber.run(WMSGrabber.java:49)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source

)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

java.lang.Exception: <?xml version='1.0' encoding="windows-1250" standalone="no"

?>

2) WMS URL: http://servery/cgi-bin/oprl.asp?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&LAYERS=layer1&STYLES=default&FORMAT=image/jpeg&TRANSPARENT=TRUE

getting error:
<!DOCTYPE ServiceExceptionReport SYSTEM "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd">
<ServiceExceptionReport version="1.1.1">
<ServiceException code="MissingParameterValue">
msWMSLoadGetMapParams(): WMS server error. Missing required parameter BBOX
</ServiceException>
</ServiceExceptionReport>

Image couldn't be fetched: http://servery/cgi-bin/serv?service=wms&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&LAYERS=layer&STYLES=&FORMAT=i
mage/jpeg&TRANSPARENT=TRUEbbox=14.4251479,50.0733088,14.4254710,50.0736319&width=500&height=500

at wmsplugin.WMSGrabber.fetch(WMSGrabber.java:70)
at wmsplugin.Grabber.attempt(Grabber.java:68)
at wmsplugin.WMSGrabber.run(WMSGrabber.java:49)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source

)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

java.lang.Exception: <?xml version='1.0' encoding="windows-1250" standalone="no"

?>

comment:4 by alegria6208, 15 years ago

Resolution: worksforme
Status: newclosed

The hint from stoecker was right. I added the "&" at the end of the links and it works now. Will test the rest of my wms links and report here.

comment:5 by anonymous, 15 years ago

thx, & works for my both examples.

comment:6 by alegria6208, 15 years ago

A few work now (fortunately my most important), others don't. I can live with it

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.