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?
Then it’s clearly obvious that somewhere in between, a
try/catchblock catches the exception, prints the stack trace, and then rethrows it. As @WernerVesterås said.I can advise you to debug the code.