After fixing GEOT-2403 I just found xsd-wfs also has the wrong assumption that a feature shall return anything geometric as the default geometry instead of the actual defatult geometry attribute as stated in its feature type...
fixing it, Gabriel Hudson wrote: > See http://hudson.opengeo.org/hudson/job/geotools-trunk/1471/changes > > Changes: > > [groldan] GEOT-2403, fixed inconsistencies in SimpleFeatureImpl regarding > geometry attributes > > [groldan] GEOT-2408, weaker comparison of gml namespace to allow gml 3.2 > parsing to set the default geometry property... ugh.. > > ------------------------------------------ > [...truncated 5306 lines...] > Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.224 sec > > Results : > > Tests run: 6, Failures: 0, Errors: 0, Skipped: 0 > > [INFO] [jar:jar] > [INFO] Building jar: > http://hudson.opengeo.org/hudson/job/geotools-trunk/ws/gt_trunk/modules/extension/xsd/xsd-ows/target/gt-xsd-ows-2.6-SNAPSHOT.jar > > [INFO] Preparing source:jar > [WARNING] Removing: jar from forked lifecycle, to prevent recursive > invocation. > [INFO] No goals needed for project - skipping > [INFO] [source:jar {execution: attach-sources}] > [INFO] Building jar: > http://hudson.opengeo.org/hudson/job/geotools-trunk/ws/gt_trunk/modules/extension/xsd/xsd-ows/target/gt-xsd-ows-2.6-SNAPSHOT-sources.jar > > [INFO] [jar-collector:collect {execution: default}] > [INFO] [install:install] > [INFO] Installing > http://hudson.opengeo.org/hudson/job/geotools-trunk/ws/gt_trunk/modules/extension/xsd/xsd-ows/target/gt-xsd-ows-2.6-SNAPSHOT.jar > to > /home/tomcat/.m2/repository/org/geotools/xsd/gt-xsd-ows/2.6-SNAPSHOT/gt-xsd-ows-2.6-SNAPSHOT.jar > [INFO] Installing > http://hudson.opengeo.org/hudson/job/geotools-trunk/ws/gt_trunk/modules/extension/xsd/xsd-ows/target/gt-xsd-ows-2.6-SNAPSHOT-sources.jar > to > /home/tomcat/.m2/repository/org/geotools/xsd/gt-xsd-ows/2.6-SNAPSHOT/gt-xsd-ows-2.6-SNAPSHOT-sources.jar > [INFO] > ------------------------------------------------------------------------ > [INFO] Building WFS XML Support > [INFO] task-segment: [clean, install] > [INFO] > ------------------------------------------------------------------------ > [INFO] [clean:clean] > [INFO] Deleting directory > http://hudson.opengeo.org/hudson/job/geotools-trunk/ws/gt_trunk/modules/extension/xsd/xsd-wfs/target > > [INFO] [resources:resources] > [INFO] Using default encoding to copy filtered resources. > [INFO] [compiler:compile] > [INFO] Compiling 49 source files to > http://hudson.opengeo.org/hudson/job/geotools-trunk/ws/gt_trunk/modules/extension/xsd/xsd-wfs/target/classes > > [INFO] [resources:testResources] > [INFO] Using default encoding to copy filtered resources. > [INFO] [compiler:testCompile] > [INFO] Compiling 16 source files to > http://hudson.opengeo.org/hudson/job/geotools-trunk/ws/gt_trunk/modules/extension/xsd/xsd-wfs/target/test-classes > > [INFO] [surefire:test] > [INFO] Surefire report directory: > http://hudson.opengeo.org/hudson/job/geotools-trunk/ws/gt_trunk/modules/extension/xsd/xsd-wfs/target/surefire-reports > > > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > Running org.geotools.wfs.bindings.QueryTypeBindingTest > Mar 25, 2009 8:15:40 PM org.geotools.xml.impl.AttributeEncodeExecutor visit > WARNING: Binding: {http://www.opengis.net/wfs}Base_TypeNameListType does not > declare a target type > Mar 25, 2009 8:15:40 PM org.geotools.xml.impl.AttributeEncodeExecutor visit > WARNING: Binding: {http://www.opengis.net/wfs}TypeNameListType does not > declare a target type > Mar 25, 2009 8:15:40 PM org.geotools.xml.impl.GetPropertyExecutor visit > WARNING: [org.geotools.filter.sortbyi...@1a1ff9] > (org.eclipse.emf.ecore.util.EDataTypeUniqueEList) is not of type > [Lorg.opengis.filter.sort.SortBy; > Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.435 sec > Running org.geotools.wfs.bindings.GetFeatureTypeBindingTest > Mar 25, 2009 8:15:40 PM org.geotools.xml.impl.AttributeEncodeExecutor visit > WARNING: results[ class java.lang.String ] is not of type class > net.opengis.wfs.ResultTypeType > Mar 25, 2009 8:15:40 PM org.geotools.xml.impl.AttributeEncodeExecutor visit > WARNING: Binding: {http://www.opengis.net/ows}ServiceType does not declare a > target type > Mar 25, 2009 8:15:40 PM org.geotools.xml.impl.AttributeEncodeExecutor visit > WARNING: Binding: {http://www.opengis.net/wfs}Base_TypeNameListType does not > declare a target type > Mar 25, 2009 8:15:40 PM org.geotools.xml.impl.AttributeEncodeExecutor visit > WARNING: Binding: {http://www.opengis.net/wfs}TypeNameListType does not > declare a target type > Mar 25, 2009 8:15:40 PM org.geotools.xml.impl.AttributeEncodeExecutor visit > WARNING: Binding: {http://www.opengis.net/wfs}Base_TypeNameListType does not > declare a target type > Mar 25, 2009 8:15:40 PM org.geotools.xml.impl.AttributeEncodeExecutor visit > WARNING: Binding: {http://www.opengis.net/wfs}TypeNameListType does not > declare a target type > Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.041 sec > Running org.geotools.wfs.bindings._XlinkPropertyNameBindingTest > Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.038 sec > Running org.geotools.wfs.bindings.TransactionResponseTypeBindingTest > Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.042 sec > Running org.geotools.wfs.WFSParsingTest > Mar 25, 2009 8:15:48 PM org.geotools.xml.impl.ParserHandler startElement > WARNING: Error parsing: > http://localhost:8080/geoserver/wfs?service=WFS&version=1.1.0&request=DescribeFeatureType&typeName=sf:PrimitiveGeoFeature > Mar 25, 2009 8:15:48 PM org.geotools.xml.impl.ParserHandler startElement > INFO: Could not find declaration for: > {http://cite.opengeospatial.org/gmlsf}pointProperty. Creating a mock element > declaration and parsing anyways... > Mar 25, 2009 8:15:48 PM org.geotools.xml.impl.ParserHandler startElement > INFO: Could not find declaration for: > {http://cite.opengeospatial.org/gmlsf}intProperty. Creating a mock element > declaration and parsing anyways... > Mar 25, 2009 8:15:48 PM org.geotools.xml.impl.ParserHandler startElement > INFO: Could not find declaration for: > {http://cite.opengeospatial.org/gmlsf}uriProperty. Creating a mock element > declaration and parsing anyways... > Mar 25, 2009 8:15:48 PM org.geotools.xml.impl.ParserHandler startElement > INFO: Could not find declaration for: > {http://cite.opengeospatial.org/gmlsf}measurand. Creating a mock element > declaration and parsing anyways... > Mar 25, 2009 8:15:48 PM org.geotools.xml.impl.ParserHandler startElement > INFO: Could not find declaration for: > {http://cite.opengeospatial.org/gmlsf}dateProperty. Creating a mock element > declaration and parsing anyways... > Mar 25, 2009 8:15:48 PM org.geotools.xml.impl.ParserHandler startElement > INFO: Could not find declaration for: > {http://cite.opengeospatial.org/gmlsf}decimalProperty. Creating a mock > element declaration and parsing anyways... > Mar 25, 2009 8:15:48 PM org.geotools.xml.impl.ParserHandler startElement > INFO: Could not find declaration for: > {http://cite.opengeospatial.org/gmlsf}pointProperty. Creating a mock element > declaration and parsing anyways... > Mar 25, 2009 8:15:48 PM org.geotools.xml.impl.ParserHandler startElement > INFO: Could not find declaration for: > {http://cite.opengeospatial.org/gmlsf}intProperty. Creating a mock element > declaration and parsing anyways... > Mar 25, 2009 8:15:48 PM org.geotools.xml.impl.ParserHandler startElement > INFO: Could not find declaration for: > {http://cite.opengeospatial.org/gmlsf}uriProperty. Creating a mock element > declaration and parsing anyways... > Mar 25, 2009 8:15:48 PM org.geotools.xml.impl.ParserHandler startElement > INFO: Could not find declaration for: > {http://cite.opengeospatial.org/gmlsf}measurand. Creating a mock element > declaration and parsing anyways... > Mar 25, 2009 8:15:48 PM org.geotools.xml.impl.ParserHandler startElement > INFO: Could not find declaration for: > {http://cite.opengeospatial.org/gmlsf}dateProperty. Creating a mock element > declaration and parsing anyways... > Mar 25, 2009 8:15:48 PM org.geotools.xml.impl.ParserHandler startElement > INFO: Could not find declaration for: > {http://cite.opengeospatial.org/gmlsf}decimalProperty. Creating a mock > element declaration and parsing anyways... > Mar 25, 2009 8:15:48 PM org.geotools.xml.impl.ParserHandler startElement > INFO: Could not find declaration for: > {http://cite.opengeospatial.org/gmlsf}curveProperty. Creating a mock element > declaration and parsing anyways... > Mar 25, 2009 8:15:48 PM org.geotools.xml.impl.ParserHandler startElement > INFO: Could not find declaration for: > {http://cite.opengeospatial.org/gmlsf}intProperty. Creating a mock element > declaration and parsing anyways... > Mar 25, 2009 8:15:48 PM org.geotools.xml.impl.ParserHandler startElement > INFO: Could not find declaration for: > {http://cite.opengeospatial.org/gmlsf}measurand. Creating a mock element > declaration and parsing anyways... > Mar 25, 2009 8:15:48 PM org.geotools.xml.impl.ParserHandler startElement > INFO: Could not find declaration for: > {http://cite.opengeospatial.org/gmlsf}dateProperty. Creating a mock element > declaration and parsing anyways... > Mar 25, 2009 8:15:48 PM org.geotools.xml.impl.ParserHandler startElement > INFO: Could not find declaration for: > {http://cite.opengeospatial.org/gmlsf}decimalProperty. Creating a mock > element declaration and parsing anyways... > Mar 25, 2009 8:15:48 PM org.geotools.xml.impl.ParserHandler startElement > INFO: Could not find declaration for: > {http://cite.opengeospatial.org/gmlsf}surfaceProperty. Creating a mock > element declaration and parsing anyways... > Mar 25, 2009 8:15:48 PM org.geotools.xml.impl.ParserHandler startElement > INFO: Could not find declaration for: > {http://cite.opengeospatial.org/gmlsf}intProperty. Creating a mock element > declaration and parsing anyways... > Mar 25, 2009 8:15:48 PM org.geotools.xml.impl.ParserHandler startElement > INFO: Could not find declaration for: > {http://cite.opengeospatial.org/gmlsf}measurand. Creating a mock element > declaration and parsing anyways... > Mar 25, 2009 8:15:48 PM org.geotools.xml.impl.ParserHandler startElement > INFO: Could not find declaration for: > {http://cite.opengeospatial.org/gmlsf}dateTimeProperty. Creating a mock > element declaration and parsing anyways... > Mar 25, 2009 8:15:48 PM org.geotools.xml.impl.ParserHandler startElement > INFO: Could not find declaration for: > {http://cite.opengeospatial.org/gmlsf}dateProperty. Creating a mock element > declaration and parsing anyways... > Mar 25, 2009 8:15:48 PM org.geotools.xml.impl.ParserHandler startElement > INFO: Could not find declaration for: > {http://cite.opengeospatial.org/gmlsf}decimalProperty. Creating a mock > element declaration and parsing anyways... > Mar 25, 2009 8:15:48 PM org.geotools.xml.impl.ParserHandler startElement > INFO: Could not find declaration for: > {http://cite.opengeospatial.org/gmlsf}pointProperty. Creating a mock element > declaration and parsing anyways... > Mar 25, 2009 8:15:48 PM org.geotools.xml.impl.ParserHandler startElement > INFO: Could not find declaration for: > {http://cite.opengeospatial.org/gmlsf}intProperty. Creating a mock element > declaration and parsing anyways... > Mar 25, 2009 8:15:48 PM org.geotools.xml.impl.ParserHandler startElement > INFO: Could not find declaration for: > {http://cite.opengeospatial.org/gmlsf}measurand. Creating a mock element > declaration and parsing anyways... > Mar 25, 2009 8:15:48 PM org.geotools.xml.impl.ParserHandler startElement > INFO: Could not find declaration for: > {http://cite.opengeospatial.org/gmlsf}decimalProperty. Creating a mock > element declaration and parsing anyways... > Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 8.001 sec <<< > FAILURE! > Running org.geotools.wfs.bindings.GetCapabilitiesTypeBindingTest > Mar 25, 2009 8:15:48 PM org.geotools.xml.impl.AttributeEncodeExecutor visit > WARNING: Binding: {http://www.opengis.net/ows}ServiceType does not declare a > target type > Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.017 sec > Running org.geotools.wfs.bindings.DescribeFeatureTypeTypeBindingTest > Mar 25, 2009 8:15:48 PM org.geotools.xml.impl.AttributeEncodeExecutor visit > WARNING: Binding: {http://www.opengis.net/ows}ServiceType does not declare a > target type > Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.021 sec > Running org.geotools.wfs.bindings.DeleteElementTypeBindingTest > Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.023 sec > Running org.geotools.wfs.bindings.WFS_CapabilitiesTypeBindingTest > Mar 25, 2009 8:15:48 PM org.geotools.xml.impl.GetPropertyExecutor visit > WARNING: [http://www.opengis.net/gml/Envelope, > http://www.opengis.net/gml/Point] (java.util.HashSet) is not of type > [Lorg.opengis.filter.capability.GeometryOperand; > Mar 25, 2009 8:15:48 PM org.geotools.xml.impl.GetPropertyExecutor visit > WARNING: [] (java.util.HashSet) is not of type > [Lorg.opengis.filter.capability.GeometryOperand; > Mar 25, 2009 8:15:48 PM org.geotools.xml.impl.GetPropertyExecutor visit > WARNING: [ABS, MIN] (java.util.HashSet) is not of type > [Lorg.opengis.filter.capability.FunctionName; > Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.025 sec > Running org.geotools.wfs.bindings.FeatureCollectionTypeBindingTest > Mar 25, 2009 8:15:48 PM org.geotools.xml.impl.ParserHandler startElement > INFO: Could not find declaration for: {http://geotools.org}geometry. Creating > a mock element declaration and parsing anyways... > Mar 25, 2009 8:15:48 PM org.geotools.xml.impl.ParserHandler startElement > INFO: Could not find declaration for: {http://geotools.org}integer. Creating > a mock element declaration and parsing anyways... > Mar 25, 2009 8:15:48 PM org.geotools.xml.impl.ParserHandler startElement > INFO: Could not find declaration for: {http://geotools.org}geometry. Creating > a mock element declaration and parsing anyways... > Mar 25, 2009 8:15:48 PM org.geotools.xml.impl.ParserHandler startElement > INFO: Could not find declaration for: {http://geotools.org}integer. Creating > a mock element declaration and parsing anyways... > Mar 25, 2009 8:15:48 PM org.geotools.gml2.bindings.GML2EncodingUtils > AbstractFeatureType_getProperties > WARNING: Could find type for feature in the schema, generating type from > feature. > Mar 25, 2009 8:15:48 PM org.geotools.gml2.bindings.GML2EncodingUtils > AbstractFeatureType_getProperties > WARNING: Could find type for feature in the schema, generating type from > feature. > <?xml version="1.0" encoding="UTF-8"?> > <wfs:FeatureCollection xmlns:wfs="http://www.opengis.net/wfs" > xmlns:geotools="http://geotools.org" xmlns:gml="http://www.opengis.net/gml" > xmlns:ogc="http://www.opengis.net/ogc" xmlns:ows="http://www.opengis.net/ows" > xmlns:xlink="http://www.w3.org/1999/xlink"> > <gml:boundedBy> > <gml:Envelope> > <gml:lowerCorner>0.0 0.0</gml:lowerCorner> > <gml:upperCorner>1.0 1.0</gml:upperCorner> > </gml:Envelope> > </gml:boundedBy> > <gml:featureMember> > <geotools:feature gml:id="one"> > <gml:boundedBy> > <gml:Envelope> > <gml:lowerCorner>1.0 1.0</gml:lowerCorner> > <gml:upperCorner>1.0 1.0</gml:upperCorner> > </gml:Envelope> > </gml:boundedBy> > <geotools:geometry> > <gml:Point> > <gml:pos>1.0 1.0</gml:pos> > </gml:Point> > </geotools:geometry> > <geotools:integer>1</geotools:integer> > </geotools:feature> > </gml:featureMember> > <gml:featureMember> > <geotools:feature gml:id="zero"> > <gml:boundedBy> > <gml:Envelope> > <gml:lowerCorner>0.0 0.0</gml:lowerCorner> > <gml:upperCorner>0.0 0.0</gml:upperCorner> > </gml:Envelope> > </gml:boundedBy> > <geotools:geometry> > <gml:Point> > <gml:pos>0.0 0.0</gml:pos> > </gml:Point> > </geotools:geometry> > <geotools:integer>0</geotools:integer> > </geotools:feature> > </gml:featureMember> > </wfs:FeatureCollection> > Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.149 sec > Running org.geotools.wfs.WFSFeatureCollectionEncodingTest > Mar 25, 2009 8:15:48 PM org.geotools.gml2.bindings.GML2EncodingUtils > AbstractFeatureType_getProperties > WARNING: Could find type for feature in the schema, generating type from > feature. > Mar 25, 2009 8:15:48 PM org.geotools.gml2.bindings.GML2EncodingUtils > AbstractFeatureType_getProperties > WARNING: Could find type for feature in the schema, generating type from > feature. > Mar 25, 2009 8:15:48 PM org.geotools.gml2.bindings.GML2EncodingUtils > AbstractFeatureType_getProperties > WARNING: Could find type for feature in the schema, generating type from > feature. > Mar 25, 2009 8:15:48 PM org.geotools.gml2.bindings.GML2EncodingUtils > AbstractFeatureType_getProperties > WARNING: Could find type for feature in the schema, generating type from > feature. > Mar 25, 2009 8:15:48 PM org.geotools.gml2.bindings.GML2EncodingUtils > AbstractFeatureType_getProperties > WARNING: Could find type for feature in the schema, generating type from > feature. > Mar 25, 2009 8:15:48 PM org.geotools.gml2.bindings.GML2EncodingUtils > AbstractFeatureType_getProperties > WARNING: Could find type for feature in the schema, generating type from > feature. > Mar 25, 2009 8:15:48 PM org.geotools.gml2.bindings.GML2EncodingUtils > AbstractFeatureType_getProperties > WARNING: Could find type for feature2 in the schema, generating type from > feature. > Mar 25, 2009 8:15:48 PM org.geotools.gml2.bindings.GML2EncodingUtils > AbstractFeatureType_getProperties > WARNING: Could find type for feature2 in the schema, generating type from > feature. > Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.127 sec > Running org.geotools.wfs.bindings.LockFeatureTypeBindingTest > Mar 25, 2009 8:15:48 PM org.geotools.xml.impl.AttributeEncodeExecutor visit > WARNING: ALL[ class java.lang.String ] is not of type class > net.opengis.wfs.AllSomeType > Mar 25, 2009 8:15:48 PM org.geotools.xml.impl.AttributeEncodeExecutor visit > WARNING: Binding: {http://www.opengis.net/ows}ServiceType does not declare a > target type > Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.046 sec > Running org.geotools.wfs.bindings.BaseRequestTypeBindingTest > Mar 25, 2009 8:15:48 PM org.geotools.xml.impl.AttributeEncodeExecutor visit > WARNING: Binding: {http://www.opengis.net/ows}ServiceType does not declare a > target type > Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.018 sec > Running org.geotools.wfs.bindings.GetGmlObjectTypeBindingTest > Mar 25, 2009 8:15:48 PM org.geotools.xml.impl.AttributeEncodeExecutor visit > WARNING: Binding: {http://www.opengis.net/ows}ServiceType does not declare a > target type > Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.018 sec > Running org.geotools.wfs.bindings.FeatureTypeListTypeBindingTest > Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.027 sec > > Results : > > Failed tests: > testParseGetFeature(org.geotools.wfs.WFSParsingTest) > > Tests run: 72, Failures: 1, Errors: 0, Skipped: 0 > > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] There are test failures. > > Please refer to > http://hudson.opengeo.org/hudson/job/geotools-trunk/ws/gt_trunk/modules/extension/xsd/xsd-wfs/target/surefire-reports > for the individual test results. > [INFO] > ------------------------------------------------------------------------ > [INFO] For more information, run Maven with the -e switch > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 8 minutes 3 seconds > [INFO] Finished at: Wed Mar 25 20:15:49 EDT 2009 > [INFO] Final Memory: 46M/63M > [INFO] > ------------------------------------------------------------------------ > > > ------------------------------------------------------------------------------ > _______________________________________________ > Geotools-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-devel > ------------------------------------------------------------------------------ _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
