Filtering by featureid when idExpression is specified results in NPE
--------------------------------------------------------------------
Key: GEOT-2696
URL: http://jira.codehaus.org/browse/GEOT-2696
Project: GeoTools
Issue Type: Bug
Components: data app-schema
Affects Versions: 2.6-M2
Reporter: Rini Angreani
Fix For: 2.6-M2
Specify id expression for the element:
<attributeMappings>
<AttributeMapping>
<targetAttribute>
ex:geomContainer
</targetAttribute>
<idExpression>
<OCQL>getId()</OCQL>
</idExpression>
</AttributeMapping>
Run query with feature id filter:
"wfs?request=GetFeature&typename=ex:geomContainer&featureid=1"
Results:
<ows:Exception exceptionCode="NoApplicableCode">
<ows:ExceptionText>java.lang.NullPointerException: getFeatureReader
requires Filter: did you mean Filter.INCLUDE?
getFeatureReader requires Filter: did you mean
Filter.INCLUDE?</ows:ExceptionText>
</ows:Exception>
When idExpression is removed from attributeMapping, it's fine.
<ows:ExceptionText>java.lang.NullPointerException: getFeatureReader
requires Filter: did you mean Filter.INCLUDE?
--
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
------------------------------------------------------------------------------
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
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel