java.lang.ClassCastException: mondrian.olap.MondrianDef$View cannot be cast to mondrian.olap.MondrianDef$Table

Pentaho BI Platform Tracking | Pablo Cruz | 8 years ago
  1. 0

    I tried to run aggregate designer and after I set up the database connection, choose the mondrian schema, pick the cube and click connect, I receive the following error: 2008-10-29 15:17:47,812 INFO [org.springframework.context.support.ClassPathXmlApplicationContext] Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@1a679b7: display name [org.springframework.context.support.ClassPathXmlApplicationContext@1a679b7]; startup date [Wed Oct 29 15:17:47 CDT 2008]; root of context hierarchy 2008-10-29 15:17:47,875 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] Loading XML bean definitions from class path resource [applicationContext.xml] 2008-10-29 15:17:48,171 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] Loading XML bean definitions from class path resource [plugins.xml] 2008-10-29 15:17:48,203 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] Overriding bean definition for bean 'uiConfig': replacing [Generic bean: class [org.pentaho.aggdes.ui.UIConfiguration]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [applicationContext.xml]] with [Generic bean: class [org.pentaho.aggdes.ui.UIConfiguration]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [plugins.xml]] 2008-10-29 15:17:48,203 INFO [org.springframework.context.support.ClassPathXmlApplicationContext] Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext@1a679b7]: org.springframework.beans.factory.support.DefaultListableBeanFactory@10da5eb 2008-10-29 15:17:48,281 INFO [org.springframework.beans.factory.config.PropertyOverrideConfigurer] Loading properties file from class path resource [aggdes.properties] 2008-10-29 15:17:48,281 WARN [org.springframework.beans.factory.config.PropertyOverrideConfigurer] Could not load properties from class path resource [aggdes.properties]: class path resource [aggdes.properties] cannot be opened because it does not exist 2008-10-29 15:17:48,328 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@10da5eb: defining beans [org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,xulLoader,xulRunner,uiMain,uiConfig,validatorList,algorithmRunner,outputService,outputUIService,serializationService,org.springframework.beans.factory.config.PropertyOverrideConfigurer#0,aggregateNamingService,org.pentaho.ui.xul.binding.DefaultBindingFactory#0,connectionModel,aggModel,aggregateSummaryModel,aggList,org.pentaho.aggdes.ui.form.controller.MainController#0,aggListController,org.pentaho.aggdes.ui.form.controller.AggController#0,dataHandler,org.pentaho.ui.database.event.FragmentHandler#0,connectionController,algorithmController,exportHandler,org.pentaho.aggdes.ui.form.controller.StatusController#0,publishController,workspace,mondrianSchemaLoader,defaultSchemaGenerator,fileSchemaProvider,algorithm,algorithmUiExtension,defaultOutputFactory,defaultCreateGenerator,defaultPopulateGenerator]; root of factory hierarchy 2008-10-29 15:17:49,375 ERROR [org.pentaho.ui.xul.impl.XulParser] handler not found: LINE 2008-10-29 15:17:49,375 ERROR [org.pentaho.ui.xul.impl.XulParser] handler not found: LINE 2008-10-29 15:17:49,671 INFO [org.pentaho.aggdes.ui.form.controller.AlgorithmController] Adding algorithm overlay: org.pentaho.aggdes.ui.ext.impl.AdaptiveMonteCarloAlgorithmUIPlugin@830122 2008-10-29 15:18:27,921 WARN [mondrian.olap.MondrianProperties] mondrian.properties can't be found under 'C:\Documents and Settings\peter.schmidt\My Documents\Centro Downloads\Pentaho\pad-ee-1.0.0-RC1\.' or classloader 2008-10-29 15:18:27,921 INFO [mondrian.olap.MondrianProperties] Mondrian: loaded 0 system properties 2008-10-29 15:18:28,078 ERROR [org.pentaho.aggdes.model.mondrian.MondrianSchemaLoader] an exception occurred java.lang.ClassCastException: mondrian.olap.MondrianDef$View cannot be cast to mondrian.olap.MondrianDef$Table at org.pentaho.aggdes.model.mondrian.validate.CubePkValidator.validateCube(CubePkValidator.java:72) at org.pentaho.aggdes.model.mondrian.validate.MondrianSchemaValidatorManager.validateCube(MondrianSchemaValidatorManager.java:43) at org.pentaho.aggdes.model.mondrian.validate.ValidationHelper.validateCube(ValidationHelper.java:61) at org.pentaho.aggdes.model.mondrian.MondrianSchemaLoader.validateSchema(MondrianSchemaLoader.java:108) at org.pentaho.aggdes.ui.ext.impl.AbstractMondrianSchemaProvider$1.run(AbstractMondrianSchemaProvider.java:147) 2008-10-29 15:18:30,625 INFO [mondrian.rolap.RolapUtil] Mondrian: JDBC driver org.postgresql.Driver loaded successfully 2008-10-29 15:18:30,625 INFO [mondrian.rolap.RolapUtil] Mondrian: JDBC driver sun.jdbc.odbc.JdbcOdbcDriver loaded successfully 2008-10-29 15:18:30,625 WARN [mondrian.rolap.RolapUtil] Mondrian: Warning: JDBC driver org.hsqldb.jdbcDriver not found 2008-10-29 15:18:30,625 WARN [mondrian.rolap.RolapUtil] Mondrian: Warning: JDBC driver oracle.jdbc.OracleDriver not found 2008-10-29 15:18:30,625 WARN [mondrian.rolap.RolapUtil] Mondrian: Warning: JDBC driver com.mysql.jdbc.Driver not found 2008-10-29 15:18:30,781 INFO [org.apache.commons.vfs.impl.DefaultFileReplicator] Using "C:\DOCUME~1\PETER~1.SCH\LOCALS~1\Temp\vfs_cache" as temporary files store. 2008-10-29 15:18:31,234 WARN [mondrian.rolap.aggmatcher.ExplicitRules] The Cube 'Media Plan Placement Fact' relation is not a MondrianDef.Table but rather 'mondrian.olap.MondrianDef$View'.

    Pentaho BI Platform Tracking | 8 years ago | Pablo Cruz
    java.lang.ClassCastException: mondrian.olap.MondrianDef$View cannot be cast to mondrian.olap.MondrianDef$Table
  2. 0

    I tried to run aggregate designer and after I set up the database connection, choose the mondrian schema, pick the cube and click connect, I receive the following error: 2008-10-29 15:17:47,812 INFO [org.springframework.context.support.ClassPathXmlApplicationContext] Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@1a679b7: display name [org.springframework.context.support.ClassPathXmlApplicationContext@1a679b7]; startup date [Wed Oct 29 15:17:47 CDT 2008]; root of context hierarchy 2008-10-29 15:17:47,875 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] Loading XML bean definitions from class path resource [applicationContext.xml] 2008-10-29 15:17:48,171 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] Loading XML bean definitions from class path resource [plugins.xml] 2008-10-29 15:17:48,203 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] Overriding bean definition for bean 'uiConfig': replacing [Generic bean: class [org.pentaho.aggdes.ui.UIConfiguration]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [applicationContext.xml]] with [Generic bean: class [org.pentaho.aggdes.ui.UIConfiguration]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [plugins.xml]] 2008-10-29 15:17:48,203 INFO [org.springframework.context.support.ClassPathXmlApplicationContext] Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext@1a679b7]: org.springframework.beans.factory.support.DefaultListableBeanFactory@10da5eb 2008-10-29 15:17:48,281 INFO [org.springframework.beans.factory.config.PropertyOverrideConfigurer] Loading properties file from class path resource [aggdes.properties] 2008-10-29 15:17:48,281 WARN [org.springframework.beans.factory.config.PropertyOverrideConfigurer] Could not load properties from class path resource [aggdes.properties]: class path resource [aggdes.properties] cannot be opened because it does not exist 2008-10-29 15:17:48,328 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@10da5eb: defining beans [org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,xulLoader,xulRunner,uiMain,uiConfig,validatorList,algorithmRunner,outputService,outputUIService,serializationService,org.springframework.beans.factory.config.PropertyOverrideConfigurer#0,aggregateNamingService,org.pentaho.ui.xul.binding.DefaultBindingFactory#0,connectionModel,aggModel,aggregateSummaryModel,aggList,org.pentaho.aggdes.ui.form.controller.MainController#0,aggListController,org.pentaho.aggdes.ui.form.controller.AggController#0,dataHandler,org.pentaho.ui.database.event.FragmentHandler#0,connectionController,algorithmController,exportHandler,org.pentaho.aggdes.ui.form.controller.StatusController#0,publishController,workspace,mondrianSchemaLoader,defaultSchemaGenerator,fileSchemaProvider,algorithm,algorithmUiExtension,defaultOutputFactory,defaultCreateGenerator,defaultPopulateGenerator]; root of factory hierarchy 2008-10-29 15:17:49,375 ERROR [org.pentaho.ui.xul.impl.XulParser] handler not found: LINE 2008-10-29 15:17:49,375 ERROR [org.pentaho.ui.xul.impl.XulParser] handler not found: LINE 2008-10-29 15:17:49,671 INFO [org.pentaho.aggdes.ui.form.controller.AlgorithmController] Adding algorithm overlay: org.pentaho.aggdes.ui.ext.impl.AdaptiveMonteCarloAlgorithmUIPlugin@830122 2008-10-29 15:18:27,921 WARN [mondrian.olap.MondrianProperties] mondrian.properties can't be found under 'C:\Documents and Settings\peter.schmidt\My Documents\Centro Downloads\Pentaho\pad-ee-1.0.0-RC1\.' or classloader 2008-10-29 15:18:27,921 INFO [mondrian.olap.MondrianProperties] Mondrian: loaded 0 system properties 2008-10-29 15:18:28,078 ERROR [org.pentaho.aggdes.model.mondrian.MondrianSchemaLoader] an exception occurred java.lang.ClassCastException: mondrian.olap.MondrianDef$View cannot be cast to mondrian.olap.MondrianDef$Table at org.pentaho.aggdes.model.mondrian.validate.CubePkValidator.validateCube(CubePkValidator.java:72) at org.pentaho.aggdes.model.mondrian.validate.MondrianSchemaValidatorManager.validateCube(MondrianSchemaValidatorManager.java:43) at org.pentaho.aggdes.model.mondrian.validate.ValidationHelper.validateCube(ValidationHelper.java:61) at org.pentaho.aggdes.model.mondrian.MondrianSchemaLoader.validateSchema(MondrianSchemaLoader.java:108) at org.pentaho.aggdes.ui.ext.impl.AbstractMondrianSchemaProvider$1.run(AbstractMondrianSchemaProvider.java:147) 2008-10-29 15:18:30,625 INFO [mondrian.rolap.RolapUtil] Mondrian: JDBC driver org.postgresql.Driver loaded successfully 2008-10-29 15:18:30,625 INFO [mondrian.rolap.RolapUtil] Mondrian: JDBC driver sun.jdbc.odbc.JdbcOdbcDriver loaded successfully 2008-10-29 15:18:30,625 WARN [mondrian.rolap.RolapUtil] Mondrian: Warning: JDBC driver org.hsqldb.jdbcDriver not found 2008-10-29 15:18:30,625 WARN [mondrian.rolap.RolapUtil] Mondrian: Warning: JDBC driver oracle.jdbc.OracleDriver not found 2008-10-29 15:18:30,625 WARN [mondrian.rolap.RolapUtil] Mondrian: Warning: JDBC driver com.mysql.jdbc.Driver not found 2008-10-29 15:18:30,781 INFO [org.apache.commons.vfs.impl.DefaultFileReplicator] Using "C:\DOCUME~1\PETER~1.SCH\LOCALS~1\Temp\vfs_cache" as temporary files store. 2008-10-29 15:18:31,234 WARN [mondrian.rolap.aggmatcher.ExplicitRules] The Cube 'Media Plan Placement Fact' relation is not a MondrianDef.Table but rather 'mondrian.olap.MondrianDef$View'.

    Pentaho BI Platform Tracking | 8 years ago | Pablo Cruz
    java.lang.ClassCastException: mondrian.olap.MondrianDef$View cannot be cast to mondrian.olap.MondrianDef$Table
  3. 0

    I started Agg designer and I am getting the following error in the console for the following 13:42:36,888 WARN [PropertyOverrideConfigurer] Could not load properties from class path resource [aggdes.properties]: class path resource [aggdes.properties] cannot be opened because it does not exist 13:42:36,917 INFO [DefaultListableBeanFactory] Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBea nFactory@64ab4d: defining beans [org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annota tion.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,xulLoader,xulRunner,uiM ain,uiConfig,validatorList,algorithmRunner,outputService,outputUIService,serializationService,org.springframework.beans.factory.config.Prope rtyOverrideConfigurer#0,aggregateNamingService,org.pentaho.ui.xul.swing.SwingBindingFactory#0,connectionModel,aggModel,aggregateSummaryModel ,aggList,org.pentaho.aggdes.ui.form.controller.MainController#0,aggListController,aggController,dataHandler,org.pentaho.ui.database.event.Fr agmentHandler#0,connectionController,algorithmController,ddlExecCallbackService,exportHandler,org.pentaho.aggdes.ui.form.controller.StatusCo ntroller#0,publishController,workspace,mondrianSchemaLoader,defaultSchemaGenerator,fileSchemaProvider,algorithm,algorithmUiExtension,default OutputFactory,defaultCreateGenerator,defaultPopulateGenerator]; root of factory hierarchy 13:42:37,882 ERROR [XulParser] handler not found: LINE 13:42:37,889 ERROR [XulParser] handler not found: LINE 13:42:38,219 INFO [AlgorithmController] Adding algorithm overlay: org.pentaho.aggdes.ui.ext.impl.AdaptiveMonteCarloAlgorithmUIPlugin@f3552f The above happens when Agg designer application open and the connect to data source dialog appears. I create a food mart connection and select a Mondrian schema file and click on apply, Then I get the following error 13:44:13,955 ERROR [DefaultBinding] Binding Error! Update to XulComponenet (org.pentaho.ui.xul.swing.tags.SwingLabel@1cee792,value) outside of event thread! I select a cube a click on the connect button when I get the following. 13:45:14,545 WARN [MondrianProperties] mondrian.properties can't be found under 'C:\Pentaho\Dry-runs\BISERVER-3.7.1\PAD-1.22-10\aggregation -designer\.' or classloader 13:45:14,546 INFO [MondrianProperties] Mondrian: loaded 0 system properties 13:45:14,946 ERROR [MondrianSchemaLoader] an exception occurred java.lang.ClassCastException: mondrian.olap.MondrianDef$InlineTable cannot be cast to mondrian.olap.MondrianDef$Table at org.pentaho.aggdes.model.mondrian.validate.HierarchyPkValidator.validateCube(HierarchyPkValidator.java:98) at org.pentaho.aggdes.model.mondrian.validate.MondrianSchemaValidatorManager.validateCube(MondrianSchemaValidatorManager.java:43) at org.pentaho.aggdes.model.mondrian.validate.ValidationHelper.validateCube(ValidationHelper.java:61) at org.pentaho.aggdes.model.mondrian.MondrianSchemaLoader.validateSchema(MondrianSchemaLoader.java:108) at org.pentaho.aggdes.ui.ext.impl.AbstractMondrianSchemaProvider$1.run(AbstractMondrianSchemaProvider.java:149)

    Pentaho BI Platform Tracking | 6 years ago | Golda David
    java.lang.ClassCastException: mondrian.olap.MondrianDef$InlineTable cannot be cast to mondrian.olap.MondrianDef$Table
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I started Agg designer and I am getting the following error in the console for the following 13:42:36,888 WARN [PropertyOverrideConfigurer] Could not load properties from class path resource [aggdes.properties]: class path resource [aggdes.properties] cannot be opened because it does not exist 13:42:36,917 INFO [DefaultListableBeanFactory] Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBea nFactory@64ab4d: defining beans [org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annota tion.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,xulLoader,xulRunner,uiM ain,uiConfig,validatorList,algorithmRunner,outputService,outputUIService,serializationService,org.springframework.beans.factory.config.Prope rtyOverrideConfigurer#0,aggregateNamingService,org.pentaho.ui.xul.swing.SwingBindingFactory#0,connectionModel,aggModel,aggregateSummaryModel ,aggList,org.pentaho.aggdes.ui.form.controller.MainController#0,aggListController,aggController,dataHandler,org.pentaho.ui.database.event.Fr agmentHandler#0,connectionController,algorithmController,ddlExecCallbackService,exportHandler,org.pentaho.aggdes.ui.form.controller.StatusCo ntroller#0,publishController,workspace,mondrianSchemaLoader,defaultSchemaGenerator,fileSchemaProvider,algorithm,algorithmUiExtension,default OutputFactory,defaultCreateGenerator,defaultPopulateGenerator]; root of factory hierarchy 13:42:37,882 ERROR [XulParser] handler not found: LINE 13:42:37,889 ERROR [XulParser] handler not found: LINE 13:42:38,219 INFO [AlgorithmController] Adding algorithm overlay: org.pentaho.aggdes.ui.ext.impl.AdaptiveMonteCarloAlgorithmUIPlugin@f3552f The above happens when Agg designer application open and the connect to data source dialog appears. I create a food mart connection and select a Mondrian schema file and click on apply, Then I get the following error 13:44:13,955 ERROR [DefaultBinding] Binding Error! Update to XulComponenet (org.pentaho.ui.xul.swing.tags.SwingLabel@1cee792,value) outside of event thread! I select a cube a click on the connect button when I get the following. 13:45:14,545 WARN [MondrianProperties] mondrian.properties can't be found under 'C:\Pentaho\Dry-runs\BISERVER-3.7.1\PAD-1.22-10\aggregation -designer\.' or classloader 13:45:14,546 INFO [MondrianProperties] Mondrian: loaded 0 system properties 13:45:14,946 ERROR [MondrianSchemaLoader] an exception occurred java.lang.ClassCastException: mondrian.olap.MondrianDef$InlineTable cannot be cast to mondrian.olap.MondrianDef$Table at org.pentaho.aggdes.model.mondrian.validate.HierarchyPkValidator.validateCube(HierarchyPkValidator.java:98) at org.pentaho.aggdes.model.mondrian.validate.MondrianSchemaValidatorManager.validateCube(MondrianSchemaValidatorManager.java:43) at org.pentaho.aggdes.model.mondrian.validate.ValidationHelper.validateCube(ValidationHelper.java:61) at org.pentaho.aggdes.model.mondrian.MondrianSchemaLoader.validateSchema(MondrianSchemaLoader.java:108) at org.pentaho.aggdes.ui.ext.impl.AbstractMondrianSchemaProvider$1.run(AbstractMondrianSchemaProvider.java:149)

    Pentaho BI Platform Tracking | 6 years ago | Golda David
    java.lang.ClassCastException: mondrian.olap.MondrianDef$InlineTable cannot be cast to mondrian.olap.MondrianDef$Table
  6. 0

    GitHub comment 270#185769841

    GitHub | 10 months ago | aricooperman
    java.lang.ClassCastException: [[My View Class]] cannot be cast to org.aopalliance.intercept.MethodInvocation

    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.olap.MondrianDef$View cannot be cast to mondrian.olap.MondrianDef$Table

      at org.pentaho.aggdes.model.mondrian.validate.CubePkValidator.validateCube()
    2. org.pentaho.aggdes
      AbstractMondrianSchemaProvider$1.run
      1. org.pentaho.aggdes.model.mondrian.validate.CubePkValidator.validateCube(CubePkValidator.java:72)
      2. org.pentaho.aggdes.model.mondrian.validate.MondrianSchemaValidatorManager.validateCube(MondrianSchemaValidatorManager.java:43)
      3. org.pentaho.aggdes.model.mondrian.validate.ValidationHelper.validateCube(ValidationHelper.java:61)
      4. org.pentaho.aggdes.model.mondrian.MondrianSchemaLoader.validateSchema(MondrianSchemaLoader.java:108)
      5. org.pentaho.aggdes.ui.ext.impl.AbstractMondrianSchemaProvider$1.run(AbstractMondrianSchemaProvider.java:147)
      5 frames