java.lang.IllegalArgumentException: No enum constant mondrian.rolap.RolapBaseCubeMeasure.DataType.Boolean

Pentaho BI Platform Tracking | Carlos Lopez | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Based on the following entry: http://mondrian.pentaho.com/api/mondrian/rolap/RolapBaseCubeMeasure.DataType.html#values() The only supported datatype for Measures are: Integer, Numeric and String However Schema Workbench allows users to select other datatypes such as Boolean, Date, Time, Timestamp and when the customer publishes the schema and attempts to use the cube by clicking on a new Analyzer Report the cube does not show on the dialog to select Cubes and they are shown the following stacktrace in the pentaho.log {noformat} ERROR [org.pentaho.platform.plugin.services.connections.mondrian.MDXOlap4jConnection] MDXConnection.ERROR_0002 - Invalid connection properties: driver=mondrian.olap4j.MondrianOlap4jDriver;url=jdbc:mondrian:DataSource=pSampleData; EnableXmla=false; Locale=en_US; Catalog=mondrian:/pSteelWheels; UseContentChecksum=true java.lang.IllegalArgumentException: No enum constant mondrian.rolap.RolapBaseCubeMeasure.DataType.Boolean at java.lang.Enum.valueOf(Enum.java:238) at mondrian.rolap.RolapBaseCubeMeasure$DataType.valueOf(RolapBaseCubeMeasure.java:32) at mondrian.rolap.RolapBaseCubeMeasure.<init>(RolapBaseCubeMeasure.java:141) at mondrian.rolap.RolapCube.createMeasure(RolapCube.java:355) at mondrian.rolap.RolapCube.<init>(RolapCube.java:266) at mondrian.rolap.RolapSchema.load(RolapSchema.java:637) at mondrian.rolap.RolapSchema.load(RolapSchema.java:465) at mondrian.rolap.RolapSchema.<init>(RolapSchema.java:217) at mondrian.rolap.RolapSchemaPool.createRolapSchema(RolapSchemaPool.java:294) at mondrian.rolap.RolapSchemaPool.getByChecksum(RolapSchemaPool.java:270) at mondrian.rolap.RolapSchemaPool.get(RolapSchemaPool.java:158) at mondrian.rolap.RolapSchemaPool.get(RolapSchemaPool.java:72) at mondrian.rolap.RolapConnection.<init>(RolapConnection.java:161) at mondrian.rolap.RolapConnection.<init>(RolapConnection.java:91) at mondrian.olap.DriverManager.getConnection(DriverManager.java:113) at mondrian.olap.DriverManager.getConnection(DriverManager.java:69) at mondrian.olap4j.MondrianOlap4jConnection.<init>(MondrianOlap4jConnection.java:162) at mondrian.olap4j.FactoryJdbc4Plus$AbstractConnection.<init>(FactoryJdbc4Plus.java:323) at mondrian.olap4j.FactoryJdbc41Impl$MondrianOlap4jConnectionJdbc41.<init>(FactoryJdbc41Impl.java:118) at mondrian.olap4j.FactoryJdbc41Impl.newConnection(FactoryJdbc41Impl.java:32) at mondrian.olap4j.MondrianOlap4jDriver.connect(MondrianOlap4jDriver.java:97) at java.sql.DriverManager.getConnection(DriverManager.java:664) at java.sql.DriverManager.getConnection(DriverManager.java:247) at org.pentaho.platform.plugin.services.connections.mondrian.MDXOlap4jConnection.connect(MDXOlap4jConnection.java:100) at org.pentaho.platform.plugin.services.connections.mondrian.MDXOlap4jConnection.setProperties(MDXOlap4jConnection.java:219) at org.pentaho.platform.engine.services.connection.PentahoConnectionFactory.getConnection(PentahoConnectionFactory.java:124) at com.pentaho.analyzer.service.impl.OlapConnectionManagerImpl.createConnection(SourceFile:147) at com.pentaho.analyzer.service.impl.OlapConnectionManagerImpl.createConnection(SourceFile:75) at com.pentaho.analyzer.service.impl.a.getConnection(SourceFile:55) at com.pentaho.analyzer.service.impl.OlapMetaDataManager.getConnection(SourceFile:67) at com.pentaho.analyzer.service.impl.AnalysisAreaManager.createOlapConnection(SourceFile:109) at com.pentaho.analyzer.content.controller.p.a(SourceFile:86) at com.pentaho.analyzer.content.controller.p.a(SourceFile:118) at com.pentaho.analyzer.content.AnalyzerContentGenerator.createContent(SourceFile:152) at org.pentaho.platform.web.http.api.resources.GeneratorStreamingOutput.generateContent(GeneratorStreamingOutput.java:236) at org.pentaho.platform.web.http.api.resources.GeneratorStreamingOutput.write(GeneratorStreamingOutput.java:163) at org.pentaho.platform.web.http.api.resources.GeneratorStreamingOutputProvider.writeTo(GeneratorStreamingOutputProvider.java:54) at org.pentaho.platform.web.http.api.resources.GeneratorStreamingOutputProvider.writeTo(GeneratorStreamingOutputProvider.java:33) at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:306) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1479) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1391) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1381) at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416) at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538) at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:716) at org.pentaho.platform.web.servlet.JAXRSServlet.service(JAXRSServlet.java:109) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.pentaho.platform.web.servlet.JAXRSServlet.service(JAXRSServlet.java:114) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.pentaho.platform.web.http.filters.PentahoWebContextFilter.doFilter(PentahoWebContextFilter.java:185) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) {noformat} *Actual Result* PSW shows unsupported datatypes for measures *Expected Result* PSW should only show Integer, Numeric and String

    Pentaho BI Platform Tracking | 1 year ago | Carlos Lopez
    java.lang.IllegalArgumentException: No enum constant mondrian.rolap.RolapBaseCubeMeasure.DataType.Boolean
  2. 0

    Based on the following entry: http://mondrian.pentaho.com/api/mondrian/rolap/RolapBaseCubeMeasure.DataType.html#values() The only supported datatype for Measures are: Integer, Numeric and String However Schema Workbench allows users to select other datatypes such as Boolean, Date, Time, Timestamp and when the customer publishes the schema and attempts to use the cube by clicking on a new Analyzer Report the cube does not show on the dialog to select Cubes and they are shown the following stacktrace in the pentaho.log {noformat} ERROR [org.pentaho.platform.plugin.services.connections.mondrian.MDXOlap4jConnection] MDXConnection.ERROR_0002 - Invalid connection properties: driver=mondrian.olap4j.MondrianOlap4jDriver;url=jdbc:mondrian:DataSource=pSampleData; EnableXmla=false; Locale=en_US; Catalog=mondrian:/pSteelWheels; UseContentChecksum=true java.lang.IllegalArgumentException: No enum constant mondrian.rolap.RolapBaseCubeMeasure.DataType.Boolean at java.lang.Enum.valueOf(Enum.java:238) at mondrian.rolap.RolapBaseCubeMeasure$DataType.valueOf(RolapBaseCubeMeasure.java:32) at mondrian.rolap.RolapBaseCubeMeasure.<init>(RolapBaseCubeMeasure.java:141) at mondrian.rolap.RolapCube.createMeasure(RolapCube.java:355) at mondrian.rolap.RolapCube.<init>(RolapCube.java:266) at mondrian.rolap.RolapSchema.load(RolapSchema.java:637) at mondrian.rolap.RolapSchema.load(RolapSchema.java:465) at mondrian.rolap.RolapSchema.<init>(RolapSchema.java:217) at mondrian.rolap.RolapSchemaPool.createRolapSchema(RolapSchemaPool.java:294) at mondrian.rolap.RolapSchemaPool.getByChecksum(RolapSchemaPool.java:270) at mondrian.rolap.RolapSchemaPool.get(RolapSchemaPool.java:158) at mondrian.rolap.RolapSchemaPool.get(RolapSchemaPool.java:72) at mondrian.rolap.RolapConnection.<init>(RolapConnection.java:161) at mondrian.rolap.RolapConnection.<init>(RolapConnection.java:91) at mondrian.olap.DriverManager.getConnection(DriverManager.java:113) at mondrian.olap.DriverManager.getConnection(DriverManager.java:69) at mondrian.olap4j.MondrianOlap4jConnection.<init>(MondrianOlap4jConnection.java:162) at mondrian.olap4j.FactoryJdbc4Plus$AbstractConnection.<init>(FactoryJdbc4Plus.java:323) at mondrian.olap4j.FactoryJdbc41Impl$MondrianOlap4jConnectionJdbc41.<init>(FactoryJdbc41Impl.java:118) at mondrian.olap4j.FactoryJdbc41Impl.newConnection(FactoryJdbc41Impl.java:32) at mondrian.olap4j.MondrianOlap4jDriver.connect(MondrianOlap4jDriver.java:97) at java.sql.DriverManager.getConnection(DriverManager.java:664) at java.sql.DriverManager.getConnection(DriverManager.java:247) at org.pentaho.platform.plugin.services.connections.mondrian.MDXOlap4jConnection.connect(MDXOlap4jConnection.java:100) at org.pentaho.platform.plugin.services.connections.mondrian.MDXOlap4jConnection.setProperties(MDXOlap4jConnection.java:219) at org.pentaho.platform.engine.services.connection.PentahoConnectionFactory.getConnection(PentahoConnectionFactory.java:124) at com.pentaho.analyzer.service.impl.OlapConnectionManagerImpl.createConnection(SourceFile:147) at com.pentaho.analyzer.service.impl.OlapConnectionManagerImpl.createConnection(SourceFile:75) at com.pentaho.analyzer.service.impl.a.getConnection(SourceFile:55) at com.pentaho.analyzer.service.impl.OlapMetaDataManager.getConnection(SourceFile:67) at com.pentaho.analyzer.service.impl.AnalysisAreaManager.createOlapConnection(SourceFile:109) at com.pentaho.analyzer.content.controller.p.a(SourceFile:86) at com.pentaho.analyzer.content.controller.p.a(SourceFile:118) at com.pentaho.analyzer.content.AnalyzerContentGenerator.createContent(SourceFile:152) at org.pentaho.platform.web.http.api.resources.GeneratorStreamingOutput.generateContent(GeneratorStreamingOutput.java:236) at org.pentaho.platform.web.http.api.resources.GeneratorStreamingOutput.write(GeneratorStreamingOutput.java:163) at org.pentaho.platform.web.http.api.resources.GeneratorStreamingOutputProvider.writeTo(GeneratorStreamingOutputProvider.java:54) at org.pentaho.platform.web.http.api.resources.GeneratorStreamingOutputProvider.writeTo(GeneratorStreamingOutputProvider.java:33) at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:306) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1479) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1391) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1381) at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416) at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538) at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:716) at org.pentaho.platform.web.servlet.JAXRSServlet.service(JAXRSServlet.java:109) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.pentaho.platform.web.servlet.JAXRSServlet.service(JAXRSServlet.java:114) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.pentaho.platform.web.http.filters.PentahoWebContextFilter.doFilter(PentahoWebContextFilter.java:185) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) {noformat} *Actual Result* PSW shows unsupported datatypes for measures *Expected Result* PSW should only show Integer, Numeric and String

    Pentaho BI Platform Tracking | 1 year ago | Carlos Lopez
    java.lang.IllegalArgumentException: No enum constant mondrian.rolap.RolapBaseCubeMeasure.DataType.Boolean
  3. 0

    No Enum constant

    GitHub | 5 months ago | JANDS-24
    java.lang.IllegalArgumentException: No enum constant com.radixshock.radixcore.constant.Language.en_us
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Passing unsupported OPERATOR for "constraints" surfaces exception

    GitHub | 3 years ago | ssorallen
    java.lang.IllegalArgumentException: No enum constant mesosphere.marathon.Protos.Constraint.Operator.OPERATOR
  6. 0

    Navitia: No enum constant BSS_RENT

    GitHub | 2 years ago | schildbach
    java.lang.IllegalArgumentException: No enum constant de.schildbach.pte.AbstractNavitiaProvider.SectionType.BSS_RENT

  1. Pierre 1 times, last 5 days ago
  2. stigkj 3 times, last 5 days ago
  3. Axelo 1 times, last 2 months ago
  4. marcbouvierdav 2 times, last 1 month ago
  5. osvzs 2 times, last 2 months ago
21 more registered users
12 unregistered visitors
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.IllegalArgumentException

    No enum constant mondrian.rolap.RolapBaseCubeMeasure.DataType.Boolean

    at java.lang.Enum.valueOf()
  2. Java RT
    Enum.valueOf
    1. java.lang.Enum.valueOf(Enum.java:238)
    1 frame
  3. mondrian.rolap
    RolapConnection.<init>
    1. mondrian.rolap.RolapBaseCubeMeasure$DataType.valueOf(RolapBaseCubeMeasure.java:32)
    2. mondrian.rolap.RolapBaseCubeMeasure.<init>(RolapBaseCubeMeasure.java:141)
    3. mondrian.rolap.RolapCube.createMeasure(RolapCube.java:355)
    4. mondrian.rolap.RolapCube.<init>(RolapCube.java:266)
    5. mondrian.rolap.RolapSchema.load(RolapSchema.java:637)
    6. mondrian.rolap.RolapSchema.load(RolapSchema.java:465)
    7. mondrian.rolap.RolapSchema.<init>(RolapSchema.java:217)
    8. mondrian.rolap.RolapSchemaPool.createRolapSchema(RolapSchemaPool.java:294)
    9. mondrian.rolap.RolapSchemaPool.getByChecksum(RolapSchemaPool.java:270)
    10. mondrian.rolap.RolapSchemaPool.get(RolapSchemaPool.java:158)
    11. mondrian.rolap.RolapSchemaPool.get(RolapSchemaPool.java:72)
    12. mondrian.rolap.RolapConnection.<init>(RolapConnection.java:161)
    13. mondrian.rolap.RolapConnection.<init>(RolapConnection.java:91)
    13 frames
  4. mondrian.olap
    DriverManager.getConnection
    1. mondrian.olap.DriverManager.getConnection(DriverManager.java:113)
    2. mondrian.olap.DriverManager.getConnection(DriverManager.java:69)
    2 frames
  5. mondrian.olap4j
    MondrianOlap4jDriver.connect
    1. mondrian.olap4j.MondrianOlap4jConnection.<init>(MondrianOlap4jConnection.java:162)
    2. mondrian.olap4j.FactoryJdbc4Plus$AbstractConnection.<init>(FactoryJdbc4Plus.java:323)
    3. mondrian.olap4j.FactoryJdbc41Impl$MondrianOlap4jConnectionJdbc41.<init>(FactoryJdbc41Impl.java:118)
    4. mondrian.olap4j.FactoryJdbc41Impl.newConnection(FactoryJdbc41Impl.java:32)
    5. mondrian.olap4j.MondrianOlap4jDriver.connect(MondrianOlap4jDriver.java:97)
    5 frames
  6. Java RT
    DriverManager.getConnection
    1. java.sql.DriverManager.getConnection(DriverManager.java:664)
    2. java.sql.DriverManager.getConnection(DriverManager.java:247)
    2 frames
  7. org.pentaho.platform
    PentahoConnectionFactory.getConnection
    1. org.pentaho.platform.plugin.services.connections.mondrian.MDXOlap4jConnection.connect(MDXOlap4jConnection.java:100)
    2. org.pentaho.platform.plugin.services.connections.mondrian.MDXOlap4jConnection.setProperties(MDXOlap4jConnection.java:219)
    3. org.pentaho.platform.engine.services.connection.PentahoConnectionFactory.getConnection(PentahoConnectionFactory.java:124)
    3 frames
  8. com.pentaho.analyzer
    AnalyzerContentGenerator.createContent
    1. com.pentaho.analyzer.service.impl.OlapConnectionManagerImpl.createConnection(SourceFile:147)
    2. com.pentaho.analyzer.service.impl.OlapConnectionManagerImpl.createConnection(SourceFile:75)
    3. com.pentaho.analyzer.service.impl.a.getConnection(SourceFile:55)
    4. com.pentaho.analyzer.service.impl.OlapMetaDataManager.getConnection(SourceFile:67)
    5. com.pentaho.analyzer.service.impl.AnalysisAreaManager.createOlapConnection(SourceFile:109)
    6. com.pentaho.analyzer.content.controller.p.a(SourceFile:86)
    7. com.pentaho.analyzer.content.controller.p.a(SourceFile:118)
    8. com.pentaho.analyzer.content.AnalyzerContentGenerator.createContent(SourceFile:152)
    8 frames
  9. org.pentaho.platform
    GeneratorStreamingOutputProvider.writeTo
    1. org.pentaho.platform.web.http.api.resources.GeneratorStreamingOutput.generateContent(GeneratorStreamingOutput.java:236)
    2. org.pentaho.platform.web.http.api.resources.GeneratorStreamingOutput.write(GeneratorStreamingOutput.java:163)
    3. org.pentaho.platform.web.http.api.resources.GeneratorStreamingOutputProvider.writeTo(GeneratorStreamingOutputProvider.java:54)
    4. org.pentaho.platform.web.http.api.resources.GeneratorStreamingOutputProvider.writeTo(GeneratorStreamingOutputProvider.java:33)
    4 frames
  10. Jersey
    WebApplicationImpl.handleRequest
    1. com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:306)
    2. com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1479)
    3. com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1391)
    4. com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1381)
    4 frames
  11. Jersey
    ServletContainer.service
    1. com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
    2. com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538)
    3. com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:716)
    3 frames
  12. org.pentaho.platform
    JAXRSServlet.service
    1. org.pentaho.platform.web.servlet.JAXRSServlet.service(JAXRSServlet.java:109)
    1 frame
  13. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    1 frame
  14. org.pentaho.platform
    JAXRSServlet.service
    1. org.pentaho.platform.web.servlet.JAXRSServlet.service(JAXRSServlet.java:114)
    1 frame
  15. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    2 frames
  16. Tomcat WS
    WsFilter.doFilter
    1. org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    1 frame
  17. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    2 frames
  18. org.pentaho.platform
    PentahoWebContextFilter.doFilter
    1. org.pentaho.platform.web.http.filters.PentahoWebContextFilter.doFilter(PentahoWebContextFilter.java:185)
    1 frame
  19. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    2 frames