Problem/Fehler Mustang-CLI-2.15.2.jar org.mustangproject.Contact.java

37 views
Skip to first unread message

Nora

unread,
Jan 7, 2025, 10:38:31 AM1/7/25
to ZUGFeRD
Hallo,
ich habe von einem Kunden eine XRechnung zum Auslesen der Daten erhalten und ich stoße auf ein Problem.

Im XML aus dem Anhang ist der Knoten "<cbc:Name>" leer. Die Validierung des XMLs ist ok. Auf Grund eines NullPointers  in der Klasse Contact ist das Auslesen der Daten nicht möglich.

 Exception in thread "main" java.lang.NullPointerException: Cannot invoke "org.w3c.dom.Node.getNodeValue()" because the return value of "org.w3c.dom.Node.getFirstChild()" is null

at org.mustangproject.Contact.<init>(Contact.java:117)

at org.mustangproject.TradeParty.parseFromUBL(TradeParty.java:276)

at org.mustangproject.TradeParty.<init>(TradeParty.java:368)

at org.mustangproject.ZUGFeRD.ZUGFeRDInvoiceImporter.extractInto(ZUGFeRDInvoiceImporter.java:789)

at org.mustangproject.ZUGFeRD.ZUGFeRDInvoiceImporter.setDocument(ZUGFeRDInvoiceImporter.java:267)

at org.mustangproject.ZUGFeRD.ZUGFeRDInvoiceImporter.setRawXML(ZUGFeRDInvoiceImporter.java:240)

at org.mustangproject.ZUGFeRD.ZUGFeRDInvoiceImporter.setRawXML(ZUGFeRDInvoiceImporter.java:254)

at org.mustangproject.ZUGFeRD.ZUGFeRDInvoiceImporter.extractLowLevel(ZUGFeRDInvoiceImporter.java:170)

at org.mustangproject.ZUGFeRD.ZUGFeRDInvoiceImporter.setInputStream(ZUGFeRDInvoiceImporter.java:95)

at org.mustangproject.ZUGFeRD.ZUGFeRDInvoiceImporter.<init>(ZUGFeRDInvoiceImporter.java:81)


VG

Nora

RX01.xml

jochen...@gmail.com

unread,
Jan 23, 2025, 7:55:41 AM1/23/25
to ZUGFeRD
Hallo,
ich meine das hätte ich schon von wem anders gehört und in der aktuellen Version gefixed, tritt das noch auf?
Falls ja gerne issue auf https://github.com/ZUGFeRD/mustangproject/issues 
Danke
Jochen
Reply all
Reply to author
Forward
0 new messages