Hosted API, code: 14004

I try to figure out how Hosted API services are working.

I wrote same code as in this video -


import com.backendless.Backendless;
import com.backendless.BackendlessUser;
import com.backendless.servercode.IBackendlessService;
import java.util.*;

public class FriendsAPI implements IBackendlessService {

    public String sayHello(String name) {
        return "Hello, " + name;

but when i try to run it a get this response:

  "code": 14004,
  "message": "Service invocation failed: ExceptionClass:\"RuntimeException\" {Msg:\"com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'Bob': was expecting ('true', 'false' or 'null')\n at [Source:; line: 1, column: 7]\", Cause:\"Unrecognized token 'Bob': was expecting ('true', 'false' or 'null')\n at [Source:; line: 1, column: 7]\"}"

How can i solve this?


I assume that you’re trying to call this method using API inspector. If so - then the argument should be surrounded by double-quotes like “Bob” instead of just Bob.