Local Server Permissions

4836
3
03-06-2014 08:36 AM
MarkMalo
New Contributor
I am having a problem using the ArcGIS local server in Java.  (in .NET it works fine)
If I run my Java app, when the server tries to start up, it fails do to permissions, I cannot find anywhere to set permissions for the running local runtime server.
I am running my IDE as Administrator (just like I would do for Visual Studio), and I have administrative rights on my system (this is a Windows 8.1 machine).

Here is the logging that I get:

Java version : 1.7.0_51 (Oracle Corporation) amd64
Rendering engine : DirectX
Starting server
OS Name: Windows 8
"C:\Users\Mark\Documents\ArcGIS\Runtime Deployments\mark1.0\ArcGISRuntime10.2\LocalServer64\bin\RuntimeLocalServer.exe"
appPid=9532
C:\Users\Mark\Documents\ArcGIS\Runtime Deployments\mark1.0\ArcGISRuntime10.2\LocalServer64\bin
'apppid' = '9532'
'cleanuponshutdown' = ''
'crashdump' = 'full'
'debugtraffic' = ''
'enablehtmlviews' = ''
'logging' = ''
'urlprefix' = 'none'
datadir does not exist, creating: "C:\Users\Mark\AppData\Local\Temp\arcgisruntime_8512"
Message : DataDir : C:\Users\Mark\AppData\Local\Temp\arcgisruntime_8512
Enabling logging
Message : Log file path : C:\Users\Mark\AppData\Local\Temp\ArcGISRuntimeLogs\arcgisruntime_8512.log
Message : AppDataLocalDir : C:\Users\Mark\AppData\Local\ArcGISRuntime
Message : AppDataRoamingDir : C:\Users\Mark\AppData\Local\ArcGISRuntime\Roaming
Message : AppDataCommonDir : C:\Users\Mark\AppData\Local\ArcGISRuntime\Common
Message : MyDocumentsDir : C:\Users\Mark\AppData\Local\ArcGISRuntime\Documents
Message : CrashDumpPath : C:\Users\Mark\AppData\Local\Temp\ArcGISRuntimeErrorReports
Message : Licensing level : standard:standard:0
2014-03-06 13:14:53,902: INFO  rid=    'server'  WebServer - Starting server on port 50000

2014-03-06 13:14:53,904: INFO  rid=    'server'  PionScheduler - Starting thread scheduler

2014-03-06 13:14:53,905: INFO  rid=    'server'  WebServer - Added request handler for HTTP resource: /outputdir

2014-03-06 13:14:53,905: INFO  rid=    'server'  WebServer - Loaded static web service for resource (/outputdir)

2014-03-06 13:14:53,905: INFO  rid=    'server'  AdminWebService - Creating.

2014-03-06 13:14:53,905: INFO  rid=    'server'  WebServer - Added request handler for HTTP resource: /arcgis/rest

2014-03-06 13:14:53,905: INFO  rid=    'server'  WebServer - Loaded static web service for resource (/arcgis/rest)

2014-03-06 13:14:53,905: INFO  rid=    'server'  WebServer - Added request handler for HTTP resource: /static

2014-03-06 13:14:53,906: INFO  rid=    'server'  WebServer - Loaded static web service for resource (/static)

Message : Server version : 10.2.0.3607
Message : Server listening on : http://localhost.:50000/arcgis/rest
2014-03-06 13:14:53,921: INFO  rid=1   'server'  AdminWebService - POST admin/createService

2014-03-06 13:14:53,925: INFO  rid=1   'server'  mpk - Creating.

2014-03-06 13:14:53,925: INFO  rid=1   'server'  mpk - Create

2014-03-06 13:14:53,925: INFO  rid=1   'server'  mpk_host - Creating.

2014-03-06 13:14:53,925: INFO  rid=1   'server'  mpk_host - Launching.

2014-03-06 13:14:53,928: INFO  rid=1   'server'  mpk_host - Launched process 984

2014-03-06 13:14:54,605: WARN  rid=    'server'  mpk_host - crashdump path: C:/Users/Mark/AppData/Local/Temp/ArcGISRuntimeErrorReports/arcgisruntime_10.2.0.3607_service_20140306_181454.dmp

2014-03-06 13:14:54,606: INFO  rid=    'server'  mpk_host - Worker process exited unexpectedly.

2014-03-06 13:14:54,608: WARN  rid=1   'server'  mpk_host - Worker process 'USA.mpk_host' exited while attempting to service request (attempt 1 of 1): endpoint='admin' headers={} params={filePath=C:\Program Files (x86)\ArcGIS SDKs\java10.2\sdk\samples\data\dynamiclayers\USA.mpk, maxRecords=1000, name=USA.mpk, outputDir=C:\Users\Mark\AppData\Local\Temp\arcgisruntime_8512\USA.mpk, type=MapServer, virtualDir=http://localhost.:50000/outputdir/USA.mpk} res='create' post=0 Crash dump path=C:\Users\Mark\AppData\Local\Temp\ArcGISRuntimeErrorReports\arcgisruntime_10.2.0.3607_service_20140306_181454.dmp

2014-03-06 13:14:54,608: INFO  rid=1   'server'  mpk - SOC exited handled called.

2014-03-06 13:14:54,608: WARN  rid=1   'server'  mpk - Service going to 'crashed' state.

2014-03-06 13:14:54,608: INFO  rid=1   'server'  mpk - Shutdown while being created

2014-03-06 13:14:54,608: INFO  rid=1   'server'  mpk_host - Terminate

!message:socexit:{"error":"Worker process 'USA.mpk_host' exited while attempting to service request (attempt 1 of 1): endpoint='admin' headers={} params={filePath=C:\\Program Files (x86)\\ArcGIS SDKs\\java10.2\\sdk\\samples\\data\\dynamiclayers\\USA.mpk, maxRecords=1000, name=USA.mpk, outputDir=C:\\Users\\Mark\\AppData\\Local\\Temp\\arcgisruntime_8512\\USA.mpk, type=MapServer, virtualDir=http://localhost.:50000/outputdir/USA.mpk} res='create' post=0 Crash dump path=C:\\Users\\Mark\\AppData\\Local\\Temp\\ArcGISRuntimeErrorReports\\arcgisruntime_10.2.0.3607_service_20140306_181454.dmp","name":"USA.mpk","processId":-1}
2014-03-06 13:14:54,608: WARN  rid=1   'server'  AdminWebService - Service create failed. Worker process 'USA.mpk_host' exited while attempting to service request (attempt 1 of 1): endpoint='admin' headers={} params={filePath=C:\Program Files (x86)\ArcGIS SDKs\java10.2\sdk\samples\data\dynamiclayers\USA.mpk, maxRecords=1000, name=USA.mpk, outputDir=C:\Users\Mark\AppData\Local\Temp\arcgisruntime_8512\USA.mpk, type=MapServer, virtualDir=http://localhost.:50000/outputdir/USA.mpk} res='create' post=0 Crash dump path=C:\Users\Mark\AppData\Local\Temp\ArcGISRuntimeErrorReports\arcgisruntime_10.2.0.3607_service_20140306_181454.dmp

2014-03-06 13:14:54,608: INFO  rid=1   'server'  mpk - Shutdown while being created

2014-03-06 13:14:54,608: INFO  rid=1   'server'  mpk_host - Terminate

2014-03-06 13:14:54,608: INFO  rid=1   'server'  mpk_host - Destructor - clearing SOC handle

Stopping server
2014-03-06 13:14:57,522: INFO  rid=2   'server'  AdminWebService - POST admin/shutdown?f=json

2014-03-06 13:14:57,524: INFO  rid=    'server'  ServerMain - Shutting down

2014-03-06 13:14:57,525: INFO  rid=    'server'  ServerMain - Terminating web services

2014-03-06 13:14:57,526: INFO  rid=    'server'  ServerMain - Deleting data directory C:/Users/Mark/AppData/Local/Temp/arcgisruntime_8512

2014-03-06 13:14:57,529: INFO  rid=    'server'  ServerMain - 5 filesystem object(s) removed.

2014-03-06 13:14:57,530: INFO  rid=    'server'  ServerMain - Server process exiting.

Local server exited, code: 0

---
I have opened the crashdump in VS and this is what I get:


Dump Summary
------------
Dump File: arcgisruntime_10.2.0.3607_service_20140306_181454.dmp : C:\Users\Mark\AppData\Local\Temp\ArcGISRuntimeErrorReports\arcgisruntime_10.2.0.3607_service_20140306_181454.dmp
Last Write Time: 3/6/2014 1:14:54 PM
Process Name: RuntimeLocalServer.exe : C:\Users\Mark\Documents\ArcGIS\Runtime Deployments\mark1.0\ArcGISRuntime10.2\LocalServer64\bin\RuntimeLocalServer.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: Present

System Information
------------------
OS Version: 6.3.9600
CLR Version(s):

---

I have scoured the Internet, but failed to find a solution.  Any help would be greatly appreciated.

TIA,
Mark A. Malo
0 Kudos
3 Replies
CarlosColón-Maldonado
Occasional Contributor III
I am having a problem using the ArcGIS local server in Java.  (in .NET it works fine)
If I run my Java app, when the server tries to start up, it fails do to permissions, I cannot find anywhere to set permissions for the running local runtime server.
I am running my IDE as Administrator (just like I would do for Visual Studio), and I have administrative rights on my system (this is a Windows 8.1 machine).
_ _ _

2014-03-06 13:14:54,605: WARN  rid=    'server'  mpk_host - crashdump path: C:/Users/Mark/AppData/Local/Temp/ArcGISRuntimeErrorReports/arcgisruntime_10.2.0.3607_service_20140306_181454.dmp

2014-03-06 13:14:54,606: INFO  rid=    'server'  mpk_host - Worker process exited unexpectedly.
_ _ _

Crash dump path=C:\Users\Mark\AppData\Local\Temp\ArcGISRuntimeErrorReports\arcgisruntime_10.2.0.3607_service_20140306_181454.dmp.


I am seeing identical behavior in RHELS when logged unto a client box using a domain account, where it does not occur when logged in as local user on the same box, so I believe it's related per my post. My domain administrator says that my domain account and my local user accounts have identical privileges and it puzzles him.

I have opened the crashdump in VS ...

By "VS", did you mean Visual Studio? Could you show on this post the steps you used to view the dump file? I haven't found a way do it, and I'll appreciate it.
0 Kudos
MarkMalo
New Contributor
Yeah, Visual Studio (VS).  So, all I did was right-click on the .DMP file and choose OPEN WITH, then selected a version of Visual Studio (I think I used 2010) and then Viola! legible.

Hope this helps.

Mark
0 Kudos
MarkMalo
New Contributor
I am using a local admin account (and even tried a different local user/admin account) what I am curious about right now is this:
"endpoint='admin'" <-- I see this when the service fails.  I would think the endpoint should be something like localhost or 127.0.0.1.

So...where does this get configured, because maybe that is the problem.

Mark
0 Kudos