Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Why Jaxb2.0 Validator doing this?
 
Similar Threads
Reg Zip file creation
File upload in struts
Efficient way to download an image
reg zip file creation
Reading array from file