Failed to connect to localhost/0:0:0:0:0:0:0:1:8545
解决方案:
Use this to start over localhost and will work:
geth --rpc --rpcaddr "127.0.0.1" --rpcport "8545"
You are currently using IPC as far I see.
见github:https://github.com/web3j/examples/issues/1