PDA

View Full Version : Documentation for testing



sat_1729
01-02-2006, 07:14 AM
hi

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 ReportingTest.java

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.
java.lang.NullPointerException
at org.pentaho.repository.HibernateUtil.initialize(HibernateUtil.java:90)
at org.pentaho.repository.HibernateUtil.(HibernateUtil.java:57)
at org.pentaho.repository.runtime.RuntimeRepository.setSession(RuntimeRepository.java:67)
at org.pentaho.repository.runtime.RuntimeRepository.getInstance(RuntimeRepository.java:59)
at org.pentaho.solution.SolutionEngine.execute(SolutionEngine.java:110)
at org.pentaho.test.BaseTest.run(BaseTest.java:196)
at org.pentaho.test.BaseTest.run(BaseTest.java:176)
at org.pentaho.test.BaseTest.run(BaseTest.java:158)
at org.pentaho.test.BaseTest.run(BaseTest.java:138)
at org.pentaho.test.RuntimeTest.testComponent(RuntimeTest.java:42)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)


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


regards,
siva