Originally Posted by
jzarapsa
yes it compile and there are no exceptions occur. I tried to print something before the fileItem.write(saveTo) for debugging purposes and surprisingly yes it prints. but when i print another after the said code it doesn't print... Does it mean there's a logical error in my Code?
Are you positive there is no exception? The behavior you describe sounds like an exception is thrown, in which case the debugging line after the write method call is not called. When you say you 'print', do you mean you do so to the Logger? If not and the logs are not inspected, you might miss an exception as the prints might be sent to different I/O streams, depending upon the configuration