On 07/12/10 20:18, will.rog...@stfc.ac.uk wrote:
> The exception I get is:
> <ows:ExceptionText>
> org.geotools.feature.IllegalAttributeException:http://www.opengis.net/gml:GeometricPrimitivePropertyType
>  not nillable:null value:null
> http://www.opengis.net/gml:GeometricPrimitivePropertyType not nillable
> </ows:ExceptionText>
[...]
> Does anyone have any idea what’s wrong with this?  I can provide more details 
> if necessary.

This error is caused by mapping a null from your database into a 
mandatory property. hy-p:geometry is a mandatory property of 
hy-p:SurfaceWaterType. The error is telling you that this property is 
not nillable and has a null value.

What do you get for this?
select count(1) from yourtablename where isnull(the_geom);

app-schema supports conditional mappings of properties (even choosing 
between xlink:href and values) but I am not sure this will work in your 
case because geometries are handled as atomic types by GeoServer and 
app-schema has only limited ability to manipulate them:
http://docs.geoserver.org/latest/en/user/data/app-schema/polymorphism.html

-- 
Ben Caradoc-Davies <ben.caradoc-dav...@csiro.au>
Software Engineering Team Leader
CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre

------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to