<?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: Invalid JSON when calling method: in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-invalid-json-when-calling-method/m-p/362249#M33553</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I loaded ESRI's script gp_profile from &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/gmaps/samples/geoprocessor/gp_profile.html"&gt;http://help.arcgis.com/en/webapi/javascript/gmaps/samples/geoprocessor/gp_profile.html&lt;/A&gt;&lt;SPAN&gt; and then run it in my server with minor revision.&amp;nbsp; When running the program in my server, the routing path displays on the map correctly, but the Infobox for the Terrain File does not show up as ESRI's sample.&amp;nbsp; I run FireBug and to try to detect the error message.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The red message shows that &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Post &lt;/SPAN&gt;&lt;A href="http://sampleserver2.arcgisonline.com/ArcGIS/rest/services/Elevation/ESRI_Elevation_World/GPServer/ProfileService/execute&amp;amp;Display"&gt;http://sampleserver2.arcgisonline.com/ArcGIS/rest/services/Elevation/ESRI_Elevation_World/GPServer/ProfileService/execute&amp;amp;Display&lt;/A&gt;&lt;SPAN&gt;....&amp;nbsp; 500 Internal Server error&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Below there is the error message:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;uncaught exception: [Exception... "'Error: Error: Invalid JSON' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "JS frame :: chrome://firebug/content/spy.js :: callPageHandler :: line 744" data: no]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know how to fix it?&amp;nbsp; Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jul 2011 13:48:58 GMT</pubDate>
    <dc:creator>ShaningYu</dc:creator>
    <dc:date>2011-07-20T13:48:58Z</dc:date>
    <item>
      <title>Error: Invalid JSON when calling method:</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-invalid-json-when-calling-method/m-p/362249#M33553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I loaded ESRI's script gp_profile from &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/gmaps/samples/geoprocessor/gp_profile.html"&gt;http://help.arcgis.com/en/webapi/javascript/gmaps/samples/geoprocessor/gp_profile.html&lt;/A&gt;&lt;SPAN&gt; and then run it in my server with minor revision.&amp;nbsp; When running the program in my server, the routing path displays on the map correctly, but the Infobox for the Terrain File does not show up as ESRI's sample.&amp;nbsp; I run FireBug and to try to detect the error message.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The red message shows that &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Post &lt;/SPAN&gt;&lt;A href="http://sampleserver2.arcgisonline.com/ArcGIS/rest/services/Elevation/ESRI_Elevation_World/GPServer/ProfileService/execute&amp;amp;Display"&gt;http://sampleserver2.arcgisonline.com/ArcGIS/rest/services/Elevation/ESRI_Elevation_World/GPServer/ProfileService/execute&amp;amp;Display&lt;/A&gt;&lt;SPAN&gt;....&amp;nbsp; 500 Internal Server error&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Below there is the error message:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;uncaught exception: [Exception... "'Error: Error: Invalid JSON' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "JS frame :: chrome://firebug/content/spy.js :: callPageHandler :: line 744" data: no]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know how to fix it?&amp;nbsp; Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 13:48:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-invalid-json-when-calling-method/m-p/362249#M33553</guid>
      <dc:creator>ShaningYu</dc:creator>
      <dc:date>2011-07-20T13:48:58Z</dc:date>
    </item>
  </channel>
</rss>

