On Tue, May 7, 2013 at 9:17 PM, Michael Moore <michael.mo...@flatrockgeo.com
> wrote
> I think I have a lead but not a solution. I hadn't noticed that the log
> file is logging a backtrace despite returning valid XML. The backtrace is:
>
> 2013-05-07 15:09:07,730 WARN [geoserver.wfs] - Could not build xml schema
> for type: GeoFence
> java.lang.NullPointerException: Could not find a type for property: ID of
> type: java.util.UUID
> at
> org.geoserver.wfs.xml.FeatureTypeSchemaBuilder.buildComplexSchemaContent(FeatureTypeSchemaBuilder.java:743)
> at
> org.geoserver.wfs.xml.FeatureTypeSchemaBuilder.buildSchemaContent(FeatureTypeSchemaBuilder.java:664)
> at
> org.geoserver.wfs.xml.FeatureTypeSchemaBuilder.buildSchemaInternal(FeatureTypeSchemaBuilder.java:234)
> at
> org.geoserver.wfs.xml.FeatureTypeSchemaBuilder.build(FeatureTypeSchemaBuilder.java:147)
> at
> org.geoserver.wfs.xml.FeatureTypeSchemaBuilder.build(FeatureTypeSchemaBuilder.java:141)
> at
> org.geoserver.wfs.xml.FeatureTypeSchemaBuilder.build(FeatureTypeSchemaBuilder.java:130)
> at
> org.geoserver.wfs.xml.v1_1_0.XmlSchemaEncoder.doWrite(XmlSchemaEncoder.java:106)
>
> In SQL Server we do have the ID field defined as type 'uniqueidentifier'.
>
> Is there a way to add support for type java.util.UUID, or do I need to
> rework my database tables?
>
Ah, I see. You have two choices:
* rework your tables
* add support for UUID in the SQLServer dialect class back in GeoTools.
The latter is not particularly hard, support for UUIDs was recently added
for PostGIS, this is
the entire patch (code change plus tests to check it works):
https://github.com/geotools/geotools/commit/233eac4368904a8319549ed30ed41b0166d99f56
Cheers
Andrea
--
==
GeoServer training in Milan, 6th & 7th June 2013! Visit
http://geoserver.geo-solutions.it for more information.
==
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and
their applications. This 200-page book is written by three acclaimed
leaders in the field. The early access version is available now.
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users