Can you please send your fiwrapper-invalid-input.xml file as well, please ?

Werner

Aparajitha wrote:
I have done further analysis. Please find the attached logs for validation exception and Null pointer exception. I have written a standalone program (TestValidation.java & fiwrapper-invalid-input.xml) to test the same.

*Problem Description:* In the FieldVaidator.validate (), it is expected to throw ValidationException in case of any discrepancies. Here *_descriptor.getSchemaType () *returns null and is expected to come out of the loop. But it is not doing so, instead it is throwing Null pointer Exception.

-----Original Message-----
From: Werner Guttmann [mailto:[EMAIL PROTECTED]
Sent: Monday, March 31, 2008 2:04 PM
To: [email protected]
Subject: Re: [castor-user] Issue with fiel validation in castor

On top of that, when attaching sources for us to look at, please try to

attach valid and complete sources, i.e. sources that do compile and that

are self-sufficient. In your case, the test class is referencing a

sample XML document that you have not attached.

Werner

Werner Guttmann wrote:

 Hi,



 looking at you attachments I see *both* XML schema and a mapping file.

 As such, let me ask you a question first.



 Are you generating sources from the XML schema to be used with Castor

 XML (for un-/marshalling) or not ? If that's the case, why are you using

 a mapping file AT ALL ?



 Regards

 Werner



 Aparajitha wrote:

> Hi,

>

>

>

>

>

> I have few mandatory tags(Userid,Statuscode,statusmessage) in

> application area and few mandatory tags in datarrea of my xsd.

>

> If  I remove  the mandatory tags in data area it is throwing

> validation exception, but if  I remove  the mandatory tags in

> application area , it is throwing nullpointer exception.

>

> I want the unmarshaller to throw validation exception instead of

> nullpointer exception.

>

>

>

> Attached are the xsds, mapping files and standalone program.

>

> Please help me to resolve this problem.

>

>

>

> Thanks in advance

>

> aparvatala

>

>

> ------------------------------------------------------------------------

>

> ---------------------------------------------------------------------

> To unsubscribe from this list, please visit:

>

>     http://xircles.codehaus.org/manage_email





 ---------------------------------------------------------------------

 To unsubscribe from this list, please visit:



   http://xircles.codehaus.org/manage_email







---------------------------------------------------------------------

To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


------------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to