diff --git a/components/camel-cxf/camel-cxf-soap/src/test/java/org/apache/camel/component/cxf/jaxws/CxfProducerTest.java b/components/camel-cxf/camel-cxf-soap/src/test/java/org/apache/camel/component/cxf/jaxws/CxfProducerTest.java
index 33af8e8dbfd50..6fed84b0eea29 100644
--- a/components/camel-cxf/camel-cxf-soap/src/test/java/org/apache/camel/component/cxf/jaxws/CxfProducerTest.java
+++ b/components/camel-cxf/camel-cxf-soap/src/test/java/org/apache/camel/component/cxf/jaxws/CxfProducerTest.java
@@ -136,17 +136,17 @@ public void testInvokingSimpleServerWithParams() throws Exception {
public void testInvokingAWrongServer() throws Exception {
Exchange reply = sendSimpleMessage(getWrongEndpointUri());
assertNotNull(reply.getException(), "We should get the exception here");
- assertTrue(reply.getException() instanceof ConnectException);
+ assertTrue(reply.getException().getCause() instanceof ConnectException);
//Test the data format PAYLOAD
reply = sendSimpleMessageWithPayloadMessage(getWrongEndpointUri() + "&dataFormat=PAYLOAD");
assertNotNull(reply.getException(), "We should get the exception here");
- assertTrue(reply.getException() instanceof ConnectException);
+ assertTrue(reply.getException().getCause() instanceof ConnectException);
//Test the data format MESSAGE
reply = sendSimpleMessageWithRawMessage(getWrongEndpointUri() + "&dataFormat=RAW");
assertNotNull(reply.getException(), "We should get the exception here");
- assertTrue(reply.getException() instanceof ConnectException);
+ assertTrue(reply.getException().getCause() instanceof ConnectException);
}
@Test
diff --git a/components/camel-cxf/camel-cxf-spring-soap/src/test/java/org/apache/camel/component/cxf/ssl/SslTest.java b/components/camel-cxf/camel-cxf-spring-soap/src/test/java/org/apache/camel/component/cxf/ssl/SslTest.java
index 27d22d99e737f..952942ea7061d 100644
--- a/components/camel-cxf/camel-cxf-spring-soap/src/test/java/org/apache/camel/component/cxf/ssl/SslTest.java
+++ b/components/camel-cxf/camel-cxf-spring-soap/src/test/java/org/apache/camel/component/cxf/ssl/SslTest.java
@@ -73,7 +73,7 @@ public void testInvokingTrustRoute() throws Exception {
public void testInvokingNoTrustRoute() throws Exception {
Exchange reply = sendJaxWsMessage("direct:noTrust");
assertTrue(reply.isFailed(), "We expect the exception here");
- Throwable e = reply.getException();
+ Throwable e = reply.getException().getCause();
assertEquals("javax.net.ssl.SSLHandshakeException", e.getClass().getCanonicalName());
}
diff --git a/parent/pom.xml b/parent/pom.xml
index 907f8366ec4b3..239ad3a1981fb 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -115,8 +115,8 @@
2.7
3.4.9
5.5.0
- 4.0.2
- 4.0.2
+ 4.0.3
+ 4.0.3
4.0.0
4.0.0