ArcGIS Server Printing Tool

4250
3
Jump to solution
10-22-2015 02:46 AM
DEVAPP
by
New Contributor III

Hi at all.

I have develop a web application Javascript that use the ArcGIS Server Printing Tool for print a map.

My ArcGIS Server are deploy into a back end server and web app on front end server.

The back end have the open the comunication with arcgis online on internet.

When i try to print using tool the function crash and the log of server is this:

Last Write Time:        14/10/2015 10:51:58
Process Name:   ArcSOC.exe : E:\Program Files\ArcGIS\Server\bin\ArcSOC.exe
Process Architecture:   x64
Exception Code: 0xC0000005
Exception Information:  The thread tried to read from or write to a virtual address for which it does not have the appropriate access.
Heap Information:       Not Present

Any help please?

thanks


Tags (1)
1 Solution

Accepted Solutions
ChrisSmith7
Frequent Contributor

Can you try just hitting it through the service URL with some test data? E.g.

Here's the JSON string I'm using:

{
  "mapOptions" : {
  "showAttribution" : true,
  "extent" : {
  "xmin" : -9580490.966797964,
  "ymin" : 4540188.193338305,
  "xmax" : -9493658.502665972,
  "ymax" : 4678080.592364816,
  "spatialReference" : {
  "wkid" : 102100
  }
  },
  "spatialReference" : {
  "wkid" : 102100
  },
  "scale" : 577790.5542889922
  },
  "operationalLayers" : [{
  "id" : "World_Ocean_Base_5811",
  "title" : "World_Ocean_Base_5811",
  "opacity" : 1,
  "minScale" : 591657527.591555,
  "maxScale" : 9027.977411,
  "url" : "http://services.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Base/MapServer"
  }, {
  "id" : "LOJIC_LandRecords_Louisville_3326",
  "title" : "LOJIC_LandRecords_Louisville",
  "opacity" : 0.24,
  "minScale" : 0,
  "maxScale" : 0,
  "url" : "http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_LandRecords_Louisville/M...",
  "visibleLayers" : [0, 2]
  }, {
  "id" : "World_Ocean_Reference_1604",
  "title" : "World_Ocean_Reference_1604",
  "opacity" : 1,
  "minScale" : 591657527.591555,
  "maxScale" : 9027.977411,
  "url" : "http://services.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Reference/MapServer"
  }, {
  "id" : "map_graphics",
  "opacity" : 1,
  "minScale" : 0,
  "maxScale" : 0,
  "featureCollection" : {
  "layers" : []
  }
  }
  ],
  "exportOptions" : {
  "outputSize" : [800, 1100],
  "dpi" : 96
  },
  "layoutOptions" : {
  "titleText" : "Louisville – Land Records, Landscape PDF",
  "scaleBarOptions" : {
  "metricUnit" : "esriKilometers",
  "metricLabel" : "km",
  "nonMetricUnit" : "esriMiles",
  "nonMetricLabel" : "mi"
  },
  "legendOptions" : {
  "operationalLayers" : []
  }
  }
}

This should output something like:

{
 "results": [
  {
  "paramName": "Output_File",
  "dataType": "GPDataFile",
  "value": {
  "url": "https://yourGIS.server.com/arcgis/rest/directories/arcgisoutput/Utilities/PrintingTools_GPServer/_ag..."
  }
  }
 ],
 "messages": [
  
 ]
}

Which would be the output of your file. This should let you debug more easily - let me know what happens!

View solution in original post

3 Replies
ChrisSmith7
Frequent Contributor

What version of ArcGIS Server are you using?

There's quite a few reasons this could happen - basically, it's trying to access something it shouldn't (buffer overrun). Did you install on a clean machine - were there any other versions of ArcGIS on the machine before? Did you, by chance, install/update antivirus software recently?

0 Kudos
DEVAPP
by
New Contributor III

Hi Chris,

the server have ArcGIS Server 10.2.2. We have open a comunication with REST folder AGOL. The AGS are istalled on a clean machine. The server have a McAfee enterprise and Antispyware Enterprise.

0 Kudos
ChrisSmith7
Frequent Contributor

Can you try just hitting it through the service URL with some test data? E.g.

Here's the JSON string I'm using:

{
  "mapOptions" : {
  "showAttribution" : true,
  "extent" : {
  "xmin" : -9580490.966797964,
  "ymin" : 4540188.193338305,
  "xmax" : -9493658.502665972,
  "ymax" : 4678080.592364816,
  "spatialReference" : {
  "wkid" : 102100
  }
  },
  "spatialReference" : {
  "wkid" : 102100
  },
  "scale" : 577790.5542889922
  },
  "operationalLayers" : [{
  "id" : "World_Ocean_Base_5811",
  "title" : "World_Ocean_Base_5811",
  "opacity" : 1,
  "minScale" : 591657527.591555,
  "maxScale" : 9027.977411,
  "url" : "http://services.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Base/MapServer"
  }, {
  "id" : "LOJIC_LandRecords_Louisville_3326",
  "title" : "LOJIC_LandRecords_Louisville",
  "opacity" : 0.24,
  "minScale" : 0,
  "maxScale" : 0,
  "url" : "http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_LandRecords_Louisville/M...",
  "visibleLayers" : [0, 2]
  }, {
  "id" : "World_Ocean_Reference_1604",
  "title" : "World_Ocean_Reference_1604",
  "opacity" : 1,
  "minScale" : 591657527.591555,
  "maxScale" : 9027.977411,
  "url" : "http://services.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Reference/MapServer"
  }, {
  "id" : "map_graphics",
  "opacity" : 1,
  "minScale" : 0,
  "maxScale" : 0,
  "featureCollection" : {
  "layers" : []
  }
  }
  ],
  "exportOptions" : {
  "outputSize" : [800, 1100],
  "dpi" : 96
  },
  "layoutOptions" : {
  "titleText" : "Louisville – Land Records, Landscape PDF",
  "scaleBarOptions" : {
  "metricUnit" : "esriKilometers",
  "metricLabel" : "km",
  "nonMetricUnit" : "esriMiles",
  "nonMetricLabel" : "mi"
  },
  "legendOptions" : {
  "operationalLayers" : []
  }
  }
}

This should output something like:

{
 "results": [
  {
  "paramName": "Output_File",
  "dataType": "GPDataFile",
  "value": {
  "url": "https://yourGIS.server.com/arcgis/rest/directories/arcgisoutput/Utilities/PrintingTools_GPServer/_ag..."
  }
  }
 ],
 "messages": [
  
 ]
}

Which would be the output of your file. This should let you debug more easily - let me know what happens!