Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
We are using enterprise version of Talend. I am trying to setup continuous build using Bamboo and ci.builder plug in for maven.
when I run the below command to generate code,
> mvn org.talend:ci.builder:6.3.1:generate -X -Dcommandline.workspace=foo -Dcommandline .host=localhost -Dcommandline.port=8002 -Dcommandline.user=talenduser@domain.com -DprojectsTargetDirectory=..\BuildSources
I am getting the below error. any idea why it is failing at copyFolder? I am setting the commandline.user to the same user that has installed commandline on the server.
[ERROR] Failed to execute goal org.talend:ci.builder:6.3.1:generate (default-cli ) on project EA_COUPA: Execution default-cli of goal org.talend:ci.builder:6.3.1 :generate failed.: NullPointerException -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal o rg.talend:ci.builder:6.3.1:generate (default-cli) on project EA_COUPA: Execution default-cli of goal org.talend:ci.builder:6.3.1:generate failed. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor .java:213) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor .java:154) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor .java:146) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje ct(LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje ct(LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThre adedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl eStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345) at org.apache.maven.cli.MavenCli.main(MavenCli.java:191) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun cher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav a:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La uncher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java: 356) Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-c li of goal org.talend:ci.builder:6.3.1:generate failed. at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default BuildPluginManager.java:145) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor .java:208) ... 20 more Caused by: java.lang.NullPointerException at org.talend.utils.io.FilesUtils.copyFolder(FilesUtils.java:120) at org.talend.jobbuilder.AbstractJobBuilder.copyResources(AbstractJobBui lder.java:170) at org.talend.jobbuilder.JobBuilder.executeCommandline(JobBuilder.java:1 45) at org.talend.jobbuilder.AbstractJobBuilder.execute(AbstractJobBuilder.j ava:92) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default BuildPluginManager.java:134) ... 21 more
Hello,
Did you get an NPE when trying to generate code on a custom project?
Make sure that the parameter commandline.workspace must be the same folder used when launch the commandline.
Best regards
Sabrina
Thanks for the response. I did make sure I use the same workspace when I run the commandline.
1. Started commandline using:
C:\>"C:\Program Files (x86)\Talend-Studio\studio\Talend-Studio-win-x86_64" -nosplash -application org.talend.commandline.CommandLine -consoleLog -data "C:\EDS\bamboo-agen
t-home\xml-data\build-dir\EDS-TCEB-JOB1\Talend-projects" startServer -p 8002
2. In a different command line window, ran the below command to generate talend project code.
C:\>mvn org.talend:ci.builder:6.3.1:generate -X -Dcommandline.worksp
ace="C:\EDS\bamboo-agent-home\xml-data\build-dir\EDS-TCEB-JOB1\Talend-projects"-Dcommandline.host=localhost -Dcommandline.port=8002 -Dcommandline.user=<user> -DprojectsTargetDirectory=.\BuildSources
3. Now, it is getting stuck at
[INFO] List projects from:C:\EDS\bamboo-agent-home\xml-data\build-dir\EDS-TCEB-
OB1\Talend-projects
[INFO] Not valid folder (no talend project) in:.git
[INFO] Not valid folder (no talend project) in:.metadata
[INFO] Not valid folder (no talend project) in:BuildSources
[INFO] Found project:EA_TALENDBUILDTESTING
[INFO] Not valid folder (no talend project) in:temp
[INFO]
[INFO] Creating the detected projects for Commandline workspace.
[INFO] Created project (base on existing folder): EA_TALENDBUILDTESTING
[INFO]
[INFO] *****************************************************
[INFO] Starting to generate sources for the detected projects
[INFO]
[INFO] Preparing for the project: EA_TALENDBUILDTESTING
[INFO] Logon project
4. On the commandline server window I see below.
!ENTRY org.talend.platform.logging 2 0 2017-05-25 12:52:49.989
!MESSAGE 2017-05-25 12:52:49,984 WARN org.talend.commons.exception.CommonExcept
ionHandler - Missing module group definition: SPARK-STREAMING-KAFKA-LIB-HDP_2_3
!ENTRY org.talend.platform.logging 2 0 2017-05-25 12:53:24.357
!MESSAGE 2017-05-25 12:53:24,350 WARN org.talend.commons.exception.CommonExcept
ionHandler - Missing module group definition: SPARK-STREAMING-KAFKA-LIB-HDP_2_3
!ENTRY org.talend.platform.logging 1 0 2017-05-25 12:53:25.460
!MESSAGE 2017-05-25 12:53:25,458 INFO org.talend.core.repository.model.ProxyRep
ositoryFactory - Yerra, Tripura logged on EA_TalendBuildTesting
5. After this point, nothing happens. process is stuck.
Can you please suggest what is the issue?
Hello,
Could you please create a case on talend support portal? In this way, we can give you a remote assistance(webex) to see if there is something wrong with your setting through support cycle with priority.
Best regards
Sabrina