[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/0fad5ce8 Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/0fad5ce8 Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/0fad5ce8 Branch: refs/heads/3.0.x-fixes Commit: 0fad5ce851c773c611a37d9c59ebc731b59aec42 Parents: 0e8a68c 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 13:13:57 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/0fad5ce8/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