wood burning stoves*
The moose likes XML and Related Technologies and the fly likes Error Validating huge XSD with XML in a Servlet 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 "Error Validating huge XSD with XML in a Servlet" Watch "Error Validating huge XSD with XML in a Servlet" New topic
Author

Error Validating huge XSD with XML in a Servlet

Kumar Suresh
Greenhorn

Joined: Aug 10, 2011
Posts: 3
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
Bartender

Joined: Oct 14, 2005
Posts: 18882
    
    8

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

Joined: Aug 10, 2011
Posts: 3
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
 
subject: Error Validating huge XSD with XML in a Servlet