Connection issue to Talend Administration Center during CommandLine s task generation

author
Talend Documentation Team
EnrichVersion
6.4
6.3
6.2
6.1
6.0
EnrichProdName
Talend MDM Platform
Talend Data Services Platform
Talend ESB
Talend Real-Time Big Data Platform
task
Installation and Upgrade
Deployment > Deploying
EnrichPlatform
Talend CommandLine
Talend Administration Center

Connection issue to Talend Administration Center during Talend CommandLine's task generation

When generating a Job with the Talend CommandLine, the HTTP connection to Talend Administration Center might fail and you might encounter the following error: 'Unexpected error, contact your administrator'

This article applies to all versions of Talend products.

Symptoms/Description

When generating a Job with the Talend CommandLine, the HTTP connection to Talend Administration Center might fail and you might encounter the following error: 'Unexpected error, contact your administrator'

This is a specific error that sometimes happens if:

  1. the Talend CommandLine application and the Talend Administration Center server are based on different machines
  2. the first connection to Talend Administration Center was made on a web browser with "localhost" in the URL instead of a specific hostname or IP address.
Resolution

This issue can be solved by specifying the static URL of the web application in the configuration file. To do so:

  1. Make sure the Tomcat server is stopped and open the following file to edit it:

    <TomcatPath>/webapps/org.talend.administrator/WEB-INF/classes/configuration.properties

  2. Uncomment the MISC PARAMETERS part and replace the value of the conf.applicationStaticLocation parameter with the URL to your Web application, as shown below:
    ############################################################### # MISC
    PARAMETERS ############################################################### #
    Specify and url for static location or comment the line for dynamic compute:
    conf.applicationStaticLocation=
    http://serverName:8080/org.talend.administrator
  3. Save your changes and re-start your Tomcat server.

    From now on, the static URL you defined will be called every time during the task generation process.