Ciao Raffaele,

before looking at this in detail, can I ask you to retry things with
Castor 1.3.

Regards
Werner

Fabbri Raffaele wrote:
> hello everybody! 
>  
> I have a problem with castor version 1.2
>  
> I attach 2 test 
> TestProvaXML.java
> TestRichiestaSaia.java
>  
> The first work finally
>  
> If I set comune.setNomeComune(".Ravenna") field whit pattern defined in Xsd
> as follows 
>  
>   <xs:simpleType name="alfabeticoLocalita">
> 
>     <xs:restriction base="xs:string">
> 
>       <xs:minLength value="1"/>
> 
>       <xs:maxLength value="80"/>
> 
>       <xs:pattern value="([a-zA-Z\- &apos;])*"/>
> 
>     </xs:restriction>
> 
>   </xs:simpleType>           
>  
> Castor validator reply with the next message
>  
> ERROR (it.datamanagement.saia_xml.test.TestProvaXML:84) -
> ValidationException documento XML non valido
> ERROR (it.datamanagement.saia_xml.test.TestProvaXML:85) -
> ValidationException: The following exception occured while validating field:
> _generalita of class: it.datamanagement.saia_xml.castor.provaxml.ProvaXML:
> The following exception occured while validating field: _luogoNascita of
> class: it.datamanagement.saia_xml.castor.provaxml.Generalita: The following
> exception occured while validating field: _tipoLuogoChoice of class:
> it.datamanagement.saia_xml.castor.provaxml.LuogoNascita: The following
> exception occured while validating field: _comune of class:
> it.datamanagement.saia_xml.castor.provaxml.TipoLuogoChoice: The following
> exception occured while validating field: _nomeComune of class:
> it.datamanagement.saia_xml.castor.provaxml.Comune: .Ravennadoes not match
> the required regular expression: "([a-zA-Z\- '])*";
>    - location of error: XPATH: /ProvaXML
> The following exception occured while validating field: _luogoNascita of
> class: it.datamanagement.saia_xml.castor.provaxml.Generalita: The following
> exception occured while validating field: _tipoLuogoChoice of class:
> it.datamanagement.saia_xml.castor.provaxml.LuogoNascita: The following
> exception occured while validating field: _comune of class:
> it.datamanagement.saia_xml.castor.provaxml.TipoLuogoChoice: The following
> exception occured while validating field: _nomeComune of class:
> it.datamanagement.saia_xml.castor.provaxml.Comune: .Ravennadoes not match
> the required regular expression: "([a-zA-Z\- '])*"
>  
> If we run TestRichiestaSaia.java with the same value ".Ravenna" the
> validator does not intercept the validation error and create a not valid
> xml.
>  
> What I wrong?
>  
> castor_xml_saia_build.1.2.xml is the script to generate castor mapping
> object
>  
> Sorry for my bad English.
>  
> Thanks very much
> Raffaele
>  
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ---------------------------------------------------------------------
> 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