Modify

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#7997 closed defect (othersoftware)

Error opening WMS-layer from mapserver

Reported by: brogo Owned by: team
Priority: major Milestone:
Component: Core Version: latest
Keywords: wms mapserver Cc:

Description

I have a local mapserver-installation under Windows 7 Prof. 64 Bit on which JOSM access via WMS. Everything works fine for months. Now the tiles cannot loaded. I get errors like this:

C:\Program Files (x86)\OSM\JOSM>start call c:\osm\mapserver\start.bat

C:\Program Files (x86)\OSM\JOSM>java -Xmx2000M -jar josm-latest.jar
lade Plugin 'reltoolbox' (Version 28412)
lade Plugin 'undelete' (Version 28501)
lade Plugin 'openstreetbugs' (Version 28412)
lade Plugin 'editgpx' (Version 28412)
lade Plugin 'PicLayer' (Version 28559)
lade Plugin 'pbf' (Version 28412)
lade Plugin 'RoadSigns' (Version 27868)
lade Plugin 'reverter' (Version 28535)
RemoteControl: adding command "revert_changeset" (handled by RevertChangesetHand
ler)
lade Plugin 'DirectUpload' (Version 28412)
lade Plugin 'utilsplugin2' (Version 28556)
GET http://api.openstreetmap.org/api/0.6/map?bbox=10.7950115,53.9118718,10.80273
63,53.9148545
Grabbing WMS http://127.0.0.1/cgi-bin/mapserv.exe?map=/mapserver/osm.map&FORMAT=
image/jpeg&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&LAYERS=Luftbilder_SH&STYLES=
&SRS=EPSG:4326&WIDTH=500&HEIGHT=500&BBOX=10.7912324,53.9140859,10.7955820,53.916
6477
Grabbing WMS http://127.0.0.1/cgi-bin/mapserv.exe?map=/mapserver/osm.map&FORMAT=
image/jpeg&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&LAYERS=Luftbilder_SH&STYLES=
&SRS=EPSG:4326&WIDTH=500&HEIGHT=500&BBOX=10.7955820,53.9140859,10.7999315,53.916
6477
java.io.IOException: Premature EOF
        at sun.net.www.http.ChunkedInputStream.readAheadBlocking(Unknown Source)

        at sun.net.www.http.ChunkedInputStream.readAhead(Unknown Source)
        at sun.net.www.http.ChunkedInputStream.read(Unknown Source)
        at java.io.FilterInputStream.read(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(Unkn
own Source)
        at org.openstreetmap.josm.io.ProgressInputStream.read(ProgressInputStrea
m.java:56)
        at java.io.InputStream.read(Unknown Source)
        at org.openstreetmap.josm.tools.Utils.copyStream(Utils.java:233)
        at org.openstreetmap.josm.io.imagery.WMSGrabber.grab(WMSGrabber.java:179
)
        at org.openstreetmap.josm.io.imagery.WMSGrabber.fetch(WMSGrabber.java:73
)
        at org.openstreetmap.josm.io.imagery.Grabber.attempt(Grabber.java:63)
        at org.openstreetmap.josm.io.imagery.Grabber.run(Grabber.java:48)
        at java.lang.Thread.run(Unknown Source)
java.io.IOException: Premature EOF
        at sun.net.www.http.ChunkedInputStream.readAheadBlocking(Unknown Source)

        at sun.net.www.http.ChunkedInputStream.readAhead(Unknown Source)
        at sun.net.www.http.ChunkedInputStream.read(Unknown Source)
        at java.io.FilterInputStream.read(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(Unkn
own Source)
        at org.openstreetmap.josm.io.ProgressInputStream.read(ProgressInputStrea
m.java:56)
        at java.io.InputStream.read(Unknown Source)
        at org.openstreetmap.josm.tools.Utils.copyStream(Utils.java:233)
        at org.openstreetmap.josm.io.imagery.WMSGrabber.grab(WMSGrabber.java:179
)
        at org.openstreetmap.josm.io.imagery.WMSGrabber.fetch(WMSGrabber.java:73
)
        at org.openstreetmap.josm.io.imagery.Grabber.attempt(Grabber.java:63)
        at org.openstreetmap.josm.io.imagery.Grabber.run(Grabber.java:48)
        at java.lang.Thread.run(Unknown Source)
Grabbing WMS (attempt 2) http://127.0.0.1/cgi-bin/mapserv.exe?map=/mapserver/osm
.map&FORMAT=image/jpeg&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&LAYERS=Luftbilde
r_SH&STYLES=&SRS=EPSG:4326&WIDTH=500&HEIGHT=500&BBOX=10.7955820,53.9140859,10.79
99315,53.9166477
Grabbing WMS (attempt 2) http://127.0.0.1/cgi-bin/mapserv.exe?map=/mapserver/osm
.map&FORMAT=image/jpeg&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&LAYERS=Luftbilde
r_SH&STYLES=&SRS=EPSG:4326&WIDTH=500&HEIGHT=500&BBOX=10.7912324,53.9140859,10.79
55820,53.9166477

...and so on.

When copying the wms-address in a web-browser the tile is displayed correctly, so it seems that the error must be in JOSM which doesnt't open the WMS-map-tiles.

There are also other users reporting this problem [1].

Strangely if I use an older JOSM-version with with default settings in a new clean directory, the error still occours. Maybe there is somethin wrong with a plugin. It also could a Windows or Java problem.

brogo

[1] http://forum.openstreetmap.org/viewtopic.php?id=13207&p=24

Attachments (1)

mapserv.exe.jpg (62.6 KB) - added by brogo 7 years ago.
WMS-tile saved with webbrowser

Download all attachments as: .zip

Change History (7)

Changed 7 years ago by brogo

Attachment: mapserv.exe.jpg added

WMS-tile saved with webbrowser

comment:1 in reply to:  description ; Changed 7 years ago by Don-vip

Replying to brogo:

Strangely if I use an older JOSM-version with with default settings in a new clean directory, the error still occurs.

What older version did you use ? If you didn't try already, can you try the tested version (r5356) ?

Could you also try to replace "LAYERS" in your WMS URL by "Layers" ?

comment:2 in reply to:  1 Changed 7 years ago by anonymous

Replying to Don-vip:

Replying to brogo:

Strangely if I use an older JOSM-version with with default settings in a new clean directory, the error still occurs.

What older version did you use ? If you didn't try already, can you try the tested version (r5356) ?

Tested. Same effect. No plugins installed.

Could you also try to replace "LAYERS" in your WMS URL by "Layers" ?

No change.

brogo

comment:3 Changed 7 years ago by bastiK

I think it has something to do with chunked HTTP transfer method. There should be the field

Transfer-Encoding:chunked

in the HTTP header of the response from the local server. Maybe your instance of Mapserver sends data that isn't formatted properly or the connection is closed prematurely for some reason. Maybe there is a Java bug related to handling chunked transfers. Or something in between.

Here is a suggestion, how to deal with the problem.

@brogo: It would help to see a wireshark log for one request that JOSM sends to mapserver.

comment:4 in reply to:  3 ; Changed 7 years ago by anonymous

Replying to bastiK:

I think it has something to do with chunked HTTP transfer method. There should be the field

Transfer-Encoding:chunked

in the HTTP header of the response from the local server. Maybe your instance of Mapserver sends data that isn't formatted properly or the connection is closed prematurely for some reason. Maybe there is a Java bug related to handling chunked transfers. Or something in between.

Here is a suggestion, how to deal with the problem.

Sorry, but this is too technically for me. I don't understand this.

The mapserver-installatio (ms4w) wasn't changed for months. In the meantime ther were only the normal updates for Windows, Java and JOSM.

@brogo: It would help to see a wireshark log for one request that JOSM sends to mapserver.

I hope this is that you need and doesn't show any personal data. I am not common with Wireshark or something like this.

brogo

comment:5 in reply to:  4 Changed 7 years ago by brogo

Resolution: othersoftware
Status: newclosed

I found the problem. If I disable my anti-virus-software (Kaspersky Anti Virus 2012) everthing works fine. This is the second time this software causes trouble with other programs. :-(

comment:6 in reply to:  4 Changed 7 years ago by bastiK

Replying to anonymous:

Replying to bastiK:

I think it has something to do with chunked HTTP transfer method. There should be the field

Transfer-Encoding:chunked

in the HTTP header of the response from the local server. Maybe your instance of Mapserver sends data that isn't formatted properly or the connection is closed prematurely for some reason. Maybe there is a Java bug related to handling chunked transfers. Or something in between.

Here is a suggestion, how to deal with the problem.

Sorry, but this is too technically for me. I don't understand this.

This was meant as a note to myself or other developers.

The mapserver-installatio (ms4w) wasn't changed for months. In the meantime ther were only the normal updates for Windows, Java and JOSM.

@brogo: It would help to see a wireshark log for one request that JOSM sends to mapserver.

I hope this is that you need and doesn't show any personal data. I am not common with Wireshark or something like this.

I've removed your attachment, since the problem is solved. It shouldn't have contained any personal data, unless you have uploaded something while wireshark was recording.

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.

Add Comment


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

 
Note: See TracTickets for help on using tickets.