• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Error Validating huge XSD with XML in a Servlet

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a servlet, which was initially getting request ( XML Message) and writing into a file on a Server. This was perfectly fine and it handled any number of messages per second. The problem started when I started to validate the XML message using an Huge XSD. using the Validator function.

I am getting the error "src-resolve: Cannot resolve the name 'xml:lang' to a(n) 'attribute declaration' component" .. I am getting this error only 3 out of 10 times.. the other 7 times its fine..

I am trying to submit a request pretty fast like may be 10 times within 2 seconds..

In the code below, I might be able to try converting the "in" parameter to bytes and back using it again in source, other forums have suggested to use the in parameter directly , but thats not where I got stuck..

Please suggest if there is any threading issue involved here or anything like that.

The DTD for the xsd can be found here http://xml.cXML.org/schemas/cXML/1.1.010/cXML.dtd

Thanks

 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
One of the posts on those "other forums" is here: http://forums.oracle.com/forums/thread.jspa?threadID=2265839&tstart=0.

Kumar, please read BeForthrightWhenCrossPostingToOtherSites, and welcome to the Ranch!
 
Kumar Suresh
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is resolved

you can check here for the solution

http://forums.oracle.com/forums/thread.jspa?threadID=2265839&start=0&tstart=0

Thanks all ..
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic