I've no clue, to be honest. The SOCKS proxy code is built into Java, so I haven't touched it. The only things I can possibly guess is that either Java's SOCKS code is buggy, or your proxy server is.
"Object-oriented design is the roman numerals of computing." -- Rob Pike