Hitachi Vantara Pentaho Community Forums
Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Trying to debug the Pentaho SDK

  1. #1
    Join Date
    Sep 2006
    Posts
    105

    Default Trying to debug the Pentaho SDK

    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.

  2. #2
    Join Date
    Nov 1999
    Posts
    579

    Default Re:Trying to debug the Pentaho SDK

    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

  3. #3
    Join Date
    Sep 2006
    Posts
    105

    Default Re:Trying to debug the Pentaho SDK

    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.

  4. #4
    Join Date
    Nov 1999
    Posts
    579

    Default Re:Trying to debug the Pentaho SDK

    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

  5. #5
    Join Date
    Sep 2006
    Posts
    105

    Default Re:Trying to debug the Pentaho SDK

    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.

  6. #6
    Join Date
    Nov 2005
    Posts
    164

    Default Re:Trying to debug the Pentaho SDK

    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

  7. #7
    Join Date
    Sep 2006
    Posts
    105

    Default Re:Trying to debug the Pentaho SDK

    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

  8. #8
    Join Date
    Nov 2005
    Posts
    164

    Default Re:Trying to debug the Pentaho SDK

    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

  9. #9
    Join Date
    Sep 2006
    Posts
    17

    Default Re:Trying to debug the Pentaho SDK

    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.

  10. #10
    Join Date
    Sep 2006
    Posts
    17

    Default Re:Trying to debug the Pentaho SDK

    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.

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.