cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [2/5] cxf git commit: [CXF-5903] Log exception in TrnasportURIRresolver
Date Thu, 23 Mar 2017 12:37:38 GMT
[CXF-5903] Log exception in TrnasportURIRresolver


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/3b758739
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/3b758739
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/3b758739

Branch: refs/heads/master
Commit: 3b7587395586f59d0fe9427038dd2d891fbe223d
Parents: 61abbda
Author: Daniel Kulp <dkulp@apache.org>
Authored: Wed Mar 22 18:47:30 2017 -0400
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Thu Mar 23 08:31:07 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/3b758739/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 6584b85..4110e88 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<>();
     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


Mime
View raw message