Hi Niels, I have been trying to debug an issue where if a filter imbedded in SLD such as the one below filters on a mapping where a function is used eg
Mapping: if_then_else(isNull(HASRELATEDACTIVITY),toXLinkHref..... I get the error as show on the stacktrace attached. Would you be able to suggest where I should be looking? The exception is thrown from AttributeExpressionImpl.tryAccessor where the attPath(HASRELATEDACTIVITY) could not be found in the object. Any suggestions, tip or clue at this stage will be helpful thanks :) Filter <ogc:Filter> <ogc:PropertyIsLike escapeChar="!" wildCard="*" matchCase="false" singleChar="#" > <ogc:PropertyName>er:specification/er:Mine/er:relatedActivity/er:MiningActivity/gml:name</ogc:PropertyName> <ogc:Literal>*</ogc:Literal> </ogc:PropertyIsLike> </ogc:Filter> StackTrace: Caused by: java.lang.RuntimeException: Error applying mapping with targetAttribute er:specification at org.geotools.data.complex.DataAccessMappingFeatureIterator.computeNext(DataAccessMappingFeatureIterator.java:994) at org.geotools.data.complex.AbstractMappingFeatureIterator.next(AbstractMappingFeatureIterator.java:280) at org.geotools.data.complex.PostFilteringMappingFeatureIterator.getFilteredNext(PostFilteringMappingFeatureIterator.java:56) at org.geotools.data.complex.PostFilteringMappingFeatureIterator.<init>(PostFilteringMappingFeatureIterator.java:47) at org.geotools.data.complex.MappingFeatureIteratorFactory.getInstance(MappingFeatureIteratorFactory.java:185) at org.geotools.data.complex.MappingFeatureCollection.features(MappingFeatureCollection.java:174) at org.geotools.renderer.lite.StreamingRenderer.drawPlain(StreamingRenderer.java:2475) at org.geotools.renderer.lite.StreamingRenderer.processStylers(StreamingRenderer.java:2045) at org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:829) at org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:490) ... 99 more Caused by: java.lang.RuntimeException: Error applying mapping with targetAttribute er:relatedActivity at org.geotools.data.complex.DataAccessMappingFeatureIterator.computeNext(DataAccessMappingFeatureIterator.java:994) at org.geotools.data.complex.AbstractMappingFeatureIterator.next(AbstractMappingFeatureIterator.java:280) at org.geotools.data.joining.JoiningNestedAttributeMapping.getFeatures(JoiningNestedAttributeMapping.java:375) at org.geotools.data.complex.DataAccessMappingFeatureIterator.setAttributeValue(DataAccessMappingFeatureIterator.java:543) at org.geotools.data.complex.DataAccessMappingFeatureIterator.computeNext(DataAccessMappingFeatureIterator.java:981) ... 108 more Caused by: java.lang.IllegalArgumentException: Filter Function problem for function if_then_else argument #0 - expected type boolean at org.geotools.filter.function.FilterFunction_if_then_else.evaluate(FilterFunction_if_then_else.java:52) at org.geotools.data.complex.NestedAttributeMapping.getNestedFeatureType(NestedAttributeMapping.java:435) at org.geotools.data.complex.DataAccessMappingFeatureIterator.setAttributeValue(DataAccessMappingFeatureIterator.java:484) at org.geotools.data.complex.DataAccessMappingFeatureIterator.computeNext(DataAccessMappingFeatureIterator.java:981) ... 112 more Victor Tey Software Engineer ASRDC CSIRO Earth Science and Resource Engineering Phone: [cid:image002.gif@01CDF345.25B62740] +61 8 6436 8944 victor....@csiro.au<mailto:victor....@csiro.au> | www.csiro.au<http://www.csiro.au/> | Address: Australian Resources Research Centre, 26 Dick Perry Avenue, Kensington WA 6151 PLEASE NOTE The information contained in this email may be confidential or privileged. Any unauthorised use or disclosure is prohibited. If you have received this email in error, please delete it immediately and notify the sender by return email. Thank you. To the extent permitted by law, CSIRO does not represent, warrant and/or guarantee that the integrity of this communication has been maintained or that the communication is free of errors, virus, interception or interference. Please consider the environment before printing this email.
<<inline: image001.gif>>
<<inline: image002.gif>>
<<inline: image003.gif>>
<<inline: image004.gif>>
------------------------------------------------------------------------------ Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS and more. Get SQL Server skills now (including 2012) with LearnDevNow - 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only - learn more at: http://p.sf.net/sfu/learnmore_122512
_______________________________________________ Geoserver-devel mailing list Geoserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-devel