GetFeature property selection does not seem to work with app-schema
-------------------------------------------------------------------

                 Key: GEOS-4157
                 URL: http://jira.codehaus.org/browse/GEOS-4157
             Project: GeoServer
          Issue Type: Bug
    Affects Versions: 2.1-beta1
            Reporter: Andrea Aime
            Assignee: Ben Caradoc-Davies


Trying the following request:

http://localhost:8080/geoserver/ows?service=wfs&version=1.1.0&request=GetFeature&typeName=csndc:OilSpill&propertyName=eventid

results in:

{code}
05 ott 12:33:01 ERROR [geoserver.ows] - 
java.lang.NullPointerException: http://www.emsa.europa.eu/csndc:OilSpillType is 
identified, null id not accepted
        at org.geotools.feature.type.Types.validate(Types.java:118)
        at org.geotools.feature.type.Types.validate(Types.java:80)
        at org.geotools.feature.AttributeImpl.<init>(AttributeImpl.java:51)
        at 
org.geotools.feature.ComplexAttributeImpl.<init>(ComplexAttributeImpl.java:35)
        at org.geotools.feature.FeatureImpl.<init>(FeatureImpl.java:57)
        at 
org.geotools.feature.AppSchemaFeatureFactoryImpl.createFeature(AppSchemaFeatureFactoryImpl.java:128)
        at 
org.geotools.feature.AttributeBuilder.create(AttributeBuilder.java:574)
        at 
org.geotools.feature.AttributeBuilder.build(AttributeBuilder.java:629)
        at 
org.geotools.data.complex.DataAccessMappingFeatureIterator.computeNext(DataAccessMappingFeatureIterator.java:699)
        at 
org.geotools.data.complex.AbstractMappingFeatureIterator.next(AbstractMappingFeatureIterator.java:188)
        at 
org.geotools.data.complex.MappingFeatureCollection.size(MappingFeatureCollection.java:300)
        at org.geoserver.wfs.GetFeature.run(GetFeature.java:372)
        at 
org.geoserver.wfs.DefaultWebFeatureService.getFeature(DefaultWebFeatureService.java:115)
{code}

At first I thought this was happening because the GetFeature code is not 
amending the request. Normally in simple features we add all required 
attributes to the lot before executing the query, I guess the same is not 
happening for app-schema.

However, even including all the required attributes in the request:

http://localhost:8080/geoserver/ows?service=wfs&version=1.1.0&request=GetFeature&typeName=csndc:OilSpill&propertyName=eventid,origin,geometry,polygons,center,timeStamp

I still get the same error. Rings any bell?


-- 
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

        

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to