Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Why Jaxb2.0 Validator doing this?  RSS feed

 
Maki Jav
Ranch Hand
Posts: 449
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Maki Jav
Ranch Hand
Posts: 449
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!