<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Error executing Geoprocessing Service in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/error-executing-geoprocessing-service/m-p/79514#M1929</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm brand new to the world of serving up Geoprocessing services, so hopefully this problem is an easy one! I have created a GP service in ArcMap that simply takes an expression having the ObjectID of a Building feature (e.g "OBJECTID=1234"), and then using the CalculateField tool and a python script, changes a field for that feature to "Hello World!".&amp;nbsp; The model executes perfectly inside of ArcMap.&amp;nbsp; From the model, I published two GPServices (a synchronous and asynch versions) using the Results window in ArcMap.&amp;nbsp; After publishing I can browse to the services using Internet Explorer. Here's the synchronous version: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;localhost:6080/arcgis/rest/services/CalculateSynchNoOut/GPServer/CalculateSynchNoOut/execute&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, when I try to execute the task by supplying an expression ("OBJECTID=19974"), I get an unhelpful error, "Error performing execute operation". The ObjectID does exist, so I'm confused as to what the problem is.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I attach Fiddler I see something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;localhost:6080/arcgis/rest/services/CalculateSynchNoOut/GPServer/CalculateSynchNoOut/execute?Expression=OBJECTID%3d19974&amp;amp;env:outSR=102660&amp;amp;f=json&amp;amp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have also tried running the code below, but I ultimately get the same error.&amp;nbsp; Can someone suggest a step that I am missing?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;string url = "http://localhost:6080/arcgis/rest/services/CalculateSynchNoOut/GPServer/CalculateSynchNoOut";
Geoprocessor geoprocessorTask = new Geoprocessor(url);
geoprocessorTask.ExecuteCompleted += new EventHandler&amp;lt;GPExecuteCompleteEventArgs&amp;gt;(geoprocessorTask_ExecuteCompleted);
geoprocessorTask.Failed += new EventHandler&amp;lt;TaskFailedEventArgs&amp;gt;(geoprocessorTask_Failed);
geoprocessorTask.OutputSpatialReference = Map.SpatialReference;
List&amp;lt;GPParameter&amp;gt; parameters = new List&amp;lt;GPParameter&amp;gt;();
parameters.Add(new GPString("Expression", "OBJECTID=19974"));
geoprocessorTask.ExecuteAsync(parameters);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;EDIT &lt;/STRONG&gt;&lt;SPAN&gt;- I just checked the ArcGIS Server Manager error logs and I found this, "Internal Server Error. Error handling service request: Could not service request. java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is: java.net.SocketException: Connection reset"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 03 Feb 2013 18:16:53 GMT</pubDate>
    <dc:creator>RiverTaig1</dc:creator>
    <dc:date>2013-02-03T18:16:53Z</dc:date>
    <item>
      <title>Error executing Geoprocessing Service</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/error-executing-geoprocessing-service/m-p/79514#M1929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm brand new to the world of serving up Geoprocessing services, so hopefully this problem is an easy one! I have created a GP service in ArcMap that simply takes an expression having the ObjectID of a Building feature (e.g "OBJECTID=1234"), and then using the CalculateField tool and a python script, changes a field for that feature to "Hello World!".&amp;nbsp; The model executes perfectly inside of ArcMap.&amp;nbsp; From the model, I published two GPServices (a synchronous and asynch versions) using the Results window in ArcMap.&amp;nbsp; After publishing I can browse to the services using Internet Explorer. Here's the synchronous version: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;localhost:6080/arcgis/rest/services/CalculateSynchNoOut/GPServer/CalculateSynchNoOut/execute&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, when I try to execute the task by supplying an expression ("OBJECTID=19974"), I get an unhelpful error, "Error performing execute operation". The ObjectID does exist, so I'm confused as to what the problem is.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I attach Fiddler I see something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;localhost:6080/arcgis/rest/services/CalculateSynchNoOut/GPServer/CalculateSynchNoOut/execute?Expression=OBJECTID%3d19974&amp;amp;env:outSR=102660&amp;amp;f=json&amp;amp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have also tried running the code below, but I ultimately get the same error.&amp;nbsp; Can someone suggest a step that I am missing?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;string url = "http://localhost:6080/arcgis/rest/services/CalculateSynchNoOut/GPServer/CalculateSynchNoOut";
Geoprocessor geoprocessorTask = new Geoprocessor(url);
geoprocessorTask.ExecuteCompleted += new EventHandler&amp;lt;GPExecuteCompleteEventArgs&amp;gt;(geoprocessorTask_ExecuteCompleted);
geoprocessorTask.Failed += new EventHandler&amp;lt;TaskFailedEventArgs&amp;gt;(geoprocessorTask_Failed);
geoprocessorTask.OutputSpatialReference = Map.SpatialReference;
List&amp;lt;GPParameter&amp;gt; parameters = new List&amp;lt;GPParameter&amp;gt;();
parameters.Add(new GPString("Expression", "OBJECTID=19974"));
geoprocessorTask.ExecuteAsync(parameters);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;EDIT &lt;/STRONG&gt;&lt;SPAN&gt;- I just checked the ArcGIS Server Manager error logs and I found this, "Internal Server Error. Error handling service request: Could not service request. java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is: java.net.SocketException: Connection reset"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Feb 2013 18:16:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/error-executing-geoprocessing-service/m-p/79514#M1929</guid>
      <dc:creator>RiverTaig1</dc:creator>
      <dc:date>2013-02-03T18:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error executing Geoprocessing Service</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/error-executing-geoprocessing-service/m-p/79515#M1930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i have the same problem&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 02:33:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/error-executing-geoprocessing-service/m-p/79515#M1930</guid>
      <dc:creator>xuexiaolong</dc:creator>
      <dc:date>2013-07-08T02:33:04Z</dc:date>
    </item>
  </channel>
</rss>

