app-schema: filtering polymorphic attribute fails
-------------------------------------------------
Key: GEOT-3353
URL: http://jira.codehaus.org/browse/GEOT-3353
Project: GeoTools
Issue Type: Bug
Components: data app-schema
Affects Versions: 2.7-M4
Reporter: Rini Angreani
Assignee: Rini Angreani
Fix For: 2.7-beta1
<?xml version="1.0" encoding="UTF-8"?>
<wfs:GetFeature service="WFS" version="1.1.0"
xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:gml="http://www.opengis.net/gml"
xmlns:er="urn:cgi:xmlns:GGIC:EarthResource:1.1" maxFeatures="200">
<wfs:Query typeName="er:MiningFeatureOccurrence" srsName="EPSG:4326">
<ogc:Filter>
<ogc:And>
<ogc:BBOX>
<ogc:PropertyName>er:location</ogc:PropertyName>
<gml:Envelope srsName="EPSG:4326">
<gml:lowerCorner>78.75
-56.26776108757582 </gml:lowerCorner>
<gml:upperCorner>352.08984375
14.26438308756265 </gml:upperCorner>
</gml:Envelope>
</ogc:BBOX>
<ogc:PropertyIsLike escapeChar="!"
wildCard="*" singleChar="#">
<ogc:PropertyName>er:specification/er:Mine/gml:name</ogc:PropertyName>
<ogc:Literal>c*</ogc:Literal>
</ogc:PropertyIsLike>
</ogc:And>
</ogc:Filter>
</wfs:Query>
</wfs:GetFeature>
It throws:
<?xml version="1.0" encoding="UTF-8"?>
<ows:ExceptionReport version="1.0.0"
xsi:schemaLocation="http://www.opengis.net/ows
http://services-test.auscope.org:80/gswa-earthresource/schemas/ows/1.0.0/owsExceptionReport.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ows="http://www.opengis.net/ows">
<ows:Exception exceptionCode="NoApplicableCode">
<ows:ExceptionText>java.lang.IllegalArgumentException: Could not find
working property accessor for attribute (GML_NAME) in object
(SimpleFeatureImpl:ER_MINE=[SimpleFeatureImpl.Attribute: SITE_ID&lt;SITE_ID
id=ER_MINE.fid--1f8b3109_12c624daed6_-641e&gt;=S0000005,
SimpleFeatureImpl.Attribute: GML_ID&lt;GML_ID
id=ER_MINE.fid--1f8b3109_12c624daed6_-641e&gt;=er.mine.S0000005,
SimpleFeatureImpl.Attribute: NAME_VALUE&lt;NAME_VALUE
id=ER_MINE.fid--1f8b3109_12c624daed6_-641e&gt;=http://services-test.auscope.org/resource/feature/gswa/mine/S0000005,
SimpleFeatureImpl.Attribute: NAME_CODESPACE&lt;NAME_CODESPACE
id=ER_MINE.fid--1f8b3109_12c624daed6_-641e&gt;=http://www.ietf.org/rfc/rfc2616,
SimpleFeatureImpl.Attribute: OCCURRENCE_URI&lt;OCCURRENCE_URI
id=ER_MINE.fid--1f8b3109_12c624daed6_-641e&gt;=http://services-test.auscope.org/resource/feature/gswa/miningfeatureoccurrence/S0000005,
SimpleFeatureImpl.Attribute: STATUS&lt;STATUS
id=ER_MINE.fid--1f8b3109_12c624daed6_-641e&gt;=not operating,
SimpleFeatureImpl.Attribute:
RELATED_ACTIVITIES_COUNT&lt;RELATED_ACTIVITIES_COUNT
id=ER_MINE.fid--1f8b3109_12c624daed6_-641e&gt;=0])
Could not find working property accessor for attribute (GML_NAME) in object
(SimpleFeatureImpl:ER_MINE=[SimpleFeatureImpl.Attribute: SITE_ID&lt;SITE_ID
id=ER_MINE.fid--1f8b3109_12c624daed6_-641e&gt;=S0000005,
SimpleFeatureImpl.Attribute: GML_ID&lt;GML_ID
id=ER_MINE.fid--1f8b3109_12c624daed6_-641e&gt;=er.mine.S0000005,
SimpleFeatureImpl.Attribute: NAME_VALUE&lt;NAME_VALUE
id=ER_MINE.fid--1f8b3109_12c624daed6_-641e&gt;=http://services-test.auscope.org/resource/feature/gswa/mine/S0000005,
SimpleFeatureImpl.Attribute: NAME_CODESPACE&lt;NAME_CODESPACE
id=ER_MINE.fid--1f8b3109_12c624daed6_-641e&gt;=http://www.ietf.org/rfc/rfc2616,
SimpleFeatureImpl.Attribute: OCCURRENCE_URI&lt;OCCURRENCE_URI
id=ER_MINE.fid--1f8b3109_12c624daed6_-641e&gt;=http://services-test.auscope.org/resource/feature/gswa/miningfeatureoccurrence/S0000005,
SimpleFeatureImpl.Attribute: STATUS&lt;STATUS
id=ER_MINE.fid--1f8b3109_12c624daed6_-641e&gt;=not operating,
SimpleFeatureImpl.Attribute:
RELATED_ACTIVITIES_COUNT&lt;RELATED_ACTIVITIES_COUNT
id=ER_MINE.fid--1f8b3109_12c624daed6_-641e&gt;=0])
No value for xpath: GML_NAME</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel