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

author
Talend Documentation Team
EnrichVersion
7.0
EnrichProdName
Talend Data Services Platform
Talend Real-Time Big Data Platform
Talend Data Fabric
Talend MDM Platform
Talend Big Data Platform
Talend Open Studio for Data Quality
Talend Data Management Platform
task
Administration and Monitoring > Managing servers
Design and Development > Designing Routes
Design and Development > Designing Jobs
Administration and Monitoring > Monitoring executions
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"}