app-schema WFS filter query failure with ClassCastException
-----------------------------------------------------------
Key: GEOT-2495
URL: http://jira.codehaus.org/browse/GEOT-2495
Project: GeoTools
Issue Type: Bug
Components: data app-schema
Reporter: Ben Caradoc-Davies
Assignee: Ben Caradoc-Davies
I get a ClassCastException in app-schema
org.geotools.feature.xpath.AttributeDescriptorPropertyHandler.getProperty(AttributeDescriptorPropertyHandler.java:59)
when making a filter query.
Request URL:
http://localhost:8080/geoserver/wfs?request=GetFeature&typename=mo:Commodity&maxfeatures=10&filter=%3CFilter%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Emo:commodityName%3C/PropertyName%3E%3CLiteral%3ESilver%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3C/Filter%3E
{code}
java.lang.ClassCastException: org.geotools.feature.type.FeatureTypeImpl
at
org.geotools.feature.xpath.AttributeDescriptorPropertyHandler.getProperty(AttributeDescriptorPropertyHandler.java:59)
at
org.apache.commons.jxpath.ri.model.dynamic.DynamicPropertyPointer.getImmediateNode(DynamicPropertyPointer.java:165)
at
org.apache.commons.jxpath.ri.model.beans.PropertyPointer.getImmediateValuePointer(PropertyPointer.java:127)
at
org.apache.commons.jxpath.ri.model.NodePointer.getValuePointer(NodePointer.java:238)
at
org.apache.commons.jxpath.ri.JXPathContextReferenceImpl.getValue(JXPathContextReferenceImpl.java:331)
at
org.apache.commons.jxpath.ri.JXPathContextReferenceImpl.getValue(JXPathContextReferenceImpl.java:280)
at
org.geotools.filter.expression.FeaturePropertyAccessorFactory$FeaturePropertyAccessor.get(FeaturePropertyAccessorFactory.java:273)
at
org.geotools.filter.AttributeExpressionImpl.evaluate(AttributeExpressionImpl.java:192)
at
org.geotools.filter.AttributeExpressionImpl.evaluate(AttributeExpressionImpl.java:182)
at org.geoserver.wfs.GetFeature$1.visit(GetFeature.java:250)
at
org.geotools.filter.AttributeExpressionImpl.accept(AttributeExpressionImpl.java:280)
at
org.geotools.filter.visitor.AbstractFilterVisitor.visit(AbstractFilterVisitor.java:201)
at
org.geotools.filter.visitor.AbstractFilterVisitor.visit(AbstractFilterVisitor.java:216)
at org.geotools.filter.IsEqualsToImpl.accept(IsEqualsToImpl.java:149)
at org.geoserver.wfs.GetFeature.run(GetFeature.java:259)
at
org.geoserver.wfs.DefaultWebFeatureService.getFeature(DefaultWebFeatureService.java:115)
{code}
--
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
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel