PDA

View Full Version : Trying to debug the Pentaho SDK



lonifasiko
09-11-2006, 02:23 AM
Downloaded Pentaho 1.2 RC1 demo and tried to run it against MySQL.

Now, I wanted to explore the SDK a bit. Therefore, downloaded also the latest SDK and started following "Developing with the Pentaho SDK" document step by step. Imported all Pentaho projects and finally compiled them without errors past Friday.

I think I've correctly configured Eclipse (also followed the document) and now I was trying to debug the "Standalone" project of the SDK. Just to initiate with the Pentaho SDK.

Well, the document tells me to compile using Ant but Eclipse throws me an error saying:

BUILD FAILED
C:\\Documents and Settings\\mloichate\\Mis documentos\\Eclipse\\Projects\\pentaho-standalone\\build.xml:23: The following error occurred while executing this line:
C:\\Documents and Settings\\mloichate\\Mis documentos\\Eclipse\\Projects\\pentaho\\build.xml:144: Error running javac.exe compiler

What am I missing?

I would really appreciate any help on this, cause I'm really newbie to Pentaho, Eclipse and Java in general.

Thanks very much in advance.

mbatchelor
09-11-2006, 04:14 AM
Based on the error, I'd say that Ant can't find your java compiler. To build the project, you'll need to download JDK 1.4.2.x from the sun web site. Additionally, you'll need to have your JAVA_HOME environment variable set. You may also have to modify the build properties file (often called default.properties and overridden by the build.properties file) to specify where to find the java compiler (javac.exe)

I hope this helps,

Marc

lonifasiko
09-11-2006, 05:04 AM
Hi,

Thanks for your reply.

I have the latest Java SDK, downloaded and installed a few days ago (JDK 1.5.0_08).

I've set JAVA_HOME environment variable to c:\\Program Files\\Java\\jdk1.5.0_08\\

Don't know what to change in the default.properties or build.properties files. I don't see anything referencing javac.exe.

I think I shouldn't change these files, they stay the same when they were downloaded. I suppose the downloaded files should be correct.

Thanks very much.

mbatchelor
09-11-2006, 06:13 AM
Once thing to note is, it needs to be built using JDK 1.4.2.x. We haven't tested with JDK 1.5, so your mileage there will vary.

Secondly, the SDK that is currently up on sourceforge isn't the latest build - it's dated from July of 2006. I'll update our build team on this point. I suggest you get the latest code from our subversion repository. This is much more up-to-date and has the latest bug fixes.

Finally, on the build.properties and default.properties points, the build files are intended to be modified by people so that their environment is able to be found by ANT.

default.properties supplies the names of the ANT variables and their default settings.

build.properties is intended for build time overrides. At a minimum, you'll need to specify the variable java1.4.home variable and the jre.dir.

You may also need to modify the build.xml if you're building the javadoc tag to specify the location of the javadoc.exe.

Take care,

Marc

lonifasiko
09-12-2006, 01:16 AM
I downloaded and installed JDK 1.4.2_12. This way I've been able to compile the stand-alone solution using Ant.

However, in spite of "Build successful" message, I can't see the directories and files the doc mentions. I do no have "bin" directory for example after building with Ant and refreshing.

I've then noticed that both standalone and pentaho projects show a "warning icon" in the Navigator view of Eclipse, but really don't know what it is causing this.

My JAVA_HOME environment variable points now to the new JDK installed and I've added the path to this JDK and the JRE to the Path environment variable.

Hope you can help me.

Thanks very much.

bhagan
09-12-2006, 09:48 AM
Hello and thanks for your interest in Pentaho. It's great that you were able to follow the guide, and you were successful compiling the standalone project.

I think the reason that you're not able to see the bin directory is that you're not actually in the Navigator view. I think somehow, you have switched to the Package Explorer view. Could you confirm this?

If you were using the Package Explorer view, it would make sense that you are are not seeing the bin directory, and it would also make sense that you are seeing the warning icons next to the project names. These icons do not appear in the Navigator view.

Eclipse displays warning icons to inform you that there may be problems in your source code or projects Though these are not errors, warnings should be evaluated to make sure that more serious problems do not occur.

To view the details of warnings, you can load the Problems view. We do take notice of warnings and do our best to keep the Problems view clean of all warnings. However, since these are not errors, there may be warnings that will remain, even after our development team evaluates and fixes problems indicated by warnings.

So, since it appears that your Pentaho SDK has compiled successfully, I suggest the following:

1. On the Window menu, point to Show View
2. From the Show View submenu, click Navigator.
3. Verify that the projects do not show warning icons.
4. Verify that the pentaho, pentaho-preconfiguredinstall, and pentaho-standalone projects have bin directories.

Let us know how it goes,

Brian

lonifasiko
09-13-2006, 04:10 AM
Hi,

Thanks for your reply, I think you gave me the key..........yes! It was the Navigator view! As you can see I'm really newbie to Eclipse environment and accidentally hide the Navigator view.

Then...to the point: I'm working with the SDK built on July 14th 2006. When importing the projects into Eclipse, I can see two warning icons in pentaho and pentaho-standalone projects in the "Package" view. As you say, they are warning icons and in "Problems" view I can see 44 warnings. That is just to let you know....

Anyway, finally I was able to debug the Standalone project: put the breakpoint following the document but again platform throws me errors. I think the very first error is related to logging. Here I attach the description of the error when executing

"Init.initialize();" code line so that you can point me in the right direction:

*****************************************************13-sep-2006 10:53:05 org.pentaho.util.logging.Logger fatal
GRAVE: Error: Pentaho 1.0.0.0 build 0001
13-sep-2006 10:53:05 org.pentaho.util.logging.Logger fatal
GRAVE: misc-org.pentaho.core.system.PentahoSystem: PentahoSystem.ERROR_0013 - No se pudo crear el objeto
org.pentaho.system.GlobalObjectInitializer
java.lang.ClassNotFoundException: org.pentaho.system.GlobalObjectInitializer
at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at org.pentaho.core.system.PentahoSystem.createObject(PentahoSystem.java:656)
at org.pentaho.core.system.PentahoSystem.init(PentahoSystem.java:169)
at org.pentaho.app.Init.initialize(Init.java:50)
at org.pentaho.app.SimpleCase.main(SimpleCase.java:73)
13-sep-2006 10:53:05 org.pentaho.util.logging.Logger fatal
GRAVE: Error end:
13-sep-2006 10:53:05 org.pentaho.util.logging.Logger error
GRAVE: misc-org.pentaho.core.system.PentahoSystem: PentahoSystem.ERROR_0011 - No es posible crear el listener de parada

org.pentaho.system.GlobalObjectInitializer
13-sep-2006 10:53:05 org.pentaho.util.logging.Logger fatal
GRAVE: Error: Pentaho 1.0.0.0 build 0001
13-sep-2006 10:53:05 org.pentaho.util.logging.Logger fatal
GRAVE: misc-org.pentaho.core.system.PentahoSystem: PentahoSystem.ERROR_0013 - No se pudo crear el objeto

org.pentaho.jfree.JFreeReportSystemListener
java.lang.ClassNotFoundException: org.pentaho.jfree.JFreeReportSystemListener
at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at org.pentaho.core.system.PentahoSystem.createObject(PentahoSystem.java:656)
at org.pentaho.core.system.PentahoSystem.init(PentahoSystem.java:169)
at org.pentaho.app.Init.initialize(Init.java:50)
at org.pentaho.app.SimpleCase.main(SimpleCase.java:73)
13-sep-2006 10:53:05 org.pentaho.util.logging.Logger fatal
GRAVE: Error end:
13-sep-2006 10:53:05 org.pentaho.util.logging.Logger error
GRAVE: misc-org.pentaho.core.system.PentahoSystem: PentahoSystem.ERROR_0011 - No es posible crear el listener de parada

org.pentaho.jfree.JFreeReportSystemListener
*****************************************************

After that, I switched (following the document again) to debugging the JBoss Application server but found some problems, specially when configuring the JBoss IDE Server.

Many people seem to have the same problem. It is impossible to create a new configuration for JBoss 4.0.x debugging. I've downloaded the last JBoss plug-in for Eclipse 3.2 (I'm using this Eclipse version) but there is no way.

I'm quite desperated with all this complex task of debugging the SDK.....don't know what more else to do!

Thanks very much.

Post edited by: lonifasiko, at: 09/13/2006 08:13

Post edited by: lonifasiko, at: 09/13/2006 08:15

Post edited by: lonifasiko, at: 09/13/2006 08:32

bhagan
09-18-2006, 07:16 AM
It is apparent that the SDK standalone project is a bit out of date, and that is why you are seeing such errors. We are developing a process in which the standalone project will remain up-to-date. In the meantime, you can download the latest source code from our subversion repository and begin compiling and debugging the code. Check the downloads page for an updated SDK soon.

- Brian

glgrahamjr
09-22-2006, 07:15 AM
i downloaded the latest SDK and how-to and followed the instructions to the letter, so far as i can ascertain. however, when i try to run or debug i get the following errors:

Sep 22, 2006 11:02:28 AM org.pentaho.util.logging.Logger fatal
SEVERE: Error: Pentaho 1.2.RC1.0 build 339
Sep 22, 2006 11:02:28 AM org.pentaho.util.logging.Logger fatal
SEVERE: misc-org.pentaho.core.system.PentahoSystem: PentahoSystem.ERROR_0013 - Could not create object org.pentaho.system.GlobalObjectInitializer
java.lang.ClassNotFoundException: org.pentaho.system.GlobalObjectInitializer
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.pentaho.core.system.PentahoSystem.createObject(PentahoSystem.java:656)
at org.pentaho.core.system.PentahoSystem.init(PentahoSystem.java:169)
at org.pentaho.app.Init.initialize(Init.java:50)
at org.pentaho.app.SimpleCase.main(SimpleCase.java:73)
Sep 22, 2006 11:02:28 AM org.pentaho.util.logging.Logger fatal
SEVERE: Error end:
Sep 22, 2006 11:02:28 AM org.pentaho.util.logging.Logger error
SEVERE: misc-org.pentaho.core.system.PentahoSystem: PentahoSystem.ERROR_0011 - Could not create shutdown listener org.pentaho.system.GlobalObjectInitializer
Sep 22, 2006 11:02:28 AM org.pentaho.util.logging.Logger fatal
SEVERE: Error: Pentaho 1.2.RC1.0 build 339
Sep 22, 2006 11:02:28 AM org.pentaho.util.logging.Logger fatal
SEVERE: misc-org.pentaho.core.system.PentahoSystem: PentahoSystem.ERROR_0013 - Could not create object org.pentaho.jfree.JFreeReportSystemListener
java.lang.ClassNotFoundException: org.pentaho.jfree.JFreeReportSystemListener
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.pentaho.core.system.PentahoSystem.createObject(PentahoSystem.java:656)
at org.pentaho.core.system.PentahoSystem.init(PentahoSystem.java:169)
at org.pentaho.app.Init.initialize(Init.java:50)
at org.pentaho.app.SimpleCase.main(SimpleCase.java:73)
Sep 22, 2006 11:02:28 AM org.pentaho.util.logging.Logger fatal
SEVERE: Error end:
Sep 22, 2006 11:02:28 AM org.pentaho.util.logging.Logger error
SEVERE: misc-org.pentaho.core.system.PentahoSystem: PentahoSystem.ERROR_0011 - Could not create shutdown listener org.pentaho.jfree.JFreeReportSystemListener
java.lang.NullPointerException
at org.pentaho.core.solution.SolutionHelper.execute(SolutionHelper.java:66)
at org.pentaho.app.SimpleCase.simpleHelloWorldCase(SimpleCase.java:46)
at org.pentaho.app.SimpleCase.simpleCase(SimpleCase.java:33)
at org.pentaho.app.SimpleCase.main(SimpleCase.java:75)
java.lang.NullPointerException
at org.pentaho.core.solution.SolutionHelper.execute(SolutionHelper.java:66)
at org.pentaho.app.SimpleCase.simpleReportCase(SimpleCase.java:60)
at org.pentaho.app.SimpleCase.simpleCase(SimpleCase.java:34)
at org.pentaho.app.SimpleCase.main(SimpleCase.java:75)


any ideas??? Thanks.

glgrahamjr
09-22-2006, 07:34 AM
i downloaded the latest SDK and how-to and followed the instructions to the letter, so far as i can ascertain. however, when i try to run or debug i get the following errors:

Sep 22, 2006 11:02:28 AM org.pentaho.util.logging.Logger fatal
SEVERE: Error: Pentaho 1.2.RC1.0 build 339
Sep 22, 2006 11:02:28 AM org.pentaho.util.logging.Logger fatal
SEVERE: misc-org.pentaho.core.system.PentahoSystem: PentahoSystem.ERROR_0013 - Could not create object org.pentaho.system.GlobalObjectInitializer
java.lang.ClassNotFoundException: org.pentaho.system.GlobalObjectInitializer
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.pentaho.core.system.PentahoSystem.createObject(PentahoSystem.java:656)
at org.pentaho.core.system.PentahoSystem.init(PentahoSystem.java:169)
at org.pentaho.app.Init.initialize(Init.java:50)
at org.pentaho.app.SimpleCase.main(SimpleCase.java:73)
Sep 22, 2006 11:02:28 AM org.pentaho.util.logging.Logger fatal
SEVERE: Error end:
Sep 22, 2006 11:02:28 AM org.pentaho.util.logging.Logger error
SEVERE: misc-org.pentaho.core.system.PentahoSystem: PentahoSystem.ERROR_0011 - Could not create shutdown listener org.pentaho.system.GlobalObjectInitializer
Sep 22, 2006 11:02:28 AM org.pentaho.util.logging.Logger fatal
SEVERE: Error: Pentaho 1.2.RC1.0 build 339
Sep 22, 2006 11:02:28 AM org.pentaho.util.logging.Logger fatal
SEVERE: misc-org.pentaho.core.system.PentahoSystem: PentahoSystem.ERROR_0013 - Could not create object org.pentaho.jfree.JFreeReportSystemListener
java.lang.ClassNotFoundException: org.pentaho.jfree.JFreeReportSystemListener
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.pentaho.core.system.PentahoSystem.createObject(PentahoSystem.java:656)
at org.pentaho.core.system.PentahoSystem.init(PentahoSystem.java:169)
at org.pentaho.app.Init.initialize(Init.java:50)
at org.pentaho.app.SimpleCase.main(SimpleCase.java:73)
Sep 22, 2006 11:02:28 AM org.pentaho.util.logging.Logger fatal
SEVERE: Error end:
Sep 22, 2006 11:02:28 AM org.pentaho.util.logging.Logger error
SEVERE: misc-org.pentaho.core.system.PentahoSystem: PentahoSystem.ERROR_0011 - Could not create shutdown listener org.pentaho.jfree.JFreeReportSystemListener
java.lang.NullPointerException
at org.pentaho.core.solution.SolutionHelper.execute(SolutionHelper.java:66)
at org.pentaho.app.SimpleCase.simpleHelloWorldCase(SimpleCase.java:46)
at org.pentaho.app.SimpleCase.simpleCase(SimpleCase.java:33)
at org.pentaho.app.SimpleCase.main(SimpleCase.java:75)
java.lang.NullPointerException
at org.pentaho.core.solution.SolutionHelper.execute(SolutionHelper.java:66)
at org.pentaho.app.SimpleCase.simpleReportCase(SimpleCase.java:60)
at org.pentaho.app.SimpleCase.simpleCase(SimpleCase.java:34)
at org.pentaho.app.SimpleCase.main(SimpleCase.java:75)


any ideas??? Thanks.

lonifasiko
09-25-2006, 12:17 AM
Have you downloaded the latest SDK from the Subversion repository like the previous post to yours siuggests? If so, they haven't still updated the stand-alone project's code. Be patient, that post says that they are in the task of mantaining the SDK and all projects (including the stand-alone project) up to date. Seems that it was a bit out of date.

Keep me informed please cause I'm also trying to get inside Pentaho's SDK.

Regards.

mbatchelor
09-25-2006, 03:54 AM
From the error, it appears that all the dependencies aren't being located.

At a high level, the steps to get things working should be as follows:

a- Get the pentaho jar file from source forge (or build it from the pentaho source) - Here is the download section on sourceforge - http://sourceforge.net/project/showfiles.php?group_id=140317&package_id=160028

You want the pentaho_jar-xxxx.zip

b- Get the pentaho-standalone project SVN

c- Get the pentaho_lib-xxxx.zip from source forge - this has various .jars in it that are used by the standalone project.

d- Build the pentaho-standalone project using ANT.

When you run, you'll need to make sure that the pentaho.jar and all the other dependent jar files are in your classpath. Otherwise, you'll see that class not found exception.

Take care,

Marc

egabbud
10-02-2006, 07:39 AM
Hi!

I'm also trying to install the pentaho-standalone.

I have the latest jar from SourceForge.
I have the latest version of pentaho-standalone from the SVN.
I was unable to read the latest pentaho_lib-xxxx.zip from SourceForge (it's corrupted... or at least empty...)
But I have taken the lib from the SDK zip file.

Anyway, I still have some errors. In resource/solution/system/pentaho.xml I had to change the line 23 to:
org.pentaho.core.system.GlobalObjectInitializer (.core was missing)

And line 7 to:
org.pentaho.core.solution.SolutionEngine (.core was missing too)

And I still have ClassNotFoundException. Now org.pentaho.repository.runtime.SimpleRuntimeRepository is missing.

Where should it be?
I've already spend 2-3 hours trying to set-up this project, and I'm slowly getting disappointed by such problems...

Thanks.

bhagan
10-27-2006, 10:25 AM
Please see the following post:

http://forums.pentaho.org/showthread.php?t=27366

- Brian