William Brogden wrote:That error message says that this code:
is not passing the validate method something that can be validated - unfortunately your post does not say what "order" is - please explain
Order is a JAXB object.Here after creating the JAXB object I am trying to do Marshalling.Before marshalling I am calling validate() method and it is failing.If you want code I can post it.I want to know what this error means??
Are you conciously using jaxb 1.0 in favor of jaxb 2.0 ? Validation has changed much and jaxb 1.0 Validator interface has practically all deprecated and is not necessarily supported anymore. But who else is to stop you from using jaxb 1.0 if you want to !
Joined: Dec 16, 2013
Unfortunately I am using jaxb 1.0.I can't use 2.0 as my project is already using 1.0 in a lot of places. Any suggestions??
Author and all-around good cowpoke
Joined: Mar 22, 2000
.I want to know what this error means??
It means exactly what it says of course. Something about the "order" object makes it impossible to validate.
Browsing the JavaDocs, it looks like you could register a custom ValidationEventHander and examine the problem more closely via a ValidationEventLocator.