[Geoprisma-dev] QueryOnClick waits endlessly on a non
responding queryable layer
Yves Moisan
yves.moisan at boreal-is.com
Wed Jan 6 15:20:43 EST 2010
Le mercredi 06 janvier 2010 à 12:10 -0500, Alexandre Dube a écrit :
> Do you have a link showing the problem ? It seems that 'errors'
> returned by servers are already managed by the QueryOnClick widget. I'd
> like to know when/how it can endlessly fail...
Well, at one point the "forages queryable" layer on sample1 failed with
that but it doesn't seem to do that anymore. Here's the result of a few
mapfile tweakings that cast some light on the issue :
Commenting out DUMP TRUE (so DUMP FALSE) produces a well formed but
empty msGMLOutput :
<?xml version="1.0" encoding="ISO-8859-1"?>
<msGMLOutput
xmlns:gml="http://www.opengis.net/gml"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
</msGMLOutput>
That is handled well by GeoPrisma.
Commenting out BOTH DUMP TRUE and TEMPLATE void produces an exception :
<?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
<!DOCTYPE ServiceExceptionReport SYSTEM
"http://www.digitalearth.gov/wmt/xml/exception_1_0_1.dtd">
<ServiceExceptionReport version="1.0.1">
<ServiceException code="LayerNotQueryable">
msWMSFeatureInfo(): WMS server error. Requested layer(s) are not
queryable.
</ServiceException>
</ServiceExceptionReport>
which also behaves well in GeoPrisma.
Now, having a layer probably misconfigured (mapfile ??) brings about a
*malformed* xml document which OpenLayers (then GP) crashes on :
<?xml version="1.0" encoding="ISO-8859-1"?>
<msGMLOutput
xmlns:gml="http://www.opengis.net/gml"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<stations_layer>
Most probably, something isn't configured properly in my mapfile layer.
It looks as though MS is looking for something in <stations_layer> and
gets stranded there. I wonder how a malformed XML can be produced. Is
it a MapServer bug that should return an error ? I'll do some more
research, but I need a couple more MapFile debugging tricks ...
Yves
>
> My guess is that there must be a javascript error occuring, preventing
> the wait panel to disappear... A "quick" fix would be to set a timer to
> 30 seconds and at least hide the wait panel and show a "query too long"
> message...
>
> Regards,
>
> Alexandre
>
> Yves Moisan wrote:
> > Hi all,
> >
> > Anyone knows of a quick fix for that :
> > http://trac.osgeo.org/geoprisma/ticket/24 ?
> >
> > Cheers,
> >
> > Yves
> >
> > _______________________________________________
> > Geoprisma-dev mailing list
> > Geoprisma-dev at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/geoprisma-dev
> >
>
>
More information about the Geoprisma-dev
mailing list