Hello list, does anybody know what is this error I am getting?
uncaught exception: [Exception... "Component returned failure code: 0xc1f30001 (NS_ERROR_NOT_INITIALIZED) [nsIXMLHttpRequest.send]" nsresult: "0xc1f30001 (NS_ERROR_NOT_INITIALIZED)" location: "JS frame :: http://gea.atosorigin.es/gea/andalucia/OpenLayers-2.8/OpenLayers.js :: anonymous :: line 1081" data: no] I am working with one base WMS layer and one WFS but the wfs layer is not shown, I do not get errors retrieving it but the GML retrieved is empty: <wfs:FeatureCollection xsi:schemaLocation="gea.atosorigin.com http://gea.atosorigin.es:8080/geoserver/wfs?service=WFS&version=1.0.0&request=DescribeFeatureType&typeName=gea:hidrografia http://www.opengis.net/wfs http://gea.atosorigin.es:8080/geoserver/schemas/wfs/1.0.0/WFS-basic.xsd"> <gml:boundedBy> <gml:null>unknown</gml:null> </gml:boundedBy> </wfs:FeatureCollection> If I do a manual URL request to my WFS I retrieve a correct GML, so I don’t know why openlayers don’t get the same result… This is my code: <script src="OpenLayers-2.8/OpenLayers.js"></script> <script type="text/javascript"> var map, layer; function init(){ OpenLayers.ProxyHost="/cgi-bin/proxy.cgi?url="; var proj4326 = new OpenLayers.Projection("EPSG:4326"); var proj25830 = new OpenLayers.Projection("EPSG:25830"); var options = { controls: [ new OpenLayers.Control.PanZoom(), new OpenLayers.Control.Permalink(), new OpenLayers.Control.MouseDefaults() ], //maxExtent: bounds, projection: proj25830, displayProjection: proj25830, units: 'm' }; map = new OpenLayers.Map('map',options); //map = new OpenLayers.Map('map', {controls: [ new OpenLayers.Control.PanZoom(), new OpenLayers.Control.Permalink(), new OpenLayers.Control.Mous$ layer = new OpenLayers.Layer.WMS( "Carreteras Andalucia", "http://gea.atosorigin.es:8080/geoserver/wms", {layers: 'gea:carreteras'} ); map.addLayer(layer); layer = new OpenLayers.Layer.WFS( "Hidrografia Andalucia", "http://gea.atosorigin.es:8080/geoserver/wfs", { typename: 'gea:hidrografia' } ); map.addLayer(layer); //map.zoomToExtent(new OpenLayers.Bounds(-7.590812437113975,36.09936036078225,-1.867278496938564,38.74512553050215)); map.zoomToExtent(new OpenLayers.Bounds(100455.890625,4004095.25,598444.9375,4288508.5)); map.addControl(new OpenLayers.Control.LayerSwitcher()); } </script> Thank you in advance. Cheers. ------------------------------------------------------------------ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. Este mensaje y los ficheros adjuntos pueden contener informacion confidencial destinada solamente a la(s) persona(s) mencionadas anteriormente pueden estar protegidos por secreto profesional. Si usted recibe este correo electronico por error, gracias por informar inmediatamente al remitente y destruir el mensaje. Al no estar asegurada la integridad de este mensaje sobre la red, Atos Origin no se hace responsable por su contenido. Su contenido no constituye ningun compromiso para el grupo Atos Origin, salvo ratificacion escrita por ambas partes. Aunque se esfuerza al maximo por mantener su red libre de virus, el emisor no puede garantizar nada al respecto y no sera responsable de cualesquiera danos que puedan resultar de una transmision de virus. ------------------------------------------------------------------
_______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
