JDK 1.4, huh? Ugh. Anyway, which line is causing that error? You have two writers defined and haven't said what either one is writing to. Are they both files? Are they both the same file?
Are you trying to write to a remote system? If so, then
JCIFS could help you.