How I fixed java.io.IOException: Broken Pipe in Java (Wildfly 10.1)