Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: Java error

  1. #1

    Default Java error

    I am using mysql 4.x, olap4j, mondrian 3.3, JDK 1.5 update 14 on Eclipse
    I have included the jar files of jdbc drivers for mysql, mondrian,olap4j . in the classpath.
    I have copied the sample program from olpa4j readme.txt file

    I get the error
    The method getConnection(String, CatalogLocator) in the type DriverManager is not applicable for the arguments (String)
    The program has been ditto copied from the readme.txt file .
    I dont know why the sample program itself is not running .
    Another problem is the "unwrap" function in that program is not recognized .
    if someone knows give me a perfect program which works
    Last edited by jainaks2008; 05-13-2008 at 09:51 AM.

  2. #2
    Join Date
    Apr 2008



    test this programm to get a connection from a java application to mondrian:

    OlapConnection connection = (OlapConnection) DriverManager.getConnection( "jdbc:mondrian:Jdbc=jdbc:mysql://localhost:3306/database?user=user;password=password" + "JdbcDrivers=com.mysql.jdbc.Driver;"

    In the connectionString you must replace the user, password and the urls with your own data.
    Further you must configure a virtual path in your Tomcat server to get access to the schema file which is configured over the Catalog attribute of the connectionString (red marked).

    Best regards

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.