Tomasz Zorawik created CXF-8446:
-----------------------------------

             Summary: Inconsistent jaxb validation
                 Key: CXF-8446
                 URL: https://issues.apache.org/jira/browse/CXF-8446
             Project: CXF
          Issue Type: Improvement
          Components: JAXB Databinding
    Affects Versions: 3.3.9
            Reporter: Tomasz Zorawik


I experienced the same issue as described here:

[https://www.mail-archive.com/[email protected]/msg44090.html]

The above thread does not mention the reason but it seems that it is caused by 
jaxb issue:

[https://github.com/javaee/jaxb-v2/issues/1139]

After around 10 failed validations (there is a global static counter, not 
thread-safe) jaxb validation turns off.

In my case after a restart of an application (which caused a reset of the 
counter) requests which were processed correctly before the restart suddenly 
started to become rejected. It seems that this is not a CXF bug, but I think 
such behavior can be confusing which is why I decided to report it here. I 
wonder, maybe by default this unreliable validation should be turned 
off{color:#172b4d} (set-jaxb-validation-event-handler = false) {color}in future 
releases of CXF?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to