Reputation: 86935
I have a soap @webservice
, and a client sending requests as below:
try {
// any webservice confniguration here
webservice.call();
} catch (Exception e) {
System.out.println("ERROR");
}
Now if the connections time out, I'm getting a java.net.socketTimtoutException
with stacktrace
, plus my error sysouts above. How can I prevent the stacktrace from being printed to console? I don't understand why I ever get it as I'm catching any occuring exception, aren't I?
Upvotes: 3
Views: 935
Reputation: 8240
Then it's clearly obvious that somewhere in between, a try/catch
block catches the exception, prints the stack trace, and then rethrows it. As @WernerVesterås said.
I can advise you to debug the code.
Upvotes: 1