From: leks <le...@da...> - 2011-12-08 15:50:50
|
Hi All I can't get mondrian connection with the following error: Exception in thread "main" java.lang.VerifyError: (class: mondrian/olap/Util, method: matches signature: (Lorg/olap4j/mdx/IdentifierSegment;Ljava/lang/String;)Z) Incompatible argument to function at mondrian.olap.DriverManager.getConnection(DriverManager.java:52) Please note: 1. I try running simple Java console application, no any web servers. 2. it doesn't depend on content of xml file, which defines cube. I tried differnet xml files which work fine with other OLAP Mondrian based tools. 3. simple JDBC connection to LucidDb works fine and sql queries work fine as well. Source code which causes error: Class.forName("org.luciddb.jdbc.LucidDbClientDriver"); mondrian.olap.Connection conn = mondrian.olap.DriverManager.getConnection("" + "Provider=Mondrian;" + "Jdbc=jdbc:luciddb:http://localhost;" + "JdbcDrivers=org.luciddb.jdbc.LucidDbClientDriver;" + "JdbcUser=sa;" + "Catalog=file:/home/leks/projects/project.mondrian.xml", null); I also used another approach like this: Class.forName("org.luciddb.jdbc.LucidDbClientDriver"); Class.forName("mondrian.olap4j.MondrianOlap4jDriver"); java.sql.Connection conn = java.sql.DriverManager.getConnection("" + "jdbc:mondrian:Jdbc=jdbc:luciddb:http://localhost;" + "JdbcDrivers=org.luciddb.jdbc.LucidDbClientDriver;" + "Catalog=file:/home/leks/projects/project.mondrian.xml"); and got the same error: Exception in thread "main" java.lang.VerifyError: (class: mondrian/olap/Util, method: matches signature: (Lorg/olap4j/mdx/IdentifierSegment;Ljava/lang/String;)Z) Incompatible argument to function at mondrian.olap4j.MondrianOlap4jConnection.<init>(MondrianOlap4jConnection.java:129) at mondrian.olap4j.FactoryJdbc4Impl$MondrianOlap4jConnectionJdbc4.<init>(FactoryJdbc4Impl.java:369) at mondrian.olap4j.FactoryJdbc4Impl.newConnection(FactoryJdbc4Impl.java:34) at mondrian.olap4j.MondrianOlap4jDriver.connect(MondrianOlap4jDriver.java:119) Thank you for response Leks -- View this message in context: http://luciddb-users.1374590.n2.nabble.com/can-t-get-mondrian-connection-tp7074685p7074685.html Sent from the luciddb-users mailing list archive at Nabble.com. |