Bug 18132

Summary: Parser error cvc-datatype-valid.1.2.1
Product: Xerces-J Reporter: Joe <jgbert>
Component: SAXAssignee: Xerces-J Developers Mailing List <xerces-j-dev>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 1.4.3   
Target Milestone: ---   
Hardware: Sun   
OS: other   

Description Joe 2003-03-19 05:31:29 UTC
We are getting the following error - it appears that xerces is trying to parse 
against an xsd other than the one that belongs to this document. We can run 
this same transaction through a second time an it will work correctly. 

Error - 
<ps:OPError xmlns:ps="http://www.pointserve.com/OPSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://www.pointserve.com/OPSchema OPError.xsd" 
RequestId="http://www.pointserve.com/OPSchema AA.xsd" LicenseeId="1000" 
TraceExpected="false">

  <Header> <ClientSideInfo>Get Available Appointment Request for 
BancTec.</ClientSideInfo> </Header> 
  <Body> 
    <ErrorCode>0</ErrorCode> 
    <Description>OP Schema request failed validation with the following 
errors:  cvc-datatype-valid.1.2.1: 'PA0002062370772003031820291122' is not a 
valid 'double' value.  cvc-attribute.3: The 
value 'PA0002062370772003031820291122' of attribute 'RequestId' on 
element 'ps:AvailableAppointmentsRequest' is not valid with respect to its 
type.  cvc-maxInclusive-valid: Value '1000' is not facet-valid with respect to 
maxInclusive '90'.  cvc-attribute.3: The value '1000' of attribute 'LicenseeId' 
on element 'ps:AvailableAppointmentsRequest' is not valid with respect to its 
type.  cvc-datatype-valid.1.2.1: 'SV1094' is not a valid 'double' value.  cvc-
type.3.1.3: The value 'SV1094' of element 'ServiceCenterId' is not valid.  cvc-
maxInclusive-valid: Value '20061392' is not facet-valid with respect to 
maxInclusive '90'.  cvc-complex-type.2.2: Element 'Requirement' must have no 
element [children], and the value must be valid.  </Description>

    <Diagnostic>    </Diagnostic> 
  </Body> 
  <Trailer /> 
</ps:OPError> 

XML Request - 
<?xml version="1.0" encoding="UTF-8"?> <ps:AvailableAppointmentsRequest 
xmlns:ps="http://www.pointserve.com/OPSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://www.pointserve.com/OPSchema AA.xsd" 
RequestId="PA0002062370772003031820291122" LicenseeId="1000" 
TraceExpected="false" schemaVersion="0.1"> <Header> <ClientSideInfo>Get 
Available Appointment Request for BancTec.</ClientSideInfo> </Header> <Body> 
<ServiceAreaName>SV1094</ServiceAreaName> <DateOfAppointment>2003-03-
20</DateOfAppointment> <ServiceCenterId>SV1094</ServiceCenterId> 
<NumberToSuggest>03</NumberToSuggest> <ConsumerLocation> 
<latitude>33.0033</latitude> <longitude>-97.044</longitude> </ConsumerLocation> 
<TimePeriodToSearch> <start>09:30:00-07:00</start> <end>17:00:00-07:00</end> 
</TimePeriodToSearch> <TimeWindowDuration>PT03H00M00S</TimeWindowDuration> 
<ServiceRequested> <DurationOfJob>PT00H44M00S</DurationOfJob> 
<TimelinessPriority>Regular</TimelinessPriority> <JobRequirements> <Requirement 
MustHave="true">20061392</Requirement> </JobRequirements> </ServiceRequested> 
</Body> </ps:AvailableAppointmentsRequest>