BZ-1048245 - Error when auto deploying a unit after server restart due to: java.lang.IllegalArgumentException: number of transferred bytes cannot be negative