Gettin this well known error continuously I have decided to implement a hack – workaround – to suppress this exception:
09:00:33 [SEVERE] java.io.IOException: Server returned HTTP response code: 400 for URL: http://usage.blockface.org/update.php?name=CraftBukkit&build=220.127.116.11&plugin=bPermissions&port=25565&hash=e5756597-66d6-45c2-976a-6f3a4f7b26dd&bukkit=git-Bukkit-1.1-R3-b1846jnks (MC: 1.1)
09:00:33 [SEVERE] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1436)
09:00:33 [SEVERE] at org.blockface.stats.CallTask.postUrl(CallHome.java:93)
09:00:33 [SEVERE] at org.blockface.stats.CallTask.run(CallHome.java:78)
09:00:33 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
09:00:33 [SEVERE] at java.lang.Thread.run(Thread.java:662)
09:00:53 [INFO] [ChestShop] There was an error while submitting statistics.
I just fired up a server for the usage.blockface.org to provide a fake .php file. Since I have no any control on the blockface.org I have to do a local change on my server.
On a UNIX machine edit the /etc/hosts file and add the following line:
On a Windows machine edit the %SystemRoot%\Sytem32\drivers\etc\hosts file (it is a simple text file) add the same line to it. Save it and be happy.
Important: you have to do it on your server only! No change on the client machine required.
To revert the changes simply delete the line you added.