Menu

#168 fatal error while invoice creation with char '&' in address-field

v1.0_(example)
closed
nobody
None
1
2017-01-06
2015-03-04
Michael
No

Hi there,
if i create an invoice assigned to a customer with the special char '&' in the Address-Field (from Customers-Window) i get a fatal error.

After that i can't close the invoice window to complete the transaction (only cancel).

Changing the customers address and re-run the invoice-transaction seems not to help, so it's nesseccary to restart the application, but you will lose your input and get an increased invoice-index (but there is no invoice, adjusting the index in 'Numbers and Formats' will help).

Thanks in advance,
Michael

Stacktrace:

[Fatal Error] :33:22: Auf "&" in der Entitätsreferenz muss umgehend der Entitätsname folgen.
org.xml.sax.SAXParseException; lineNumber: 33; columnNumber: 22; Auf "&" in der Entitätsreferenz muss umgehend der Entitätsname folgen.
        at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:257)
        at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:347)
        at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:121)
        at org.mustangproject.ZUGFeRD.ZUGFeRDImporter.parse(ZUGFeRDImporter.java:125)
        at appLayer.document.parseZugferd(Unknown Source)
        at appLayer.document.parseMetadata(Unknown Source)
        at appLayer.document.setImportFilename(Unknown Source)
        at appLayer.document.<init>(Unknown Source)
        at appLayer.documents.getNewDocument(Unknown Source)
        at GUILayer.newTransactionWizard.performFinish(Unknown Source)
        at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:827)
        at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:432)
        at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:628)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1392)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3742)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3363)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:826)
        at org.eclipse.jface.window.Window.open(Window.java:802)
        at GUILayer.MainWindow$3.widgetSelected(Unknown Source)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1392)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3742)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3363)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:826)
        at org.eclipse.jface.window.Window.open(Window.java:802)
        at GUILayer.configWindow.testAndShow(Unknown Source)
        at GUILayer.MainWindow.main(Unknown Source)

Discussion

  • Jochen Staerk

    Jochen Staerk - 2015-03-05

    That's a bug in the library I created for ZUGFeRD support (http://www.mustangproject.org/), see the currently failing automated tests there

     
  • Jochen Staerk

    Jochen Staerk - 2015-04-04

    Reuben just remarked it also happens if you use the ampersand in product names

     
  • Jochen Staerk

    Jochen Staerk - 2017-01-06
    • status: open --> closed
     
  • Jochen Staerk

    Jochen Staerk - 2017-01-06

    was already fixed in 0.88

     

Log in to post a comment.

MongoDB Logo MongoDB