Platform:

  Browser: FF 3.6.13 on Fedora Core 14 x86_64
  Client: Openlayers 1.4.10
  Server: Geoserver 2.0.2

I am displaying a WFS vector highlight on top of a WMS raster layer. 
Both are coming from the same postgis layer.  The code used to show the
highlight is:

            function highlightID(hid) {
              var hf=new OpenLayers.Filter.Comparison({
                type: OpenLayers.Filter.Comparison.EQUAL_TO,
                property: "id",
                value: hid
              });   
              highlight.filter=hf;
              highlight.setVisibility(true);
              highlight.refresh({force: true});
            }

When an element is highlighted I get the following error in Firefox:
 
uncaught exception: [Exception... "Component returned failure code:
0xc1f30001 (NS_ERROR_NOT_INITIALIZED) [nsIXMLHttpRequest.send]"
nsresult: "0xc1f30001 (NS_ERROR_NOT_INITIALIZED)" location: "JS frame ::
http://localhost/{app}/openlayers/lib/OpenLayers/Request/XMLHttpRequest.js
:: anonymous :: line 200" data: no]

However,  the application works as expected.    The code line in

    lib/OpenLayers/Request/XMLHttpRequest.js

is:

    200         this._object.send(vData);

Changing this line to:

        try { this._object.send(vData); } catch (e) {}

Removes the error and the application still works as expected.  I am
pretty sure this is not a cross-domain policy issue as I am piping the
application and geoserver through the same http host and port using
apache ProxyPass.  The http base address that threw this error was
http://localhost/

--Dave (dbennett @t bensoft d0t com)


_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to