> -----Original Message-----
> From: Roger Lefebvre [mailto:[email protected]]
> Sent: Friday, July 17, 2009 5:06 PM
> To: [email protected]
> Subject: [castor-user] Problems with upgrade to 1.3
>
>
> Hi,
>
> I just upgraded from castor 1.2 to castor 1.3.
> Included the new core jar and was able to generate all my java classes
> from schemas without issue.
> Runtime went well until I hit a class whose schema contains a
> restriction pattern on a string.
> <xsd:pattern
value="[1-2][0-9]{3}[0-1][0-9][0-3][0-9][0-2][0-9][0-5][0-
> 9][0-5][0-9]{4}" />
>
> It generated the following stack snippet:
>
> ValidationException: The following exception occured while validating
> field: _transactionDate of class:
> com.netid.idia.model.natal.serviceLogger.LoggerRequest:
> 20090717170107360does not match any of the following regular
> expressions: "[1-2][0-9]{3}[0-1][0-9][0-3][0-9][0-2][0-9][0-5][0-9][0-
> 5][0-9]{4}", "";
> - location of error: XPATH: /LoggerRequest/TransactionDate
> 20090717170107360does not match any of the following regular
> expressions: "[1-2][0-9]{3}[0-1][0-9][0-3][0-9][0-2][0-9][0-5][0-9][0-
> 5][0-9]{4}", ""
If you have the ability to modify the schema for an experiment, it might
be worthwhile replacing the "{...}" patterns with their absolute
equivalents, just for an experiment.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email