java.lang.ClassCastException: pt.webdetails.cda.cache.EHCacheQueryCache cannot be cast to pt.webdetails.cda.cache.IQuery Cache

Pentaho BI Platform Tracking | Gretchen Moran | 5 years ago
  1. 0

    I am using CDA (specifically CdaQueryComponent) in my own custom plugin. I CAN get the cache objects to load correctly if I use the CdaQueryComponent in a stand alone action sequence. However, attempting to directly instantiate and configure a CdaQueryComponent in my content generator, I get the following failure: 13:54:01,808 ERROR [SimpleDataAccess] Error while attempting to load from cache, bypassing cache (cause: class java.lang .ClassCastException) java.lang.ClassCastException: pt.webdetails.cda.cache.EHCacheQueryCache cannot be cast to pt.webdetails.cda.cache.IQuery Cache at pt.webdetails.cda.dataaccess.AbstractDataAccess.getCdaCache(AbstractDataAccess.java:212) at pt.webdetails.cda.dataaccess.SimpleDataAccess.queryDataSource(SimpleDataAccess.java:102) at pt.webdetails.cda.dataaccess.AbstractDataAccess.doQuery(AbstractDataAccess.java:263) at pt.webdetails.cda.CdaQueryComponent.execute(CdaQueryComponent.java:171) at com.pentaho.bootcamp.content.FusionContentGenerator.createContent(FusionContentGenerator.java:65) at org.pentaho.platform.engine.services.solution.SimpleContentGenerator.createContent(SimpleContentGenerator.jav a:66) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.pentaho.platform.web.http.context.WebSpringPentahoObjectFactory$a.invoke(SourceFile:288) at $Proxy15.createContent(Unknown Source) at org.pentaho.platform.web.servlet.GenericServlet.doGet(GenericServlet.java:261) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) 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:102) 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:8 etc., etc., ............ I suspect a classloading issue, or maybe I have not configured the cache correctly? This prohibits plugin developers from using CDA (caching) as a data access mechanism in their plugins.

    Pentaho BI Platform Tracking | 5 years ago | Gretchen Moran
    java.lang.ClassCastException: pt.webdetails.cda.cache.EHCacheQueryCache cannot be cast to pt.webdetails.cda.cache.IQuery Cache
  2. 0

    I am using CDA (specifically CdaQueryComponent) in my own custom plugin. I CAN get the cache objects to load correctly if I use the CdaQueryComponent in a stand alone action sequence. However, attempting to directly instantiate and configure a CdaQueryComponent in my content generator, I get the following failure: 13:54:01,808 ERROR [SimpleDataAccess] Error while attempting to load from cache, bypassing cache (cause: class java.lang .ClassCastException) java.lang.ClassCastException: pt.webdetails.cda.cache.EHCacheQueryCache cannot be cast to pt.webdetails.cda.cache.IQuery Cache at pt.webdetails.cda.dataaccess.AbstractDataAccess.getCdaCache(AbstractDataAccess.java:212) at pt.webdetails.cda.dataaccess.SimpleDataAccess.queryDataSource(SimpleDataAccess.java:102) at pt.webdetails.cda.dataaccess.AbstractDataAccess.doQuery(AbstractDataAccess.java:263) at pt.webdetails.cda.CdaQueryComponent.execute(CdaQueryComponent.java:171) at com.pentaho.bootcamp.content.FusionContentGenerator.createContent(FusionContentGenerator.java:65) at org.pentaho.platform.engine.services.solution.SimpleContentGenerator.createContent(SimpleContentGenerator.jav a:66) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.pentaho.platform.web.http.context.WebSpringPentahoObjectFactory$a.invoke(SourceFile:288) at $Proxy15.createContent(Unknown Source) at org.pentaho.platform.web.servlet.GenericServlet.doGet(GenericServlet.java:261) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) 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:102) 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:8 etc., etc., ............ I suspect a classloading issue, or maybe I have not configured the cache correctly? This prohibits plugin developers from using CDA (caching) as a data access mechanism in their plugins.

    Pentaho BI Platform Tracking | 5 years ago | Gretchen Moran
    java.lang.ClassCastException: pt.webdetails.cda.cache.EHCacheQueryCache cannot be cast to pt.webdetails.cda.cache.IQuery Cache
  3. 0

    Scala 2.11.5 and Squeryl?

    Google Groups | 2 years ago | Clint Gilbert
    java.lang.ClassCastException: scala.None$ cannot be cast to
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    adam2vcf

    Google Groups | 8 months ago | someya sayeh
    java.lang.ClassCastException: org.bdgenomics.formats.avro.Fragment cannot be cast to
  6. 0

    Memcached Java客户端2.6.1发布 - 编程语言 - ITeye资讯

    iteye.com | 1 year ago
    java.lang.ClassCastException: cannot be cast to

    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

      pt.webdetails.cda.cache.EHCacheQueryCache cannot be cast to pt.webdetails.cda.cache.IQuery Cache

      at pt.webdetails.cda.dataaccess.AbstractDataAccess.getCdaCache()
    2. pt.webdetails.cda
      CdaQueryComponent.execute
      1. pt.webdetails.cda.dataaccess.AbstractDataAccess.getCdaCache(AbstractDataAccess.java:212)
      2. pt.webdetails.cda.dataaccess.SimpleDataAccess.queryDataSource(SimpleDataAccess.java:102)
      3. pt.webdetails.cda.dataaccess.AbstractDataAccess.doQuery(AbstractDataAccess.java:263)
      4. pt.webdetails.cda.CdaQueryComponent.execute(CdaQueryComponent.java:171)
      4 frames
    3. com.pentaho.bootcamp
      FusionContentGenerator.createContent
      1. com.pentaho.bootcamp.content.FusionContentGenerator.createContent(FusionContentGenerator.java:65)
      1 frame
    4. org.pentaho.platform
      SimpleContentGenerator.createContent
      1. org.pentaho.platform.engine.services.solution.SimpleContentGenerator.createContent(SimpleContentGenerator.java:66)
      1 frame
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    6. com.pentaho.platform
      WebSpringPentahoObjectFactory$a.invoke
      1. com.pentaho.platform.web.http.context.WebSpringPentahoObjectFactory$a.invoke(SourceFile:288)
      1 frame
    7. Unknown
      $Proxy15.createContent
      1. $Proxy15.createContent(Unknown Source)
      1 frame
    8. org.pentaho.platform
      GenericServlet.doGet
      1. org.pentaho.platform.web.servlet.GenericServlet.doGet(GenericServlet.java:261)
      1 frame
    9. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      2 frames
    10. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames
    11. org.pentaho.platform
      PentahoWebContextFilter.doFilter
      1. org.pentaho.platform.web.http.filters.PentahoWebContextFilter.doFilter(PentahoWebContextFilter.java:102)
      1 frame
    12. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames