Is there any Java API to use N1QL?

I discovered this is failing when you try to instantiate a cluster passing more than one server. In my case, it stopped failing when I left just one node. I guess this is a bug.