Getting the source code for a TAC job

Highlighted
Seven Stars

Getting the source code for a TAC job

When I publish a Standalone Job snapshot to the Artifact Repository, and schedule it on the TAC, how do I get the generated Java source code? A job is failing, giving a Null Pointer Exception at a particular line number, but I need to get at the actual .java file in order to see what that line number is doing so I can figure out what variable or expression is null.


Accepted Solutions
Employee

Re: Getting the source code for a TAC job

Hello @PhilHibbs ,

 

The content of folder and zip file shown here is from your jobs folder on your Studio machine. When you publish your jobs and select to export the jave source as shown, it creates a zip on your Studio machine in the job folder (configured in the settings of your Studio), and in there in the zip file, you have the folder with the name of the job (tjava in the screenshot example) and in there the src folder which stands for source.

 

If you cannot access the machine with the Studio that exported this job, then you can find it in the Job server on Unix , in the 'archiveJobs' directory of the jobserver directory.

On my jobserver setup, I have this for example:

/opt/talend/jobserver/TalendJobServersFiles/archiveJobs/ and in there a bunch of zip files for archived jobs.


All Replies
Employee

Re: Getting the source code for a TAC job

Maybe that depends on if you export the source code in the job file.image.png

Seven Stars

Re: Getting the source code for a TAC job

Yes I spotted that, I have republished the job with sources. I still have no idea where to look to find the sources though!

Employee

Re: Getting the source code for a TAC job

image.png

src folder here

Seven Stars

Re: Getting the source code for a TAC job

Where would that be on a Unix installation?

Employee

Re: Getting the source code for a TAC job

Hello @PhilHibbs ,

 

The content of folder and zip file shown here is from your jobs folder on your Studio machine. When you publish your jobs and select to export the jave source as shown, it creates a zip on your Studio machine in the job folder (configured in the settings of your Studio), and in there in the zip file, you have the folder with the name of the job (tjava in the screenshot example) and in there the src folder which stands for source.

 

If you cannot access the machine with the Studio that exported this job, then you can find it in the Job server on Unix , in the 'archiveJobs' directory of the jobserver directory.

On my jobserver setup, I have this for example:

/opt/talend/jobserver/TalendJobServersFiles/archiveJobs/ and in there a bunch of zip files for archived jobs.

Seven Stars

Re: Getting the source code for a TAC job

Found it - the path was actually /opt/talend/jobserver/agent/TalendJobServersFiles/archiveJobs/

Thanks very much!

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

The Forrester Wave: Strategic iPaaS and Hybrid Integration Platforms, Q1 2019

Find out how Forrester rate different iPaaS and Hybrid Integration Platforms

Read

Have you checked out Talend’s 2019 Summer release yet?

Find out about Talend's 2019 Summer release

Blog

Talend Summer 2019 – What’s New?

Talend continues to revolutionize how businesses leverage speed and manage scale

Watch Now