POST
|
Hi, I recently incorporated a map into an existing project and I am receiving a null pointer exception when trying to load a wms layer. I found that the project has a dependency on a jar called "xerces.jar". This jar has a resource in it that sets the SAXParserFactory implementation to be org.apache.xerces.jaxp.SAXParserFactoryImpl. When this jar is not included, the SAXParserFactory implementation that is used is com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl and the wms layer loads fine. I was wondering if anyone has encountered this issue and had a work around. I am unable to remove the dependency from the project. Thanks. Here is the stack trace: java.lang.NullPointerException at com.esri.core.internal.tasks.f.a.a(Unknown Source) at com.esri.core.internal.tasks.f.a.endDocument(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source) at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at com.esri.core.internal.tasks.f.b.a(Unknown Source) at com.esri.map.WmsDynamicMapServiceLayer.internalInit(Unknown Source) at com.esri.map.Layer$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:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722)
... View more
01-03-2014
07:34 AM
|
0
|
0
|
1969
|
POST
|
Hi, I need to calculate the area of a geometry whose spatial reference is WGS84. I did not find a geodesicArea method on the GeometryEngine class, so I went to use the calculateArea2D method in the Geometry class. This method says: "If the spatial reference is a Geographic Coordinate System (WGS84) then the 2D area calculation is defined in angular units". I want to convert the output of this method to acres, but I am having trouble determining the angular unit of the output. AngularUnit.Code lists 10 different angular units. Does anyone know what the unit is for the output of the calculateArea2D method? Thanks
... View more
11-20-2012
09:04 AM
|
0
|
1
|
4126
|
POST
|
Hi, I am developing a web application that uses map.centerAt() to pan the user to different search results. While debugging my application, I noticed that from time to time my base map would disappear. I created a sample app that uses map.centerAt() to pan the map between LA and New York when the map is clicked. I inserted the html below and also attached it as a txt file. What I am seeing is that map.centerAt() works well when the user is zoomed out, but if they are zoomed in past level 17 the map goes white and the tiled service flickers when I pan with the mouse. I was wondering if anyone else has experienced this behavior. I am only seeing this in IE9. Thanks! [HTML]<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=7,IE=9" /> <!--The viewport meta tag is used to improve the presentation and behavior of the samples on iOS devices--> <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"/> <title>Test Center At</title> <link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.0/js/dojo/dijit/themes/claro/claro.css"> <script type="text/javascript">djConfig = { parseOnLoad:true }</script> <script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=3.0"></script> <script type="text/javascript" charset="utf-8"> dojo.require("esri.map"); var map; var lastPoint; function init() { map = new esri.Map("map"); dojo.connect(map,"onLoad",mapLoaded); var tiledMapServiceLayer = new esri.layers.ArcGISTiledMapServiceLayer("http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"); map.addLayer(tiledMapServiceLayer); } function mapLoaded() { <!-- Create the two points to pan between --> var laPoint = new esri.geometry.Point(-13163009.16521190,4035986.6473330655, map.spatialReference); var nyPoint = new esri.geometry.Point(-8238434.715895471,4970328.593163353, map.spatialReference); lastPoint = laPoint; dojo.connect(map, "onClick", function(evt) { if(lastPoint == laPoint) { lastPoint = nyPoint; map.centerAt(nyPoint); } else { lastPoint = laPoint; map.centerAt(laPoint); } }); } dojo.addOnLoad(init); </script> </head> <body class="claro"> <div style="position:relative;"> <div id="map" style="width:1024px; height:512px; border:1px solid #000;"> </div> </div> </body> </html>[/HTML]
... View more
07-27-2012
06:40 AM
|
0
|
1
|
639
|
POST
|
Hi, I published a service on ArcGIS Server where I specified an order on my layer's fields in my mxd. When I execute an identify task using the android sdk, I noticed that my identify results do not maintain the ordering of the returned fields and instead return the attributes in what appears to be a HashMap. I noticed that the json returned by the identify service does have the fields ordered properly for each identify result. I was just wondering if this was a known issue that will be fixed in later releases, or if there is another method I am suppose to be using to acquire the ordering of fields for and identify result. Thanks, Dan
... View more
04-27-2012
06:39 AM
|
0
|
4
|
2471
|
POST
|
Hello, I am working on an application that makes use of a Server Object Extension that has an operation that returns an array of graphics that is formatted as json. When I was using the beta sdk I was able to call Graphic.fromJson() on each json object in the array and would get a graphic back. I have updated to the new version of the sdk and now Graphic.fromJson() always returns null for the same response from the SOE. I have even created some simple json strings that contain attributes and geometry and I receive null for them also. For sanity checking, I have tested the FeatureSet.fromJson() method and GeometryEngine.jsonToGeometry() to make sure that I am setting up a valid JsonParser and they both work. Are there other required values that need to be in the json for a graphic other than attributes and geometry? Thanks.
... View more
01-03-2012
06:20 AM
|
0
|
1
|
1109
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|