Hi There,

lately I am experiencing problems with the legacy Pentaho Analyzer, I am getting this error while trying to execute an MDX query:

014-02-25 17:42:55,715 ERROR [com.tonbeller.wcf.component.RendererTag] trouble rendering table7c688b6c-9e38-11e3-8fcd-7bfdfd7d4426
com.tonbeller.jpivot.olap.model.OlapException: mondrian.olap.MondrianException: Mondrian Error:Internal error: Error while executing query [select NON EMPTY Crossjoin(Hierarchize(Crossjoin({[PERIODOS.PERIODO].[2013-04]}, Union({[SEXOS.SEXO].[All SEXOS.SEXOs]}, [SEXOS.SEXO].[All SEXOS.SEXOs].Children))), {[MUNICIPIOS.MUNICIPIO].[All MUNICIPIOS.MUNICIPIOs]}) ON COLUMNS,
NON EMPTY {[Measures].[TD o TT Mujeres en Edad Fertil 15 a 49 ], [Measures].[Consultas Control Embarazo], [Measures].[Consultas prenatal primera vez], [Measures].[Consulta oftalmologia], [Measures].[Mediciones agudeza visual], [Measures].[Colposcopias], [Measures].[Tomas biopsia cervico uterina], [Measures].[Tomas citologia cervico uterinas], [Measures].[Consultas adulto primera vez], [Measures].[Consulta joven primera vez], [Measures].[Numero registros], [Measures].[Peso bajo al nacer], [Measures].[Consultas crecimiento primera vez], [Measures].[Atenciones al parto], [Measures].[Serologias durante parto], [Measures].[Suministro anticonceptivos orales], [Measures].[Consultas planificacion Familiar primera vez], [Measures].[Esterilizaciones OTB], [Measures].[Anticonceptivos emergencia], [Measures].[Anticonceptivos hormonales], [Measures].[Vacunaciones BCG], [Measures].[Vacunaciones DPT], [Measures].[Vacunaciones Fiebre amarilla], [Measures].[Vacunaciones Hepatitis B], [Measures].[Vacunaciones influenza], [Measures].[Vacunaciones Polio], [Measures].[Vacunaciones TD/TT], [Measures].[Vacunaciones Triple virica]} ON ROWS
from [ESTRELLA_IND_ENVIOS]
]
at com.tonbeller.jpivot.mondrian.MondrianModel.getResult(MondrianModel.java:307)
at com.tonbeller.jpivot.olap.model.OlapModelDecorator.getResult(OlapModelDecorator.java:54)
at com.tonbeller.jpivot.olap.model.CachingOlapModel.getResult(CachingOlapModel.java:48)
at com.tonbeller.jpivot.olap.model.OlapModelDecorator.getResult(OlapModelDecorator.java:54)
at com.tonbeller.jpivot.table.TableComponent.updateOlapModel(TableComponent.java:246)
at com.tonbeller.jpivot.table.TableComponent.render2(TableComponent.java:251)
at com.tonbeller.jpivot.table.TableComponent.render(TableComponent.java:235)
at com.tonbeller.wcf.component.RendererTag.doEndTag(RendererTag.java:137)
at org.apache.jsp.jsp.Pivot_jsp._jspService(Pivot_jsp.java:2750)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.pentaho.platform.web.http.filters.PentahoWebContextFilter.doFilter(PentahoWebContextFilter.java:142)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.pentaho.platform.web.http.filters.PentahoRequestContextFilter.doFilter(PentahoRequestContextFilter.java:84)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
at org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
at org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
at org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101)
at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
at org.pentaho.platform.web.http.security.SecurityStartupFilter.doFilter(SecurityStartupFilter.java:103)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
at org.springframework.security.providers.anonymous.AnonymousProcessingFilter.doFilterHttp(AnonymousProcessingFilter.java:105)
at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
at org.pentaho.platform.web.http.security.RequestParameterAuthenticationFilter.doFilter(RequestParameterAuthenticationFilter.java:169)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
at org.springframework.security.ui.basicauth.BasicProcessingFilter.doFilterHttp(BasicProcessingFilter.java:174)
at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
at org.pentaho.platform.web.http.security.HttpSessionReuseDetectionFilter.doFilter(HttpSessionReuseDetectionFilter.java:134)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
at org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235)
at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
at org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter.doFilterHttp(SecurityContextHolderAwareRequestFilter.java:91)
at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
at org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:175)
at org.springframework.security.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:99)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.pentaho.platform.web.http.filters.SystemStatusFilter.doFilter(SystemStatusFilter.java:60)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.pentaho.platform.web.http.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:113)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:662)
Caused by: mondrian.olap.MondrianException: Mondrian Error:Internal error: Error while executing query [select NON EMPTY Crossjoin(Hierarchize(Crossjoin({[PERIODOS.PERIODO].[2013-04]}, Union({[SEXOS.SEXO].[All SEXOS.SEXOs]}, [SEXOS.SEXO].[All SEXOS.SEXOs].Children))), {[MUNICIPIOS.MUNICIPIO].[All MUNICIPIOS.MUNICIPIOs]}) ON COLUMNS,
NON EMPTY {[Measures].[TD o TT Mujeres en Edad Fertil 15 a 49 ], [Measures].[Consultas Control Embarazo], [Measures].[Consultas prenatal primera vez], [Measures].[Consulta oftalmologia], [Measures].[Mediciones agudeza visual], [Measures].[Colposcopias], [Measures].[Tomas biopsia cervico uterina], [Measures].[Tomas citologia cervico uterinas], [Measures].[Consultas adulto primera vez], [Measures].[Consulta joven primera vez], [Measures].[Numero registros], [Measures].[Peso bajo al nacer], [Measures].[Consultas crecimiento primera vez], [Measures].[Atenciones al parto], [Measures].[Serologias durante parto], [Measures].[Suministro anticonceptivos orales], [Measures].[Consultas planificacion Familiar primera vez], [Measures].[Esterilizaciones OTB], [Measures].[Anticonceptivos emergencia], [Measures].[Anticonceptivos hormonales], [Measures].[Vacunaciones BCG], [Measures].[Vacunaciones DPT], [Measures].[Vacunaciones Fiebre amarilla], [Measures].[Vacunaciones Hepatitis B], [Measures].[Vacunaciones influenza], [Measures].[Vacunaciones Polio], [Measures].[Vacunaciones TD/TT], [Measures].[Vacunaciones Triple virica]} ON ROWS
from [ESTRELLA_IND_ENVIOS]
]
at mondrian.resource.MondrianResource$_Def0.ex(MondrianResource.java:967)
at mondrian.olap.Util.newInternal(Util.java:2400)
at mondrian.olap.Util.newError(Util.java:2416)
at mondrian.rolap.RolapConnection.executeInternal(RolapConnection.java:715)
at mondrian.rolap.RolapConnection.access$000(RolapConnection.java:51)
at mondrian.rolap.RolapConnection$1.call(RolapConnection.java:631)
at mondrian.rolap.RolapConnection$1.call(RolapConnection.java:630)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
... 1 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
at mondrian.rolap.agg.DenseObjectSegmentDataset.getObject(DenseObjectSegmentDataset.java:56)
at mondrian.rolap.agg.SegmentWithData.getCellValue(SegmentWithData.java:179)
at mondrian.rolap.RolapStar.getCellFromCache(RolapStar.java:157)
at mondrian.rolap.agg.AggregationManager.getCellFromCache(AggregationManager.java:188)
at mondrian.rolap.FastBatchingCellReader.get(FastBatchingCellReader.java:130)
at mondrian.rolap.RolapEvaluator.evaluateCurrent(RolapEvaluator.java:660)
at mondrian.olap.fun.CrossJoinFunDef.checkData(CrossJoinFunDef.java:999)
at mondrian.olap.fun.CrossJoinFunDef.nonEmptyList(CrossJoinFunDef.java:949)
at mondrian.olap.fun.CrossJoinFunDef.nonEmptyOptimizeList(CrossJoinFunDef.java:483)
at mondrian.olap.fun.CrossJoinFunDef$BaseListCalc.evaluateList(CrossJoinFunDef.java:361)
at mondrian.olap.fun.HierarchizeFunDef$1.evaluateList(HierarchizeFunDef.java:46)
at mondrian.rolap.sql.CrossJoinArgFactory.expandNonNative(CrossJoinArgFactory.java:910)
at mondrian.rolap.sql.CrossJoinArgFactory.checkCrossJoin(CrossJoinArgFactory.java:341)
at mondrian.rolap.RolapNativeCrossJoin.createEvaluator(RolapNativeCrossJoin.java:105)
at mondrian.rolap.RolapNativeRegistry.createEvaluator(RolapNativeRegistry.java:56)
at mondrian.rolap.RolapSchemaReader.getNativeSetEvaluator(RolapSchemaReader.java:663)
at mondrian.olap.DelegatingSchemaReader.getNativeSetEvaluator(DelegatingSchemaReader.java:269)
at mondrian.olap.fun.CrossJoinFunDef$CrossJoinIterCalc.evaluateIterable(CrossJoinFunDef.java:173)
at mondrian.rolap.RolapResult.executeAxis(RolapResult.java:817)
at mondrian.rolap.RolapResult.evalLoad(RolapResult.java:642)
at mondrian.rolap.RolapResult.loadMembers(RolapResult.java:598)
at mondrian.rolap.RolapResult.<init>(RolapResult.java:286)
at mondrian.rolap.RolapConnection.executeInternal(RolapConnection.java:680)
... 8 more

The same query works in the Saiku Analytics. Any help? we have Pentaho BI Server 4.8 Stable

Thanks