I am trying to obtain the shapefile output that I am receiving from the gpTool, which is hosted on the ArcServer, and placing it on the Map using,
gp.getResultImageLayer(jobInfo.jobId,"final_shp", imageParams, function(gpLayer) {
map.addLayer(gpLayer);
});
where gp is,
gp = new esri.tasks.Geoprocessor("http://domain/ArcGIS/rest/services/webGIS/Shock_Models/GPServer/Income_Log");
This is how it has been explained in the resource but not sure why it is not working.
The firebug gives me,
And when I goto that particular link, I get this error,
Server Error - Object reference not set to an instance of an object.
Any idea how I can correct it?
UPDATE
I was told to use fiddler and see the error details that is occurring over the network and this is the output that I got,
SESSION STATE: Done. Response Entity Size: 849 bytes.
== FLAGS ================== BitFlags: [ClientPipeReused, ServerPipeReused] 0x18 X-CLIENTPORT: 2010 X-RESPONSEBODYTRANSFERLENGTH: 849 X-EGRESSPORT: 2023 X-HOSTIP: 128.196.53.161 X-PROCESSINFO: firefox:2248 X-CLIENTIP: 127.0.0.1 X-SERVERSOCKET: REUSE ServerPipe#2
== TIMING INFO ============ ClientConnected: 15:53:51.383 ClientBeginRequest: 15:53:51.494 GotRequestHeaders: 15:53:51.494 ClientDoneRequest: 15:53:51.494 Determine Gateway: 0ms DNS Lookup: 0ms TCP/IP Connect: 0ms HTTPS Handshake: 0ms ServerConnected: 15:52:45.077 FiddlerBeginRequest: 15:53:51.495 ServerGotRequest: 15:53:51.495 ServerBeginResponse: 15:53:51.679 GotResponseHeaders: 15:53:51.679 ServerDoneResponse: 15:53:51.679 ClientBeginResponse: 15:53:51.679 ClientDoneResponse: 15:53:51.679
Overall Elapsed: 00:00:00.1850106
The response was buffered before delivery to the client.
== WININET CACHE INFO ============ This URL is not present in the WinINET cache. [Code: 2] * Note: Data above shows WinINET's current cache state, not the state at the time of the request. * Note: Data above shows WinINET's Medium Integrity (non-Protected Mode) cache only.
But I am still confused as to what the error is? This is the application.
