phax / en16931-cii2ubl

Converter for EN16931 invoices from CII to UBL
Apache License 2.0
20 stars 6 forks source link

JAXB [fatal_error] #9

Closed jstaerk closed 3 years ago

jstaerk commented 3 years ago

Attached invoice Rechnung-202010076-10010.xml.zip looks like valid CII to me but raises the following error:

[main] INFO com.helger.en16931.cii2ubl.cli.CIIToUBLConverter - Starting CII to UBL Converter
[main] ERROR com.helger.jaxb.validation.LoggingValidationEventHandler - JAXB [fatal_error] in obj: [InvoiceTypeCodeType@0x4207609e: languageID=null; listAgencyID=null; listAgencyName=null; listID=null; listName=null; listSchemeURI=null; listURI=null; listVersionID=null; name=null; value=380] cvc-complex-type.2.4.a: Ungültiger Content wurde beginnend mit Element '{"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2":InvoiceTypeCode}' gefunden. '{"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2":CopyIndicator, "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2":UUID, "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2":IssueDate}' wird erwartet. (org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Ungültiger Content wurde beginnend mit Element '{"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2":InvoiceTypeCode}' gefunden. '{"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2":CopyIndicator, "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2":UUID, "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2":IssueDate}' wird erwartet.)
org.xml.sax.SAXParseException; lineNumber: 0; columnNumber: 0; cvc-complex-type.2.4.a: Ungültiger Content wurde beginnend mit Element '{"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2":InvoiceTypeCode}' gefunden. '{"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2":CopyIndicator, "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2":UUID, "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2":IssueDate}' wird erwartet.

This is either a coincidence or your library might be used in the german ZRE vgl. https://www.zugferd-community.net/forum/viewtopic.php?p=318#p318

ottx96 commented 3 years ago

Same here. When using urn:cen.eu:en16931:2017#compliant#urn:xoev-de:kosit:standard:xrechnung_1.2, everything works fine. Since year 2021 however, urn:cen.eu:en16931:2017#compliant#urn:xoev-de:kosit:standard:xrechnung_2.0 is required. I'm still using CII16B Format with minor changes. The same Error occurs. I'm using the official validation tool for XRechnung 2.0 an I don't get any errors on CII Format.

I assume there is a bug in your routine with urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2":IssueDate.

STATUS_MESSAGE Cat=SYSCALLERR: [main] INFO com.helger.en16931.cii2ubl.cli.CIIToUBLConverter - Starting CII to UBL Converter
STATUS_MESSAGE Cat=SYSCALLERR: [main] ERROR com.helger.jaxb.validation.LoggingValidationEventHandler - JAXB [fatal_error] in obj: [InvoiceType@0x102d92c4: accountingCost=null; accountingCostCode=null; accountingCustomerParty=[CustomerPartyType@0x5972d253: accountingContact=null; additionalAccountID=null; buyerContact=null; customerAssignedAccountID=null; deliveryContact=null; party=[PartyType@0x4fcc0416: agentParty=null; contact=null; endpointID=null; financialAccount=null; industryClassificationCode=null; language=null; logoReferenceID=null; markAttentionIndicator=null; markCareIndicator=null; partyIdentification=[[PartyIdentificationType@0x31e32ea2: id=[IDType@0x1473b8c0: schemeAgencyID=null; schemeAgencyName=null; schemeDataURI=null; schemeID=null; schemeName=null; schemeURI=null; schemeVersionID=null; value=5]]]; partyLegalEntity=[[PartyLegalEntityType@0x5b5c0057: companyID=null; companyLegalForm=null; companyLegalFormCode=null; companyLiquidationStatusCode=null; corporateRegistrationScheme=null; corporateStockAmount=null; fullyPaidSharesIndicator=null; headOfficeParty=null; registrationAddress=null; registrationDate=null; registrationExpirationDate=null; registrationName=[RegistrationNameType@0x749f539e: languageID=null; languageLocaleID=null; value=Karl M³ller]; shareholderParty=null; soleProprietorshipIndicator=null]]; partyName=[[PartyNameType@0x5ca1f591: name=[NameType@0x551de37d: languageID=null; languageLocaleID=null; value=Karl M³ller]]]; partyTaxScheme=null; person=null; physicalLocation=null; postalAddress=[AddressType@0x6ef81f31: additionalStreetName=null; addressFormatCode=null; addressLine=null; addressTypeCode=null; blockName=null; buildingName=null; buildingNumber=null; cityName=[CityNameType@0x6075b2d3: languageID=null; languageLocaleID=null; value=Gœttingen]; citySubdivisionName=null; country=[CountryType@0x33abde31: identificationCode=[IdentificationCodeType@0x0997d532: languageID=null; listAgencyID=null; listAgencyName=null; listID=null; listName=null; listSchemeURI=null; listURI=null; listVersionID=null; name=null; value=DE]; name=null]; countrySubentity=null; countrySubentityCode=null; department=null; district=null; floor=null; id=null; inhouseMail=null; locationCoordinate=null; markAttention=null; markCare=null; plotIdentification=null; postalZone=[PostalZoneType@0x273842a6: languageID=null; languageLocaleID=null; value=34001]; postbox=null; region=null; room=null; streetName=[StreetNameType@0x6a969fb8: languageID=null; languageLocaleID=null; value=null]; timezoneOffset=null]; powerOfAttorney=null; serviceProviderParty=null; websiteURI=null]; supplierAssignedAccountID=null]; accountingSupplierParty=[SupplierPartyType@0x07a18e8d: accountingContact=null; additionalAccountID=null; customerAssignedAccountID=null; dataSendingCapability=null; despatchContact=null; party=[PartyType@0x3028e50e: agentParty=null; contac (truncated)
STATUS_MESSAGE Cat=SYSCALLERR: d=null; name=[NameType@0x000bb095: languageID=null; languageLocaleID=null; value=Lisa Musterfrau]; note=null; otherCommunication=null; telefax=null; telephone=[TelephoneType@0x777c350f: languageID=null; languageLocaleID=null; value=0123/123123]]; endpointID=null; financialAccount=null; industryClassificationCode=null; language=null; logoReferenceID=null; markAttentionIndicator=null; markCareIndicator=null; partyIdentification=null; partyLegalEntity=[[PartyLegalEntityType@0x27aae97b: companyID=[CompanyIDType@0x004c9e38: schemeAgencyID=null; schemeAgencyName=null; schemeDataURI=null; schemeID=null; schemeName=null; schemeURI=null; schemeVersionID=null; value=28839934]; companyLegalForm=[CompanyLegalFormType@0x5d1e09bc: languageID=null; languageLocaleID=null; value=28839934, BY]; companyLegalFormCode=null; companyLiquidationStatusCode=null; corporateRegistrationScheme=null; corporateStockAmount=null; fullyPaidSharesIndicator=null; headOfficeParty=null; registrationAddress=null; registrationDate=null; registrationExpirationDate=null; registrationName=[RegistrationNameType@0x4bdc8b5d: languageID=null; languageLocaleID=null; value=ABAS Software AG]; shareholderParty=null; soleProprietorshipIndicator=null]]; partyName=[[PartyNameType@0x3bcd426c: name=[NameType@0x5f14a673: languageID=null; languageLocaleID=null; value=ABAS Software AG]]]; partyTaxScheme=[[PartyTaxSchemeType@0x726a17c4: companyID=[CompanyIDType@0x5dc3fcb7: schemeAgencyID=null; schemeAgencyName=null; schemeDataURI=null; schemeID=null; schemeName=null; schemeURI=null; schemeVersionID=null; value=DE123456788]; exemptionReason=null; exemptionReasonCode=null; registrationAddress=null; registrationName=null; taxLevelCode=null; taxScheme=[TaxSchemeType@0x0c4c0b41: currencyCode=null; id=[IDType@0x76911385: schemeAgencyID=null; schemeAgencyName=null; schemeDataURI=null; schemeID=null; schemeName=null; schemeURI=null; schemeVersionID=null; value=VAT]; jurisdictionRegionAddress=null; name=null; taxTypeCode=null]]]; person=null; physicalLocation=null; postalAddress=[AddressType@0x5467eea4: additionalStreetName=null; addressFormatCode=null; addressLine=null; addressTypeCode=null; blockName=null; buildingName=null; buildingNumber=null; cityName=[CityNameType@0x160396db: languageID=null; languageLocaleID=null; value=Karlsruhe]; citySubdivisionName=null; country=[CountryType@0x7a799159: identificationCode=[IdentificationCodeType@0x040ab8a8: languageID=null; listAgencyID=null; listAgencyName=null; listID=null; listName=null; listSchemeURI=null; listURI=null; listVersionID=null; name=null; value=DE]; name=null]; countrySubentity=null; countrySubentityCode=null; department=null; district=null; floor=null; id=null; inhouseMail=null; locationCoordinate=null; markAttention=null; markCare=null; plotIdentification=null; postalZone=[PostalZoneType@0x6ff37443: languageID=nu (truncated)
STATUS_MESSAGE Cat=SYSCALLERR: eLocaleID=null; value=Gartenstrasse 67]; timezoneOffset=null]; powerOfAttorney=null; serviceProviderParty=null; websiteURI=null]; sellerContact=null]; additionalDocumentReference=null; allowanceCharge=null; billingReference=null; buyerCustomerParty=null; buyerReference=[BuyerReferenceType@0x53093491: languageID=null; languageLocaleID=null; value=991-45694-33]; contractDocumentReference=null; copyIndicator=null; customizationID=[CustomizationIDType@0x09a7a808: schemeAgencyID=null; schemeAgencyName=null; schemeDataURI=null; schemeID=null; schemeName=null; schemeURI=null; schemeVersionID=null; value=urn:cen.eu:en16931:2017#compliant#urn:xoev-de:kosit:standard:xrechnung_2.0]; delivery=null; deliveryTerms=null; despatchDocumentReference=null; documentCurrencyCode=[DocumentCurrencyCodeType@0x021719a0: languageID=null; listAgencyID=null; listAgencyName=null; listID=null; listName=null; listSchemeURI=null; listURI=null; listVersionID=null; name=null; value=EUR]; dueDate=[DueDateType@0x76b224cd: value=2021-01-04]; id=[IDType@0x6a4d7f76: schemeAgencyID=null; schemeAgencyName=null; schemeDataURI=null; schemeID=null; schemeName=null; schemeURI=null; schemeVersionID=null; value=400001]; invoiceLine=[[InvoiceLineType@0x77ee25f1: accountingCost=null; accountingCostCode=null; allowanceCharge=null; billingReference=null; delivery=null; deliveryTerms=null; despatchLineReference=null; documentReference=null; freeOfChargeIndicator=null; id=[IDType@0x6dd93a21: schemeAgencyID=null; schemeAgencyName=null; schemeDataURI=null; schemeID=null; schemeName=null; schemeURI=null; schemeVersionID=null; value=1]; invoicePeriod=null; invoicedQuantity=[InvoicedQuantityType@0x57b9e423: unitCode=PCE; unitCodeListAgencyID=null; unitCodeListAgencyName=null; unitCodeListID=null; value=50.000]; item=[ItemType@0x304a3655: additionalInformation=null; additionalItemIdentification=null; additionalItemProperty=null; brandName=null; buyersItemIdentification=null; catalogueDocumentReference=null; catalogueIndicator=null; catalogueItemIdentification=null; certificate=null; classifiedTaxCategory=[[TaxCategoryType@0x368d5c00: baseUnitMeasure=null; id=[IDType@0x12a160c2: schemeAgencyID=null; schemeAgencyName=null; schemeDataURI=null; schemeID=null; schemeName=null; schemeURI=null; schemeVersionID=null; value=S]; name=null; perUnitAmount=null; percent=[PercentType@0x0aa10649: format=null; value=19.00]; taxExemptionReason=null; taxExemptionReasonCode=null; taxScheme=[TaxSchemeType@0x6b3871d6: currencyCode=null; id=[IDType@0x37095ded: schemeAgencyID=null; schemeAgencyName=null; schemeDataURI=null; schemeID=null; schemeName=null; schemeURI=null; schemeVersionID=null; value=VAT]; jurisdictionRegionAddress=null; name=null; taxTypeCode=null]; tierRange=null; tierRatePercent=null]]; commodityClassification=null; description=[[DescriptionType@0x2eb79cbe: languageID= (truncated)
STATUS_MESSAGE Cat=SYSCALLERR: ty=null; itemInstance=null; itemSpecificationDocumentReference=null; keyword=null; manufacturerParty=null; manufacturersItemIdentification=null; modelName=null; name=[NameType@0x2ca6546f: languageID=null; languageLocaleID=null; value=Kondensboi]; originAddress=null; originCountry=null; packQuantity=null; packSizeNumeric=null; sellersItemIdentification=[ItemIdentificationType@0x043826ec: barcodeSymbologyID=null; extendedID=null; id=[IDType@0x7923f5b3: schemeAgencyID=null; schemeAgencyName=null; schemeDataURI=null; schemeID=null; schemeName=null; schemeURI=null; schemeVersionID=null; value=8-C]; issuerParty=null; measurementDimension=null; physicalAttribute=null]; standardItemIdentification=null; transactionConditions=null]; itemPriceExtension=null; lineExtensionAmount=[LineExtensionAmountType@0x6b63d445: currencyCodeListVersionID=null; currencyID=EUR; value=1147.50]; note=[[NoteType@0x7578e06a: languageID=null; languageLocaleID=null; value=]]; orderLineReference=[[OrderLineReferenceType@0x30b2b76f: lineID=[LineIDType@0x56da52a7: schemeAgencyID=null; schemeAgencyName=null; schemeDataURI=null; schemeID=null; schemeName=null; schemeURI=null; schemeVersionID=null; value=1]; lineStatusCode=null; orderReference=null; salesOrderLineID=null; uuid=null]]; originatorParty=null; paymentPurposeCode=null; paymentTerms=null; price=[PriceType@0x23ee75c5: allowanceCharge=null; baseQuantity=null; orderableUnitFactorRate=null; priceAmount=[PriceAmountType@0x11a7ba62: currencyCodeListVersionID=null; currencyID=EUR; value=25.50]; priceChangeReason=null; priceList=null; priceType=null; priceTypeCode=null; pricingExchangeRate=null; validityPeriod=null]; pricingReference=null; receiptLineReference=null; subInvoiceLine=null; taxPointDate=null; taxTotal=null; uuid=null; withholdingTaxTotal=null]]; invoicePeriod=null; invoiceTypeCode=[InvoiceTypeCodeType@0x340b7ef6: languageID=null; listAgencyID=null; listAgencyName=null; listID=null; listName=null; listSchemeURI=null; listURI=null; listVersionID=null; name=null; value=380]; issueDate=null; issueTime=null; legalMonetaryTotal=[MonetaryTotalType@0x30404dba: allowanceTotalAmount=null; chargeTotalAmount=null; lineExtensionAmount=[LineExtensionAmountType@0x6050462a: currencyCodeListVersionID=null; currencyID=EUR; value=1147.50]; payableAlternativeAmount=null; payableAmount=[PayableAmountType@0x4c0884e8: currencyCodeListVersionID=null; currencyID=EUR; value=1365.53]; payableRoundingAmount=null; prepaidAmount=null; taxExclusiveAmount=[TaxExclusiveAmountType@0x231baf51: currencyCodeListVersionID=null; currencyID=EUR; value=1147.50]; taxInclusiveAmount=[TaxInclusiveAmountType@0x11841b15: currencyCodeListVersionID=null; currencyID=EUR; value=1365.53]]; lineCountNumeric=null; note=[[NoteType@0x73877e19: languageID=null; languageLocaleID=null; value=]]; orderReference=null; originatorDocumentRe (truncated)
STATUS_MESSAGE Cat=SYSCALLERR: angeRate=null; paymentMeans=[[PaymentMeansType@0x7b208b45: cardAccount=null; creditAccount=null; id=null; instructionID=null; instructionNote=null; payeeFinancialAccount=[FinancialAccountType@0x05bfc257: accountFormatCode=null; accountTypeCode=null; aliasName=null; country=null; currencyCode=null; financialInstitutionBranch=null; id=[IDType@0x34523d46: schemeAgencyID=null; schemeAgencyName=null; schemeDataURI=null; schemeID=null; schemeName=null; schemeURI=null; schemeVersionID=null; value=DE123123123123123123]; name=null; paymentNote=null]; payerFinancialAccount=null; paymentChannelCode=null; paymentDueDate=null; paymentID=null; paymentMandate=null; paymentMeansCode=[PaymentMeansCodeType@0x7cedfa63: languageID=null; listAgencyID=null; listAgencyName=null; listID=null; listName=null; listSchemeURI=null; listURI=null; listVersionID=null; name=null; value=58]; tradeFinancing=null]]; paymentTerms=null; prepaidPayment=null; pricingCurrencyCode=null; pricingExchangeRate=null; profileExecutionID=null; profileID=[ProfileIDType@0x30135202: schemeAgencyID=null; schemeAgencyName=null; schemeDataURI=null; schemeID=null; schemeName=null; schemeURI=null; schemeVersionID=null; value=urn:fdc:peppol.eu:2017:poacc:billing:01:1.0]; projectReference=null; receiptDocumentReference=null; sellerSupplierParty=null; signature=null; statementDocumentReference=null; taxCurrencyCode=null; taxExchangeRate=null; taxPointDate=null; taxRepresentativeParty=null; taxTotal=[[TaxTotalType@0x03e83c18: roundingAmount=null; taxAmount=[TaxAmountType@0x783efb48: currencyCodeListVersionID=null; currencyID=EUR; value=218.03]; taxEvidenceIndicator=null; taxIncludedIndicator=null; taxSubtotal=[[TaxSubtotalType@0x5d235104: baseUnitMeasure=null; calculationSequenceNumeric=null; perUnitAmount=null; percent=null; taxAmount=[TaxAmountType@0x4e8e8621: currencyCodeListVersionID=null; currencyID=EUR; value=218.03]; taxCategory=[TaxCategoryType@0x0c446b14: baseUnitMeasure=null; id=[IDType@0x03af356f: schemeAgencyID=null; schemeAgencyName=null; schemeDataURI=null; schemeID=null; schemeName=null; schemeURI=null; schemeVersionID=null; value=S]; name=null; perUnitAmount=null; percent=[PercentType@0x4443ef6f: format=null; value=19.00]; taxExemptionReason=null; taxExemptionReasonCode=null; taxScheme=[TaxSchemeType@0x7e46d648: currencyCode=null; id=[IDType@0x51751e5f: schemeAgencyID=null; schemeAgencyName=null; schemeDataURI=null; schemeID=null; schemeName=null; schemeURI=null; schemeVersionID=null; value=VAT]; jurisdictionRegionAddress=null; name=null; taxTypeCode=null]; tierRange=null; tierRatePercent=null]; taxableAmount=[TaxableAmountType@0x2b0b4d53: currencyCodeListVersionID=null; currencyID=EUR; value=1147.50]; tierRange=null; tierRatePercent=null; transactionCurrencyTaxAmount=null]]]]; ublExtensions=null; ublVersionID=null; uuid=null; withholdingTaxTotal=nul (truncated)
STATUS_MESSAGE Cat=SYSCALLERR: sd:CommonBasicComponents-2":CopyIndicator, "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2":UUID, "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2":IssueDate}' is expected. (org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'cbc:DueDate'. One of '{"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2":CopyIndicator, "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2":UUID, "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2":IssueDate}' is expected.)
STATUS_MESSAGE Cat=SYSCALLERR: org.xml.sax.SAXParseException; lineNumber: 0; columnNumber: 0; cvc-complex-type.2.4.a: Invalid content was found starting with element 'cbc:DueDate'. One of '{"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2":CopyIndicator, "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2":UUID, "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2":IssueDate}' is expected.
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:134)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:396)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:284)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:452)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3230)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1790)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:740)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorHandlerImpl.startElement(ValidatorHandlerImpl.java:570)
STATUS_MESSAGE Cat=SYSCALLERR:  at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:551)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.xml.bind.v2.runtime.output.SAXOutput.endStartTag(SAXOutput.java:98)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.xml.bind.v2.runtime.output.ForkXmlOutput.endStartTag(ForkXmlOutput.java:76)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.xml.bind.v2.runtime.XMLSerializer.leafElement(XMLSerializer.java:295)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$StringImplImpl.writeLeafElement(RuntimeBuiltinLeafInfoImpl.java:1040)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$StringImplImpl.writeLeafElement(RuntimeBuiltinLeafInfoImpl.java:1019)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.xml.bind.v2.runtime.SchemaTypeTransducer.writeLeafElement(SchemaTypeTransducer.java:67)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor$CompositeTransducedAccessorImpl.writeLeafElement(TransducedAccessor.java:226)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl$TransducerImpl.writeLeafElement(RuntimeClassInfoImpl.java:381)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor$CompositeTransducedAccessorImpl.writeLeafElement(TransducedAccessor.java:226)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.xml.bind.v2.runtime.property.SingleElementLeafProperty.serializeBody(SingleElementLeafProperty.java:100)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:329)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:666)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.xml.bind.v2.runtime.property.SingleElementNodeProperty.serializeBody(SingleElementNodeProperty.java:128)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl$1.serializeBody(ElementBeanInfoImpl.java:130)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl$1.serializeBody(ElementBeanInfoImpl.java:100)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeBody(ElementBeanInfoImpl.java:302)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeRoot(ElementBeanInfoImpl.java:309)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeRoot(ElementBeanInfoImpl.java:45)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsRoot(XMLSerializer.java:464)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:298)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.java:153)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.helger.jaxb.IJAXBWriter.lambda$write$2(IJAXBWriter.java:381)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.helger.jaxb.builder.JAXBWriterBuilder.write(JAXBWriterBuilder.java:308)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.helger.jaxb.IJAXBWriter.write(IJAXBWriter.java:381)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.helger.jaxb.IJAXBWriter.write(IJAXBWriter.java:234)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.helger.jaxb.IJAXBWriter.write(IJAXBWriter.java:195)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.helger.en16931.cii2ubl.cli.CIIToUBLConverter.call(CIIToUBLConverter.java:186)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.helger.en16931.cii2ubl.cli.CIIToUBLConverter.call(CIIToUBLConverter.java:55)
STATUS_MESSAGE Cat=SYSCALLERR:  at picocli.CommandLine.executeUserObject(CommandLine.java:1933)
STATUS_MESSAGE Cat=SYSCALLERR:  at picocli.CommandLine.access$1200(CommandLine.java:145)
STATUS_MESSAGE Cat=SYSCALLERR:  at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2332)
STATUS_MESSAGE Cat=SYSCALLERR:  at picocli.CommandLine$RunLast.handle(CommandLine.java:2326)
STATUS_MESSAGE Cat=SYSCALLERR:  at picocli.CommandLine$RunLast.handle(CommandLine.java:2291)
STATUS_MESSAGE Cat=SYSCALLERR:  at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2159)
STATUS_MESSAGE Cat=SYSCALLERR:  at picocli.CommandLine.execute(CommandLine.java:2058)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.helger.en16931.cii2ubl.cli.CIIToUBLConverter.main(CIIToUBLConverter.java:228)
STATUS_MESSAGE Cat=SYSCALLERR: [main] ERROR com.helger.jaxb.LoggingJAXBWriteExceptionHandler - Marshal exception writing object
STATUS_MESSAGE Cat=SYSCALLERR: javax.xml.bind.MarshalException
STATUS_MESSAGE Cat=SYSCALLERR:  - with linked exception:
STATUS_MESSAGE Cat=SYSCALLERR: [org.xml.sax.SAXParseException; lineNumber: 0; columnNumber: 0; cvc-complex-type.2.4.a: Invalid content was found starting with element 'cbc:DueDate'. One of '{"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2":CopyIndicator, "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2":UUID, "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2":IssueDate}' is expected.]
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:301)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.java:153)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.helger.jaxb.IJAXBWriter.lambda$write$2(IJAXBWriter.java:381)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.helger.jaxb.builder.JAXBWriterBuilder.write(JAXBWriterBuilder.java:308)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.helger.jaxb.IJAXBWriter.write(IJAXBWriter.java:381)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.helger.jaxb.IJAXBWriter.write(IJAXBWriter.java:234)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.helger.jaxb.IJAXBWriter.write(IJAXBWriter.java:195)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.helger.en16931.cii2ubl.cli.CIIToUBLConverter.call(CIIToUBLConverter.java:186)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.helger.en16931.cii2ubl.cli.CIIToUBLConverter.call(CIIToUBLConverter.java:55)
STATUS_MESSAGE Cat=SYSCALLERR:  at picocli.CommandLine.executeUserObject(CommandLine.java:1933)
STATUS_MESSAGE Cat=SYSCALLERR:  at picocli.CommandLine.access$1200(CommandLine.java:145)
STATUS_MESSAGE Cat=SYSCALLERR:  at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2332)
STATUS_MESSAGE Cat=SYSCALLERR:  at picocli.CommandLine$RunLast.handle(CommandLine.java:2326)
STATUS_MESSAGE Cat=SYSCALLERR:  at picocli.CommandLine$RunLast.handle(CommandLine.java:2291)
STATUS_MESSAGE Cat=SYSCALLERR:  at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2159)
STATUS_MESSAGE Cat=SYSCALLERR:  at picocli.CommandLine.execute(CommandLine.java:2058)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.helger.en16931.cii2ubl.cli.CIIToUBLConverter.main(CIIToUBLConverter.java:228)
STATUS_MESSAGE Cat=SYSCALLERR: Caused by: org.xml.sax.SAXParseException; lineNumber: 0; columnNumber: 0; cvc-complex-type.2.4.a: Invalid content was found starting with element 'cbc:DueDate'. One of '{"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2":CopyIndicator, "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2":UUID, "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2":IssueDate}' is expected.
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:134)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:396)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:284)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:452)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3230)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1790)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:740)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorHandlerImpl.startElement(ValidatorHandlerImpl.java:570)
STATUS_MESSAGE Cat=SYSCALLERR:  at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:551)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.xml.bind.v2.runtime.output.SAXOutput.endStartTag(SAXOutput.java:98)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.xml.bind.v2.runtime.output.ForkXmlOutput.endStartTag(ForkXmlOutput.java:76)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.xml.bind.v2.runtime.XMLSerializer.leafElement(XMLSerializer.java:295)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$StringImplImpl.writeLeafElement(RuntimeBuiltinLeafInfoImpl.java:1040)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$StringImplImpl.writeLeafElement(RuntimeBuiltinLeafInfoImpl.java:1019)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.xml.bind.v2.runtime.SchemaTypeTransducer.writeLeafElement(SchemaTypeTransducer.java:67)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor$CompositeTransducedAccessorImpl.writeLeafElement(TransducedAccessor.java:226)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl$TransducerImpl.writeLeafElement(RuntimeClassInfoImpl.java:381)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor$CompositeTransducedAccessorImpl.writeLeafElement(TransducedAccessor.java:226)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.xml.bind.v2.runtime.property.SingleElementLeafProperty.serializeBody(SingleElementLeafProperty.java:100)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:329)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:666)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.xml.bind.v2.runtime.property.SingleElementNodeProperty.serializeBody(SingleElementNodeProperty.java:128)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl$1.serializeBody(ElementBeanInfoImpl.java:130)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl$1.serializeBody(ElementBeanInfoImpl.java:100)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeBody(ElementBeanInfoImpl.java:302)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeRoot(ElementBeanInfoImpl.java:309)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeRoot(ElementBeanInfoImpl.java:45)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsRoot(XMLSerializer.java:464)
STATUS_MESSAGE Cat=SYSCALLERR:  at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:298)
STATUS_MESSAGE Cat=SYSCALLERR:  ... 16 more
ottx96 commented 3 years ago

nvm, it was my bad. I set the tag <IssueDateTime> in CII format to yyyyMMddHHmmss, required was yyyyMMdd. It's all working just fine! 👍🏼

phax commented 3 years ago

@ottx96 Thanks for the update. I will improve error handling in the next version

phax commented 3 years ago

@jstaerk did you also try on the commandline? And no idea if it is used in ZRE or not - sorry.

phax commented 3 years ago

I am pretty confident this is resolved with the 1.3.0 release

jstaerk commented 3 years ago

thanks a lot, the error message is much more helpful and allowed to correct the document, the date was not in typecode 102