[mapserver-dev] Problem when using the ECW support for MapServer via GDAL (GetCapabilities response truncated)
ah1010
alon.halfon at gmail.com
Tue Jan 21 02:13:39 PST 2014
We have 4 MapServers in our organization and we encountered a sudden problem
on all of them at the same time.
Since about 3 weeks ago, The GetCapabilities response from the server is
truncated exactly after 4084 bytes.
We tried to look for the possible causes in the forums and documentations
with no results
It seems that we are not the first ones to have this problem, but no answers
found.
(http://osgeo-org.1560.x6.nabble.com/GetCapabilities-response-being-truncated-td4237078.html)
Eventually we discovered that it has something to do with the ECW support:
Whenever we remove the gdal_ECW_JP2ECW dll from c:/ms4w/gdalplugins it
works.
also,
when we run the mapserv.exe from the command line and print the output to
the screen, the getCapabilities returns fine,
but if we print the output to a file (mapserv.exe
QUERY_STRING="map=c:/ms4w/maps/main.map&request=GetCapabilit
ies&SERVICE=WMS&version=1.3.0" > geomap.xml) the same problem occurs and we
get appcrash
Problem signature:
Problem Event Name: APPCRASH
Application Name: mapserv.exe
Application Version: 0.0.0.0
Application Timestamp: 4fc105ff
Fault Module Name: ntdll.dll
Fault Module Version: 6.1.7601.18247
Fault Module Timestamp: 521ea8e7
Exception Code: c0000005
Exception Offset: 000332b0
OS Version: 6.1.7601.2.1.0.768.3
Locale ID: 1037
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789.
Could this be related to recent licensing issues with Erdas' ECW support?
anything else?
truncated response examples:
For example:
http://127.0.0.1/cgi-bin/mapserv.exe?map=c:/ms4w/maps/main.map&request=GetCapabilities&SERVICE=WMS&version=1.3.0
Responded with
<?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
<WMS_Capabilities version="1.3.0" xmlns="http://www.opengis.net/wms"
xmlns:sld="http://www.opengis.net/sld"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ms="http://mapserver.gis.umn.edu/mapserver"
xsi:schemaLocation="http://www.opengis.net/wms
http://schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xsd
http://www.opengis.net/sld
http://schemas.opengis.net/sld/1.1.0/sld_capabilities.xsd
http://mapserver.gis.umn.edu/mapserver
http://127.0.0.1/cgi-bin/mapserv.exe?map=c:/ms4w/maps/main.map&service=WMS&version=1.3.0&request=GetSchemaExtension">
<Service>
<Name>WMS</Name>
<Title>main</Title>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://127.0.0.1/cgi-bin/mapserv.exe?map=c:/ms4w/maps/main.map&"/>
<ContactInformation>
</ContactInformation>
<MaxWidth>2048</MaxWidth>
<MaxHeight>2048</MaxHeight>
</Service>
<Capability>
<Request>
<GetCapabilities>
<Format>text/xml</Format>
<DCPType>
<HTTP>
<Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://127.0.0.1/cgi-bin/mapserv.exe?map=c:/ms4w/maps/main.map&"/></Get>
<Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://127.0.0.1/cgi-bin/mapserv.exe?map=c:/ms4w/maps/main.map&"/></Post>
</HTTP>
</DCPType>
</GetCapabilities>
<GetMap>
<Format>image/jpeg</Format>
<Format>image/png</Format>
<Format>image/gif</Format>
<Format>image/png; mode=8bit</Format>
<Format>application/x-pdf</Format>
<Format>image/svg+xml</Format>
<Format>image/tiff</Format>
<Format>application/vnd.google-earth.kml+xml</Format>
<Format>application/vnd.google-earth.kmz</Format>
<DCPType>
<HTTP>
<Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://127.0.0.1/cgi-bin/mapserv.exe?map=c:/ms4w/maps/main.map&"/></Get>
<Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://127.0.0.1/cgi-bin/mapserv.exe?map=c:/ms4w/maps/main.map&"/></Post>
</HTTP>
</DCPType>
</GetMap>
<GetFeatureInfo>
<Format>text/plain</Format>
<Format>application/vnd.ogc.gml</Format>
<DCPType>
<HTTP>
<Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://127.0.0.1/cgi-bin/mapserv.exe?map=c:/ms4w/maps/main.map&"/></Get>
<Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://127.0.0.1/cgi-bin/mapserv.exe?map=c:/ms4w/maps/main.map&"/></Post>
</HTTP>
</DCPType>
</GetFeatureInfo>
<sld:DescribeLayer>
<Format>text/xml</Format>
<DCPType>
<HTTP>
<Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://127.0.0.1/cgi-bin/mapserv.exe?map=c:/ms4w/maps/main.map&"/></Get>
<Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://127.0.0.1/cgi-bin/mapserv.exe?map=c:/ms4w/maps/main.map&"/></Post>
</HTTP>
</DCPType>
</sld:DescribeLayer>
<sld:GetLegendGraphic>
<Format>image/jpeg</Format>
<Format>image/png</Format>
<Format>image/gif</Format>
<Format>image/png; mode=8bit</Format>
<DCPType>
<HTTP>
<Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://127.0.0.1/cgi-bin/mapserv.exe?map=c:/ms4w/maps/main.map&"/></Get>
<Post><OnlineResource xmlns:xlink="http://www.w3.or
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Problem-when-using-the-ECW-support-for-MapServer-via-GDAL-GetCapabilities-response-truncated-tp5099198.html
Sent from the Mapserver - Dev mailing list archive at Nabble.com.
More information about the mapserver-dev
mailing list