Do you have a double-quotation in your password? I ran into this same error, and this issue as well as several others are caused by a bug wherein Talend doesn't escape double-quotes in passwords, thereby generating invalid code. The relevant Jira ticket is: https://jira.talendforge.org/browse/TUP-19287.
Our developer has suggested a workaround to fix the issue: escape double quotations with \, eg:
Use \ before " double quote.
We will recommend, not to store password. Instead, encrypt & then de-crypt within the job using java routines.