File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
xml/src/main/java/org/springframework/xml/sax Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright 2005-2010 the original author or authors.
2+ * Copyright 2002-2012 the original author or authors.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
2222
2323import org .springframework .core .io .Resource ;
2424
25+ import org .apache .commons .logging .Log ;
26+ import org .apache .commons .logging .LogFactory ;
2527import org .xml .sax .InputSource ;
2628
2729/**
3234 */
3335public abstract class SaxUtils {
3436
37+ private static final Log logger = LogFactory .getLog (SaxUtils .class );
38+
3539 /**
3640 * Creates a SAX <code>InputSource</code> from the given resource. Sets the system identifier to the resource's
3741 * <code>URL</code>, if available.
@@ -53,10 +57,12 @@ public static String getSystemId(Resource resource) {
5357 try {
5458 return new URI (resource .getURL ().toExternalForm ()).toString ();
5559 }
56- catch (IOException e ) {
60+ catch (IOException ex ) {
61+ logger .debug ("Could not get System ID from [" + resource + "], ex" );
5762 return null ;
5863 }
5964 catch (URISyntaxException e ) {
65+ logger .debug ("Could not get System ID from [" + resource + "], ex" );
6066 return null ;
6167 }
6268 }
You can’t perform that action at this time.
0 commit comments