You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2017/03/23 13:28:45 UTC
[3/5] cxf git commit: [CXF-5903] Log exception in
TrnasportURIRresolver
[CXF-5903] Log exception in TrnasportURIRresolver
# Conflicts:
# core/src/main/java/org/apache/cxf/transport/TransportURIResolver.java
Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/67087e8f
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/67087e8f
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/67087e8f
Branch: refs/heads/3.1.x-fixes
Commit: 67087e8fff69d38de2d089ac2ff6e32ec2385d5a
Parents: 79f0172
Author: Daniel Kulp <dk...@apache.org>
Authored: Wed Mar 22 18:47:30 2017 -0400
Committer: Daniel Kulp <dk...@apache.org>
Committed: Thu Mar 23 08:41:13 2017 -0400
----------------------------------------------------------------------
.../java/org/apache/cxf/transport/TransportURIResolver.java | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cxf/blob/67087e8f/core/src/main/java/org/apache/cxf/transport/TransportURIResolver.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/cxf/transport/TransportURIResolver.java b/core/src/main/java/org/apache/cxf/transport/TransportURIResolver.java
index 5809121..3cee71e 100644
--- a/core/src/main/java/org/apache/cxf/transport/TransportURIResolver.java
+++ b/core/src/main/java/org/apache/cxf/transport/TransportURIResolver.java
@@ -25,12 +25,15 @@ import java.net.URI;
import java.net.URISyntaxException;
import java.util.HashSet;
import java.util.Set;
+import java.util.logging.Level;
+import java.util.logging.Logger;
import javax.xml.namespace.QName;
import org.xml.sax.InputSource;
import org.apache.cxf.Bus;
+import org.apache.cxf.common.logging.LogUtils;
import org.apache.cxf.helpers.IOUtils;
import org.apache.cxf.helpers.LoadingByteArrayOutputStream;
import org.apache.cxf.message.Exchange;
@@ -44,6 +47,8 @@ import org.apache.cxf.service.model.EndpointInfo;
*
*/
public class TransportURIResolver extends ExtendedURIResolver {
+ static final Logger LOG = LogUtils.getL7dLogger(TransportURIResolver.class);
+
private static final Set<String> DEFAULT_URI_RESOLVER_HANDLES = new HashSet<String>();
static {
//bunch we really don't want to have the conduits checked for
@@ -63,7 +68,6 @@ public class TransportURIResolver extends ExtendedURIResolver {
}
public InputSource resolve(String curUri, String baseUri) {
-
// Spaces must be encoded or URI.resolve() will choke
curUri = curUri.replace(" ", "%20");
@@ -79,6 +83,7 @@ public class TransportURIResolver extends ExtendedURIResolver {
} catch (URISyntaxException use) {
//ignore
base = null;
+ LOG.log(Level.FINEST, "Could not resolve curUri " + curUri, use);
}
try {
if (base == null
@@ -87,6 +92,7 @@ public class TransportURIResolver extends ExtendedURIResolver {
}
} catch (Exception ex) {
//nothing
+ LOG.log(Level.FINEST, "Default URI handlers could not resolve " + baseUri + " " + curUri, ex);
}
if (is == null && base != null
&& base.getScheme() != null
@@ -141,6 +147,7 @@ public class TransportURIResolver extends ExtendedURIResolver {
}
} catch (Exception e) {
//ignore
+ LOG.log(Level.FINEST, "Conduit initiator could not resolve " + baseUri + " " + curUri, e);
}
}
if (is == null