This is an automated email from the ASF dual-hosted git repository.

coheigea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cxf.git


The following commit(s) were added to refs/heads/master by this push:
     new ab2013c  More details when woodstox is not present and a 
XMLInputFactory can't be created
     new bbb2f6a  Merge pull request #508 from rmannibucau/patch-1
ab2013c is described below

commit ab2013cec7d0548023a2ec23dc874f18b36c2c73
Author: Romain Manni-Bucau <[email protected]>
AuthorDate: Sun Feb 3 20:07:41 2019 +0100

    More details when woodstox is not present and a XMLInputFactory can't be 
created
    
    Rational is that people don't understand why JAXB does not work when 
woodstox is excluded, goal is to ensure the error is explicit about that.
---
 core/src/main/java/org/apache/cxf/staxutils/StaxUtils.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/core/src/main/java/org/apache/cxf/staxutils/StaxUtils.java 
b/core/src/main/java/org/apache/cxf/staxutils/StaxUtils.java
index b2d312b..690fab9 100644
--- a/core/src/main/java/org/apache/cxf/staxutils/StaxUtils.java
+++ b/core/src/main/java/org/apache/cxf/staxutils/StaxUtils.java
@@ -335,7 +335,9 @@ public final class StaxUtils {
                 if (allowInsecureParser) {
                     LOG.log(Level.WARNING, "INSECURE_PARSER_DETECTED", 
factory.getClass().getName());
                 } else {
-                    throw new RuntimeException("Cannot create a secure 
XMLInputFactory");
+                    throw new RuntimeException("Cannot create a secure 
XMLInputFactory, "
+                        + "you should either add woodstox or set " + 
ALLOW_INSECURE_PARSER
+                        + " system property to true if an unsafe mode is 
acceptable.");
                 }
             }
         }

Reply via email to