my dog learned polymorphism*
The moose likes I/O and Streams and the fly likes Issue in saving XML data to file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Issue in saving XML data to file" Watch "Issue in saving XML data to file" New topic

Issue in saving XML data to file

Senthamarai Prabhu

Joined: Apr 16, 2009
Posts: 3

I have method to write the XML Document to the file, Which is shown below

I am getting the following exception occasionally D:\data.xml (Access is denied)
at Method)
at<init>(Unknown Source)
at<init>(Unknown Source)

I used to call this method multiple times, 10% of times I used to get this exception

Please help to resolve this issue

S Prabhu

S Prabhu
Greg Charles

Joined: Oct 01, 2001
Posts: 2841
  11 will throw a FileNotFoundException in various situations. The most likely causes are the file exists, but is read only, or the path is inaccessible.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Issue in saving XML data to file
Similar Threads
XSL-FO Multiple Page Sequences
Writing XML File - Null Pointer Exception
Is there a java API to generate xml with an inline schema definition
stackOverFlow with XMLWriter.write
NoClassDefFoundError while using iText