mondrian
mondrian copied to clipboard
mondrian3.5 install error
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.
========================my question================================== is anybody have error like this ,or is this a bug in mondrian3.5 ? hope you help! think you!