briandilley/jsonrpc4j

com.googlecode.jsonrpc4j.JsonRpcClientException:

niutaifan opened this issue · 4 comments

This Account Is Locked To Another IP Address.

Hi @niutaifan,

Can you please provide some more context around this issue? I'm not sure what the problem is. Thanks.

JsonRpcHttpClient client= new JsonRpcHttpClient(new URL(
"http://127.0.0.1:8000"));
String cred = Base64.encodeBase64String((SystemConfig.BITCOIN_USER_NAME + ":" + SystemConfig.BITCOIN_USER_PWD).getBytes());
Map<String, String> headers = new HashMap<String, String>(1);
headers.put("Authorization", "Basic " + cred);
client.setHeaders(headers);
String result =client.invoke("getaccountaddress", new String[]{account}, String.class);
Caused by: com.googlecode.jsonrpc4j.JsonRpcClientException: This Account Is Locked To Another IP Address.
at com.googlecode.jsonrpc4j.DefaultExceptionResolver.createJsonRpcClientException(DefaultExceptionResolver.java:53)
at com.googlecode.jsonrpc4j.DefaultExceptionResolver.resolveException(DefaultExceptionResolver.java:28)
at com.googlecode.jsonrpc4j.JsonRpcClient.handleErrorResponse(JsonRpcClient.java:258)
at com.googlecode.jsonrpc4j.JsonRpcClient.readResponse(JsonRpcClient.java:184)
at com.googlecode.jsonrpc4j.JsonRpcClient.readResponse(JsonRpcClient.java:517)
at com.googlecode.jsonrpc4j.JsonRpcHttpClient.invoke(JsonRpcHttpClient.java:148)
at com.googlecode.jsonrpc4j.JsonRpcHttpClient.invoke(JsonRpcHttpClient.java:118)
at com.googlecode.jsonrpc4j.JsonRpcHttpClient.invoke(JsonRpcHttpClient.java:172),
非常感谢!!

This error is being thrown by the Bitcoin wallet you're connecting to, not JSONRPC4J. See https://www.reddit.com/r/Bitcoin/comments/26jy1d/locked_out_of_my_blockchain_wallet/ for potential solutions.

Thanks.