diff --git a/src/main/org/apache/tools/zip/ZipEntry.java b/src/main/org/apache/tools/zip/ZipEntry.java index e18f33bc7..58b41f208 100644 --- a/src/main/org/apache/tools/zip/ZipEntry.java +++ b/src/main/org/apache/tools/zip/ZipEntry.java @@ -430,6 +430,11 @@ public class ZipEntry extends java.util.zip.ZipEntry implements Cloneable { if (msg == null) { msg = getDisplayableMessage(ite); } + if (nested != null) { + nested.printStackTrace(); + } else { + ite.printStackTrace(); + } throw new RuntimeException("InvocationTargetException setting the " + "compressed size of " + ze + ": " + msg);