Skip to content
Permalink
Browse files
Make sure we use the constructor that takes the message to work aroun…
…d an issue in geromino-specs stax-api

git-svn-id: https://svn.apache.org/repos/asf/cxf/trunk@1546067 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
dkulp committed Nov 27, 2013
1 parent a9f3c94 commit c873f990c114ad0256f796226ba14c84c9958ac3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
@@ -262,7 +262,7 @@ private Element validate(XMLStreamReader input) throws XMLStreamException, IOExc
try {
schema.newValidator().validate(new DOMSource(newElement));
} catch (SAXException e) {
throw new XMLStreamException(e);
throw new XMLStreamException(e.getMessage(), e);
}
}
return rootElement;
@@ -597,7 +597,7 @@ public static void copy(Source source, XMLStreamWriter writer) throws XMLStreamE
reader.parse(((SAXSource)source).getInputSource());
return;
} catch (Exception e) {
throw new XMLStreamException(e);
throw new XMLStreamException(e.getMessage(), e);
}
} else if (ss.getInputSource() == null) {
//nothing to copy, just return
@@ -1869,14 +1869,14 @@ public static XMLStreamReader configureReader(XMLStreamReader reader, Integer ma
if (allowInsecureParser) {
LOG.warning("INSTANCE_NOT_XMLSTREAMREADER2");
} else {
throw new XMLStreamException(cce);
throw new XMLStreamException(cce.getMessage(), cce);
}
} catch (IllegalArgumentException cce) {
//not a property supported by this version of woodstox
if (allowInsecureParser) {
LOG.log(Level.WARNING, "SECURE_PROPERTY_NOT_SUPPORTED", cce.getMessage());
} else {
throw new XMLStreamException(cce);
throw new XMLStreamException(cce.getMessage(), cce);
}
}
return reader;

0 comments on commit c873f99

Please sign in to comment.