[Geoserver-devel] [jira] Created: (GEOS-1443) NPE when configuring a new feature type which is a table in PostGIS having geometry type as CURVEPOLYGON

NPE when configuring a new feature type which is a table in PostGIS having geometry type as CURVEPOLYGON
--------------------------------------------------------------------------------------------------------

                 Key: GEOS-1443
                 URL: http://jira.codehaus.org/browse/GEOS-1443
             Project: GeoServer
          Issue Type: Bug
          Components: PostGIS
    Affects Versions: 1.5.3
         Environment: Operating System : Windows XP
Java Version : 1.5
            Reporter: Ganesh Jothikumar
            Assignee: Andrea Aime

There is a table in PostGIS database which has a geometry cloumn which is of type CURVEPOLYGON. The meta data is also present in teh geometry_columns table. Now when we try to create a new feature type above that table we gat teh following NullPointerException. Stack trace is present below.

26 Oct 15:06:48 WARN [action.RequestProcessor] - Unhandled Exception thrown: class java.lang.NullPointerException
2007-10-26 15:06:48.296::WARN: EXCEPTION
javax.servlet.ServletException
  at org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535)
  at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433)
  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.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:445)
  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1050)
  at org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:103)
  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1041)
  at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:354)
  at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:226)
  at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:627)
  at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:149)
  at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:123)
  at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:141)
  at org.mortbay.jetty.Server.handle(Server.java:269)
  at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:430)
  at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:701)
  at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:617)
  at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:199)
  at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:339)
  at org.mortbay.jetty.nio.HttpChannelEndPoint.run(HttpChannelEndPoint.java:270)
  at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)
2007-10-26 15:06:48.296::WARN: Nested in javax.servlet.ServletException:
java.lang.NullPointerException
  at java.lang.Class.isAssignableFrom(Native Method)
  at org.geotools.feature.DefaultAttributeTypeFactory.createAttributeType(DefaultAttributeTypeFactory.java:155)
  at org.geotools.feature.AttributeTypeFactory.newAttributeType(AttributeTypeFactory.java:93)
  at org.geotools.data.postgis.PostgisDataStore.getGeometryAttribute(PostgisDataStore.java:1108)
  at org.geotools.data.postgis.PostgisDataStore.buildAttributeType(PostgisDataStore.java:961)
  at org.geotools.data.jdbc.JDBC1DataStore.buildSchema(JDBC1DataStore.java:1202)
  at org.geotools.data.postgis.PostgisDataStore.buildSchema(PostgisDataStore.java:657)
  at org.geotools.data.jdbc.FeatureTypeHandler.getFeatureTypeInfo(FeatureTypeHandler.java:197)
  at org.geotools.data.jdbc.FeatureTypeHandler.getSchema(FeatureTypeHandler.java:165)
  at org.geotools.data.jdbc.JDBC1DataStore.getSchema(JDBC1DataStore.java:365)
  at org.geotools.data.postgis.PostgisDataStore.getSchema(PostgisDataStore.java:1902)
  at org.vfny.geoserver.action.data.DataFeatureTypesNewAction.execute(DataFeatureTypesNewAction.java:70)
  at org.vfny.geoserver.action.ConfigAction.execute(ConfigAction.java:102)
  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.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:445)
  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1050)
  at org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:103)
  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1041)
  at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:354)
  at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:226)
  at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:627)
  at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:149)
  at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:123)
  at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:141)
  at org.mortbay.jetty.Server.handle(Server.java:269)
  at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:430)
  at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:701)
  at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:617)
  at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:199)
  at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:339)
  at org.mortbay.jetty.nio.HttpChannelEndPoint.run(HttpChannelEndPoint.java:270)
  at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)
2007-10-26 15:06:48.296::WARN: /geoserver/config/data/typeNewSubmit.do:
java.lang.NullPointerException
  at java.lang.Class.isAssignableFrom(Native Method)
  at org.geotools.feature.DefaultAttributeTypeFactory.createAttributeType(DefaultAttributeTypeFactory.java:155)
  at org.geotools.feature.AttributeTypeFactory.newAttributeType(AttributeTypeFactory.java:93)
  at org.geotools.data.postgis.PostgisDataStore.getGeometryAttribute(PostgisDataStore.java:1108)
  at org.geotools.data.postgis.PostgisDataStore.buildAttributeType(PostgisDataStore.java:961)
  at org.geotools.data.jdbc.JDBC1DataStore.buildSchema(JDBC1DataStore.java:1202)
  at org.geotools.data.postgis.PostgisDataStore.buildSchema(PostgisDataStore.java:657)
  at org.geotools.data.jdbc.FeatureTypeHandler.getFeatureTypeInfo(FeatureTypeHandler.java:197)
  at org.geotools.data.jdbc.FeatureTypeHandler.getSchema(FeatureTypeHandler.java:165)
  at org.geotools.data.jdbc.JDBC1DataStore.getSchema(JDBC1DataStore.java:365)
  at org.geotools.data.postgis.PostgisDataStore.getSchema(PostgisDataStore.java:1902)
  at org.vfny.geoserver.action.data.DataFeatureTypesNewAction.execute(DataFeatureTypesNewAction.java:70)
  at org.vfny.geoserver.action.ConfigAction.execute(ConfigAction.java:102)
  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.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:445)
  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1050)
  at org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:103)
  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1041)
  at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:354)
  at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:226)
  at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:627)
  at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:149)
  at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:123)
  at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:141)
  at org.mortbay.jetty.Server.handle(Server.java:269)
  at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:430)
  at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:701)
  at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:617)
  at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:199)
  at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:339)
  at org.mortbay.jetty.nio.HttpChannelEndPoint.run(HttpChannelEndPoint.java:270)
  at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)
2007-10-26 15:06:48.296::WARN: /geoserver/config/data/typeNewSubmit.do
java.lang.NullPointerException
  at java.lang.Class.isAssignableFrom(Native Method)
  at org.geotools.feature.DefaultAttributeTypeFactory.createAttributeType(DefaultAttributeTypeFactory.java:155)
  at org.geotools.feature.AttributeTypeFactory.newAttributeType(AttributeTypeFactory.java:93)
  at org.geotools.data.postgis.PostgisDataStore.getGeometryAttribute(PostgisDataStore.java:1108)
  at org.geotools.data.postgis.PostgisDataStore.buildAttributeType(PostgisDataStore.java:961)
  at org.geotools.data.jdbc.JDBC1DataStore.buildSchema(JDBC1DataStore.java:1202)
  at org.geotools.data.postgis.PostgisDataStore.buildSchema(PostgisDataStore.java:657)
  at org.geotools.data.jdbc.FeatureTypeHandler.getFeatureTypeInfo(FeatureTypeHandler.java:197)
  at org.geotools.data.jdbc.FeatureTypeHandler.getSchema(FeatureTypeHandler.java:165)
  at org.geotools.data.jdbc.JDBC1DataStore.getSchema(JDBC1DataStore.java:365)
  at org.geotools.data.postgis.PostgisDataStore.getSchema(PostgisDataStore.java:1902)
  at org.vfny.geoserver.action.data.DataFeatureTypesNewAction.execute(DataFeatureTypesNewAction.java:70)
  at org.vfny.geoserver.action.ConfigAction.execute(ConfigAction.java:102)
  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.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:445)
  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1050)
  at org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:103)
  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1041)
  at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:354)
  at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:226)
  at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:627)
  at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:149)
  at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:123)
  at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:141)
  at org.mortbay.jetty.Server.handle(Server.java:269)
  at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:430)
  at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:701)
  at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:617)
  at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:199)
  at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:339)
  at org.mortbay.jetty.nio.HttpChannelEndPoint.run(HttpChannelEndPoint.java:270)
  at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira