Sounds like the Java client library couldn't make a basic connection to the JSON-RPC interface. Most likely causes of that are: (a) wrong port, (b) wrong username/password, (c) MultiChain is not configured to allow incoming JSON-RPC connections from sources other than the local host.