From b3bc17723fd86044006420dbe27c584d569cd46c Mon Sep 17 00:00:00 2001 From: Arjen Poutsma Date: Thu, 28 Aug 2008 22:38:09 +0000 Subject: [PATCH] SWS-422 --- .../ws/soap/axiom/support/AxiomUtils.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/org/springframework/ws/soap/axiom/support/AxiomUtils.java b/core/src/main/java/org/springframework/ws/soap/axiom/support/AxiomUtils.java index d9c7b6c9..ececbeb9 100644 --- a/core/src/main/java/org/springframework/ws/soap/axiom/support/AxiomUtils.java +++ b/core/src/main/java/org/springframework/ws/soap/axiom/support/AxiomUtils.java @@ -132,7 +132,10 @@ public abstract class AxiomUtils { } } catch (Exception ex) { - throw new IllegalArgumentException("Error in converting SOAP Envelope to Document", ex); + IllegalArgumentException iaex = + new IllegalArgumentException("Error in converting SOAP Envelope to Document"); + iaex.initCause(ex); + throw iaex; } } @@ -164,7 +167,10 @@ public abstract class AxiomUtils { return stAXSOAPModelBuilder.getSOAPEnvelope(); } catch (Exception ex) { - throw new IllegalArgumentException("Error in converting Document to SOAP Envelope", ex); + IllegalArgumentException iaex = + new IllegalArgumentException("Error in converting Document to SOAP Envelope"); + iaex.initCause(ex); + throw iaex; } }