Hi, Am using mondrian 3.5.7. When my query contains large number of selections in filters am experiencing 'StackOverFlowError' at "stmt.executeOlapQuery(mdx); ". below is the log. Could someone say how to handle this.

Log:
ERROR 2014-08-28 16:37:59 QueryResource(execute: 842) Cannot execute query (3F303D3C-5285-9B5E-9620-64B7D8AA57B0)
org.saiku.service.util.exception.SaikuServiceException: Can't execute query: 3F303D3C-5285-9B5E-9620-64B7D8AA57B0
at org.saiku.service.olap.OlapQueryService.execute(OlapQueryService.java:267)
at org.saiku.service.olap.OlapQueryService.execute(OlapQueryService.java:223)
at org.saiku.web.rest.resources.QueryResource.execute(QueryResource.java:836)
at org.saiku.web.rest.resources.QueryResource$$FastClassByCGLIB$$e130f1a0.invoke(<generated>)
....
....
Caused by: java.lang.StackOverflowError
at org.olap4j.query.Olap4jNodeConverter.generateUnion(Olap4jNodeConverter.java:107)
at org.olap4j.query.Olap4jNodeConverter.generateUnion(Olap4jNodeConverter.java:107)
at org.olap4j.query.Olap4jNodeConverter.generateUnion(Olap4jNodeConverter.java:107)
at org.olap4j.query.Olap4jNodeConverter.generateUnion(Olap4jNodeConverter.java:107)
at org.olap4j.query.Olap4jNodeConverter.generateUnion(Olap4jNodeConverter.java:107)
at org.olap4j.query.Olap4jNodeConverter.generateUnion(Olap4jNodeConverter.java:107)
at org.olap4j.query.Olap4jNodeConverter.generateUnion(Olap4jNodeConverter.java:107)
at org.olap4j.query.Olap4jNodeConverter.generateUnion(Olap4jNodeConverter.java:107)
at org.olap4j.query.Olap4jNodeConverter.generateUnion(Olap4jNodeConverter.java:107)
at org.olap4j.query.Olap4jNodeConverter.generateUnion(Olap4jNodeConverter.java:107)
.....
....