Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6934279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:56:22+00:00 2026-05-27T11:56:22+00:00

I have a vectorLayer with WFS protocol, and BBOX strategy. Which loads initially the

  • 0

I have a vectorLayer with WFS protocol, and BBOX strategy. Which loads initially the data as it should.
But if i drag the map the geoserver log just say: {curr date} INFO [geoserver.wfs] – Request: getServiceInfo instead of getFeature (like it does during the initial request).
My problem is that on the map nothing happens. If I set a “refresh” eventHandler on the layer, it won’t fire…
Do I have to refresh the map/layer somewhere else?

var map;
function init(){
  ..
  map = new OpenLayers.Map('map', options);
  var gsat = new OpenLayers.Layer.Google(...);
  map.addLayer(gsat);
  var lonlat = new OpenLayers.LonLat(...);
  map.setCenter(lonlat, 18);
  loadLayer();
  ..
}
function loadLayer(){
  loadLayerFunc();
  ...
}

function loadLayerFunc(){
  var wfsLayer = loadLayerFunc();
  wfsLayer.events.on({...});
  map.addLayer(wfsLayer);
  ...
}
function loadLayerFunc(){
var bboxStrategy = new OpenLayers.Strategy.BBOX({ratio: 0.8});
wfsLayer = new OpenLayers.Layer.Vector("wfsLayer", {
  strategies: [bboxStrategy],
  protocol: new OpenLayers.Protocol.WFS({
  version: "1.1.0",
  srsName: "EPSG:4326",
  url: wfs_url,
  featureType: "positions_test",
  featurePrefix: "feature",
  geometryName: "the_geom",
  schema: "http://localhost:8080/geoserver/wfs?request=DescribeFeatureType&service=WFS&typeName=ws:positions",
  maxFeatures: 1000
}),
    projection: geoProjection
  });
  return wfsLayer;
}

If i run the same script on another server, firefox webconsole tells me already at the initial request “Unable to display responses of type (null)”…..?
It doesn’t even show anything, although i just changed the url.

EDIT: the null response seem to be caused by the tomcat apache server without proxy configuration. Is possible to run it without proxy, if the js files are in the similar apache folder like on geoserver? Finally i need to run it on the tomcat.
Is “proxy.cgi file not well formed” error better than null response? I would like to solve it without a proxy if possible, but it looks like that including the proxy brings me closer to where i want.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T11:56:23+00:00Added an answer on May 27, 2026 at 11:56 am

    your WFS endpoint (GeoServer) should be located relative to your page otherwise the same origin policy kicks in.
    You could try fixing it using apache and mod_proxy or mod_jk. With those libraries you can mount geoserver, as deployed in tomcat, relative to your application.

    If this is not possible with your application, you should use the supplied proxy script.

    And yes, geoserver displays getServiceInfo when making WFS requests in its log files. I noticed the same behaviour with geoserver 2.1.1

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a vector-layer for displaying markers as features on my map, but now
Have seen multiple posts on this but I can't see any which answer my
Have just started using Visual Studio Professional's built-in unit testing features, which as I
I currently work with OpenLayers and have a huge set of data to draw
Have converted devise new session from erb to Haml but doens't work, this is
Have searched the database but need to specifically sum(of hours flown or days off)in
I have a Shapefile map of Maryland separated by zipcode. What I'd like to
how to draw a circle in openlayer map? i have tried in diff way,
I would have an openlayers vector layer with features scattered all over the map.
I have a particular requirement to generate a PDF document with some dynamic data

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.