From fe9a6393a3412360aac4660d806aca5ceb1b0fbb Mon Sep 17 00:00:00 2001 From: Gustavo Durand Date: Fri, 16 Mar 2018 14:02:49 -0400 Subject: [PATCH 1/2] Update ImageThumbConverter.java --- .../iq/dataverse/dataaccess/ImageThumbConverter.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/edu/harvard/iq/dataverse/dataaccess/ImageThumbConverter.java b/src/main/java/edu/harvard/iq/dataverse/dataaccess/ImageThumbConverter.java index f7c87608e6a..8082fd16547 100644 --- a/src/main/java/edu/harvard/iq/dataverse/dataaccess/ImageThumbConverter.java +++ b/src/main/java/edu/harvard/iq/dataverse/dataaccess/ImageThumbConverter.java @@ -217,7 +217,7 @@ private static boolean generatePDFThumbnail(StorageIO storageIO, int s //inputStream = storageIO.getInputStream(); pdfFileChannel = storageIO.getReadChannel(); } catch (Exception ioex) { - logger.warning("caught IOException trying to open an input stream for " + storageIO.getDataFile().getStorageIdentifier()); + logger.warning("caught Exception trying to open an input stream for " + storageIO.getDataFile().getStorageIdentifier()); return false; } @@ -269,7 +269,7 @@ private static boolean generateImageThumbnail(StorageIO storageIO, int try { storageIO.open(); } catch (IOException ioex) { - logger.warning("caught IOException trying to open an input stream for " + storageIO.getDataFile().getStorageIdentifier() + ioex); + logger.warning("caught Exception trying to open an input stream for " + storageIO.getDataFile().getStorageIdentifier() + ioex); return false; } @@ -671,7 +671,7 @@ public static String rescaleImage(BufferedImage fullSizeImage, int width, int he try { rescaleImage(fullSizeImage, width, height, size, outputFileStream); } catch (Exception ioex) { - logger.warning("caught IO exceptiopn trying to create rescaled image " + outputLocation); + logger.warning("caught Exceptiopn trying to create rescaled image " + outputLocation); return null; } From 9915442219a6529fbf4279ceba4054a8e655103d Mon Sep 17 00:00:00 2001 From: Gustavo Durand Date: Fri, 16 Mar 2018 14:05:33 -0400 Subject: [PATCH 2/2] Update ImageThumbConverter.java --- .../harvard/iq/dataverse/dataaccess/ImageThumbConverter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/edu/harvard/iq/dataverse/dataaccess/ImageThumbConverter.java b/src/main/java/edu/harvard/iq/dataverse/dataaccess/ImageThumbConverter.java index 8082fd16547..2290082d13e 100644 --- a/src/main/java/edu/harvard/iq/dataverse/dataaccess/ImageThumbConverter.java +++ b/src/main/java/edu/harvard/iq/dataverse/dataaccess/ImageThumbConverter.java @@ -269,7 +269,7 @@ private static boolean generateImageThumbnail(StorageIO storageIO, int try { storageIO.open(); } catch (IOException ioex) { - logger.warning("caught Exception trying to open an input stream for " + storageIO.getDataFile().getStorageIdentifier() + ioex); + logger.warning("caught IOException trying to open an input stream for " + storageIO.getDataFile().getStorageIdentifier() + ioex); return false; } @@ -407,7 +407,7 @@ private static boolean isThumbnailCached(StorageIO storageIO, int size try { cached = storageIO.isAuxObjectCached(THUMBNAIL_SUFFIX + size); } catch (Exception ioex) { - logger.fine("caught IO exception while checking for a cached thumbnail (file " + storageIO.getDataFile().getStorageIdentifier() + ")"); + logger.fine("caught Exception while checking for a cached thumbnail (file " + storageIO.getDataFile().getStorageIdentifier() + ")"); return false; }