Select to view content in your preferred language

Error: ?????????????? (null): Unable to complete operation.

620
2
12-26-2012 08:27 PM
tongwenhuan
New Contributor
Error: ?????????????? (null): Unable to complete operation.
...],g=this.graphics;while(g.length>0){this.remove(g[0]);}if(!_771){this.onGraphics...
[ATTACH=CONFIG]20207[/ATTACH]

my page is code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html>

  <head>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

    <title>Simple Map</title>

    <link rel="stylesheet" type="text/css" href="http://127.0.0.1/arcgis_js_api/library/3.2/jsapi/js/dojo/dijit/themes/tundra/tundra.css">

    <script type="text/javascript" src="http://127.0.0.1/arcgis_js_api/library/3.2/jsapi"></script>
    <style>
        html,body{height:100%;width:100%;margin:0;padding: 0;overflow:hidden;}
    </style>

    <script type="text/javascript">

      dojo.require("esri.map");
  dojo.require("esri.layers.FeatureLayer");
      function init() {

        var myMap = new esri.Map("mapDiv");

        //note that if you do not have public Internet access then you will need to point this url to your own locally accessible cached service.

        var myTiledMapServiceLayer = new esri.layers.ArcGISTiledMapServiceLayer("http://127.0.0.1/ArcGIS/rest/services/hseds2012/MapServer");

        myMap.addLayer(myTiledMapServiceLayer);
var featureLayer = new esri.layers.FeatureLayer("http://127.0.0.1/ArcGIS/rest/services/sde/FeatureServer/0", {
            outFields: ["*"],
            mode: esri.layers.FeatureLayer.MODE_SNAPSHOT
          });

          myMap.addLayer(featureLayer);

      }

      dojo.addOnLoad(init);

    </script>

  </head>

  <body class="tundra">

    <div id="mapDiv" style="width:900px; height:600px; border:1px solid #000;"></div>

  </body>

</html>


i found when add featureLayer with firefox ,open this errors.
0 Kudos
2 Replies
JakeSkinner
Esri Esteemed Contributor
Hi Tong,

Are you running ArcGIS for Server 10.1 Service Pack 1?  You may be experiencing a bug:

NIM086349:  Alternate Query (Get) requests fail in Version 10.1 SP1.

If you refresh the web page, do you receive the same error?
0 Kudos
Jay_Gregory
Regular Contributor
This this bug does affect the JS API FeatureLayer? Is there any workaround currently, or prediction of when it might be fixed?

I had just recently posted this to the forums. 

Thanks!

Jay
0 Kudos