This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Why Jaxb2.0 Validator  doing this? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Why Jaxb2.0 Validator  doing this?" Watch "Why Jaxb2.0 Validator  doing this?" New topic
Author

Why Jaxb2.0 Validator doing this?

Maki Jav
Ranch Hand

Joined: May 09, 2002
Posts: 435
Hi,

My code has this snippet...




When the Validator throws an exception for whatever reasons, it is deleting my xml file too!

So you can see my hack,ie, restoreFile() method being called at every kind of exception...

What is the cause of this?

While using Castor, I did not face any such problem....

Thanks in Advance,

Maki Jav


Help gets you when you need it!
Maki Jav
Ranch Hand

Joined: May 09, 2002
Posts: 435
Hi,

I am so sorry! It is not the problem with this Validator but rather it was a problem with the code before this segment that was causing this behaviour.

Sorry

Maki Jav
 
wood burning stoves
 
subject: Why Jaxb2.0 Validator doing this?