Closed dilruwan7 closed 11 years ago
-o must be a hostname not a url. Although, this shouldn't cause an exception either.
I have this same issue. I invoked DiabloMiner using the following command:
bash DiabloMiner-OSX.sh -u myusername -p mypassword -o http://api.bitcoin.cz -r 8332
The error message is identical to the one mentioned above.
Remove the http://
[4/15/13 6:42:32 AM] Started
[4/15/13 6:42:32 AM] Using Apple OpenCL 1.2 (Dec 4 2012 18:26:30)
[4/15/13 6:42:32 AM] Added GeForce GT 650M (#1) (2 CU, local work size of 1024)
Exception in thread "DiabloMiner JSONRPC GetWorkAsync for [http://api.bitcoin.cz]" java.lang.IllegalArgumentException: URI can't be null. at sun.net.spi.DefaultProxySelector.select(DefaultProxySelector.java:116) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:906) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:836) at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1014) at com.diablominer.DiabloMiner.NetworkState.JSONRPCNetworkState.doJSONRPCCall(JSONRPCNetworkState.java:108) at com.diablominer.DiabloMiner.NetworkState.JSONRPCNetworkState.doGetWorkMessage(JSONRPCNetworkState.java:329) at com.diablominer.DiabloMiner.NetworkState.JSONRPCNetworkState$GetWorkAsync.run(JSONRPCNetworkState.java:427) at java.lang.Thread.run(Thread.java:680) mh: 0.0/0.0 | a/r/hwe: 0/0/0 | gh: 0.0 | fps: Infinity