Dokumenterzeugung s...
 
Benachrichtigungen
Alles entfernen

Dokumenterzeugung scheitert - NPE durch TemplateProcessor.getDocumentInfoByPlaceholder

2 Beiträge
1 Benutzer
0 Reactions
4 Aufrufe
 uwem
(@uwem)
Active Member
Beigetreten: vor 2 Jahren
Beiträge: 6
Topic starter   [#4684]

Ich versuche gerade, 2.2.0 ans Laufen zu bekommen. Vorher war die 2.2.0-BETA installiert.

Beim Erzeugen von Rechnungen bekomme ich jetzt die Fehlermeldung, daß OpenOffice nicht gestartet werden konnte.

OpenOffice ist allerdings richtig konfiguriert. Ich bekomme auch eine Rechnung, sobald die Vorlage keinen Platzhalter für einen Girocode enthält. (Ich habe gesehen, daß es dazu schon mal einen Beitrag gab.)

Hier sind die Exceptions dazu:

11:24:17.581 [Equinox Log Thread - Equinox Container: 96276954-0e6f-48ee-92ad-ba5c50b433fd] ERROR com.sebulli.fakturama.common -- Error starting OpenOffice with Allgemein.ott
java.lang.NullPointerException: null
        at java.base/java.util.Objects.requireNonNull(Objects.java:209)
        at java.base/java.util.ImmutableCollections$Map1.<init>(ImmutableCollections.java:1105)
        at java.base/java.util.Map.of(Map.java:1353)
        at com.sebulli.fakturama.office.TemplateProcessor.getDocumentInfoByPlaceholder(TemplateProcessor.java:831)
        at com.sebulli.fakturama.office.TemplateProcessor.getTextForPlaceholder(TemplateProcessor.java:626)
        at com.sebulli.fakturama.office.TemplateProcessor.processTemplate(TemplateProcessor.java:554)
        at com.sebulli.fakturama.office.OfficeDocument.createDocument(OfficeDocument.java:173)
        at com.sebulli.fakturama.handlers.CreateOODocumentHandler.openOODocument(CreateOODocumentHandler.java:405)
        at com.sebulli.fakturama.handlers.CreateOODocumentHandler.lambda$0(CreateOODocumentHandler.java:183)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
        at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5855)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1529)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:5065)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4517)
        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:402)
        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:569)
        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)
11:24:17.593 [Equinox Log Thread - Equinox Container: 96276954-0e6f-48ee-92ad-ba5c50b433fd] ERROR com.sebulli.fakturama.common -- Document couldn't be created. Reason: Error starting OpenOffice with Allgemein.ott
com.sebulli.fakturama.exception.FakturamaStoringException: Error starting OpenOffice with Allgemein.ott
        at com.sebulli.fakturama.office.OfficeDocument.createDocument(OfficeDocument.java:182)
        at com.sebulli.fakturama.handlers.CreateOODocumentHandler.openOODocument(CreateOODocumentHandler.java:405)
        at com.sebulli.fakturama.handlers.CreateOODocumentHandler.lambda$0(CreateOODocumentHandler.java:183)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
        at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5855)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1529)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:5065)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4517)
        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:402)
        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:569)
        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)
11:24:17.597 [Equinox Log Thread - Equinox Container: 96276954-0e6f-48ee-92ad-ba5c50b433fd] ERROR com.sebulli.fakturama.common -- Exception occured: 
java.lang.NullPointerException: null
        at java.base/java.util.Objects.requireNonNull(Objects.java:209)
        at java.base/java.util.ImmutableCollections$Map1.<init>(ImmutableCollections.java:1105)
        at java.base/java.util.Map.of(Map.java:1353)
        at com.sebulli.fakturama.office.TemplateProcessor.getDocumentInfoByPlaceholder(TemplateProcessor.java:831)
        at com.sebulli.fakturama.office.TemplateProcessor.getTextForPlaceholder(TemplateProcessor.java:626)
        at com.sebulli.fakturama.office.TemplateProcessor.processTemplate(TemplateProcessor.java:554)
        at com.sebulli.fakturama.office.OfficeDocument.createDocument(OfficeDocument.java:173)
        at com.sebulli.fakturama.handlers.CreateOODocumentHandler.openOODocument(CreateOODocumentHandler.java:405)
        at com.sebulli.fakturama.handlers.CreateOODocumentHandler.lambda$0(CreateOODocumentHandler.java:183)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
        at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5855)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1529)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:5065)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4517)
        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:402)
        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:569)
        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)



   
Zitat
 uwem
(@uwem)
Active Member
Beigetreten: vor 2 Jahren
Beiträge: 6
Topic starter  

Okay, mit 2.2.1-BETA funktioniert es wieder.



   
AntwortZitat
Teilen: