This may not help much, but if anyone is looking to start
troubleshooting the problem, here's the section of code to focus on:
// YAY! We're a working APP client
// Now let's try to do a media post
// Post the media resource
options = client.getDefaultRequestOptions();
options.setContentType("text/plain");
options.setHeader("Connection", "close");
System.out.println("Test1");
response = client.post(col_uri, new
ByteArrayInputStream("test".getBytes()), options);
System.out.println("Test2");
assertEquals(201, response.getStatus());
assertNotNull(response.getLocation());
assertNotNull(response.getContentLocation());
"Test1" will print, but "Test2" will not.
--
Stephen Duncan Jr
www.stephenduncanjr.com