Diablo-D3 / DiabloMiner

OpenCL miner for Bitcoin
https://bitcointalk.org/index.php?topic=1721.0
GNU General Public License v3.0
538 stars 217 forks source link

Mac OS X - URI Can't be Null Exception #66

Closed dilruwan7 closed 11 years ago

dilruwan7 commented 11 years ago

[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

Diablo-D3 commented 11 years ago

-o must be a hostname not a url. Although, this shouldn't cause an exception either.

yskywalker commented 11 years ago

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.

Diablo-D3 commented 11 years ago

Remove the http://