File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error Validating huge XSD with XML in a Servlet

 
Kumar Suresh
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • 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

 
Paul Clapham
Sheriff
Pie
Posts: 20185
26
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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 ..
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic