[Geoserver-devel] Cite Tests

I'm having rather poor luck with the new cite engine, though so far it seems to be configuration snafus. I've gotten many working, but I'm now getting a batch of failures with both WFS-1.1.0 and WFS-1.0.0. I'm hoping someone will recognise some of my error logs (attached) and suggest what I've done wrong.

FYI: I was able to get through all the cite tests a week ago (when Justin was unfortunate enough to be sitting behind me), so I'm fairly convinced the issues are in my configuration of the tests, not in GeoServer or GeoTools.

WFS-1.1.0:

Test wfs:wfs-1.1.0-Basic-DescribeFeatureType-tc2.1 (wfs-1.1.0/d1e32742_1/d1e717_1/d1e24425_1/d1e4692_1)

Assertion: The Content-Type of all POST KVP-encoded request entities must be 'application/x-www-form-urlencoded'.

Request d1e4782_1:
    Method: post
    URL: http://localhost:8080/geoserver/wfs?
    Body: service=WFS&version=1.1.0&request=DescribeFeatureType&typename=sf:PrimitiveGeoFeature&namespace=xmlns(sf=http://cite.opengeospatial.org/gmlsf)
Error in call to extension function {public org.w3c.dom.NodeList com.occamlab.te.TECore.request(org.w3c.dom.Document,java.lang.String) throws java.lang.Throwable}: Exception in extension function java.lang.Exception: Error invoking parser {http://teamengine.sourceforge.net/parsers\}XMLValidatingParser.XMLSchema
org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name 'xml:lang' to a(n) 'attribute declaration' component.
Result: Failed

WFS-1.0.0:

Assertion: When a wfs:Transaction request is made to Update a locked feature using the lockId the feature was locked with, the result document be be a wfs:WFS_TransactionResponse with a wfs:Status of wfs:SUCCESS.

Failed to compile stylesheet. 1 error detected.
Result: Failed

Mark Leslie wrote:

I'm having rather poor luck with the new cite engine, though so far it seems to be configuration snafus. I've gotten many working, but I'm now getting a batch of failures with both WFS-1.1.0 and WFS-1.0.0. I'm hoping someone will recognise some of my error logs (attached) and suggest what I've done wrong.

FYI: I was able to get through all the cite tests a week ago (when Justin was unfortunate enough to be sitting behind me), so I'm fairly convinced the issues are in my configuration of the tests, not in GeoServer or GeoTools.

WFS-1.1.0:

Test wfs:wfs-1.1.0-Basic-DescribeFeatureType-tc2.1 (wfs-1.1.0/d1e32742_1/d1e717_1/d1e24425_1/d1e4692_1)

Assertion: The Content-Type of all POST KVP-encoded request entities must be 'application/x-www-form-urlencoded'.

Request d1e4782_1:
    Method: post
    URL: http://localhost:8080/geoserver/wfs?
    Body: service=WFS&version=1.1.0&request=DescribeFeatureType&typename=sf:PrimitiveGeoFeature&namespace=xmlns(sf=http://cite.opengeospatial.org/gmlsf)
Error in call to extension function {public org.w3c.dom.NodeList com.occamlab.te.TECore.request(org.w3c.dom.Document,java.lang.String) throws java.lang.Throwable}: Exception in extension function java.lang.Exception: Error invoking parser {http://teamengine.sourceforge.net/parsers\}XMLValidatingParser.XMLSchema
org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name 'xml:lang' to a(n) 'attribute declaration' component.
Result: Failed

Hmmm... I have seen this error before, and the cause was because I was the machine i was running the tests on was offline, so the internal validator was not able to grab the online xml.xsd schema, in which xml:lang is defined.

WFS-1.0.0:

Assertion: When a wfs:Transaction request is made to Update a locked feature using the lockId the feature was locked with, the result document be be a wfs:WFS_TransactionResponse with a wfs:Status of wfs:SUCCESS.

Failed to compile stylesheet. 1 error detected.
Result: Failed

This one has me at a loss...

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

Justin Deoliveira ha scritto:
  >> WFS-1.0.0:

Assertion: When a wfs:Transaction request is made to Update a locked feature using the lockId the feature was locked with, the result document be be a wfs:WFS_TransactionResponse with a wfs:Status of wfs:SUCCESS.

Failed to compile stylesheet. 1 error detected.
Result: Failed

This one has me at a loss...

Random shot in the dark: has the database been cleaned between runs?
Sometimes the WFS-T tests do fail because of previous tests run left
the database in an unexpected state

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

<snip>

WFS-1.0.0:

Assertion: When a wfs:Transaction request is made to Update a locked feature using the lockId the feature was locked with, the result document be be a wfs:WFS_TransactionResponse with a wfs:Status of wfs:SUCCESS.

Failed to compile stylesheet. 1 error detected.
Result: Failed

Ok, I dug a bit deeper and indeed there is an error in the test cases. Quite a few actually. I have patched the tests and put a new test archive up here:

http://files.opengeo.org/cite_test_scripts.zip

Give those a go and hopefully all will be smooth.

I also forwarded the patched tests to the engine maintainer.

-Justin

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

Justin Deoliveira wrote:

<snip>

WFS-1.0.0:

Assertion: When a wfs:Transaction request is made to Update a locked feature using the lockId the feature was locked with, the result document be be a wfs:WFS_TransactionResponse with a wfs:Status of wfs:SUCCESS.

Failed to compile stylesheet. 1 error detected.
Result: Failed

Ok, I dug a bit deeper and indeed there is an error in the test cases. Quite a few actually. I have patched the tests and put a new test archive up here:

http://files.opengeo.org/cite_test_scripts.zip

Give those a go and hopefully all will be smooth.

I also forwarded the patched tests to the engine maintainer.

-Justin

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Thank you Justin. You're quickly becoming my new hero.

I'm down to the two wfs-1.1.0 errors that look like connectivity problems (below). I'm online, with many an interweb pingable. I take it these are schemas it's trying to look up? Does anybody know where these live?

=====================

Test wfs:wfs-1.1.0-Basic-DescribeFeatureType-tc2.1 (wfs-1.1.0/d1e32742_1/d1e717_1/d1e24425_1/d1e4692_1)

Assertion: The Content-Type of all POST KVP-encoded request entities must be 'application/x-www-form-urlencoded'.

Request d1e4782_1:
    Method: post
    URL: http://localhost:8080/geoserver/wfs?
    Body: service=WFS&version=1.1.0&request=DescribeFeatureType&typename=sf:PrimitiveGeoFeature&namespace=xmlns(sf=http://cite.opengeospatial.org/gmlsf)
Error in call to extension function {public org.w3c.dom.NodeList com.occamlab.te.TECore.request(org.w3c.dom.Document,java.lang.String) throws java.lang.Throwable}: Exception in extension function java.lang.Exception: Error invoking parser {http://teamengine.sourceforge.net/parsers\}XMLValidatingParser.XMLSchema
org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name 'xml:lang' to a(n) 'attribute declaration' component.
Result: Failed

==============================

Assertion: A valid namespace binding expressed by the namespace parameter in a KVP string shall conform to the syntax specified in subclause 14.4.

Request d1e3809_1:
    Method: get
    URL: http://localhost:8080/geoserver/wfs?&service=WFS&version=1.1.0&request=DescribeFeatureType&typename=sf:PrimitiveGeoFeature&namespace=xmlns(sf=http://cite.opengeospatial.org/gmlsf)
Error in call to extension function {public org.w3c.dom.NodeList com.occamlab.te.TECore.request(org.w3c.dom.Document,java.lang.String) throws java.lang.Throwable}: Exception in extension function java.lang.Exception: Error invoking parser {http://teamengine.sourceforge.net/parsers\}XMLValidatingParser.XMLSchema
org.xml.sax.SAXParseException: s4s-elt-invalid-content.1: The content of '#AnonType_schema' is invalid. Element 'attribute' is invalid, misplaced, or occurs too often.
Result: Failed