Bruce Snyder wrote:


Tomasz Piontek wrote:


Hi,

I tried to use 0.9.5.4rc and it seems that it doesn't check constraints connected with required number of elements.
According to my XML-schema environment has to have at least ONE variable.


<environment>
   <variable name="PATH">/bin</variable>
</environment>

but in case

<environment>
</environment>

0.9.5.4 doesn't complain about the lack of variables.

with 0.9.5.3 the error message is:
ValidationException: A minimum of 1 _variableList object(s) (whose xml name is 'variable') are required for class: grms.types.jobdesc.Environment;
- location of error: XPATH: environment


The code was generated by SourceGenerator coming from 0.9.5.3 or 0.9.5 (i don't remember). The only thing I did was to replace castor jar 0.9.5.3 with 0.9.5.4rc

I found this searching for a cause of another error, but this I will describe in separated mail (I need more time for testing). The problem I got is not related to "rc" version.


Tomek,

This sounds like the validation is not being called? Can you confirm/deny this?

Hi,

How can I check this?

I tried to invoke "validate" manually and it didn't throw exception although the document shouldn't be validated.

Tomek

--
***********************************************************
*   Tomasz Piontek               [EMAIL PROTECTED]    *
*   Research Programmer - GridLab Project                 *
*   Poznan Supercomputing and Networking Center           *
*   tel.(+48 61) 858-21-72       fax.(+48 61) 858-21-51   *
***********************************************************



----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev

Reply via email to