<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<br>
<div class="moz-cite-prefix">On 7/21/15 5:43 PM, Brent Putman wrote:<br>
</div>
<blockquote cite="mid:55AEBCF9.1090103@georgetown.edu" type="cite">
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
<br>
<br>
<div class="moz-cite-prefix">On 7/21/15 5:16 PM, Brent Putman
wrote:<br>
</div>
<blockquote cite="mid:55AEB6BD.6010500@georgetown.edu" type="cite">
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
<br>
The code in saveAndClone(...) starts off with this:<br>
<br>
<tt>FileOutputStream out = new
FileOutputStream(backingResource.getFile());</tt><br>
<br>
Have to see whether that's correct. Possibly the file needs to
be explicitly created first. <br>
</blockquote>
<br>
No, I tested. It doesn't have to exist, including intermediate
directories. They will be created as needed.<br>
</blockquote>
<br>
I did just notice however that since that line is outside the try
block, and the caller getInputStream() doesn't do anything with the
caught exception: if that line *does* throw, it's completely
swallowed and there is no logging or other output as to what
happened. So that may in fact be what is making this so mysterious
to diagnose... FYI, that ctor is specified to throw a
FileNotFoundException under various conditions:<br>
<br>
<tt>If the file exists but is a directory rather than a regular
file, does</tt><tt><br>
</tt><tt>not exist but cannot be created, or cannot be opened for
any other</tt><tt><br>
</tt><tt>reason then a
<code>FileNotFoundException</code> is thrown.</tt><br>
<br>
<br>
<br>
So checking the perms here and/or trying a different location for
the backing file would be very helpful.<br>
<br>
<br>
<br>
</body>
</html>