Java version : 1.7.0_17 (Oracle Corporation) x86
Rendering engine : DirectX
Starting server
OS Name: Windows 7
"C:\Program Files\ArcGIS
SDKs\java10.1.1\arcgisruntime10.1.1\LocalServer32\bin\RuntimeLocalServer.exe"
appPid=496
AppStateDir=C:\eclipse\workspace\MapManager\res\map
C:\Program Files\ArcGIS SDKs\java10.1.1\ArcGISRuntime10.1.1\LocalServer32\bin
'apppid' = '496'
'appstatedir' = 'C:\eclipse\workspace\MapManager\res\map'
'cleanuponshutdown' = ''
'crashdump' = 'mini'
'enablehtmlviews' = ''
'maxport' = '60000'
'minport' = '50000'
'urlprefix' = 'random'
datadir does not exist, creating:
"C:\Users\CARLOS~1.COL\AppData\Local\Temp\arcgisruntime_4348"
Message : DataDir :
C:\Users\CARLOS~1.COL\AppData\Local\Temp\arcgisruntime_4348
Message : Logging disabled
Message : AppDataLocalDir : C:\eclipse\WORKSP~1\MAPMAN~1\res\map\Local
Message : AppDataRoamingDir : C:\eclipse\WORKSP~1\MAPMAN~1\res\map\Roaming
Message : AppDataCommonDir : C:\eclipse\WORKSP~1\MAPMAN~1\res\map\Common
Message : MyDocumentsDir : C:\eclipse\WORKSP~1\MAPMAN~1\res\map\Documents
Message : CrashDumpPath :
C:\Users\CARLOS~1.COL\AppData\Local\Temp\ArcGISRuntimeErrorReports
Message : Running using developer license
Message : Licensing level : standard:standard:0
Message : Server version : 10.1.1.3298
Message : Server listening on : http://127.0.0.1:50000/ZXZJNF/arcgis/rest
Java version : 1.7.0_17 (Oracle Corporation) amd64
Rendering engine : OpenGL
Info: XInitThreads() called for concurrent Thread support
Starting server
OS Name: Linux
/home/epguser/arcgis/runtime_sdk/java10.1.1/ArcGISRuntime10.1.1/LocalServerLx/bin/runtimeLauncher
appPid=15590
onLinux
AppStateDir=Z:/media/data/workspace/MapManager/res/map
/home/epguser/arcgis/runtime_sdk/java10.1.1/ArcGISRuntime10.1.1/LocalServerLx/bin
'apppid' = '15590'
'appstatedir' = 'Z:/media/data/workspace/MapManager/res/map'
'cleanuponshutdown' = ''
'crashdump' = 'mini'
'datadir' = '/tmp'
'enablehtmlviews' = ''
'maxport' = '60000'
'minport' = '50000'
'onlinux' = ''
'urlprefix' = 'random'
datadir does not exist, creating: "Z:\tmp\arcgisruntime_8"
Message : DataDir : Z:\tmp\arcgisruntime_8
Message : Logging disabled
Message : AppDataLocalDir : Z:\media\data\WO~0JJXE\MA~REKI5\res\map\Local
Message : AppDataRoamingDir : Z:\media\data\WO~0JJXE\MA~REKI5\res\map\Roaming
Message : AppDataCommonDir : Z:\media\data\WO~0JJXE\MA~REKI5\res\map\Common
Message : MyDocumentsDir : Z:\media\data\WO~0JJXE\MA~REKI5\res\map\Documents
Message : CrashDumpPath : Z:\tmp\ArcGISRuntimeErrorReports
Message : Running using developer license
Message : Licensing level : standard:standard:0
Message : Server version : 10.1.1.3265
Message : Server listening on : http://127.0.0.1:50000/GFrhD4/arcgis/rest
java.lang.NullPointerException
at com.esri.map.LayerInfo.addLayer(Unknown Source)
at com.esri.map.ArcGISDynamicMapServiceLayer.a(Unknown Source)
at com.esri.map.ArcGISDynamicMapServiceLayer$1.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
Solved! Go to Solution.
1. If the addition of rasters to a mosaic dataset contained by a geodatabase that was extracted to a temporary folder from an map package is not preserved in the map used but on the temporary location, how do I preserve the changes that were made on the temporary folder for more than a session? Is this what the ArcGISRuntime.setAppDataDirectory(String) method does? As a side note, our users will not have Arc Map available to re-package map documents after adding rasters, and they expect our application to preserve any raster data they load over the life of the application, until they choose to remove it.
2. If there is no easier way to have two ArcGISLocalDynamicMapServiceLayer objects point to the same geodatabase that contain a mosaic dataset they reference, what approach could I use to only display the Image sublayer of the mosaic layer on one window and only display the Footprint sublayer of that same mosaic layer of that same ArcGISLocalDynamicMapServiceLayer object on another window? I'm guessing this would circumvent the issue and would clarify why I need to have two map views of data from a shared geodatabase in ArcGIS Runtime.
...working with Dynamic Workspaces. These can be used for altering the content of a local map package on the fly. For example, you might have an .mpk to which you want to add a shapefile.
1. If the addition of rasters to a mosaic dataset contained by a geodatabase that was extracted to a temporary folder from an map package is not preserved in the map used but on the temporary location, how do I preserve the changes that were made on the temporary folder for more than a session? Is this what the ArcGISRuntime.setAppDataDirectory(String) method does? As a side note, our users will not have Arc Map available to re-package map documents after adding rasters, and they expect our application to preserve any raster data they load over the life of the application, until they choose to remove it.
2. If there is no easier way to have two ArcGISLocalDynamicMapServiceLayer objects point to the same geodatabase that contain a mosaic dataset they reference, what approach could I use to only display the Image sublayer of the mosaic layer on one window and only display the Footprint sublayer of that same mosaic layer of that same ArcGISLocalDynamicMapServiceLayer object on another window? I'm guessing this would circumvent the issue and would clarify why I need to have two map views of data from a shared geodatabase in ArcGIS Runtime.