Closed tequisoft closed 10 years ago
cfdi:Comprobante xmlns:cfdi="http://www.sat.gob.mx/cfd/3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sat.gob.mx/cfd/3 http://www.sat.gob.mx/sitio_internet/cfd/3/cfdv32.xsd" version="3.2" fecha="2013-07-08T16:27:36" formaDePago="PAGO EN UNA SOLA EXHIBICION" noCertificado="00001000000202472765" subTotal="684.00" TipoCambio="1.00" Moneda="MXN" total="684.00" metodoDePago="TARJETA BANCARIA" tipoDeComprobante="ingreso" LugarExpedicion="GUSTAVO A MADERO, DISTRITO FEDERAL" NumCtaPago="No Identificado" certificado="..." sello="...." serie="B" folio="49527C0D-0234-4E60-90E1-26A303FD3D43"
Al validar una factura 3.2 me marca el siguiente error
org.xml.sax.SAXParseException at javax.xml.bind.util.JAXBSource$1.parse(JAXBSource.java:246) at javax.xml.bind.util.JAXBSource$1.parse(JAXBSource.java:231) at javax.xml.validation.Validator.validate(Validator.java:124) at mx.bigdata.sat.cfdi.CFDv32.validar(CFDv32.java:163) at mx.bigdata.sat.cfdi.CFDv32.validar(CFDv32.java:148) at com.bovedafiscal.services.xml.ParserService.parse(ParserService.groovy:120) at com.bovedafiscal.services.XmlProcesadorService$_processFiles_closure1_closure2_closure3.doCall(XmlProcesadorService.groovy:122) at org.grails.datastore.gorm.GormStaticApi.withTransaction(GormStaticApi.groovy:687) at com.bovedafiscal.services.XmlProcesadorService$_processFiles_closure1_closure2.doCall(XmlProcesadorService.groovy:120) at groovyx.gpars.pa.GParsPoolUtilHelper$_eachParallelPA_closure8.doCall(GParsPoolUtilHelper.groovy:189) at groovyx.gpars.extra166y.AbstractParallelAnyArray$OUPap.leafApply(AbstractParallelAnyArray.java:640) at groovyx.gpars.extra166y.PAS$FJOApply.atLeaf(PAS.java:147) at groovyx.gpars.extra166y.PAS$FJBase.compute(PAS.java:108) at jsr166y.RecursiveAction.exec(RecursiveAction.java:148) at jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:305) at jsr166y.ForkJoinWorkerThread.execTask(ForkJoinWorkerThread.java:575) at jsr166y.ForkJoinPool.scan(ForkJoinPool.java:755) at jsr166y.ForkJoinPool.work(ForkJoinPool.java:617) at jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:369) Caused by: javax.xml.bind.MarshalException
with linked exception: [org.xml.sax.SAXParseException; lineNumber: 0; columnNumber: 0; cvc-minLength-valid: Value '' with length = '0' is not facet-valid with respect to minLength '1' for type '#AnonType_folioComprobante'.] at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:323) at com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.java:249) at javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(AbstractMarshallerImpl.java:123) at javax.xml.bind.util.JAXBSource$1.parse(JAXBSource.java:243) ... 18 more Caused by: org.xml.sax.SAXParseException; lineNumber: 0; columnNumber: 0; cvc-minLength-valid: Value '' with length = '0' is not facet-valid with respect to minLength '1' for type '#AnonType_folioComprobante'. at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:551) at com.sun.xml.bind.v2.runtime.output.SAXOutput.endStartTag(SAXOutput.java:128) at com.sun.xml.bind.v2.runtime.XMLSerializer.endAttributes(XMLSerializer.java:310) at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsSoleContent(XMLSerializer.java:596) at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeRoot(ClassBeanInfoImpl.java:328) at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsRoot(XMLSerializer.java:498) at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:320) ... 21 more
La cabecera del xml es la siguiente..
<?xml version="1.0" encoding="utf-8"?>
alguna idea del problema.