Please find the attached file.
-----Original Message-----
From: Werner Guttmann [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2008 2:50 PM
To: [email protected]
Subject: Re: [castor-user] Issue with fiel validation in castor
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
<?xml version="1.0" encoding="UTF-8"?>
<invtype:FindInventoryRequest
xsi:schemaLocation="http://schemas.wsgc.com/inventory/definitions/v1 FindInventoryServicev1.xsd"
xmlns:invtype="http://schemas.wsgc.com/inventory/definitions/v1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<invtype:ApplicationArea>
<invtype:RequestInfo>
<invtype:UserRoles>String</invtype:UserRoles>
</invtype:RequestInfo>
<invtype:MessageInfo>
<invtype:MessageID>String</invtype:MessageID>
<invtype:CorrelationID>String</invtype:CorrelationID>
<invtype:MessageEncoding>String</invtype:MessageEncoding>
</invtype:MessageInfo>
<invtype:TimeStamp>2001-12-17T09:30:47.0Z</invtype:TimeStamp>
<invtype:QOS>
<invtype:DeliveryMode>String</invtype:DeliveryMode>
<invtype:ExpirationDate>
2001-12-17T09:30:47.0Z
</invtype:ExpirationDate>
<invtype:Priority>0</invtype:Priority>
<invtype:ReplyTo>String</invtype:ReplyTo>
</invtype:QOS>
<invtype:StatusInfo>
<invtype:StatusCode>aa</invtype:StatusCode>
<invtype:StatusMessage>String</invtype:StatusMessage>
<invtype:StatusDescription>
String
</invtype:StatusDescription>
</invtype:StatusInfo>
</invtype:ApplicationArea>
<invtype:DataArea>
<invtype:FindItemAvailability>
<invtype:ConceptCode>a</invtype:ConceptCode>
<invtype:Items>
<invtype:Item>
<invtype:ItemID>MONITOR3</invtype:ItemID>
<invtype:Quantity>4</invtype:Quantity>
</invtype:Item>
</invtype:Items>
</invtype:FindItemAvailability>
</invtype:DataArea>
</invtype:FindInventoryRequest>
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email