cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject cxf git commit: add the stacktrace output in CustomerService for CXF-5855
Date Thu, 17 Mar 2016 09:08:59 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 5404ada11 -> 62ca4018b


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/62ca4018
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/62ca4018
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/62ca4018

Branch: refs/heads/master
Commit: 62ca4018bcdd7ea71df23dbf5111a553780ba2c8
Parents: 5404ada
Author: Akitoshi Yoshida <ay@apache.org>
Authored: Thu Mar 17 10:08:25 2016 +0100
Committer: Akitoshi Yoshida <ay@apache.org>
Committed: Thu Mar 17 10:08:25 2016 +0100

----------------------------------------------------------------------
 .../src/main/java/demo/jaxrs/server/CustomerService.java         | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/62ca4018/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) {


Mime
View raw message