Hitachi Vantara Pentaho Community Forums
Results 1 to 7 of 7

Thread: BI Platform Developer - Pentaho Source Code compilation error.

  1. #1

    Default BI Platform Developer - Pentaho Source Code compilation error.

    Hello, I'm trying compile pentaho and I can not show me the following error message. One would like to help, I need to implement some features that my company is in need.


    The ' characters around the executable and arguments are
    not part of the command.
    [javac] /home/benevides/pentaho/bi-platform-plugin-services/cache/src/org/pentaho/platform/plugin/services/cache/CacheManager.java:174: warning: [deprecation] createObject(java.lang.String) in org.pentaho.platform.engine.core.system.PentahoSystem has been deprecated
    [javac] Object obj = PentahoSystem.createObject(cacheProviderClassName);
    [javac] ^
    [javac] /home/benevides/pentaho/bi-platform-plugin-services/connections/src/org/pentaho/platform/plugin/services/connections/mondrian/MDXResultSet.java:205: warning: [deprecation] getRowHeaders() in org.pentaho.commons.connection.IPentahoMetaData has been deprecated
    [javac] Object rowHeaders[][] = metadata.getRowHeaders();
    [javac] ^
    [javac] /home/benevides/pentaho/bi-platform-plugin-services/connections/src/org/pentaho/platform/plugin/services/connections/xquery/XQResultSet.java:123: cannot find symbol
    [javac] symbol : method convert(net.sf.saxon.om.Item)
    [javac] location: class net.sf.saxon.value.Value
    [javac] rtn.add(Value.convert(item));
    [javac] ^
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 1 error
    [javac] 2 warnings
    [ant] Exiting /home/benevides/pentaho/bi-platform-plugin-services/build.xml.

    BUILD FAILED
    /home/benevides/pentaho/bi-platform-build/dev_build.xml:154: The following error occurred while executing this line:
    /home/benevides/pentaho/bi-platform-build/dev_build.xml:156: The following error occurred while executing this line:
    /home/benevides/pentaho/bi-platform-plugin-services/build.xml:31: Compile failed; see the compiler error output for details.
    at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1113)
    at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:906)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:390)
    at org.apache.tools.ant.Target.performTasks(Target.java:411)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
    at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1249)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398)
    at net.sf.antcontrib.logic.ForTask.doSequentialIteration(ForTask.java:259)
    at net.sf.antcontrib.logic.ForTask.doToken(ForTask.java:268)
    at net.sf.antcontrib.logic.ForTask.doTheTasks(ForTask.java:299)
    at net.sf.antcontrib.logic.ForTask.execute(ForTask.java:244)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:390)
    at org.apache.tools.ant.Target.performTasks(Target.java:411)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1366)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1249)
    at org.apache.tools.ant.Main.runBuild(Main.java:801)
    at org.apache.tools.ant.Main.startAnt(Main.java:218)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

    Total time: 4 minutes 54 seconds
    benevides@ubuntu:~/pentaho/bi-platform-build$

  2. #2
    Join Date
    Mar 2003
    Posts
    8,085

    Default

    Did you call "ant resolve" to download all the libraries before you started compilation?
    Get the latest news and tips and tricks for Pentaho Reporting at the Pentaho Reporting Blog.

  3. #3

    Default

    Hello, I need to do this on every project?

  4. #4
    Join Date
    Mar 2003
    Posts
    8,085

    Default

    Yes. Each project is a separate entity. Projects need to be build in order and need to be "published locally" (ant publish-local) so that downstream projects can find the newly build libraries.
    Get the latest news and tips and tricks for Pentaho Reporting at the Pentaho Reporting Blog.

  5. #5

    Default

    Ok, thank you I will.

  6. #6

    Default

    Hello, I'm using the command "ant resolve" in each of the projects, some projects I presents an error message that others do not.
    I wonder what the correct sequence of projects so I can run the command "ant resolve" and "ant publish-local"


    Thank you.

  7. #7

    Default

    Errors introduced in different projects.

    Thank you
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------
    [ivy:resolve] report for pentaho#pentaho-bi-platform-legacy;TRUNK-SNAPSHOT default produced in C:\Users\Nelson Benevid
    es\.ivy2\resol-cache${env.EXECUTOR_NUMBER}\pentaho-pentaho-bi-platform-legacy-default.xml
    [ivy:resolve] resolve done (422945ms resolve - 3111ms download)
    Finding class org.apache.ivy.util.MessageLoggerHelper
    Loaded from C:\Users\Nelson Benevides\.subfloor\ivy\ivy.jar org/apache/ivy/util/MessageLoggerHelper.class
    Class org.apache.ivy.util.MessageLoggerHelper loaded from ant loader (parentFirst)
    [ivy:resolve]
    [ivy:resolve] :: problems summary ::
    [ivy:resolve] :::: WARNINGS
    [ivy:resolve] module not found: pentaho-reporting-engine#pentaho-reporting-engine-classic-extensions-drill-dow
    n;TRUNK-SNAPSHOT
    [ivy:resolve] ==== local: tried
    [ivy:resolve] C:\Users\Nelson Benevides\.ivy2/local/pentaho-reporting-engine/pentaho-reporting-engine-classic-extens
    ions-drill-down/TRUNK-SNAPSHOT/ivys/ivy.xml
    [ivy:resolve] -- artifact pentaho-reporting-engine#pentaho-reporting-engine-classic-extensions-drill-down;TRUNK-SNAP
    SHOT!pentaho-reporting-engine-classic-extensions-drill-down.jar:
    [ivy:resolve] C:\Users\Nelson Benevides\.ivy2/local/pentaho-reporting-engine/pentaho-reporting-engine-classic-extens
    ions-drill-down/TRUNK-SNAPSHOT/jars/pentaho-reporting-engine-classic-extensions-drill-down-TRUNK-SNAPSHOT.jar
    [ivy:resolve] ==== pentaho-ivy: tried
    [ivy:resolve] http://repo.pentaho.org/artifactory/...ne-classic-ext
    ensions-drill-down/TRUNK-SNAPSHOT/pentaho-reporting-engine-classic-extensions-drill-down-TRUNK-SNAPSHOT.ivy.xml
    [ivy:resolve] ==== pentaho-mvn: tried
    [ivy:resolve] http://repo.pentaho.org/artifactory/...ne-classic-ext
    ensions-drill-down/TRUNK-SNAPSHOT/pentaho-reporting-engine-classic-extensions-drill-down-TRUNK-SNAPSHOT.pom
    [ivy:resolve] ==== public: tried
    [ivy:resolve] http://repo1.maven.org/maven2/pentah...extensions-dri
    ll-down/TRUNK-SNAPSHOT/pentaho-reporting-engine-classic-extensions-drill-down-TRUNK-SNAPSHOT.pom
    [ivy:resolve] -- artifact pentaho-reporting-engine#pentaho-reporting-engine-classic-extensions-drill-down;TRUNK-SNAP
    SHOT!pentaho-reporting-engine-classic-extensions-drill-down.jar:
    [ivy:resolve] http://repo1.maven.org/maven2/pentah...extensions-dri
    ll-down/TRUNK-SNAPSHOT/pentaho-reporting-engine-classic-extensions-drill-down-TRUNK-SNAPSHOT.jar
    [ivy:resolve] ==== java-net-maven2: tried
    [ivy:resolve] http://repository.pentaho.org/artifa...ting-engine-cl
    assic-extensions-drill-down/TRUNK-SNAPSHOT/pentaho-reporting-engine-classic-extensions-drill-down-TRUNK-SNAPSHOT.pom
    [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
    [ivy:resolve] :: UNRESOLVED DEPENDENCIES ::
    [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
    [ivy:resolve] :: pentaho-reporting-engine#pentaho-reporting-engine-classic-extensions-drill-down;TRUNK-SNAPSHO
    T: not found
    [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
    [ivy:resolve]
    [ivy:resolve] :::: ERRORS
    [ivy:resolve] impossible to acquire lock for pentaho-reporting-engine#pentaho-reporting-engine-classic-extensions-dril
    l-down;TRUNK-SNAPSHOT
    [ivy:resolve] impossible to acquire lock for pentaho-reporting-engine#pentaho-reporting-engine-classic-extensions-dril
    l-down;TRUNK-SNAPSHOT
    [ivy:resolve] impossible to acquire lock for pentaho-reporting-engine#pentaho-reporting-engine-classic-extensions-dril
    l-down;TRUNK-SNAPSHOT
    [ivy:resolve]
    [ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

    BUILD FAILED
    C:\Projetos\pentaho\bi-platform-legacy\build-res\subfloor.xml:620: impossible to resolve dependencies:
    resolve failed - see output for details
    at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:251)
    at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:390)
    at org.apache.tools.ant.Target.performTasks(Target.java:411)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    at org.apache.tools.ant.Main.runBuild(Main.java:809)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

    Total time: 7 minutes 9 seconds

    C:\Projetos\pentaho\bi-platform-legacy>
    -------------------------------------------------------------------------------------------------------------------------------------------------------
    [ivy:resolve] report for pentaho#pentaho-bi-platform-plugin-actions;TRUNK-SNAPSHOT default produced in C:\Users\Nelson
    Benevides\.ivy2\resol-cache${env.EXECUTOR_NUMBER}\pentaho-pentaho-bi-platform-plugin-actions-default.xml
    [ivy:resolve] resolve done (445064ms resolve - 11620ms download)
    Finding class org.apache.ivy.util.MessageLoggerHelper
    Loaded from C:\Users\Nelson Benevides\.subfloor\ivy\ivy.jar org/apache/ivy/util/MessageLoggerHelper.class
    Class org.apache.ivy.util.MessageLoggerHelper loaded from ant loader (parentFirst)
    [ivy:resolve]
    [ivy:resolve] :: problems summary ::
    [ivy:resolve] :::: WARNINGS
    [ivy:resolve] module not found: pentaho-reporting-engine#pentaho-reporting-engine-classic-extensions-drill-dow
    n;TRUNK-SNAPSHOT
    [ivy:resolve] ==== local: tried
    [ivy:resolve] C:\Users\Nelson Benevides\.ivy2/local/pentaho-reporting-engine/pentaho-reporting-engine-classic-extens
    ions-drill-down/TRUNK-SNAPSHOT/ivys/ivy.xml
    [ivy:resolve] -- artifact pentaho-reporting-engine#pentaho-reporting-engine-classic-extensions-drill-down;TRUNK-SNAP
    SHOT!pentaho-reporting-engine-classic-extensions-drill-down.jar:
    [ivy:resolve] C:\Users\Nelson Benevides\.ivy2/local/pentaho-reporting-engine/pentaho-reporting-engine-classic-extens
    ions-drill-down/TRUNK-SNAPSHOT/jars/pentaho-reporting-engine-classic-extensions-drill-down-TRUNK-SNAPSHOT.jar
    [ivy:resolve] ==== pentaho-ivy: tried
    [ivy:resolve] http://repo.pentaho.org/artifactory/...ne-classic-ext
    ensions-drill-down/TRUNK-SNAPSHOT/pentaho-reporting-engine-classic-extensions-drill-down-TRUNK-SNAPSHOT.ivy.xml
    [ivy:resolve] ==== pentaho-mvn: tried
    [ivy:resolve] http://repo.pentaho.org/artifactory/...ne-classic-ext
    ensions-drill-down/TRUNK-SNAPSHOT/pentaho-reporting-engine-classic-extensions-drill-down-TRUNK-SNAPSHOT.pom
    [ivy:resolve] ==== public: tried
    [ivy:resolve] http://repo1.maven.org/maven2/pentah...extensions-dri
    ll-down/TRUNK-SNAPSHOT/pentaho-reporting-engine-classic-extensions-drill-down-TRUNK-SNAPSHOT.pom
    [ivy:resolve] -- artifact pentaho-reporting-engine#pentaho-reporting-engine-classic-extensions-drill-down;TRUNK-SNAP
    SHOT!pentaho-reporting-engine-classic-extensions-drill-down.jar:
    [ivy:resolve] http://repo1.maven.org/maven2/pentah...extensions-dri
    ll-down/TRUNK-SNAPSHOT/pentaho-reporting-engine-classic-extensions-drill-down-TRUNK-SNAPSHOT.jar
    [ivy:resolve] ==== java-net-maven2: tried
    [ivy:resolve] http://repository.pentaho.org/artifa...ting-engine-cl
    assic-extensions-drill-down/TRUNK-SNAPSHOT/pentaho-reporting-engine-classic-extensions-drill-down-TRUNK-SNAPSHOT.pom
    [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
    [ivy:resolve] :: UNRESOLVED DEPENDENCIES ::
    [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
    [ivy:resolve] :: pentaho-reporting-engine#pentaho-reporting-engine-classic-extensions-drill-down;TRUNK-SNAPSHO
    T: not found
    [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
    [ivy:resolve]
    [ivy:resolve] :::: ERRORS
    [ivy:resolve] impossible to acquire lock for pentaho-reporting-engine#pentaho-reporting-engine-classic-extensions-dril
    l-down;TRUNK-SNAPSHOT
    [ivy:resolve] impossible to acquire lock for pentaho-reporting-engine#pentaho-reporting-engine-classic-extensions-dril
    l-down;TRUNK-SNAPSHOT
    [ivy:resolve] impossible to acquire lock for pentaho-reporting-engine#pentaho-reporting-engine-classic-extensions-dril
    l-down;TRUNK-SNAPSHOT
    [ivy:resolve]
    [ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

    BUILD FAILED
    C:\Projetos\pentaho\bi-platform-plugin-actions\build-res\subfloor.xml:620: impossible to resolve dependencies:
    resolve failed - see output for details
    at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:251)
    at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:390)
    at org.apache.tools.ant.Target.performTasks(Target.java:411)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    at org.apache.tools.ant.Main.runBuild(Main.java:809)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

    Total time: 7 minutes 39 seconds

    C:\Projetos\pentaho\bi-platform-plugin-actions>

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.