aspose file tools*
The moose likes Web Services and the fly likes @SchemaValidation on XSD  JAX-WS 2.1.4 for WEBSERVICE :faultstring Intepretation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "@SchemaValidation on XSD  JAX-WS 2.1.4 for WEBSERVICE :faultstring Intepretation" Watch "@SchemaValidation on XSD  JAX-WS 2.1.4 for WEBSERVICE :faultstring Intepretation" New topic
Author

@SchemaValidation on XSD JAX-WS 2.1.4 for WEBSERVICE :faultstring Intepretation

prince davies
Ranch Hand

Joined: May 08, 2009
Posts: 74
I turned on @SchemaValidation on my CreditAssessmentServicePortImpl
class,I am getting
<faultcode>S:Server</faultcode>
<faultstring>com.sun.istack.XMLStreamException2:
org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1: '' is not a valid value for 'integer'.</faultstring>

There are many fields in my XSD,How do I find out which field causes this exception?
This exception stack trace does not say about which field it is.Can you please help me out to resolve this issue?





/**
* This class was generated by the JAX-WS RI.
* Oracle JAX-WS 2.1.4
* Generated source version: 2.1
*
*/






prince davies
Ranch Hand

Joined: May 08, 2009
Posts: 74
How do I spot that error in my XSD?
R Srini
Ranch Hand

Joined: Feb 19, 2010
Posts: 215
Hi. You can tell JAXP to print debug information by running your program like this:

java -Djaxp.debug=1 YourProgram param1 param2

(or maybe jaxp.debug=true)

When I needed to do this, I had the generated JAXB code available. So I debugged it one step at a time. In your case, you could consider putting breakpoints on wherever your integer fields are being parsed.
 
 
subject: @SchemaValidation on XSD JAX-WS 2.1.4 for WEBSERVICE :faultstring Intepretation