JAXB doesn't throw validation errors on invalid values

Solution Verified - Updated -

Issue

I have a JAX-WS endpoint, and when a request comes in that has invalid data for e.g. a date, JAXB will not throw a validation error but will either set the value to null or to a default value. Shouldn't it throw a validation error?

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 4.3
    • 5.x
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.