If a file is accessed using the FileServer class to be written using the write() method, the close will fail with a ClassCastException.
Created attachment 18633 [details] Test access type before closing Upon close, check if the fileEntry is a read or write handle (java.io.Reader or java.io.Writer).
Thanks! Finally added the fix to SVN.
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/1764