[
https://issues.apache.org/jira/browse/CXF-6918?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Svetlin Zarev updated CXF-6918:
-------------------------------
Attachment: Do_not_swallow_exceptions___log_them_instead___.patch
Attaching patch. The following improvements were made:
* Do not silently swallow exceptions, but log them instead.
* Fix a potential NPE in case XMLInputFactory.newInstance() and
createWoodstoxFactory() both failed and allowInsecureParser == true
* Remove "@throws XMLStreamException" from the javadoc as it's not part of the
method signature (it's a checked exception)
> Print the XMLInputFactory implementation class when throwing "Cannot create a
> secure XMLInputFactory"
> -----------------------------------------------------------------------------------------------------
>
> Key: CXF-6918
> URL: https://issues.apache.org/jira/browse/CXF-6918
> Project: CXF
> Issue Type: Improvement
> Affects Versions: 3.2.0
> Reporter: Svetlin Zarev
> Priority: Minor
> Attachments: Do_not_swallow_exceptions___log_them_instead___.patch
>
>
> CXF tries to set some Woodstox specific properties and if it fails throws a
> runtime exception with message "Cannot create a secure XMLInputFactory". It
> would be very helpful to know the XMLInputFactory implementation class. This
> can be achieved in two ways:
> * add the class name to the exception message
> * log the class name before throwing the exception
> https://github.com/apache/cxf/blob/master/core/src/main/java/org/apache/cxf/staxutils/StaxUtils.java#L323
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)