### Eclipse Workspace Patch 1.0 #P hive_trunk Index: accumulo-handler/src/java/org/apache/hadoop/hive/accumulo/Utils.java =================================================================== --- accumulo-handler/src/java/org/apache/hadoop/hive/accumulo/Utils.java (revision 1619663) +++ accumulo-handler/src/java/org/apache/hadoop/hive/accumulo/Utils.java (working copy) @@ -277,15 +277,20 @@ private static void copyToZipStream(InputStream is, ZipEntry entry, ZipOutputStream zos) throws IOException { - zos.putNextEntry(entry); - byte[] arr = new byte[4096]; - int read = is.read(arr); - while (read > -1) { - zos.write(arr, 0, read); - read = is.read(arr); + try{ + zos.putNextEntry(entry); + byte[] arr = new byte[4096]; + int read = is.read(arr); + while (read > -1) { + zos.write(arr, 0, read); + read = is.read(arr); + } + }catch(Exception e){ + log.error("Exception is occurred. Error message is " + e.getMessage()); + }finally{ + is.close(); + zos.closeEntry(); } - is.close(); - zos.closeEntry(); } public static void jarDir(File dir, String relativePath, ZipOutputStream zos) throws IOException {