Re: maven build failed: maven-finagle-thrift-plugin:0.0.9:compile failed. NullPointerException

258 views
Skip to first unread message

James Waldrop

unread,
Apr 9, 2013, 1:11:44 PM4/9/13
to iago-...@googlegroups.com
We don't include a Thrift binary for Windows in the Finagle Thrift package, so Iago doesn't build today on Windows. :(

We are working on converting Iago to Scrooge, which will fix this issue. Until then, you unfortunately have to build on a VM if you're on Windows.


On Tue, Apr 9, 2013 at 8:55 AM, Владимир Трубников <nordwes...@gmail.com> wrote:
Hi, 

I want to take a look on Iago but I am unable to build it =(
2) executed "mvn package -DskipTests" command and got the following:

C:\WorkFolder\Projects\twitter-iago-4294510>mvn package -DskipTests
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building iago 0.5.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-finagle-thrift-plugin:0.0.9:compile (thrift-sources) @ iago ---
[INFO] compiling thrift files [C:\WorkFolder\Projects\twitter-iago-4294510\src\main\thrift\EchoService.thrift, C:\WorkFolder\Projects\twitter-iago-4294510\src\main\thrift\ParrotService.thrift] with generators [finagle]
[INFO] copying /thrift/thrift-finagle.null to C:\Users\trubnvl1\AppData\Local\Temp\thrift-finagle8245903396612359575
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.035s
[INFO] Finished at: Tue Apr 09 19:28:27 MSK 2013
[INFO] Final Memory: 8M/107M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.twitter:maven-finagle-thrift-plugin:0.0.9:compile (thrift-sources) on project iago: Execution thrift-sources of goal com.twitter:maven-finagle-thrift-plugin:0.0.9:compile failed. NullPointerException -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
I tried to clear .m2/repository folder but it doesn't help.

Environment: Win7-64bit, Maven 3.0.4, JDK 1.7

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

Simeon

unread,
Jul 20, 2017, 9:37:27 PM7/20/17
to Iago Users
Hi,

Has this ever been addressed?  We are getting the following:

[ERROR] Failed to execute goal com.twitter:maven-finagle-thrift-plugin:0.0.9:compile (thrift-sources) on project data-pipeline-secor: Execution thrift-sources of goal com.twitter:maven-finagle
-thrift-plugin:0.0.9:compile failed. NullPointerException -> [Help 1]                                                                                                                           
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.twitter:maven-finagle-thrift-plugin:0.0.9:compile (thrift-sources) on project data-pipeline-secor: Execution 
thrift-sources of goal com.twitter:maven-finagle-thrift-plugin:0.0.9:compile failed.                                                                                                            
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)                                                                                                      
        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:128)                                                                                              
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)                                                                                                                       
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)                                                                                                                       
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)                                                                                                                         
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)                                                                                                                             
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)                                                                                                                              
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)                                                                                                                                
        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.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.PluginExecutionException: Execution thrift-sources of goal com.twitter:maven-finagle-thrift-plugin:0.0.9:compile failed.                                     
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:145)                                                                                    
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)                                                                                                      
        ... 20 more                                                                                                                                                                             
Caused by: java.lang.NullPointerException                                                                                                                                                       
        at org.codehaus.plexus.util.IOUtil.copy(IOUtil.java:188)                                                                                                                                
        at org.codehaus.plexus.util.IOUtil.copy(IOUtil.java:174)                                                                                                                                
        at org.codehaus.plexus.util.FileUtils.copyStreamToFile(FileUtils.java:1059)                                                                                                             
        at com.twitter.FinagleThriftRunner.getBinary(FinagleThriftRunner.java:53)                                                                                                               
        at com.twitter.FinagleThriftRunner.compile(FinagleThriftRunner.java:64)                                                                                                                 
        at com.twitter.AbstractFinagleThriftMojo.execute(AbstractFinagleThriftMojo.java:191)                                                                                                    
        at com.twitter.FinagleThriftCompileMojo.execute(FinagleThriftCompileMojo.java:22)                                                                                                       
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)                                                                                    
        ... 21 more                                                                                                                                                                             

with this configuration:

$ mvn -v
Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T07:57:37-04:00)
Maven home: C:\apache-maven-3.3.3
Java version: 1.8.0_60, vendor: Oracle Corporation
Java home: C:\Java\jdk1.8.0_60\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"

Thanks.
Simeon
Reply all
Reply to author
Forward
0 new messages