Select to view content in your preferred language

JSON requests

1100
2
10-12-2010 11:46 AM
JasonKnisley
Deactivated User
I have a web application that makes a series of JSON requests against services and their associated layers in the process of building a dynamic legend.  Prior to ArcGIS Server 10, everything worked fine.  However, with services hosted through ArcGIS Server 10, often the JSON request returns:
{"error":{"code":500,"message":"An unexpected error occurred processing the request.","details":[]}}

The odd part is that the service can work fine for awhile, and then at a seemingly random point in time it will stop returning the expected JSON results and instead return the error above.  Manually clearing the cache (through //server/arcgis/rest/admin) works for awhile, but eventually the error will occur again, making my current legend implementation very unreliable.

A few strange things typically occur as well:
1)  The entire service, in my experience, has never been affected as a whole.  Normally it's only a single feature layer under the service that generates this error.
2)  The affected feature layer still appears to load and function normally within the web app, and html requests show valid information.  It's only JSON requests that appear to be affected.

Does ArcGIS 10 require additional setup in order for JSON requests to work on a consistent basis?
0 Kudos
2 Replies
JasonKnisley
Deactivated User
No one else has experienced this?  Or is my question unclear?
0 Kudos
RichardWatson
Deactivated User
I have never seen the problem.  I would:

1) Check the logs - ArcGIS Server Manager, ArcGIS rest log, IIS log, NT event viewer
2) Attach a debugger to the SOC, catch all exceptions, and see if you figure out what is happenin
0 Kudos