"Connection to JobServer Failed" in TAC, "Access is denied" error in jobserver.log

Talend Version          6.2.1

Summary

Error java.io.IOException: CreateProcess error=5, Access is denied error in jobserver.log.
Additional Versions  
Product Talend Data Integration
Component JobServer
Problem Description

Error when trying to execute a Job in TAC:

Connection to JobServer Failed

 

Error in the JobServer.log:

Caused by: java.io.IOException: Cannot run program "\"C:\\Program Files\\Java\\jre1.8.0_121\\bin\\java.exe\"" (in directory "C:\Talend\6.2.1\JobServer\repository\catalogueProduits_20170404_172121_XYZ\SAP_B2B_catalogueProduits"): CreateProcess error=5, Access is denied
 at java.lang.ProcessBuilder.start(Unknown Source) 
 at java.lang.Runtime.exec(Unknown Source) 
 at org.talend.remote.jobserver.server.CommandServerSocket.runJob(CommandServerSocket.java:688) 
 ... 9 more 
Caused by: java.io.IOException: CreateProcess error=5, Access is denied 
 at java.lang.ProcessImpl.create(Native Method) 
 at java.lang.ProcessImpl.<init>(Unknown Source) 
 at java.lang.ProcessImpl.start(Unknown Source) 
 ... 12 more
Problem root cause Executable path specified for org.talend.remote.jobserver.commons.config.JobServerConfiguration.JOB_LAUNCHER_PATH in the JobServerInstallationDirectory\agent\conf\TalendJobServer.properties file should not be set between double quotes (").
Solution or Workaround

In TalendJobServer.properties, replace the line:

org.talend.remote.jobserver.commons.config.JobServerConfiguration.JOB_LAUNCHER_PATH="C:\\Program Files\\Java\\jdk1.8.0_111\\jre\\bin\\java.exe"

with

org.talend.remote.jobserver.commons.config.JobServerConfiguration.JOB_LAUNCHER_PATH=C:\\Program Files\\Java\\jdk1.8.0_111\\jre\\bin\\java.exe

(No double quotes around the value)

JIRA ticket number  
Version history
Revision #:
11 of 11
Last update:
‎09-29-2018 12:13 AM
Updated by: