Am Sonntag, den 14.10.2007, 15:11 +0000 schrieb [EMAIL PROTECTED]:
> Author: jliu
> Date: Sun Oct 14 08:11:01 2007
> New Revision: 584553
>
> ==============================================================================
> ---
> incubator/cxf/branches/jliu/distribution/src/main/release/samples/restful_jaxrs/src/demo/jaxrs/client/Client.java
> (original)
> +++
> incubator/cxf/branches/jliu/distribution/src/main/release/samples/restful_jaxrs/src/demo/jaxrs/client/Client.java
> Sun Oct 14 08:11:01 2007
> @@ -19,9 +19,13 @@
>
> + private static String getStringFromInputStream(InputStream in) throws
> Exception {
> + CachedOutputStream bos = new CachedOutputStream();
> + IOUtils.copy(in, bos);
> + in.close();
> + bos.close();
> + //System.out.println(bos.getOut().toString());
> + return bos.getOut().toString();
Are you sure here? AFAICT[1] bos.getOut() should be null or empty after
you call bos.close().
[1]
http://svn.apache.org/viewvc/incubator/cxf/trunk/api/src/main/java/org/apache/cxf/io/CachedOutputStream.java?revision=583575&view=markup
Regards,
Glen
> }
>
> }