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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content