From: Julian H. <ju...@hy...> - 2011-12-08 20:25:35
|
Looks like a mismatched version of mondrian and/or olap4j. What version of mondrian are you running? Where did you download it from? Any other copies of mondrian.jar on your classpath? What JDK? Julian On Dec 8, 2011, at 7:35 AM, leks wrote: > 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. > > ------------------------------------------------------------------------------ > Cloud Services Checklist: Pricing and Packaging Optimization > This white paper is intended to serve as a reference, checklist and point of > discussion for anyone considering optimizing the pricing and packaging model > of a cloud services business. Read Now! > http://www.accelacomm.com/jaw/sfnl/114/51491232/ > _______________________________________________ > luciddb-users mailing list > luc...@li... > https://lists.sourceforge.net/lists/listinfo/luciddb-users |