mondrian icon indicating copy to clipboard operation
mondrian copied to clipboard

mondrian3.5 install error

Open yyingcan opened this issue 9 years ago • 0 comments

i have compile from source code and succucessful in eclipse ,but when i run an example like this: ========================example begin================================== Connection connection = DriverManager.getConnection ("Provider=mondrian;Jdbc=jdbc:mysql://localhost/foodmart; JdbcUser=root;JdbcPassword=mysql;Catalog=file:///C:/apache-tomcat-7.0.57/webapps/mondrian/WEB-INF/FoodMart.xml; JdbcDrivers=com.mysql.jdbc.Driver;",null); String queryStr= "SELECT {[Measures].[Unit Sales]} ON 0,\n" + "{[Product].Children} ON 1\n" + "FROM [Sales]"; Query query =connection.parseQuery(queryStr); Result result = connection.execute(query); ========================example end================================== it always report error like this: ========================error report================================== Exception in thread "main" java.util.MissingResourceException: Can't find resource for bundle org.eigenbase.resgen.ShadowResourceBundle$MyPropertyResourceBundle, key Internal at java.util.ResourceBundle.getObject(ResourceBundle.java:393) at org.eigenbase.resgen.ShadowResourceBundle.handleGetObject(ShadowResourceBundle.java:137) at java.util.ResourceBundle.getObject(ResourceBundle.java:387) at java.util.ResourceBundle.getString(ResourceBundle.java:353) at org.eigenbase.resgen.ResourceDefinition$Instance.toString(ResourceDefinition.java:290) at mondrian.resource.MondrianResource$_Def0.ex(MondrianResource.java:964) at mondrian.olap.Util.newInternal(Util.java:2393) at mondrian.olap.Util.newError(Util.java:2408) at mondrian.rolap.RolapSchema.checkSchemaVersion(RolapSchema.java:458) at mondrian.rolap.RolapSchema.load(RolapSchema.java:408) at mondrian.rolap.RolapSchema.(RolapSchema.java:216) at mondrian.rolap.RolapSchemaPool.get(RolapSchemaPool.java:214) at mondrian.rolap.RolapSchemaPool.get(RolapSchemaPool.java:66) at mondrian.rolap.RolapConnection.(RolapConnection.java:160) at mondrian.rolap.RolapConnection.(RolapConnection.java:90) at mondrian.olap.DriverManager.getConnection(DriverManager.java:113) at mondrian.olap.DriverManager.getConnection(DriverManager.java:68) at mondrian.olap.DriverManager.getConnection(DriverManager.java:50) at test.MysqlTest.main(MysqlTest.java:41)

========================my question================================== is anybody have error like this ,or is this a bug in mondrian3.5 ? hope you help! think you!

yyingcan avatar Jul 02 '15 14:07 yyingcan