Four Stars

Cannot build standalone jobs since upgrade from 6.3.1 to 6.4.0

Hi there,

 

We upgraded to the latest Talend Data Integration (6.4.0) this week, and I've been getting issues with building standalone jobs.

Basically I can't build any standalone job anymore (except for two days ago, when it would build the first job I would try to build after opening Talend, but would fail afterwards. Hooray for consistency!). The build dialogue will run, list through what it's doing, disappear with no errors (no errors in logs either) and no zip is created.

 

I've:

  • checked jdk setting (using latest 1.7 build, set compiler to 1.7)
  • checked all jobs build successfully
  • checked no routines have any errors in them
  • been able to build war files
  • unchecked unzip files in the build dialogue
  • reinstalled java 1.7 and reapplied settings
  • reinstalled Talend
  • restarted my computer
  • reloaded .m2 folder, and loaded all optional packages
  • deleted .Java workspace folder, so it reloads
  • created a new project, and tried to build a simple job from there. Nothing.

After some amount of googling, I came across someone talking about the .Java folder. In here, I've found the actual error in the 'lastGenerated.log' file:

 

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] MI_NEW Codes Master
[INFO] MI_NEW Routines
[INFO] MI_NEW Pingdom_To_Redshift (Job Designs)
[INFO] 
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder with a thread count of 8
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building MI_NEW Codes Master 6.4.0
[INFO] ------------------------------------------------------------------------
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building MI_NEW Pingdom_To_Redshift (Job Designs) 0.1.0
[INFO] ------------------------------------------------------------------------
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building MI_NEW Routines 6.4.0
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ routines ---
[INFO] 
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ Pingdom_To_Redshift ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] Copying 43 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ Pingdom_To_Redshift ---
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ routines ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.7:copy-resources (copy-running-resources) @ Pingdom_To_Redshift ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ Pingdom_To_Redshift ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ Pingdom_To_Redshift ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ Pingdom_To_Redshift ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ routines ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ routines ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ routines ---
[INFO] Tests are skipped.
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ Pingdom_To_Redshift ---
[INFO] 
[INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ routines ---
[INFO] Building jar: /Users/jonas/workspace/dash/ETL/talendWorkspace_6/.Java/target/pingdom_to_redshift_0_1.jar
[INFO] Building jar: /Users/jonas/workspace/dash/ETL/talendWorkspace_6/.Java/target/routines-6.4.0.jar
[INFO] 
[INFO] --- maven-assembly-plugin:2.5.5:single (default) @ Pingdom_To_Redshift ---
[INFO] Reading assembly descriptor: /Users/jonas/workspace/dash/ETL/talendWorkspace_6/.Java/src/main/assemblies/assembly_Pingdom_To_Redshift_0.1.xml
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] MI_NEW Codes Master ............................... SUCCESS [  0.002 s]
[INFO] MI_NEW Routines ................................... SKIPPED
[INFO] MI_NEW Pingdom_To_Redshift (Job Designs) .......... FAILURE [  1.659 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.764 s (Wall Clock)
[INFO] Finished at: 2017-05-19T12:24:06+00:00
[INFO] Final Memory: 50M/245M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.5.5:single (default) on project Pingdom_To_Redshift: 
Failed to create assembly: Error adding file 'org.talend.code.mi_new:routines:jar:6.4.0' to archive:
/Users/jonas/workspace/dash/ETL/talendWorkspace_6/.Java/target/classes isn't a file. -> [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: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf Smiley Tongueingdom_To_Redshift

So maven can't find the routines jar for some reason.

I've looked for it and have found it in '.Java/target'

 

Does anyone have any ideas?

 

I'm running on OSX 10.11.6

  • Talend Studio
2 REPLIES
Moderator

Re: Cannot build standalone jobs since upgrade from 6.3.1 to 6.4.0

Hello,

Please verify the java settings, that it points to a JDK (preferences / Java / Installed JREs)
(JDK is not needed to run job especially in the studio, but needed to export the job).

Verify in case the the structure of installation, in case there is something wrong.
folders of JDK must be like:
http://docs.oracle.com/javase/8/docs/technotes/tools/windows/jdkfiles.html

And the java settings must point to the root JDK folder, and not the JRE.

Have you tried to use JDK 1.8 to see if it works?

Best regards

Sabrina

Four Stars

Re: Cannot build standalone jobs since upgrade from 6.3.1 to 6.4.0

Hi Sabrina, thanks for your reply.

 

  • I've always had it pointing to the jdk (/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home)
  • Would war files be able to build using only jre? Or is this a good indication that the jdk setup is fine?
  • I have tried 1.8, but this makes no difference unfortunately

I also just did another reinstall, and removed all hidden files in the workspace this time in case this could have an effect but sadly it has not.

 

Note I have seen a few different people have had this issue in the past, and I've attempted all solutions to no avail.

 

Thanks

Jonas