Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: MDX query works in Saiku but not in CDA

  1. #1
    Join Date
    Dec 2011
    Posts
    7

    Default MDX query works in Saiku but not in CDA

    Hi,

    I'm trying to run an MDX query for a dashboard I'm currently building. The query looks like this (basically):

    Code:
    SELECT {CurrentDateMember([Registration Dates.Registration Date].[Date], '["Registration Dates.Registration Date"]\.[yyyy-mm-dd]').Lag(2.0)} ON ROWS,
    {[Measures].[Count of Impressions]} ON COLUMNS
    from [Acquisition]
    I'm hoping I can get some help because it runs just fine when I run it in Saiku, but when I put it in a CDA component and try to run it, I get the following errors in my catalina.out log and no results back from CDA:

    Code:
    11:39:05,856 ERROR [CdaContentGenerator] Failed to execute: [ pt.webdetails.cda.dataaccess.QueryException ] - Found an unhandled exception: .( Cause [ pt.webdetails.cda.dataaccess.QueryException ]
     ReportDataFactoryException : Failed to create datasource:Mondrian Error:java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: mondrian/rolap/SmartMemberReader$SiblingIterator; 
    Parent exception: Mondrian Error:java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: mondrian/rolap/SmartMemberReader$SiblingIterator
    java.lang.NoClassDefFoundError: mondrian/rolap/SmartMemberReader$SiblingIterator
     .( Parent [ org.pentaho.reporting.engine.classic.core.ReportDataFactoryException ] Failed to create datasource:Mondrian Error:java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundErr
    or: mondrian/rolap/SmartMemberReader$SiblingIterator
    pt.webdetails.cda.dataaccess.QueryException: Found an unhandled exception:
            at pt.webdetails.cda.dataaccess.SimpleDataAccess.queryDataSource(SimpleDataAccess.java:128)
            at pt.webdetails.cda.dataaccess.AbstractDataAccess.doQuery(AbstractDataAccess.java:262)
            at pt.webdetails.cda.CdaEngine.doQuery(CdaEngine.java:51)
            at pt.webdetails.cda.CdaContentGenerator.doQuery(CdaContentGenerator.java:293)
            at pt.webdetails.cda.CdaContentGenerator.createContent(CdaContentGenerator.java:133)
            at org.pentaho.platform.web.servlet.GenericServlet.doGet(GenericServlet.java:261)
            at org.pentaho.platform.web.servlet.GenericServlet.doPost(GenericServlet.java:80)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
            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:92)
            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.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:278)
            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.ui.logout.LogoutFilter.doFilterHttp(LogoutFilter.java:89)
            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: pt.webdetails.cda.dataaccess.QueryException: ReportDataFactoryException : Failed to create datasource:Mondrian Error:java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: mondrian/rolap/SmartMemberReader$SiblingIterator; Parent exception: Mondrian Error:java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: mondrian/rolap/SmartMemberReader$SiblingIterator
    java.lang.NoClassDefFoundError: mondrian/rolap/SmartMemberReader$SiblingIterator
    
    
            at pt.webdetails.cda.dataaccess.PREDataAccess.performRawQuery(PREDataAccess.java:168)
            at pt.webdetails.cda.dataaccess.MdxDataAccess.performRawQuery(MdxDataAccess.java:314)
            at pt.webdetails.cda.dataaccess.SimpleDataAccess.queryDataSource(SimpleDataAccess.java:117)
            ... 68 more
    Caused by: org.pentaho.reporting.engine.classic.core.ReportDataFactoryException: Failed to create datasource:Mondrian Error:java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: mondrian/rolap/SmartMemberReader$SiblingIterator
            at org.pentaho.reporting.engine.classic.extensions.datasources.mondrian.AbstractMDXDataFactory.performQuery(AbstractMDXDataFactory.java:563)
            at org.pentaho.reporting.engine.classic.extensions.datasources.mondrian.AbstractNamedMDXDataFactory.performQuery(AbstractNamedMDXDataFactory.java:80)
            at pt.webdetails.cda.utils.mondrian.CompactBandedMDXDataFactory.queryData(CompactBandedMDXDataFactory.java:56)
            at org.pentaho.reporting.engine.classic.core.CompoundDataFactory.queryFreeForm(CompoundDataFactory.java:114)
            at org.pentaho.reporting.engine.classic.core.CompoundDataFactory.queryData(CompoundDataFactory.java:90)
            at org.pentaho.reporting.engine.classic.core.cache.CachingDataFactory.queryInternal(CachingDataFactory.java:424)
            at org.pentaho.reporting.engine.classic.core.cache.CachingDataFactory.queryData(CachingDataFactory.java:325)
            at pt.webdetails.cda.dataaccess.PREDataAccess.performRawQuery(PREDataAccess.java:150)
            ... 70 more

  2. #2
    Join Date
    Nov 2011
    Posts
    1,229

    Default

    Hey, there.

    By default, Saiku uses a dedicated Mondrian instance while CDA uses the mondrian instance deployed with the bi server.
    From your description, I'd say that a possible cause for your error is that the mondrian instance on your bi server is outdated/broken.

    Which version of the bi-server are you running?

    cheers
    Pedro Vale
    --
    CTools Product Development
    http://www.webdetails.pt

  3. #3
    Join Date
    Dec 2011
    Posts
    7

    Default

    Hey Pedro,

    Thanks for responding. I'm using bi-server 4.1 and CTools <version branch='STABLE' buildId=''>12.09.05</version>

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.