<?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 LocateWidget Problem in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/locatewidget-problem/m-p/662953#M14856</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I try to use my own geocode service on LocateWidget from &lt;/SPAN&gt;&lt;A href="http://resources.esri.com/arcgisserver/apis/flex/index.cfm?fa=codeGalleryDetails&amp;amp;scriptID=16266"&gt;http://resources.esri.com/arcgisserver/apis/flex/index.cfm?fa=codeGalleryDetails&amp;amp;scriptID=16266&lt;/A&gt;&lt;SPAN&gt; but I got error message. My Geocode server only have one "Street" address fields and I used Token to secure my map services.&amp;nbsp; Everything is working ok without apply token to locatewidgte.mxml file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here are all the error messages: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;JSONParseError: Unexpected o encountered&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.serialization.json::JSONTokenizer/parseError()&lt;C&gt;&lt;/C&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.serialization.json::JSONTokenizer/getNextToken()&lt;C&gt;&lt;/C&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.serialization.json::JSONDecoder/nextToken()&lt;C&gt;&lt;/C&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.serialization.json::JSONDecoder/parseArray()&lt;C&gt;&lt;/C&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.serialization.json::JSONDecoder/parseValue()&lt;C&gt;&lt;/C&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.serialization.json::JSONDecoder()&lt;C&gt;&lt;/C&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.serialization.json::JSON$/decode()&lt;C&gt;&lt;/C&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.solutions.flexviewer.widgets::LocateWidget/onJSONLoad()&lt;C&gt;&lt;/C&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.solutions.flexviewer.widgets::LocateWidget/__locatorService_result()&lt;C&gt;&lt;/C&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at flash.events::EventDispatcher/dispatchEventFunction()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at flash.events::EventDispatcher/dispatchEvent()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt; at HTTPOperation/&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()&amp;lt;C&amp;gt;" rel="nofollow" target="_blank"&gt;http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()&lt;C&gt;&lt;/C&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt; at mx.rpc::AbstractInvoker/&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.adobe.com/2006/flex/mx/internal::resultHandler()&amp;lt;C&amp;gt;" rel="nofollow" target="_blank"&gt;http://www.adobe.com/2006/flex/mx/internal::resultHandler()&lt;C&gt;&lt;/C&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at mx.rpc::Responder/result()&lt;C&gt;&lt;/C&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at mx.rpc::AsyncRequest/acknowledge()&lt;C&gt;&lt;/C&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at DirectHTTPMessageResponder/completeHandler()&lt;C&gt;&lt;/C&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at flash.events::EventDispatcher/dispatchEventFunction()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at flash.events::EventDispatcher/dispatchEvent()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at flash.net::URLLoader/onComplete()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;--------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Locatewidget.mxml&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;--------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;configuration&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt; &amp;lt;locator&amp;gt;&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://gis:8399/arcgis/rest/services/test/strLineAddrLoc/GeocodeServer?token=X" rel="nofollow" target="_blank"&gt;http://gis:8399/arcgis/rest/services/test/strLineAddrLoc/GeocodeServer?token=X&lt;/A&gt;&lt;SPAN&gt;&amp;lt;/locator&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;minscore&amp;gt;80&amp;lt;/minscore&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;zoomscale&amp;gt;5000&amp;lt;/zoomscale&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt; &amp;lt;geometryservice&amp;gt;&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://orthogonal.esri.com/ArcGIS/rest/services/Geometry/GeometryServer" rel="nofollow" target="_blank"&gt;http://orthogonal.esri.com/ArcGIS/rest/services/Geometry/GeometryServer&lt;/A&gt;&lt;SPAN&gt;&amp;lt;/geometryservice&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;inspatial&amp;gt;102698&amp;lt;/inspatial&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;outspatial&amp;gt;102698&amp;lt;/outspatial&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/configuration&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wee&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Jun 2010 15:21:22 GMT</pubDate>
    <dc:creator>weeyeo</dc:creator>
    <dc:date>2010-06-21T15:21:22Z</dc:date>
    <item>
      <title>LocateWidget Problem</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/locatewidget-problem/m-p/662953#M14856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I try to use my own geocode service on LocateWidget from &lt;/SPAN&gt;&lt;A href="http://resources.esri.com/arcgisserver/apis/flex/index.cfm?fa=codeGalleryDetails&amp;amp;scriptID=16266"&gt;http://resources.esri.com/arcgisserver/apis/flex/index.cfm?fa=codeGalleryDetails&amp;amp;scriptID=16266&lt;/A&gt;&lt;SPAN&gt; but I got error message. My Geocode server only have one "Street" address fields and I used Token to secure my map services.&amp;nbsp; Everything is working ok without apply token to locatewidgte.mxml file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here are all the error messages: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;JSONParseError: Unexpected o encountered&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.serialization.json::JSONTokenizer/parseError()&lt;C&gt;&lt;/C&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.serialization.json::JSONTokenizer/getNextToken()&lt;C&gt;&lt;/C&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.serialization.json::JSONDecoder/nextToken()&lt;C&gt;&lt;/C&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.serialization.json::JSONDecoder/parseArray()&lt;C&gt;&lt;/C&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.serialization.json::JSONDecoder/parseValue()&lt;C&gt;&lt;/C&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.serialization.json::JSONDecoder()&lt;C&gt;&lt;/C&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.serialization.json::JSON$/decode()&lt;C&gt;&lt;/C&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.solutions.flexviewer.widgets::LocateWidget/onJSONLoad()&lt;C&gt;&lt;/C&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.solutions.flexviewer.widgets::LocateWidget/__locatorService_result()&lt;C&gt;&lt;/C&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at flash.events::EventDispatcher/dispatchEventFunction()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at flash.events::EventDispatcher/dispatchEvent()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt; at HTTPOperation/&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()&amp;lt;C&amp;gt;" rel="nofollow" target="_blank"&gt;http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()&lt;C&gt;&lt;/C&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt; at mx.rpc::AbstractInvoker/&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.adobe.com/2006/flex/mx/internal::resultHandler()&amp;lt;C&amp;gt;" rel="nofollow" target="_blank"&gt;http://www.adobe.com/2006/flex/mx/internal::resultHandler()&lt;C&gt;&lt;/C&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at mx.rpc::Responder/result()&lt;C&gt;&lt;/C&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at mx.rpc::AsyncRequest/acknowledge()&lt;C&gt;&lt;/C&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at DirectHTTPMessageResponder/completeHandler()&lt;C&gt;&lt;/C&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at flash.events::EventDispatcher/dispatchEventFunction()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at flash.events::EventDispatcher/dispatchEvent()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at flash.net::URLLoader/onComplete()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;--------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Locatewidget.mxml&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;--------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;configuration&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt; &amp;lt;locator&amp;gt;&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://gis:8399/arcgis/rest/services/test/strLineAddrLoc/GeocodeServer?token=X" rel="nofollow" target="_blank"&gt;http://gis:8399/arcgis/rest/services/test/strLineAddrLoc/GeocodeServer?token=X&lt;/A&gt;&lt;SPAN&gt;&amp;lt;/locator&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;minscore&amp;gt;80&amp;lt;/minscore&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;zoomscale&amp;gt;5000&amp;lt;/zoomscale&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt; &amp;lt;geometryservice&amp;gt;&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://orthogonal.esri.com/ArcGIS/rest/services/Geometry/GeometryServer" rel="nofollow" target="_blank"&gt;http://orthogonal.esri.com/ArcGIS/rest/services/Geometry/GeometryServer&lt;/A&gt;&lt;SPAN&gt;&amp;lt;/geometryservice&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;inspatial&amp;gt;102698&amp;lt;/inspatial&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;outspatial&amp;gt;102698&amp;lt;/outspatial&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/configuration&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wee&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jun 2010 15:21:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/locatewidget-problem/m-p/662953#M14856</guid>
      <dc:creator>weeyeo</dc:creator>
      <dc:date>2010-06-21T15:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: LocateWidget Problem</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/locatewidget-problem/m-p/662954#M14857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The JSON being returned is not well formed. Try capturing the JSON and then validating it using an external validator, and then you'll at least be able to pinpoint what the problem is with the JSON. Here's an online validator you can try: &lt;/SPAN&gt;&lt;A href="http://www.jsonlint.com/"&gt;http://www.jsonlint.com/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Some methods to capture the JSON payload include:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- setting a breakpoint in your app and using trace("JSON: " + String(event.result));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- using Fiddler&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Andy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRI Developer Network (EDN)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jun 2010 19:37:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/locatewidget-problem/m-p/662954#M14857</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2010-06-30T19:37:29Z</dc:date>
    </item>
  </channel>
</rss>

