• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

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

 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.


 
Ranch Hand
Posts: 58
Eclipse IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic