Error messages after executing MetaServlet commands containing the '/' character

author
Talend Documentation Team
EnrichVersion
6.4
6.3
6.2
6.1
6.0
EnrichProdName
Talend Real-Time Big Data Platform
Talend Data Services Platform
Talend Data Management Platform
Talend MDM Platform
Talend Data Fabric
Talend Open Studio for Data Quality
Talend Big Data Platform
task
Administration and Monitoring > Managing servers
Administration and Monitoring > Monitoring executions
Design and Development > Designing Jobs
Design and Development > Designing Routes
Deployment > Deploying > Executing Jobs
EnrichPlatform
Talend Studio
Talend Administration Center

Error messages after executing MetaServlet commands containing the '/ character

This article applies to all users of MetaServlet.
Symptoms/Description

When executing a MetaServlet command that contains the slash character, you may get some errors because '/' is a special character in JSON.

For example, if you execute the following command:

MetaServletCaller.bat -tac-url= http://localhost:8080/tac56010 -json-params={"actionName":"createVirtualServer","authPass":"admin","authUser":" admin@company.com ","label":"V1t1","description":"create virtual
      server using
        MetaServlet", "timezone":"US/Pacific","clusterGroup":"Cellar1"} 

You may get the error:

"{"error":"Expected a ',' or '}' at character
      146","returnCode":2}" 
Resolution

To solve this issue, escape the special character by replacing the double quotes (") with single quotes (') in your command:

MetaServletCaller.bat
          -tac-url= http://localhost:8080/tac56010 -json-params={"actionName":"createVirtualServer","authPass":"admin","authUser":" admin@company.com ","label":"V1t1","description":"create virtual
        server using
        MetaServlet", "timezone":'US/Pacific',"clusterGroup":"Cellar1"}