GeometryCollections are not supported in postgis

Description

Reported by Bladimir Moreno:
when i try to make a geoserver request this is the result:

<?xml version="1.0" ?>

  • <ServiceExceptionReport version="1.2.0" xmlns="http://www.opengis.net/ogc"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.opengis.net/ogc
    http://localhost:8081/geoserver/data/capabilities/wfs/1.0.0/OGC-exception.xs - http://localhost:8081/geoserver/data/capabilities/wfs/1.0.0/OGC-exception.xs
    d">
    <ServiceException>UNCAUGHT EXCEPTION: java.lang.NullPointerException at
    java.lang.Class.isAssignableFrom(Native Method) at
    org.geotools.feature.DefaultAttributeTypeFactory.createAttributeType(Default
    AttributeTypeFactory.java:37) at
    org.geotools.feature.AttributeTypeFactory.newAttributeType(AttributeTypeFact
    ory.java:73) at
    org.geotools.feature.AttributeTypeFactory.newAttributeType(AttributeTypeFact
    ory.java:86) at
    org.geotools.data.postgis.PostgisDataSource.getGeometryAttribute(PostgisData
    Source.java:465) at
    org.geotools.data.postgis.PostgisDataSource.makeSchema(PostgisDataSource.jav
    a:278) at
    org.geotools.data.postgis.PostgisDataSource.<init>(PostgisDataSource.java:17
    4) at
    org.geotools.data.postgis.PostgisDataSourceFactory.createDataSource(PostgisD
    ataSourceFactory.java:134) at
    org.geotools.data.DataSourceFinder.getDataSource(DataSourceFinder.java:38)
    at
    org.vfny.geoserver.config.TypeInfo.getTransactionDataSource(TypeInfo.java:22
    5) at
    org.vfny.geoserver.config.TypeInfo.getCapabilitiesXmlv14(TypeInfo.java:356)
    at org.vfny.geoserver.config.TypeInfo.getCapabilitiesXml(TypeInfo.java:302)
    at
    org.vfny.geoserver.responses.CapabilitiesResponse.addFeatureTypeInfo(Capabil
    itiesResponse.java:345) at
    org.vfny.geoserver.responses.CapabilitiesResponse.getXmlResponse(Capabilitie
    sResponse.java:145) at
    org.vfny.geoserver.servlets.Capabilities.doGet(Capabilities.java:94) at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
    org.vfny.geoserver.servlets.Dispatcher.doResponse(Dispatcher.java:191) at
    org.vfny.geoserver.servlets.Dispatcher.doGet(Dispatcher.java:145) at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
    FilterChain.java:247) at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
    ain.java:193) at
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
    va:256) at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
    eNext(StandardPipeline.java:643) at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
    va:191) at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
    eNext(StandardPipeline.java:643) at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at
    org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
    at
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
    ) at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
    eNext(StandardPipeline.java:643) at
    org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
    java:171) at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
    eNext(StandardPipeline.java:641) at
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
    ) at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
    eNext(StandardPipeline.java:641) at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
    :174) at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
    eNext(StandardPipeline.java:643) at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at
    org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
    at
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
    ction(Http11Protocol.java:392) at
    org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
    at
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
    a:619) at java.lang.Thread.run(Thread.java:534)</ServiceException>
    </ServiceExceptionReport>

Please Help me

Bladimir Moreno

–

Postgis DataSource isn't recognizing as a type, should just need to be added to the GeometryTypes map.

Environment

None

Activity

Show:
codehaus
April 10, 2015, 4:26 PM

CodeHaus Comment From: cholmes - Time: Mon, 15 Dec 2003 11:22:38 -0600
---------------------
<p>Resolved in 1.1.* branch. The jar is fixed in 1.0.<b>, but the GML writer is not sophisticated enough to handle all geometry collections, and is not worth fixing because a new working one is on 1.1.</b></p>

Fixed

Assignee

Unassigned

Reporter

codehaus

Triage

None

Fix versions

Affects versions

Components

Priority

Low