On Mon, Feb 28, 2011 at 9:23 AM, Niels <[email protected]> wrote:

>  Hi,
>
> I have been doing CITE tests at the moment for a new patch I made. After
> making changes to my code I am left with one test that seems to fail and is
> (I think) unrelated to anything I have done (the tests also fail with the
> latest trunk version of geoserver):
>
> Test wfs:wfs-1.1.0-Basic-GetFeature-tc302.1 
> (s0005/d1e34902_1/d1e732_1/d1e25206_1/d1e16209_1/d1e12726_1)
>
> Assertion: All supported (including arithmetic) functions should be defined 
> in the service capabilities document. A defined function accepts 0 or more 
> arguments and returns a single value.
>
> Request d1e13072_1:
>    Method: post
>    URL: http://localhost:7070/geoserver/wfs
>    Body:
> <wfs:GetFeature xmlns="http://www.occamlab.com/ctl"; 
> <http://www.occamlab.com/ctl> xmlns:ctl="http://www.occamlab.com/ctl"; 
> <http://www.occamlab.com/ctl>
>                 xmlns:gml="http://www.opengis.net/gml"; 
> <http://www.opengis.net/gml>
>                 xmlns:myparsers="http://teamengine.sourceforge.net/parsers"; 
> <http://teamengine.sourceforge.net/parsers>
>                 xmlns:ogc="http://www.opengis.net/ogc"; 
> <http://www.opengis.net/ogc>
>                 xmlns:ows="http://www.opengis.net/ows"; 
> <http://www.opengis.net/ows>
>                 xmlns:p="http://teamengine.sourceforge.net/parsers"; 
> <http://teamengine.sourceforge.net/parsers>
>                 xmlns:parsers="http://www.occamlab.com/te/parsers"; 
> <http://www.occamlab.com/te/parsers>
>                 xmlns:saxon="http://saxon.sf.net/"; <http://saxon.sf.net/>
>                 xmlns:sf="http://cite.opengeospatial.org/gmlsf"; 
> <http://cite.opengeospatial.org/gmlsf>
>                 xmlns:te="http://www.occamlab.com/te"; 
> <http://www.occamlab.com/te>
>                 xmlns:tec="java:com.occamlab.te.TECore"
>                 xmlns:wfs="http://www.opengis.net/wfs"; 
> <http://www.opengis.net/wfs>
>                 xmlns:xi="http://www.w3.org/2001/XInclude"; 
> <http://www.w3.org/2001/XInclude>
>                 xmlns:xlink="http://www.w3.org/1999/xlink"; 
> <http://www.w3.org/1999/xlink>
>                 xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
> <http://www.w3.org/2001/XMLSchema>
>                 xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
> <http://www.w3.org/2001/XMLSchema>
>                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> <http://www.w3.org/2001/XMLSchema-instance>
>                 service="WFS"
>                 version="1.1.0">
>    <wfs:Query srsName="urn:x-ogc:def:crs:EPSG:4326" 
> typeName="sf:PrimitiveGeoFeature">
>       <ogc:Filter>
>          <ogc:PropertyIsEqualTo>
>             <ogc:PropertyName>sf:decimalProperty</ogc:PropertyName>
>             <ogc:Sub>
>                <ogc:PropertyName>sf:intProperty</ogc:PropertyName>
>                <ogc:Literal>149.98</ogc:Literal>
>             </ogc:Sub>
>          </ogc:PropertyIsEqualTo>
>       </ogc:Filter>
>    </wfs:Query>
> </wfs:GetFeature>
>    Response from parser p:XMLValidatingParser.GMLSF1:
>       <ows:ExceptionReport xmlns:ows="http://www.opengis.net/ows"; 
> <http://www.opengis.net/ows>
>                      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> <http://www.w3.org/2001/XMLSchema-instance>
>                      version="1.0.0"
>                      xsi:schemaLocation="http://www.opengis.net/ows 
> http://localhost:7070/geoserver/schemas/ows/1.0.0/owsExceptionReport.xsd"; 
> <http://www.opengis.net/owshttp://localhost:7070/geoserver/schemas/ows/1.0.0/owsExceptionReport.xsd>>
>   <ows:Exception exceptionCode="NoApplicableCode">
>       <ows:ExceptionText>java.lang.RuntimeException: java.io.IOException
> java.io.IOException
> null
> ERROR: invalid input syntax for integer: &amp;quot;149.98&amp;quot;
>   Position: 115</ows:ExceptionText>
>   </ows:Exception>
> </ows:ExceptionReport>
>
> Subtest s0005/d1e34902_1/d1e732_1/d1e25206_1/d1e16209_1/d1e12726_1/d1e13128_1 
> Failed
>
> Subtest s0005/d1e34902_1/d1e732_1/d1e25206_1/d1e16209_1/d1e12726_1/d1e13138_1 
> Failed
>
> Subtest s0005/d1e34902_1/d1e732_1/d1e25206_1/d1e16209_1/d1e12726_1/d1e13149_1 
> Failed
>
> Result: Failed (Inherited Failure)
>
>
>
> =====
>
> 149.98 is indeed not an integer. Anyone have an idea what could have changed 
> to make this happen?
>
>
Hi there,
that is the result of a change I made some time ago in GeoTools, the build
works fine but that
specific test is off the mark, the sql encoder does not handle the type
conversion properly.
Justin has provided a patch for it that I still haven't had time to review:
http://jira.codehaus.org/browse/GEOT-3435

Cheers
Andrea



-- 
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313
mob:    +39 333 8128928

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-------------------------------------------------------
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to