jkressin

PictureMarkerSymbol crashing Print GPServer

Discussion created by jkressin on Feb 28, 2013
Hi,

I just discovered an interesting problem with my application. When I add a PictureMarkerSymbol to my map and then try to use the PrintTask to create a PDF, I end up crashing the GPServer and receive an error back.

I am adding gif images in this fashion:

symbol = new esri.symbol.PictureMarkerSymbol("http://myserver/images/myimage.gif", 50, 50);
mydrawinglayer.add(new esri.Graphic(geometry, symbol);

An example of the JSON that crashes my service is this:

{"mapOptions":{"showAttribution":true,"extent":{"xmin":2437892.18282856,"ymin":180091.36721409846,"xmax":2611767.182828561,"ymax":256216.3672140987,"spatialReference":{"wkid":32054}},"spatialReference":{"wkid":32054}},"operationalLayers":[{"id":"Ortho Photo 2010","title":"Ortho Photo 2010","opacity":1,"minScale":25000,"maxScale":0,"url":"http://myserver/arcgis/rest/services/Imagery/Ortho2010/ImageServer","bandIds":null,"compressionQuality":null,"interpolation":null},{"id":"Basemap","title":"Basemap","opacity":1,"minScale":0,"maxScale":0,"url":"http://myserver/arcgis/rest/services/Interactive_Mapping/BaseMap/MapServer","visibleLayers":null,"layers":[]},{"id":"Cadastral","title":"Cadastral","opacity":1,"minScale":0,"maxScale":0,"url":"http://myserver/ArcGIS/rest/services/Interactive_Mapping/Cadastral/MapServer","visibleLayers":null,"layers":[]},{"id":"Water_Features","title":"Water_Features","opacity":1,"minScale":0,"maxScale":0,"url":"http://myserver/arcgis/rest/services/Interactive_Mapping/Water/MapServer","visibleLayers":null,"layers":[]},{"id":"Streets","title":"Streets","opacity":1,"minScale":0,"maxScale":0,"url":"http://myserver/arcgis/rest/services/Interactive_Mapping/Streets/MapServer","visibleLayers":null,"layers":[]},{"id":"drawingLayer","minScale":0,"maxScale":0,"featureCollection":{"layers":[{"layerDefinition":{"name":"pointLayer","geometryType":"esriGeometryPoint"},"featureSet":{"geometryType":"esriGeometryPoint","features":[{"geometry":{"x":2509892.1828285605,"y":218841.36721409857,"spatialReference":{"wkid":32054}},"symbol":{"angle":0,"xoffset":0,"yoffset":0,"type":"esriPMS","url":"http://myserver/InteractiveMapping/graphics/Airport.gif","width":67.5,"height":67.5}}]}}]}},{"id":"textLayer","minScale":0,"maxScale":0,"featureCollection":{"layers":[]}},{"id":"bufferLayer","minScale":0,"maxScale":0,"featureCollection":{"layers":[]}},{"id":"measureLayer","minScale":0,"maxScale":0,"featureCollection":{"layers":[]}}],"exportOptions":{"outputSize":[800,1100],"dpi":96},"layoutOptions":{"titleText":" ","authorText":"","copyrightText":"Copyright Kenosha County 2012","scaleBarOptions":{"metricUnit":"Meters","metricLabel":"m","nonMetricUnit":"Feet","nonMetricLabel":"ft"},"legendOptions":{"operationalLayers":[{"id":"Streets","subLayerIds":[0,1]},{"id":"Water_Features","subLayerIds":[0]},{"id":"Cadastral","subLayerIds":[23,25,26,27,29,30]},{"id":"Basemap","subLayerIds":[]}]}}}

In server, I receive the following message:

Instance of the service 'Interactive_Mapping/Print.GPServer' crashed
Internal Server Error. Error handling service request : Could not service request

Has anyone else seen this type of problem? Anything stand out?

Thanks!
Jonathan

Outcomes