I have this simple TestService:
public class TestService implements IBackendlessService {
public Player getPlayer() {
return new Player();
}
}
Where “Player” is the code generated by Backendless.
When I run this using CodeRunner 3.0.17 and access the API over the console, I get:
{
"code": 14004,
"message": "Service invocation failed: null in ClassCastException"
}
When using the backendless 3.0.17.1 JAR from maven central, I get:
{
"code": 14004,
"message": "Service invocation failed: [Ljava.util.HashMap; cannot be cast to com.backendless.coderunner.commons.protocol.InvocationResult in ClassCastException"
}
But if I deploy it to production, I get the expected response.
I therefore assume this is a bug in CodeRunner or Backendless.