File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes DOM-XML Parsing using an xsd-schema -> Error: Failed to read schema document 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 "DOM-XML Parsing using an xsd-schema -> Error: Failed to read schema document" Watch "DOM-XML Parsing using an xsd-schema -> Error: Failed to read schema document" New topic
Author

DOM-XML Parsing using an xsd-schema -> Error: Failed to read schema document

Stephan Mueller
Ranch Hand

Joined: May 05, 2010
Posts: 50
My application uses DOM-Parsing of XML documents and validates the xml documents via a xsd file. This works on my Development and test machines (Win XP/OSX 10.6) and on most pcs (homogenous XP business pcs) it was deployed to. Now one pc throws a SAXParseException(failed to read schema document). I've verified that the expected file is in the expected location. Please see below for an extract of the code in question and the stack trace. I'm not able to reproduce this behaviour on my machines. Any tips on debugging this or possible root causes appreciated.




1. Make it run - 2. Make it run correctly - 3. Make it pretty OR fast/small - 4. ??? - 5. Profit
Suhrid Karthik
Ranch Hand

Joined: Aug 31, 2008
Posts: 58

Have you checked whether the OS user that is executing the code on that machine has permission to read the file ?
Stephan Mueller
Ranch Hand

Joined: May 05, 2010
Posts: 50
No, I'll have to do this. But honestly, I can't imagine how this would be possible. All machines to which this application was deployed are business-machines in the same company with a homogenous-setup - this also applies to the user setup.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10289
    
168

'C:\Documents and Settings\xxx.yyy\My Documents\eigene Dateien\SiebelReport_SM\QBE\plugins\replugin\schema\DataPluginSchema.xsd'


With Java applications, it's always a good idea to keep the files outside of folders which have a space in their path.

[My Blog] [JavaRanch Journal]
J. Insi
Ranch Hand

Joined: Aug 11, 2010
Posts: 90
wow...
i never thought about it.
I thought if we want to parse the xml
JDOM has a smaller step to handle it.

just a small talk.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DOM-XML Parsing using an xsd-schema -> Error: Failed to read schema document