View Issue Details

IDProjectCategoryView StatusLast Update
0001130FakturamaZUGFeRDpublic2024-12-06 14:34
Reporterjuengling Assigned Torheydenr  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionno change required 
PlatformPCOSLinuxOS VersionDebian (64bit)
Product Version2.1.3 
Target Version2.2.0Fixed in Version2.2.0 
Summary0001130: Pfadeingabe in den ZUGFeRD-Einstellungen oft unmöglich
Description

Die Option "Standardpfad für die XRechnung-Datei" kann nur in der Kombination "Version 2.1" und "Profil: XRECHNUNG" eingegeben werden. Das funktioniert korrekt, d.h. es werden PDF- und XML-Datei erstellt.

Bei "Version 1" jedoch ist das Feld deaktiviert, ebenso bei "Version 2.1" und den Profilauswahlen "ZUGFERT_V2_COMFORT" und "FAKTURX_EN16931". Bei "Drucken" einer Rechnung erfolgt dann die Fehlermeldung: "Dokument konnte nicht erstellt werden. Bitte überprüfen Sie den OpenOffice-Pfad und den Ausgabepfad!"

Die Einstellungen in "Office-Integration" sind vorhanden und wurden nicht verändert.

Steps To Reproduce
  1. Menübefehl "Datei / Einstellungen / ZUGFeRD-Einstellungen"
  2. "Erzeuge ZUGFeRD-Datei" aktivieren
  3. Auswahl "Version 1": Bei Profil nur "ZUGFERD_V1_COMFORT" möglich: "Standardpfad für die XRechnung-Datei" ist deaktiviert.
  4. Auswahl "Version 2.1": Bei Profil "ZUGFERD_V2_COMFORT" auswählen: "Standardpfad für die XRechnung-Datei" ist deaktiviert.
  5. Auswahl "Version 2.1": Bei Profil "FACTURX_EN16931" auswählen: "Standardpfad für die XRechnung-Datei" ist deaktiviert.
TagsZUGFeRD

Activities

juengling

2024-11-30 10:30

reporter   ~0001410

Im Kasten "Fehler" stehen folgende Daten:

Error starting OpenOffice with Document.ott in: com.sebulli.fakturama.office.OfficeDocument#postProcess (358)
Document couldn't be created. Reason: Error starting OpenOffice with Document.ott in: com.sebulli.fakturama.office.OfficeDocument#createDocument (190)
Exception occured: in: com.sebulli.fakturama.office.OfficeDocument#postProcess (358)
Error starting OpenOffice with Document (Original).ott in: com.sebulli.fakturama.office.OfficeDocument#postProcess (358)
Document couldn't be created. Reason: Error starting OpenOffice with Document (Original).ott in: com.sebulli.fakturama.office.OfficeDocument#create...
Exception occured: in: com.sebulli.fakturama.office.OfficeDocument#postProcess (358)

juengling

2024-11-30 10:35

reporter   ~0001411

Nach Auswahl von "ZUGFERD_V2_COMFORT" und "Drucken" wird das menschenlesbare PDF korrekt erzeugt. Die einzelne XML-Datei wird (erwartungsgemäß) nicht erzeugt, ein Anhang am PDF ist jedoch nicht vorhanden.

rheydenr

2024-12-06 12:41

administrator   ~0001420

Der Pfad für die XML-Datei ist nur bei XRechnung aktiv, weil man den auch nur dort benötigt. Bei ZUGFeRD soll das XML ja im PDF stecken. Dieses wird ganz normal im angegebenen Ausgabepfad erzeugt. Kannst Du bitte mal nachsehen, ob das XML im PDF steckt?

juengling

2024-12-06 13:21

reporter   ~0001421

Ich habe gerade nochmal eine Testrechnung drucken lassen (Einstellung ZUGFeRD-Version 2.1, Profil "ZUGFERD_V2_COMFORT"). Das PDF wird erzeugt, enthält jedoch keinen Anhang (wird bei Vorhandensein in meinem Reader "Evince" unter Ubuntu als Büroklammersymbol visualisiert). Zusätzlich kommt die oben schon beschriebene Fehlermeldung.

rheydenr

2024-12-06 13:39

administrator   ~0001422

stehen in ~/.fakturama2/.metadata/.log irgendwelche Hinweise?

juengling

2024-12-06 14:02

reporter   ~0001423

Ja, da kommt was:

  • Error starting OpenOffice with Document.ott
  • Document couldn't be created. Reason: Error starting OpenOffice with Document.ott
  • NullPointerException

Ich lösche sie mal und führe nochmal diesen einen Druckvorgang aus.

.log (8,339 bytes)   
!ENTRY com.sebulli.fakturama.common 4 0 2024-12-06 14:02:46.793
!MESSAGE Error starting OpenOffice with Document.ott
!STACK 0
java.lang.NullPointerException: Cannot invoke "org.apache.pdfbox.pdmodel.common.PDMetadata.createInputStream()" because "metadata" is null
	at org.fakturama.export.facturx.FacturXHelper.makeA3Acompliant(FacturXHelper.java:95)
	at org.fakturama.export.einvoice.AbstractEInvoiceCreator.createPdf(AbstractEInvoiceCreator.java:167)
	at org.fakturama.export.facturx.XRechnungCreator.createEInvoice(XRechnungCreator.java:92)
	at org.fakturama.export.einvoice.ZugferdExporter.processPdf(ZugferdExporter.java:106)
	at com.sebulli.fakturama.office.OfficeDocument.postProcess(OfficeDocument.java:354)
	at com.sebulli.fakturama.office.OfficeDocument.saveOODocument(OfficeDocument.java:330)
	at com.sebulli.fakturama.office.OfficeDocument.createDocument(OfficeDocument.java:180)
	at com.sebulli.fakturama.handlers.CreateOODocumentHandler.openOODocument(CreateOODocumentHandler.java:397)
	at com.sebulli.fakturama.handlers.CreateOODocumentHandler.lambda$0(CreateOODocumentHandler.java:180)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5895)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1520)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:5126)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4581)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1155)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1046)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
	at org.eclipse.e4.ui.internal.workbench.swt.E4Application.start(E4Application.java:168)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1440)

!ENTRY com.sebulli.fakturama.common 4 0 2024-12-06 14:02:46.794
!MESSAGE Document couldn't be created. Reason: Error starting OpenOffice with Document.ott
!STACK 0
com.sebulli.fakturama.exception.FakturamaStoringException: Error starting OpenOffice with Document.ott
	at com.sebulli.fakturama.office.OfficeDocument.createDocument(OfficeDocument.java:186)
	at com.sebulli.fakturama.handlers.CreateOODocumentHandler.openOODocument(CreateOODocumentHandler.java:397)
	at com.sebulli.fakturama.handlers.CreateOODocumentHandler.lambda$0(CreateOODocumentHandler.java:180)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5895)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1520)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:5126)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4581)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1155)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1046)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
	at org.eclipse.e4.ui.internal.workbench.swt.E4Application.start(E4Application.java:168)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1440)

!ENTRY com.sebulli.fakturama.common 4 0 2024-12-06 14:02:46.794
!MESSAGE Exception occured: 
!STACK 0
java.lang.NullPointerException: Cannot invoke "org.apache.pdfbox.pdmodel.common.PDMetadata.createInputStream()" because "metadata" is null
	at org.fakturama.export.facturx.FacturXHelper.makeA3Acompliant(FacturXHelper.java:95)
	at org.fakturama.export.einvoice.AbstractEInvoiceCreator.createPdf(AbstractEInvoiceCreator.java:167)
	at org.fakturama.export.facturx.XRechnungCreator.createEInvoice(XRechnungCreator.java:92)
	at org.fakturama.export.einvoice.ZugferdExporter.processPdf(ZugferdExporter.java:106)
	at com.sebulli.fakturama.office.OfficeDocument.postProcess(OfficeDocument.java:354)
	at com.sebulli.fakturama.office.OfficeDocument.saveOODocument(OfficeDocument.java:330)
	at com.sebulli.fakturama.office.OfficeDocument.createDocument(OfficeDocument.java:180)
	at com.sebulli.fakturama.handlers.CreateOODocumentHandler.openOODocument(CreateOODocumentHandler.java:397)
	at com.sebulli.fakturama.handlers.CreateOODocumentHandler.lambda$0(CreateOODocumentHandler.java:180)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5895)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1520)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:5126)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4581)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1155)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1046)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
	at org.eclipse.e4.ui.internal.workbench.swt.E4Application.start(E4Application.java:168)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1440)
.log (8,339 bytes)   

rheydenr

2024-12-06 14:06

administrator   ~0001425

Hast Du im LibreOffice einmalig ein PDF im PDF-A/3-Format erzeugt?

juengling

2024-12-06 14:11

reporter   ~0001426

Du meinst das PDF-Format, nicht DIN-A-3? Nicht bewusst, aber möglich wäre es, früher mal. "PDF/A" im Writer ist allerdings nicht angekreuzt.

rheydenr

2024-12-06 14:14

administrator   ~0001427

Ich meinte PDF-A/3. Das muß in der Version noch über LibreOffice aktiviert werden. Bitte probier das mal.

juengling

2024-12-06 14:19

reporter   ~0001428

Super, danke! Jetzt funktioniert's!

PDFA3.png (13,383 bytes)   
PDFA3.png (13,383 bytes)   

Issue History

Date Modified Username Field Change
2024-11-30 10:26 juengling New Issue
2024-11-30 10:30 juengling Note Added: 0001410
2024-11-30 10:30 juengling Tag Attached: ZUGFeRD
2024-11-30 10:35 juengling Note Added: 0001411
2024-12-03 17:58 rheydenr Assigned To => rheydenr
2024-12-03 17:58 rheydenr Status new => assigned
2024-12-03 17:58 rheydenr Target Version => 2.2.0
2024-12-03 17:59 rheydenr Assigned To rheydenr => boarschti
2024-12-06 12:33 rheydenr Assigned To boarschti => rheydenr
2024-12-06 12:41 rheydenr Status assigned => feedback
2024-12-06 12:41 rheydenr Note Added: 0001420
2024-12-06 13:21 juengling Note Added: 0001421
2024-12-06 13:21 juengling File Added: Fehlermeldung bei Zugferd-Druck.png
2024-12-06 13:21 juengling Status feedback => assigned
2024-12-06 13:39 rheydenr Note Added: 0001422
2024-12-06 13:39 rheydenr Status assigned => feedback
2024-12-06 14:02 juengling Note Added: 0001423
2024-12-06 14:02 juengling File Added: .log
2024-12-06 14:02 juengling Status feedback => assigned
2024-12-06 14:06 rheydenr Status assigned => feedback
2024-12-06 14:06 rheydenr Note Added: 0001425
2024-12-06 14:11 juengling Note Added: 0001426
2024-12-06 14:11 juengling Status feedback => assigned
2024-12-06 14:14 rheydenr Note Added: 0001427
2024-12-06 14:14 rheydenr Status assigned => feedback
2024-12-06 14:19 juengling Note Added: 0001428
2024-12-06 14:19 juengling File Added: PDFA3.png
2024-12-06 14:19 juengling Status feedback => assigned
2024-12-06 14:33 rheydenr Status assigned => resolved
2024-12-06 14:33 rheydenr Resolution open => no change required
2024-12-06 14:34 rheydenr Fixed in Version => 2.2.0