java.lang.ClassCastException: mondrian.rolap.RolapMemberBase cannot be cast to mondrian.rolap.RolapCalculatedMember

Pentaho BI Platform Tracking | Charlie Hubbard | 4 years ago
  1. 0

    When calling Member.getPropertyValue( property ) with certains properties the following error is thrown: java.lang.ClassCastException: mondrian.rolap.RolapMemberBase cannot be cast to mondrian.rolap.RolapCalculatedMember at mondrian.rolap.ScenarioImpl.forMember(ScenarioImpl.java:177) at mondrian.rolap.RolapMemberBase.getPropertyValue(RolapMemberBase.java:423) at mondrian.rolap.RolapMemberBase.getPropertyValue(RolapMemberBase.java:309) at mondrian.rolap.DelegatingRolapMember.getPropertyValue(DelegatingRolapMember.java:105) at mondrian.olap4j.MondrianOlap4jMember.getPropertyValue(MondrianOlap4jMember.java:161) at com.fuseanalytics.archiver.model.reports.OlapProperty.<init>(OlapProperty.java:22) at com.fuseanalytics.archiver.model.reports.OlapAxisResult.toOlapProperties(OlapAxisResult.java:39) at com.fuseanalytics.archiver.model.reports.OlapAxisResult.<init>(OlapAxisResult.java:31) at com.fuseanalytics.archiver.model.reports.OlapAxisResult.addPath(OlapAxisResult.java:139) at com.fuseanalytics.archiver.model.reports.OlapAxisResult.addPath(OlapAxisResult.java:132) at com.fuseanalytics.archiver.model.reports.OlapQueryResult.createAxis(OlapQueryResult.java:44) at com.fuseanalytics.archiver.model.reports.OlapQueryResult.<init>(OlapQueryResult.java:23) at com.fuseanalytics.archiver.model.AnalyticModel.execute(AnalyticModel.java:92) at com.fuseanalytics.archiver.controller.AnalyticsController.mdxQuery(AnalyticsController.java:144) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176) at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:436) at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:424) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:669) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:585) 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.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) 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:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:680) The following code results in the above error when used with any version on Mondrian after 3.4.0. Not all properties throw this error. It's only when the "$scenario" property is encountered that the following code breaks: this.properties = toOlapProperties(member, member.getProperties()); private List<OlapProperty> toOlapProperties(Member member, NamedList<Property> properties) throws OlapException { List<OlapProperty> olapProperties = new ArrayList<OlapProperty>( properties.size() ); for( Property property : properties ) { olapProperties.add( new OlapProperty( property, member ) ); } return olapProperties; } public OlapProperty(Property property, Member member) throws OlapException { this.property = property; value = member.getPropertyValue(property); formattedValue = member.getPropertyFormattedValue(property); } Expected: The property value is returned or no exception is thrown.

    Pentaho BI Platform Tracking | 4 years ago | Charlie Hubbard
    java.lang.ClassCastException: mondrian.rolap.RolapMemberBase cannot be cast to mondrian.rolap.RolapCalculatedMember
  2. 0

    When calling Member.getPropertyValue( property ) with certains properties the following error is thrown: java.lang.ClassCastException: mondrian.rolap.RolapMemberBase cannot be cast to mondrian.rolap.RolapCalculatedMember at mondrian.rolap.ScenarioImpl.forMember(ScenarioImpl.java:177) at mondrian.rolap.RolapMemberBase.getPropertyValue(RolapMemberBase.java:423) at mondrian.rolap.RolapMemberBase.getPropertyValue(RolapMemberBase.java:309) at mondrian.rolap.DelegatingRolapMember.getPropertyValue(DelegatingRolapMember.java:105) at mondrian.olap4j.MondrianOlap4jMember.getPropertyValue(MondrianOlap4jMember.java:161) at com.fuseanalytics.archiver.model.reports.OlapProperty.<init>(OlapProperty.java:22) at com.fuseanalytics.archiver.model.reports.OlapAxisResult.toOlapProperties(OlapAxisResult.java:39) at com.fuseanalytics.archiver.model.reports.OlapAxisResult.<init>(OlapAxisResult.java:31) at com.fuseanalytics.archiver.model.reports.OlapAxisResult.addPath(OlapAxisResult.java:139) at com.fuseanalytics.archiver.model.reports.OlapAxisResult.addPath(OlapAxisResult.java:132) at com.fuseanalytics.archiver.model.reports.OlapQueryResult.createAxis(OlapQueryResult.java:44) at com.fuseanalytics.archiver.model.reports.OlapQueryResult.<init>(OlapQueryResult.java:23) at com.fuseanalytics.archiver.model.AnalyticModel.execute(AnalyticModel.java:92) at com.fuseanalytics.archiver.controller.AnalyticsController.mdxQuery(AnalyticsController.java:144) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176) at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:436) at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:424) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:669) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:585) 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.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) 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:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:680) The following code results in the above error when used with any version on Mondrian after 3.4.0. Not all properties throw this error. It's only when the "$scenario" property is encountered that the following code breaks: this.properties = toOlapProperties(member, member.getProperties()); private List<OlapProperty> toOlapProperties(Member member, NamedList<Property> properties) throws OlapException { List<OlapProperty> olapProperties = new ArrayList<OlapProperty>( properties.size() ); for( Property property : properties ) { olapProperties.add( new OlapProperty( property, member ) ); } return olapProperties; } public OlapProperty(Property property, Member member) throws OlapException { this.property = property; value = member.getPropertyValue(property); formattedValue = member.getPropertyFormattedValue(property); } Expected: The property value is returned or no exception is thrown.

    Pentaho BI Platform Tracking | 4 years ago | Charlie Hubbard
    java.lang.ClassCastException: mondrian.rolap.RolapMemberBase cannot be cast to mondrian.rolap.RolapCalculatedMember
  3. 0

    I'm seeing a problem that is similar to MONDRIAN-762 in two ways. 1) The error raised is "mondrian.rolap.RolapMemberBase cannot be cast to mondrian.rolap.RolapCubeMember" 2) The error occurs only with XMLA (not through MDXQueryServlet) Unlike MONDRIAN-762 however, I was not able to reproduce this problem with the Mondrian demo and FoodMart schema. I have extended the Mondrian demo software to work with our influenza surveillance database. I've created a modified "MDXQueryServlet" that points to our schema, and I've added our catalog to datasources.properties. Here is my XMLA request: <Execute xmlns="urn:schemas-microsoft-com:xml-analysis" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <Command> <Statement> SELECT {[Measures].Members} ON COLUMNS, NON EMPTY {[Time].[Week].Members} ON ROWS FROM [Flu] </Statement> </Command> <Properties> <PropertyList> <Catalog>Distribute</Catalog> <DataSourceInfo>Provider=Mondrian;DataSource=Distribute;</DataSourceInfo> <Format>Multidimensional</Format> <Content>SchemaData</Content> </PropertyList> </Properties> </Execute> I am able to consistently reproduce the error after restarting Tomcat, however if I remove the "NON EMPTY" from the statement, the request succeeds. If I then add the "NON EMPTY" back in, the request continues to succeed. If the request fails (with "NON EMPTY" there) and then I remove the "NON EMPTY", the request continues to fail. --------- Here is the Distribute catalog (this stripped down version still reproduces the error): <Schema name="Distribute"> <Cube name="Flu"> <Table name="fact_observation_small"/> <Dimension name="Time" foreignKey="id_dateTimeRange" type="TimeDimension"> <Hierarchy primaryKey="id_dateTimeRange" hasAll="true"> <Table name="cdim_day"/> <Level name="Week" column="weekCdcEnding" uniqueMembers="false" levelType="TimeWeeks" type="String"/> <Level name="Day" column="day" uniqueMembers="false" levelType="TimeDays" type="String"/> </Hierarchy> </Dimension> <Measure name="Value" column="value" aggregator="sum" datatype="Numeric" formatString="#,###.####"/> </Cube> </Schema> -------- Stack trace: [JPivot] 11 Aug 2010 16:27:38,551 ERROR [Session ] mondrian.xmla.XmlaServlet#doPost: Errors when handling XML/A message mondrian.xmla.XmlaException: Mondrian Error:XMLA Execute unparse results error at mondrian.xmla.XmlaHandler.execute(XmlaHandler.java:697) at mondrian.xmla.XmlaHandler.process(XmlaHandler.java:551) at mondrian.xmla.impl.DefaultXmlaServlet.handleSoapBody(DefaultXmlaServlet.java:426) at mondrian.xmla.XmlaServlet.doPost(XmlaServlet.java:329) at javax.servlet.http.HttpServlet.service(HttpServlet.java:647) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:461) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:364) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) at org.apache.jsp.xmla_jsp._jspService(xmla_jsp.java:57) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) 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:172) 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:174) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873) 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:619) Caused by: java.lang.ClassCastException: mondrian.rolap.RolapMemberBase cannot be cast to mondrian.rolap.RolapCubeMember at mondrian.rolap.RolapCubeHierarchy$CacheRolapCubeHierarchyMemberReader.readMemberChildren(RolapCubeHierarchy.java:569) at mondrian.rolap.RolapCubeHierarchy$CacheRolapCubeHierarchyMemberReader.getMemberChildren(RolapCubeHierarchy.java:679) at mondrian.rolap.SmartMemberReader.getMemberChildren(SmartMemberReader.java:176) at mondrian.rolap.SmartMemberReader.getMemberChildren(SmartMemberReader.java:166) at mondrian.rolap.RolapMemberBase.getPropertyValue(RolapMemberBase.java:356) at mondrian.rolap.RolapMemberBase.getPropertyValue(RolapMemberBase.java:282) at mondrian.rolap.DelegatingRolapMember.getPropertyValue(DelegatingRolapMember.java:105) at mondrian.xmla.XmlaHandler$MDDataSet_Multidimensional.writeMember(XmlaHandler.java:2137) at mondrian.xmla.XmlaHandler$MDDataSet_Multidimensional.axis(XmlaHandler.java:2107) at mondrian.xmla.XmlaHandler$MDDataSet_Multidimensional.axes(XmlaHandler.java:1974) at mondrian.xmla.XmlaHandler$MDDataSet_Multidimensional.unparse(XmlaHandler.java:1784) at mondrian.xmla.XmlaHandler.execute(XmlaHandler.java:690) ... 32 more

    Pentaho BI Platform Tracking | 6 years ago | Kim Goldov
    mondrian.xmla.XmlaException: Mondrian Error:XMLA Execute unparse results error
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I'm seeing a problem that is similar to MONDRIAN-762 in two ways. 1) The error raised is "mondrian.rolap.RolapMemberBase cannot be cast to mondrian.rolap.RolapCubeMember" 2) The error occurs only with XMLA (not through MDXQueryServlet) Unlike MONDRIAN-762 however, I was not able to reproduce this problem with the Mondrian demo and FoodMart schema. I have extended the Mondrian demo software to work with our influenza surveillance database. I've created a modified "MDXQueryServlet" that points to our schema, and I've added our catalog to datasources.properties. Here is my XMLA request: <Execute xmlns="urn:schemas-microsoft-com:xml-analysis" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <Command> <Statement> SELECT {[Measures].Members} ON COLUMNS, NON EMPTY {[Time].[Week].Members} ON ROWS FROM [Flu] </Statement> </Command> <Properties> <PropertyList> <Catalog>Distribute</Catalog> <DataSourceInfo>Provider=Mondrian;DataSource=Distribute;</DataSourceInfo> <Format>Multidimensional</Format> <Content>SchemaData</Content> </PropertyList> </Properties> </Execute> I am able to consistently reproduce the error after restarting Tomcat, however if I remove the "NON EMPTY" from the statement, the request succeeds. If I then add the "NON EMPTY" back in, the request continues to succeed. If the request fails (with "NON EMPTY" there) and then I remove the "NON EMPTY", the request continues to fail. --------- Here is the Distribute catalog (this stripped down version still reproduces the error): <Schema name="Distribute"> <Cube name="Flu"> <Table name="fact_observation_small"/> <Dimension name="Time" foreignKey="id_dateTimeRange" type="TimeDimension"> <Hierarchy primaryKey="id_dateTimeRange" hasAll="true"> <Table name="cdim_day"/> <Level name="Week" column="weekCdcEnding" uniqueMembers="false" levelType="TimeWeeks" type="String"/> <Level name="Day" column="day" uniqueMembers="false" levelType="TimeDays" type="String"/> </Hierarchy> </Dimension> <Measure name="Value" column="value" aggregator="sum" datatype="Numeric" formatString="#,###.####"/> </Cube> </Schema> -------- Stack trace: [JPivot] 11 Aug 2010 16:27:38,551 ERROR [Session ] mondrian.xmla.XmlaServlet#doPost: Errors when handling XML/A message mondrian.xmla.XmlaException: Mondrian Error:XMLA Execute unparse results error at mondrian.xmla.XmlaHandler.execute(XmlaHandler.java:697) at mondrian.xmla.XmlaHandler.process(XmlaHandler.java:551) at mondrian.xmla.impl.DefaultXmlaServlet.handleSoapBody(DefaultXmlaServlet.java:426) at mondrian.xmla.XmlaServlet.doPost(XmlaServlet.java:329) at javax.servlet.http.HttpServlet.service(HttpServlet.java:647) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:461) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:364) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) at org.apache.jsp.xmla_jsp._jspService(xmla_jsp.java:57) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) 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:172) 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:174) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873) 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:619) Caused by: java.lang.ClassCastException: mondrian.rolap.RolapMemberBase cannot be cast to mondrian.rolap.RolapCubeMember at mondrian.rolap.RolapCubeHierarchy$CacheRolapCubeHierarchyMemberReader.readMemberChildren(RolapCubeHierarchy.java:569) at mondrian.rolap.RolapCubeHierarchy$CacheRolapCubeHierarchyMemberReader.getMemberChildren(RolapCubeHierarchy.java:679) at mondrian.rolap.SmartMemberReader.getMemberChildren(SmartMemberReader.java:176) at mondrian.rolap.SmartMemberReader.getMemberChildren(SmartMemberReader.java:166) at mondrian.rolap.RolapMemberBase.getPropertyValue(RolapMemberBase.java:356) at mondrian.rolap.RolapMemberBase.getPropertyValue(RolapMemberBase.java:282) at mondrian.rolap.DelegatingRolapMember.getPropertyValue(DelegatingRolapMember.java:105) at mondrian.xmla.XmlaHandler$MDDataSet_Multidimensional.writeMember(XmlaHandler.java:2137) at mondrian.xmla.XmlaHandler$MDDataSet_Multidimensional.axis(XmlaHandler.java:2107) at mondrian.xmla.XmlaHandler$MDDataSet_Multidimensional.axes(XmlaHandler.java:1974) at mondrian.xmla.XmlaHandler$MDDataSet_Multidimensional.unparse(XmlaHandler.java:1784) at mondrian.xmla.XmlaHandler.execute(XmlaHandler.java:690) ... 32 more

    Pentaho BI Platform Tracking | 6 years ago | Kim Goldov
    mondrian.xmla.XmlaException: Mondrian Error:XMLA Execute unparse results error
  6. 0

    Jasperanalysis error | Jaspersoft Community

    jaspersoft.com | 1 year ago
    java.lang.ClassCastException: mondrian.rolap.SqlMemberSource$RolapParentChildMemberNoClosure cannot be cast to mondrian.rolap.RolapCalculatedMember

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      mondrian.rolap.RolapMemberBase cannot be cast to mondrian.rolap.RolapCalculatedMember

      at mondrian.rolap.ScenarioImpl.forMember()
    2. mondrian.rolap
      DelegatingRolapMember.getPropertyValue
      1. mondrian.rolap.ScenarioImpl.forMember(ScenarioImpl.java:177)
      2. mondrian.rolap.RolapMemberBase.getPropertyValue(RolapMemberBase.java:423)
      3. mondrian.rolap.RolapMemberBase.getPropertyValue(RolapMemberBase.java:309)
      4. mondrian.rolap.DelegatingRolapMember.getPropertyValue(DelegatingRolapMember.java:105)
      4 frames
    3. mondrian.olap4j
      MondrianOlap4jMember.getPropertyValue
      1. mondrian.olap4j.MondrianOlap4jMember.getPropertyValue(MondrianOlap4jMember.java:161)
      1 frame
    4. com.fuseanalytics.archiver
      AnalyticsController.mdxQuery
      1. com.fuseanalytics.archiver.model.reports.OlapProperty.<init>(OlapProperty.java:22)
      2. com.fuseanalytics.archiver.model.reports.OlapAxisResult.toOlapProperties(OlapAxisResult.java:39)
      3. com.fuseanalytics.archiver.model.reports.OlapAxisResult.<init>(OlapAxisResult.java:31)
      4. com.fuseanalytics.archiver.model.reports.OlapAxisResult.addPath(OlapAxisResult.java:139)
      5. com.fuseanalytics.archiver.model.reports.OlapAxisResult.addPath(OlapAxisResult.java:132)
      6. com.fuseanalytics.archiver.model.reports.OlapQueryResult.createAxis(OlapQueryResult.java:44)
      7. com.fuseanalytics.archiver.model.reports.OlapQueryResult.<init>(OlapQueryResult.java:23)
      8. com.fuseanalytics.archiver.model.AnalyticModel.execute(AnalyticModel.java:92)
      9. com.fuseanalytics.archiver.controller.AnalyticsController.mdxQuery(AnalyticsController.java:144)
      9 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    6. Spring
      HandlerMethodInvoker.invokeHandlerMethod
      1. org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)
      1 frame
    7. Spring MVC
      FrameworkServlet.doPost
      1. org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:436)
      2. org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:424)
      3. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)
      4. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
      5. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:669)
      6. org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:585)
      6 frames
    8. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      2 frames
    9. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      5. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      6. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      7. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      8. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
      8 frames
    10. Grizzly HTTP
      JIoEndpoint$Worker.run
      1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
      2. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
      3. org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      3 frames
    11. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:680)
      1 frame