java.lang.ClassCastException

Pentaho BI Platform Tracking | clenz | 1 decade ago
  1. 0

    Using JPivot I get a ClassCastException when the Query has a Slicer, if I click on 'Sort'-Button as the first action : [JPivot] 25 Sep 2006 16:34:27,281 ERROR [Session 932F1387F13A4DCC64139BA7550C8748] com.tonbeller.wcf.component.RendererTag#doEndTag: trouble rendering table02 java.lang.ClassCastException at mondrian.olap.Query.clone(Query.java:162) at mondrian.olap.Query.safeClone(Query.java:173) at com.tonbeller.jpivot.mondrian.MondrianQueryAdapter.onExecute(MondrianQueryAdapter.java:150) at com.tonbeller.jpivot.mondrian.MondrianModel.getResult(MondrianModel.java:179) 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:245) at com.tonbeller.jpivot.table.TableComponent.render2(TableComponent.java:250) at com.tonbeller.jpivot.table.TableComponent.render(TableComponent.java:234) at com.tonbeller.wcf.component.RendererTag.doEndTag(RendererTag.java:137) at _jasper._statistic_jsp._jspService(_statistic_jsp.java:1173) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:552) at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:368) at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:287) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172) at com.tonbeller.wcf.controller.RequestFilter$MyHandler.normalRequest(RequestFilter.java:139) at com.tonbeller.wcf.controller.RequestSynchronizer.handleRequest(RequestSynchronizer.java:127) at com.tonbeller.wcf.controller.RequestFilter.doFilter(RequestFilter.java:263) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:265) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505) at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:153) at com.iplanet.ias.web.WebContainer.service(WebContainer.java:597) Looking at the source of mondrian.olap.Query.clone, I find the following: public Object clone() throws CloneNotSupportedException { return new Query(connection, cube, Formula.cloneArray(formulas), QueryAxis.cloneArray(axes), (slicerAxis == null) ? null : (Exp) slicerAxis.clone(), cellProps, Parameter.cloneArray(parameters)); } Problem is: (slicerAxis == null) ? null : (Exp) slicerAxis.clone() => slicerAxis is not null and slicerAxis.clone() returns a QueryAxis-Instance. QueryAxis is not an instance of Exp!

    Pentaho BI Platform Tracking | 1 decade ago | clenz
    java.lang.ClassCastException
  2. 0

    Using JPivot I get a ClassCastException when the Query has a Slicer, if I click on 'Sort'-Button as the first action : [JPivot] 25 Sep 2006 16:34:27,281 ERROR [Session 932F1387F13A4DCC64139BA7550C8748] com.tonbeller.wcf.component.RendererTag#doEndTag: trouble rendering table02 java.lang.ClassCastException at mondrian.olap.Query.clone(Query.java:162) at mondrian.olap.Query.safeClone(Query.java:173) at com.tonbeller.jpivot.mondrian.MondrianQueryAdapter.onExecute(MondrianQueryAdapter.java:150) at com.tonbeller.jpivot.mondrian.MondrianModel.getResult(MondrianModel.java:179) 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:245) at com.tonbeller.jpivot.table.TableComponent.render2(TableComponent.java:250) at com.tonbeller.jpivot.table.TableComponent.render(TableComponent.java:234) at com.tonbeller.wcf.component.RendererTag.doEndTag(RendererTag.java:137) at _jasper._statistic_jsp._jspService(_statistic_jsp.java:1173) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:552) at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:368) at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:287) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172) at com.tonbeller.wcf.controller.RequestFilter$MyHandler.normalRequest(RequestFilter.java:139) at com.tonbeller.wcf.controller.RequestSynchronizer.handleRequest(RequestSynchronizer.java:127) at com.tonbeller.wcf.controller.RequestFilter.doFilter(RequestFilter.java:263) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:265) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505) at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:153) at com.iplanet.ias.web.WebContainer.service(WebContainer.java:597) Looking at the source of mondrian.olap.Query.clone, I find the following: public Object clone() throws CloneNotSupportedException { return new Query(connection, cube, Formula.cloneArray(formulas), QueryAxis.cloneArray(axes), (slicerAxis == null) ? null : (Exp) slicerAxis.clone(), cellProps, Parameter.cloneArray(parameters)); } Problem is: (slicerAxis == null) ? null : (Exp) slicerAxis.clone() => slicerAxis is not null and slicerAxis.clone() returns a QueryAxis-Instance. QueryAxis is not an instance of Exp!

    Pentaho BI Platform Tracking | 1 decade ago | clenz
    java.lang.ClassCastException
  3. 0

    ClassCastException : PortableRemoteObject.

    Oracle Community | 1 decade ago | 403765
    java.lang.ClassCastException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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

      No message provided

      at mondrian.olap.Query.clone()
    2. mondrian.olap
      Query.safeClone
      1. mondrian.olap.Query.clone(Query.java:162)
      2. mondrian.olap.Query.safeClone(Query.java:173)
      2 frames
    3. com.tonbeller.jpivot
      TableComponent.render
      1. com.tonbeller.jpivot.mondrian.MondrianQueryAdapter.onExecute(MondrianQueryAdapter.java:150)
      2. com.tonbeller.jpivot.mondrian.MondrianModel.getResult(MondrianModel.java:179)
      3. com.tonbeller.jpivot.olap.model.OlapModelDecorator.getResult(OlapModelDecorator.java:54)
      4. com.tonbeller.jpivot.olap.model.CachingOlapModel.getResult(CachingOlapModel.java:48)
      5. com.tonbeller.jpivot.olap.model.OlapModelDecorator.getResult(OlapModelDecorator.java:54)
      6. com.tonbeller.jpivot.table.TableComponent.updateOlapModel(TableComponent.java:245)
      7. com.tonbeller.jpivot.table.TableComponent.render2(TableComponent.java:250)
      8. com.tonbeller.jpivot.table.TableComponent.render(TableComponent.java:234)
      8 frames
    4. com.tonbeller.wcf
      RendererTag.doEndTag
      1. com.tonbeller.wcf.component.RendererTag.doEndTag(RendererTag.java:137)
      1 frame
    5. _jasper
      _statistic_jsp._jspService
      1. _jasper._statistic_jsp._jspService(_statistic_jsp.java:1173)
      1 frame
    6. GWT dev
      HttpJspBase.service
      1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
      1 frame
    7. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      1 frame
    8. com.iplanet.ias
      JspServlet.service
      1. com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:552)
      2. com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:368)
      3. com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:287)
      3 frames
    9. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      1 frame
    10. Glassfish Core
      ApplicationFilterChain$1.run
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
      2. org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
      3. org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
      3 frames
    11. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    12. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
      1 frame
    13. com.tonbeller.wcf
      RequestFilter.doFilter
      1. com.tonbeller.wcf.controller.RequestFilter$MyHandler.normalRequest(RequestFilter.java:139)
      2. com.tonbeller.wcf.controller.RequestSynchronizer.handleRequest(RequestSynchronizer.java:127)
      3. com.tonbeller.wcf.controller.RequestFilter.doFilter(RequestFilter.java:263)
      3 frames
    14. Glassfish Core
      ApplicationFilterChain$1.run
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
      2. org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
      3. org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
      3 frames
    15. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    16. Glassfish Core
      StandardPipeline.invoke
      1. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
      2. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:265)
      3. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
      5. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
      6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
      7. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
      7 frames
    17. com.iplanet.ias
      WebContainer.service
      1. com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:153)
      2. com.iplanet.ias.web.WebContainer.service(WebContainer.java:597)
      2 frames