I've tried to set up an example security xml for the supermart domain as described in the tutorials. It does only work if I use static values in the filter expression. If I try to use groovy expressions for dynamic filtering I get following exception: java.lang.ClassCastException: com.jaspersoft.commons.dataset.expr.GenericFunction at com.jaspersoft.commons.groovy.GroovyGenerator.outputList(GroovyGenerator.java:392) at com.jaspersoft.commons.groovy.GroovyGenerator.in(GroovyGenerator.java:334) at com.jaspersoft.commons.dataset.expr.ExpressionWalker.operator(ExpressionWalker.java:111) at com.jaspersoft.commons.groovy.GroovyGenerator.operator(GroovyGenerator.java:499) at com.jaspersoft.commons.dataset.expr.ExpressionWalker.walk(ExpressionWalker.java:50) at com.jaspersoft.commons.groovy.GroovyGenerator.getColumn(GroovyGenerator.java:110) at com.jaspersoft.commons.datarator.WorkingDataSet.getGroovyColumn(WorkingDataSet.java:166) at com.jaspersoft.commons.datarator.WorkingDataSet.applyFilterSortMax(WorkingDataSet.java:317) at com.jaspersoft.commons.datarator.WorkingDataSet.getIterator(WorkingDataSet.java:254) at com.jaspersoft.commons.datarator.jr.DataratorJRDataSource.<init>(DataratorJRDataSource.java:20) The principalExpression works: 2010-02-03 09:37:45,506 DEBUG SemanticLayerSecurityResolverImpl,http-8888-6:521 - Evaluating JoinTree_1_List for resourceId: JoinTree_12010-02-03 09:37:45,553 DEBUG SemanticLayerSecurityResolverImpl,http-8888-6:528 - Evaluating authentication.getPrincipal().getAttributes().any{ it.getAttrName() in ['StoreNr'] }. got: true2010-02-03 09:37:45,553 DEBUG SemanticLayerSecurityResolverImpl,http-8888-6:534 - For new Created base grant list for : JoinTree_1_List - JoinTree_12010-02-03 09:37:45,553 DEBUG SemanticLayerSecurityResolverImpl,http-8888-6:536 - Adding grant: Jointree_1_row_access_grant_12010-02-03 09:37:45,553 DEBUG SemanticLayerSecurityResolverImpl,http-8888-6:542 - Setting grants for resourceId: JoinTree_1 Below is a snippet of the security xml file. Code: Any suggestions to solve this problem? Do I anything wrong or is it a bug? Thanks, Andreas Post Edited by ae3 at 02/03/2010 08:43