Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Stephan Mueller
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.


 
Suhrid Karthik
Ranch Hand
Posts: 58
Eclipse IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
'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.
 
J. Insi
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic