John O'Hara created CXF-5681:
--------------------------------

             Summary: OASISCatalogManager silently swallows Exceptions in 
getResolver()
                 Key: CXF-5681
                 URL: https://issues.apache.org/jira/browse/CXF-5681
             Project: CXF
          Issue Type: Bug
          Components: JAX-WS Runtime
    Affects Versions: 3.0.0
            Reporter: John O'Hara


org.apache.cxf.catalog.OASISCatalogManager.getResolver() silently fails if any 
exceptions are thrown during the try{} block.

https://github.com/apache/cxf/blob/master/core/src/main/java/org/apache/cxf/catalog/OASISCatalogManager.java#LC107

This makes resolving issues difficult as Exceptions that contain important 
information are ignored. 

For example, if org.apache.xml.resolver.CatalogManager is not found on the 
classpath (as it is in an external library), a CNFE exception is swallowed and 
calls to loadCatalogs() will fail to load catalogs bundled with an application. 
 As no errors/warnings are logged, it appears that the jax-ws-catalog.xml has 
been loaded correctly. 

IMHO, since there is already a logger defined in the OASISCatalogManager class, 
there should be at least an WARN message logged for exceptions within the try{} 
block to help resolve issues like CNFE exceptions.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to