Double check where you are getting the endpoint UUID. Make sure it is actually of type Endpoint. This error is indicative of it looking for a particular endpoint with the given uuid and not finding it. I would have expected that you get a better error message like:
"Couldn't find endpoint connection for endpoint: UUID-UUID-UUID -
Expected a response list of size 1, but got a list of size: 0"
You didn't get the error I expected because the bindCommandHandler is actually a "multi step" request and our error message handling apparently doesn't work with the multi step requests. I am creating a ticket for a better error message for these types of calls.
My guess is that there is a bit of misunderstanding about what the Endpoint is. An Endpoint is an "object" that is responsible for producing measurements and responding to command requests for a set of Points and Commands. Each Command is not an Endpoint itself. You can back track from a command to its endpoint using:
CommandService commandService;
Command c = commandService.getCommandByName("MyCommand");
ReefUUID endpointUuid = c.getEndpoint().getUuid();
Let me know if that helps.
Sam