Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: Documentation for testing

  1. #1
    Join Date
    Sep 2005

    Default Documentation for testing


    I have done some reports using pentaho
    On those examples i called pentaho from my application through URL
    but i know we can call it directly from java object

    The problem is i have not find any documents for using the pentaho as a jar file and how to se the pentah-solution path and everything ...

    I tried to call as we have it in

    but i got the following error

    20:32:07,997 ERROR [Logger] misc-org.pentaho.system.PentahoSystem: Error while trying to execute startup sequence for {0}org.pentaho.scheduler.QuartzSystemListener
    20:32:09,047 ERROR [HibernateUtil] HIBUTIL.ERROR_0006 - Building SessionFactory failed.
    	at org.pentaho.repository.HibernateUtil.initialize(
    	at org.pentaho.repository.HibernateUtil.(
    	at org.pentaho.repository.runtime.RuntimeRepository.setSession(
    	at org.pentaho.repository.runtime.RuntimeRepository.getInstance(
    	at org.pentaho.solution.SolutionEngine.execute(
    	at org.pentaho.test.RuntimeTest.testComponent(
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    	at java.lang.reflect.Method.invoke(
    	at junit.framework.TestCase.runTest(
    	at junit.framework.TestCase.runBare(
    	at junit.framework.TestResult$1.protect(
    	at junit.framework.TestResult.runProtected(
    	at junit.framework.TestSuite.runTest(
    	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
    	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(

    can i get any assistance in this regard , as a document ...


  2. #2
    gmoran Guest

    Default Re:Documentation for testing

    Hi Siva,

    You are on the right track - the startup of the platform can be found in the JUnit tests in the org.pentaho.test directory, which runs the platform engine as a standalone application instead of as a J2EE app.

    The platform will by default look for the Quartz database on startup to initialize it. The Quartz database is necessary for the scheduling functionality within the platform. So you must make sure that the Quartz database is up and running and can be found by the platform. This means that the appropriate JDBC driver needs to be on your classpath (if you are using the sample databases, this would be the hsqldb.jar that ships with the sample databases), and the database should be up and running when you try to initialize the platform.

    If you don't need the scheduler, you can disable the initialization by commenting out the following line in your pentaho.xml file, in the solutions/system directory:
    You will need to set the solutionPath on the constructor to the StandaloneApplicationContext (see the setUp() method in the BaseTest class, the class that ReportingTest descends from).

    StandaloneApplicationContext applicationContext = new StandaloneApplicationContext(YOUR_SOLUTION_PATH, "" );
    Let me know if this helps - or if you need further clarification.
    best regards,

  3. #3
    Join Date
    Jul 2006

    Default Re:Documentation for testing

    In case my experience will help someone, I began with this same error message on a Redhat Enterprise Linux 4 system with the Pre-Configured Installation. How I resolved my problem (this one, anyway

    1. cd to <pentaho-demo>/data
    2. execute ./
    3. verified that the four datasources all failed to open -- the error was
    org.hsqldb.HsqlException General Error java.lang.Error not implemented
    4. execute
    which java
    5. verified that the system's java command was not pointed to my jdk installation, but was going to a symbolic link in /usr/bin to a jre
    6. modified the system's symbolic links to point to my jdk (I'm not sure whether this will cause problems in other applications)
    7. re-execute ./
    8. now for me, all is well, I hope for you too!

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.