Page tree
Skip to end of metadata
Go to start of metadata

 

Print or PDF creation failed

Problem

I'm getting errors, while printing or creating PDF and I have the following stack trace in the JIRA log file:

Stack Trace: Print failed with error
[n.s.j.plugin.rest.PrintWizardRestService] Print failed with error
net.seibertmedia.jira.plugin.exception.PrinterServiceException: Creating PDF file failed
at net.seibertmedia.jira.plugin.print.PrinterService.printModelsToPDF(PrinterService.java:50)
at net.seibertmedia.jira.plugin.print.PrinterService.printIssuesToPDF(PrinterService.java:40)
at net.seibertmedia.jira.plugin.manager.InstaprintaPrintManagerImpl.createPdf(InstaprintaPrintManagerImpl.java:117)
at net.seibertmedia.jira.plugin.rest.PrintWizardRestService.createPdfFromIssues(PrintWizardRestService.java:151)
...
Caused by: net.seibertmedia.jira.plugin.exception.PrintFileGenerationException: An error occured while creating new fop object
at net.seibertmedia.jira.plugin.print.PrintFileGenerator.createFile(PrintFileGenerator.java:90)
at net.seibertmedia.jira.plugin.print.PrintFileGenerator.createPDFFile(PrintFileGenerator.java:37)
at net.seibertmedia.jira.plugin.print.PrinterService.printModelsToPDF(PrinterService.java:46)
...
Caused by: org.apache.fop.apps.FOPException: .fop (Permission denied)
at org.apache.fop.util.LogUtil.handleException(LogUtil.java:57)
at org.apache.fop.fonts.FontCache.saveTo(FontCache.java:222)
at org.apache.fop.fonts.FontCacheManagerFactory$FontCacheManagerImpl.save(FontCacheManagerFactory.java:71)
at org.apache.fop.fonts.FontManager.saveCache(FontManager.java:142)
at org.apache.fop.fonts.DefaultFontConfigurator.configure(DefaultFontConfigurator.java:103)
at org.apache.fop.render.PrintRendererConfigurator.getCustomFontCollection(PrintRendererConfigurator.java:147)
at org.apache.fop.render.PrintRendererConfigurator.setupFontInfo(PrintRendererConfigurator.java:127)
at org.apache.fop.render.intermediate.IFUtil.setupFonts(IFUtil.java:170)
at org.apache.fop.render.intermediate.IFRenderer.setupFontInfo(IFRenderer.java:187)
at org.apache.fop.area.RenderPagesModel.<init>(RenderPagesModel.java:75)
at org.apache.fop.area.AreaTreeHandler.setupModel(AreaTreeHandler.java:135)
at org.apache.fop.area.AreaTreeHandler.<init>(AreaTreeHandler.java:105)
at org.apache.fop.render.RendererFactory.createFOEventHandler(RendererFactory.java:350)
at org.apache.fop.fo.FOTreeBuilder.<init>(FOTreeBuilder.java:107)
at org.apache.fop.apps.Fop.createDefaultHandler(Fop.java:104)
at org.apache.fop.apps.Fop.<init>(Fop.java:78)
at org.apache.fop.apps.FOUserAgent.newFop(FOUserAgent.java:182)
at org.apache.fop.apps.FopFactory.newFop(FopFactory.java:220)
at net.seibertmedia.jira.plugin.print.PrintFileGenerator.createFile(PrintFileGenerator.java:88)
...
Caused by: java.io.FileNotFoundException: .fop (Permission denied)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
at org.apache.fop.fonts.FontCache.saveTo(FontCache.java:213)

Cause

The InstaPrinta plugin needs to create a file named ".fop" in the home directory of the user running the JIRA process.


Solution

Check if the user that runs the JIRA process has a home directory. If not, create it.


  • No labels