Does anyone know why this error would occur?

It seems to have occurred after:

bytesOut = request.toString().getBytes();

but during:

out.write(bytesOut);
out.flush();


Thanks.