Uploaded image for project: 'Pentaho BA Platform'
  1. Pentaho BA Platform
  2. BISERVER-600

IndexOutOfBoundsException after selecting an empty result set

    Details

    • Type: Bug
    • Status: Closed
    • Severity: Low
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.1.0 GA
    • Component/s: None
    • Labels:
      None
    • Environment:
      Ubuntu Feisty, MySQL database
    • Notice:
      When an issue is open, the "Fix Version/s" field conveys a target, not necessarily a commitment. When an issue is closed, the "Fix Version/s" field conveys the version that the issue was fixed in.
    • Browser:
      Mozilla FireFox 2.0

      Description

      I made a query that returned no rows and received an java.lang.IndexOutOfBoundsException. I think this error should be better treated. The stack trace follows:

      18:40:00,464 ERROR [MDXLookupRule] Error Start: Pentaho Pentaho BI Platform 1.6.0.GA.863
      18:40:00,469 ERROR [MDXLookupRule] ed425991-a746-11dc-8e5e-3d92cf8ffc84:COMPONENT:context-27400911-1197308398438:traficParJours.xactionMDXBaseComponent.ERROR_0006 - Impossible dexécuter

      {0}

      java.lang.IndexOutOfBoundsException: Index: 0
      at java.util.Collections$EmptyList.get(Collections.java:2975)
      at org.pentaho.data.connection.mdx.MDXMetaData.createColumnNames(MDXMetaData.java:114)
      at org.pentaho.data.connection.mdx.MDXMetaData.<init>(MDXMetaData.java:53)
      at org.pentaho.data.connection.mdx.MDXResultSet.<init>(MDXResultSet.java:72)
      at org.pentaho.data.connection.mdx.MDXConnection.executeQuery(MDXConnection.java:197)
      at org.pentaho.plugin.mdx.MDXBaseComponent.runQuery(MDXBaseComponent.java:273)
      at org.pentaho.plugin.mdx.MDXBaseComponent.executeAction(MDXBaseComponent.java:155)
      at org.pentaho.plugin.ComponentBase.execute(ComponentBase.java:454)
      at org.pentaho.core.runtime.RuntimeContext.executeComponent(RuntimeContext.java:1122)
      at org.pentaho.core.runtime.RuntimeContext.executeAction(RuntimeContext.java:1094)
      at org.pentaho.core.runtime.RuntimeContext.performActions(RuntimeContext.java:1006)
      at org.pentaho.core.runtime.RuntimeContext.executeLoop(RuntimeContext.java:961)
      at org.pentaho.core.runtime.RuntimeContext.executeSequence(RuntimeContext.java:864)
      at org.pentaho.core.runtime.RuntimeContext.performActions(RuntimeContext.java:996)
      at org.pentaho.core.runtime.RuntimeContext.executeLoop(RuntimeContext.java:961)
      at org.pentaho.core.runtime.RuntimeContext.executeSequence(RuntimeContext.java:864)
      at org.pentaho.core.runtime.RuntimeContext.executeSequence(RuntimeContext.java:768)
      at org.pentaho.core.solution.SolutionEngine.executeInternal(SolutionEngine.java:333)
      at org.pentaho.core.solution.SolutionEngine.execute(SolutionEngine.java:241)
      at org.pentaho.core.solution.SolutionEngine.execute(SolutionEngine.java:169)
      at org.pentaho.core.services.BaseRequestHandler.handleActionRequest(BaseRequestHandler.java:150)
      at org.pentaho.ui.servlet.ViewAction.handleActionRequest(ViewAction.java:139)
      at org.pentaho.ui.servlet.ViewAction.doGet(ViewAction.java:261)
      at org.pentaho.ui.servlet.ViewAction.doPost(ViewAction.java:271)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
      at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
      at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
      at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
      at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)
      at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
      at org.acegisecurity.ui.switchuser.SwitchUserProcessingFilter.doFilter(SwitchUserProcessingFilter.java:335)
      at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
      at com.pentaho.security.SecurityStartupFilter.doFilter(SecurityStartupFilter.java:76)
      at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
      at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
      at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
      at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
      at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
      at com.pentaho.security.RequestParameterAuthenticationFilter.doFilter(RequestParameterAuthenticationFilter.java:164)
      at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
      at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:178)
      at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
      at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:217)
      at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
      at org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:108)
      at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
      at com.pentaho.security.HttpSessionReuseDetectionFilter.doFilter(HttpSessionReuseDetectionFilter.java:130)
      at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
      at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:193)
      at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
      at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
      at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
      at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)
      at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      at org.pentaho.core.system.SystemStatusFilter.doFilter(SystemStatusFilter.java:53)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      at org.pentaho.ui.servlet.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
      at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
      at java.lang.Thread.run(Thread.java:595)
      18:40:00,476 ERROR [MDXLookupRule] Error end:

      Thanks,
      Tiago.

        Attachments

          Activity

            People

            • Assignee:
              gdavid Golda Thomas
              Reporter:
              caveden Tiago Rinck Caveden
            • Votes:
              2 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: