Build issue (NullPointerException in ClassloaderMojo)

13 views
Skip to first unread message

jean...@spaggiari.org

unread,
Aug 28, 2014, 9:16:48 AM8/28/14
to lily-d...@googlegroups.com
Hi,

I have extracted 2.4 branch from GitHub and I tried to compiled it but I'm facing some challenges.

Build keep failing. First it complains about Snappy missing. So I installed the lib, but now avro complains and I'm not able to figure why. As anyone faced this and solved it already? Error and exception are below.

Any idea what's wrong and what I should update?

Thanks,

JM


[INFO] Lily: Avro API ..................................... FAILURE [  1.568 s]

[ERROR] Failed to execute goal org.lilyproject:lily-runtime-genclassloader-plugin:2.4.5-SNAPSHOT:generate (default) on project lily-avro-api: Error while creating dependency list. NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.lilyproject:lily-runtime-genclassloader-plugin:2.4.5-SNAPSHOT:generate (default) on project lily-avro-api: Error while creating dependency list.
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:582)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error while creating dependency list.
    at org.lilyproject.runtime.tools.plugin.genclassloader.ClassloaderMojo.execute(ClassloaderMojo.java:258)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
    ... 19 more
Caused by: java.lang.NullPointerException
    at java.io.File.<init>(File.java:360)
    at org.lilyproject.runtime.tools.plugin.genclassloader.ClassloaderMojo.createDestinationFile(ClassloaderMojo.java:268)
    at org.lilyproject.runtime.tools.plugin.genclassloader.ClassloaderMojo.execute(ClassloaderMojo.java:247)
    ... 21 more


Karel Vervaeke

unread,
Aug 28, 2014, 10:36:18 AM8/28/14
to lily-d...@googlegroups.com
Weird, that should not be null. What maven version are you running?

Karel

Jean-Marc Spaggiari

unread,
Aug 28, 2014, 10:41:39 AM8/28/14
to lily-d...@googlegroups.com
I'm using apache-maven-3.2.3. Should I try to downgrade?

I have printed the culprit value:
targetDirectoryFile=/root/lilyproject/cr/avro-api/target/classes/LILY-INF
targetFileName=null



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

Karel Vervaeke

unread,
Aug 28, 2014, 10:54:32 AM8/28/14
to lily-d...@googlegroups.com

Worth a try. I believe The readme says 3.0..x

Jean-Marc Spaggiari

unread,
Aug 28, 2014, 10:57:14 AM8/28/14
to lily-discuss
Just retried with 3.1.1 and failed the same way.
Moved further with 3.0.5. Seems to be a maven version issue. It's running the tests now I guess. Which mean it might have compiled.

So I will play with the different maven versions to compile all the parts. Thanks for pointing me to maven.

JM
Reply all
Reply to author
Forward
0 new messages