cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John O'Hara (JIRA)" <>
Subject [jira] [Created] (CXF-5681) OASISCatalogManager silently swallows Exceptions in getResolver()
Date Thu, 10 Apr 2014 13:21:15 GMT
John O'Hara created CXF-5681:

             Summary: OASISCatalogManager silently swallows Exceptions in getResolver()
                 Key: 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.

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

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

View raw message