Build errors 6.0.1.X - kettle5-log4j-plugin - Missing dependencies.

212 views
Skip to first unread message

Brandon Jackson

unread,
Feb 9, 2016, 11:05:15 AM2/9/16
to kettle-developers
Wanted to get some direction on how to build the pentaho-kettle project.  I've tried building the 6.0.1.1 and 6.0.1.2 tags (released today).  They both fail when building kettle5-log4j-plugin and gpload plugin.

Where and how can I get the missing dependencies?  Where do I place them to make the build happy (Is there a specific cache folder to put them in?)

Thanks for your guidance.


resolve:

init:
    [mkdir] Created dir: /Users/bjackson/Documents/PDI_Labs/src/pentaho-kettle/plugins/kettle5-log4j-plugin/bin/classes
    [mkdir] Created dir: /Users/bjackson/Documents/PDI_Labs/src/pentaho-kettle/plugins/kettle5-log4j-plugin/dist

compile.pre:

compile.compile:
    [javac] /Users/bjackson/Documents/PDI_Labs/src/pentaho-kettle/plugins/kettle5-log4j-plugin/build-res/subfloor.xml:1571: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 10 source files to /Users/bjackson/Documents/PDI_Labs/src/pentaho-kettle/plugins/kettle5-log4j-plugin/bin/classes
    [javac] warning: [path] bad path element "/Users/bjackson/Documents/PDI_Labs/src/pentaho-kettle/plugins/kettle5-log4j-plugin/dev-lib/xercesImpl.jar": no such file or directory
    [javac] warning: [path] bad path element "/Users/bjackson/Documents/PDI_Labs/src/pentaho-kettle/plugins/kettle5-log4j-plugin/dev-lib/xml-apis.jar": no such file or directory
    [javac] warning: [path] bad path element "/Users/bjackson/Documents/PDI_Labs/src/pentaho-kettle/plugins/kettle5-log4j-plugin/dev-lib/serializer.jar": no such file or directory
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
    [javac] /Users/bjackson/Documents/PDI_Labs/src/pentaho-kettle/plugins/kettle5-log4j-plugin/src/org/pentaho/di/core/logging/log4j/Log4jLogging.java:39: error: cannot find symbol
    [javac]   id = "Log4jLogging", isSeparateClassLoaderNeeded = true )
    [javac]                                                      ^
    [javac]   symbol:   method isSeparateClassLoaderNeeded()
    [javac]   location: @interface LoggingPlugin
    [javac] /Users/bjackson/Documents/PDI_Labs/src/pentaho-kettle/plugins/kettle5-log4j-plugin/src/org/pentaho/di/core/logging/Log4jFileAppender.java:50: error: no suitable method found for getOutputStream(org.apache.commons.vfs2.FileObject,boolean)
    [javac]     fileOutputStream = KettleVFS.getOutputStream( file, false );
    [javac]                                 ^
    [javac]     method KettleVFS.getOutputStream(org.apache.commons.vfs.FileObject,boolean) is not applicable
    [javac]       (argument mismatch; org.apache.commons.vfs2.FileObject cannot be converted to org.apache.commons.vfs.FileObject)
    [javac]     method KettleVFS.getOutputStream(String,boolean) is not applicable
    [javac]       (argument mismatch; org.apache.commons.vfs2.FileObject cannot be converted to String)
    [javac] /Users/bjackson/Documents/PDI_Labs/src/pentaho-kettle/plugins/kettle5-log4j-plugin/src/org/pentaho/di/core/logging/Log4jFileAppender.java:56: error: no suitable method found for getOutputStream(org.apache.commons.vfs2.FileObject,boolean)
    [javac]     fileOutputStream = KettleVFS.getOutputStream( file, append );
    [javac]                                 ^
    [javac]     method KettleVFS.getOutputStream(org.apache.commons.vfs.FileObject,boolean) is not applicable
    [javac]       (argument mismatch; org.apache.commons.vfs2.FileObject cannot be converted to org.apache.commons.vfs.FileObject)
    [javac]     method KettleVFS.getOutputStream(String,boolean) is not applicable
    [javac]       (argument mismatch; org.apache.commons.vfs2.FileObject cannot be converted to String)
    [javac] /Users/bjackson/Documents/PDI_Labs/src/pentaho-kettle/plugins/kettle5-log4j-plugin/src/org/pentaho/di/core/logging/LogWriter.java:189: error: incompatible types: org.apache.commons.vfs.FileObject cannot be converted to org.apache.commons.vfs2.FileObject
    [javac]         file = KettleVFS.createTempFile( filename, ".log", System.getProperty( "java.io.tmpdir" ) );
    [javac]                                        ^
    [javac] /Users/bjackson/Documents/PDI_Labs/src/pentaho-kettle/plugins/kettle5-log4j-plugin/src/org/pentaho/di/core/logging/LogWriter.java:191: error: incompatible types: org.apache.commons.vfs.FileObject cannot be converted to org.apache.commons.vfs2.FileObject
    [javac]         file = KettleVFS.getFileObject( filename );
    [javac]                                       ^
    [javac] /Users/bjackson/Documents/PDI_Labs/src/pentaho-kettle/plugins/kettle5-log4j-plugin/src/org/pentaho/di/core/logging/LogWriter.java:216: error: incompatible types: org.apache.commons.vfs.FileObject cannot be converted to org.apache.commons.vfs2.FileObject
    [javac]         file = KettleVFS.createTempFile( filename, ".log", System.getProperty( "java.io.tmpdir" ) );
    [javac]                                        ^
    [javac] /Users/bjackson/Documents/PDI_Labs/src/pentaho-kettle/plugins/kettle5-log4j-plugin/src/org/pentaho/di/core/logging/LogWriter.java:218: error: incompatible types: org.apache.commons.vfs.FileObject cannot be converted to org.apache.commons.vfs2.FileObject
    [javac]         file = KettleVFS.getFileObject( filename );
    [javac]                                       ^
    [javac] /Users/bjackson/Documents/PDI_Labs/src/pentaho-kettle/plugins/kettle5-log4j-plugin/src/org/pentaho/di/core/logging/LogWriter.java:370: error: no suitable method found for getInputStream(org.apache.commons.vfs2.FileObject)
    [javac]     return KettleVFS.getInputStream( fileAppender.getFile() );
    [javac]                     ^
    [javac]     method KettleVFS.getInputStream(org.apache.commons.vfs.FileObject) is not applicable
    [javac]       (argument mismatch; org.apache.commons.vfs2.FileObject cannot be converted to org.apache.commons.vfs.FileObject)
    [javac]     method KettleVFS.getInputStream(String) is not applicable
    [javac]       (argument mismatch; org.apache.commons.vfs2.FileObject cannot be converted to String)
    [javac] Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
    [javac] 8 errors
    [javac] 4 warnings

BUILD FAILED
/Users/bjackson/Documents/PDI_Labs/src/pentaho-kettle/build.xml:161: The following error occurred while executing this line:
/Users/bjackson/Documents/PDI_Labs/src/pentaho-kettle/build.xml:166: The following error occurred while executing this line:
/Users/bjackson/Documents/PDI_Labs/src/pentaho-kettle/plugins/kettle5-log4j-plugin/build-res/subfloor.xml:1571: Compile failed; see the compiler error output for details.

Dan

unread,
Feb 9, 2016, 11:23:31 AM2/9/16
to kettle-d...@googlegroups.com

Interesting as there was a gpload commit today only a few hours ago! (First one in years)

Sent from my phone

--
You received this message because you are subscribed to the Google Groups "kettle-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kettle-develop...@googlegroups.com.
To post to this group, send email to kettle-d...@googlegroups.com.
Visit this group at https://groups.google.com/group/kettle-developers.
For more options, visit https://groups.google.com/d/optout.

Brandon Jackson

unread,
Feb 10, 2016, 9:17:25 AM2/10/16
to kettle-developers
There must be something bad happening, probably something I forgot to configure or include.  The kettle5-log4j-plugin is included in the CI build of 6.1 and so is gpload.  I excluded those two from build.properties and got PDI 6.0.1.2 to compile, but it crashed immediately when trying to start with the following error.

/Users/bjackson/Documents/PDI_Labs/src/pentaho-kettle/dist
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
2016-02-09 22:36:32.240 java[63528:3061402] *** WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead.
java.lang.NoSuchMethodError: org.pentaho.di.core.vfs.KettleVFS.getFileSystemManager()Lorg/apache/commons/vfs/FileSystemManager;
at org.pentaho.di.ui.util.ImageUtil.<clinit>(ImageUtil.java:58)
at org.pentaho.di.ui.core.dialog.Splash.<init>(Splash.java:86)
at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:615)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.pentaho.commons.launcher.Launcher.main(Launcher.java:92)

Do not yet really know what that implies, but my gut tells me that it is something about missing that special build of Apache VFS that I remember reading about.  If anyone happens to know, please drop some hints on how to get past this.

Thanks,

Brandon

Brandon Jackson

unread,
Feb 10, 2016, 2:19:11 PM2/10/16
to kettle-developers
Weirdness.  I downloaded a gzipped tag direct from github, unzipped to a fresh folder, 'ant clean resolve dist', boom, works perfectly.

--- 
Reply all
Reply to author
Forward
0 new messages