Hi list,
Im having a problem using ArcSDE as datastore. The first step, adding the ArcSDE as a datastore seems to work fine. I have a SDE-datastore available now in the DataStore ID dropdown menu.
But when I try to add a new feauture type, the features from the sde-datastore are showed me fine, but when I select on of them and click on New to generate a new feature i get and exception like this
The following exception was thrown:
java.lang.NullPointerException
And in tomcat logs appears the next:
04-may-2007 14:19:45 org.geotools.data.arcsde
.ArcSDEDataStoreFactory isAvailable
MÁS FINA: com.esri.sde.sdk.client.SeConnection is in place.
04-may-2007 14:19:45 org.geotools.data.arcsde.ArcSDEDataStoreFactory isAvailable
MÁS FINA: com.esri.sde.sdk.pe.PeCoordinateSystem is in place.
04-may-2007 14:19:45 org.geotools.data.arcsde.ArcSDEAdapter createAttributeTypes
ADVERTENCIA: Figured Row-ID Column named ‘OBJECTID’ for table SDE.ANTENAS
04-may-2007 14:19:45 org.geotools.data.arcsde.ArcSDEAdapter parseCRS
INFO: About to parse CRS for layer ANTENAS: PROJCS[“ED_1950_UTM_Zone_30N”,GEOGCS[“GCS_European_1950”,DATUM[“D_European_1950”,SPHEROID[“International_1924”, 6378388.0,297.0]],PRIMEM[“Greenwich”,0.0],UNIT[“Degree”,0.0174532925199433]],PROJECTION[“Transverse_Mercator”],PARAMETER[“False_Easting”,500000.0],PARAMETER[“False_Northing”, 0.0],PARAMETER[“Central_Meridian”,-3.0],PARAMETER[“Scale_Factor”,0.9996],PARAMETER[“Latitude_Of_Origin”,0.0],UNIT[“Meter”,1.0]]
04-may-2007 14:19:45 org.geotools.data.arcsde.ArcSDEAdapter parseCRS
INFO: Se CRS envelope: (-730491.0,3038322.0,1468533.0000000005,5237346.0)
04-may-2007 14:19:45 org.geotools.data.arcsde.ArcSDEAdapter parseCRS
FINA: ArcSDE CRS correctly parsed from layer ANTENAS
04-may-2007 14:19:45 org.geotools.data.arcsde.ArcSDEAdapter createAttributeTypes
FINA: Using arcsde 9 methods
04-may-2007 14:19:45 org.apache.struts.action.RequestProcessor processException
ADVERTENCIA: Unhandled Exception thrown: class java.lang.NullPointerException
04-may-2007 14:19:45 org.apache.catalina.core.StandardWrapperValve invoke
GRAVE: Servlet.service() para servlet action lanzó excepción
java.lang.NullPointerException
at java.lang.Class.isAssignableFrom (Native Method)
at org.geotools.feature.DefaultAttributeTypeFactory.createAttributeType(DefaultAttributeTypeFactory.java:114)
at org.geotools.feature.AttributeTypeFactory.newAttributeType(AttributeTypeFactory.java :78)
at org.geotools.data.arcsde.ArcSDEAdapter.createAttributeTypes(ArcSDEAdapter.java:425)
at org.geotools.data.arcsde.ArcSDEAdapter.fetchSchema(ArcSDEAdapter.java:287)
at org.geotools.data.arcsde.ArcSDEDataStore.getSchema (ArcSDEDataStore.java:202)
at org.vfny.geoserver.action.data.DataFeatureTypesNewAction.execute(DataFeatureTypesNewAction.java:83)
at org.vfny.geoserver.action.ConfigAction.execute(ConfigAction.java:98)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process (ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service (HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java :173)
at org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection (Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java :80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
Im using Oracle 9i, ArcSDE 9.1, Apache Tomcat 5.0.30 and geoserver 1.4.1. The data are stored in SDO_GEOMETRY.
Someone knows what’s causing this problem?
Thanks