@@ -0,0 +1,1505 @@
+package debugging.jsonclientcaller;%0A%0Aimport java.io.InputStream;%0Aimport java.io.PrintWriter;%0Aimport java.net.HttpURLConnection;%0Aimport java.net.URL;%0Aimport java.util.Scanner;%0A%0A%0Apublic class MinClientTest %7B%0A%0A%09private static final String URL = %22http://localhost:10000%22;%0A%09private static final int SLEEP = 000; //ms between requests%0A%09private static final int COUNT = 6;%0A%0A%09public static void main(String %5B%5D args) throws Exception%7B%0A%09%09System.out.println(URL);%0A%09%09int excepts = 0;%0A%09%09for (int i = 0; i %3C COUNT; i++) %7B%0A%09%09%09System.out.print(i + %22%5Cn%22);%0A%09%09%09try %7B%0A%09%09%09%09HttpURLConnection conn =%0A%09%09%09%09%09%09(HttpURLConnection) new URL(URL).openConnection();%0A%09%09%09%09conn.setDoOutput(true);%0A%09%09%09%09conn.setRequestMethod(%22POST%22);%0A%09%09%09%09conn.setFixedLengthStreamingMode(10);%0A%09%09%09%09PrintWriter out = new PrintWriter(conn.getOutputStream());%0A%09%09%09%09out.write(%220123456789%22);%0A%09%09%09%09out.close();%0A%09%09%09%09System.out.print(conn.getResponseCode() + %22 %22);%0A%09%09%09%09System.out.println(conn.getResponseMessage());%0A%09%09%09%09InputStream in = conn.getInputStream();%0A%09%09%09%09System.out.println(streamToString(in));%0A%09%09%09%09in.close();%0A%09%09%09%09conn.disconnect();%0A%09%09%09%7D catch (Exception e) %7B%0A%09%09%09%09excepts++;%0A%09%09%09%09System.out.println(e.getClass().getName() + %22: %22 +%0A%09%09%09%09%09%09e.getLocalizedMessage());%0A%09%09%09%7D%0A%09%09%09Thread.sleep(SLEEP);%0A%09%09%7D%0A%09%09System.out.println(String.format(%22Sleep: %25s, failures %25s/%25s%22,%0A%09%09%09%09SLEEP, excepts, COUNT));%0A%09%7D%0A%0A%09public static String streamToString(InputStream os) %7B%0A%09%09Scanner s = new Scanner(os);%0A%09%09s.useDelimiter(%22%5C%5CA%22);%0A%09%09String ret = s.next();%0A%09%09s.close();%0A%09%09return ret;%0A%09%7D%0A%7D%0A

Make minimal test case