You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2010/01/11 18:23:50 UTC
svn commit: r897957 - in /cxf/branches/2.2.x-fixes: ./
common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java
Author: dkulp
Date: Mon Jan 11 17:23:50 2010
New Revision: 897957
URL: http://svn.apache.org/viewvc?rev=897957&view=rev
Log:
Merged revisions 897944 via svnmerge from
https://svn.apache.org/repos/asf/cxf/trunk
........
r897944 | dkulp | 2010-01-11 12:00:25 -0500 (Mon, 11 Jan 2010) | 1 line
Some versions of Sun's jaxp throw and exception, they don't return null.
........
Modified:
cxf/branches/2.2.x-fixes/ (props changed)
cxf/branches/2.2.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java
Propchange: cxf/branches/2.2.x-fixes/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.
Modified: cxf/branches/2.2.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.2.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java?rev=897957&r1=897956&r2=897957&view=diff
==============================================================================
--- cxf/branches/2.2.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java (original)
+++ cxf/branches/2.2.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java Mon Jan 11 17:23:50 2010
@@ -1088,7 +1088,13 @@
XMLInputFactory factory = getXMLInputFactory();
try {
- XMLStreamReader reader = factory.createXMLStreamReader(source);
+ XMLStreamReader reader = null;
+
+ try {
+ reader = factory.createXMLStreamReader(source);
+ } catch (UnsupportedOperationException e) {
+ //ignore
+ }
if (reader == null && source instanceof StreamSource) {
//createXMLStreamReader from Source is optional, we'll try and map it
StreamSource ss = (StreamSource)source;