Repository: cxf Updated Branches: refs/heads/3.1.x-fixes 91197fdb2 -> 75edfe9d2
add the stacktrace output in CustomerService for CXF-5855 Project: http://git-wip-us.apache.org/repos/asf/cxf/repo Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/f12eb1a2 Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/f12eb1a2 Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/f12eb1a2 Branch: refs/heads/3.1.x-fixes Commit: f12eb1a2a2eb2220550cb25dcc54d62127d55244 Parents: 35f01c9 Author: Akitoshi Yoshida <a...@apache.org> Authored: Thu Mar 17 10:08:25 2016 +0100 Committer: Akitoshi Yoshida <a...@apache.org> Committed: Tue Apr 5 13:36:57 2016 +0200 ---------------------------------------------------------------------- .../src/main/java/demo/jaxrs/server/CustomerService.java | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cxf/blob/f12eb1a2/distribution/src/main/release/samples/jax_rs/websocket/src/main/java/demo/jaxrs/server/CustomerService.java ---------------------------------------------------------------------- diff --git a/distribution/src/main/release/samples/jax_rs/websocket/src/main/java/demo/jaxrs/server/CustomerService.java b/distribution/src/main/release/samples/jax_rs/websocket/src/main/java/demo/jaxrs/server/CustomerService.java index cc039ff..f77f8aa 100644 --- a/distribution/src/main/release/samples/jax_rs/websocket/src/main/java/demo/jaxrs/server/CustomerService.java +++ b/distribution/src/main/release/samples/jax_rs/websocket/src/main/java/demo/jaxrs/server/CustomerService.java @@ -186,6 +186,8 @@ public class CustomerService { } catch (IOException e) { System.out.println("----error writing to " + wh.getValue() + " " + wh.get()); if (wh.increment()) { + // the max error count reached; purging the output resource + e.printStackTrace(); try { wh.getValue().close(); } catch (IOException e2) { @@ -205,6 +207,8 @@ public class CustomerService { } catch (IOException e) { System.out.println("----error writing to " + wh.getValue() + " " + wh.get()); if (wh.increment()) { + // the max error count reached; purging the output resource + e.printStackTrace(); try { wh.getValue().getOutputStream().close(); } catch (IOException e2) {