org.docx4j.openpackaging.exceptions.Docx4JException: Exception exporting package

GitHub | izhangzhihao | 2 months ago
  1. 0

    GitHub comment 218#249104010

    GitHub | 2 months ago | izhangzhihao
    org.docx4j.openpackaging.exceptions.Docx4JException: Exception exporting package
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

    20 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      URI is not hierarchical

      at java.io.File.<init>()
    2. Java RT
      File.<init>
      1. java.io.File.<init>(File.java:418)
      1 frame
    3. Apache FOP
      FopFactory.newFop
      1. org.apache.fop.fonts.FontCache.addFont(FontCache.java:335)
      2. org.apache.fop.fonts.DefaultFontConfigurator.getFontInfo(DefaultFontConfigurator.java:173)
      3. org.apache.fop.fonts.DefaultFontConfigurator.addFonts(DefaultFontConfigurator.java:136)
      4. org.apache.fop.fonts.DefaultFontConfigurator.configure(DefaultFontConfigurator.java:89)
      5. org.apache.fop.render.PrintRendererConfigurator.getCustomFontCollection(PrintRendererConfigurator.java:147)
      6. org.apache.fop.render.PrintRendererConfigurator.setupFontInfo(PrintRendererConfigurator.java:127)
      7. org.apache.fop.render.intermediate.IFUtil.setupFonts(IFUtil.java:170)
      8. org.apache.fop.render.intermediate.IFRenderer.setupFontInfo(IFRenderer.java:187)
      9. org.apache.fop.area.RenderPagesModel.<init>(RenderPagesModel.java:75)
      10. org.apache.fop.area.AreaTreeHandler.setupModel(AreaTreeHandler.java:135)
      11. org.apache.fop.area.AreaTreeHandler.<init>(AreaTreeHandler.java:105)
      12. org.apache.fop.render.RendererFactory.createFOEventHandler(RendererFactory.java:350)
      13. org.apache.fop.fo.FOTreeBuilder.<init>(FOTreeBuilder.java:107)
      14. org.apache.fop.apps.Fop.createDefaultHandler(Fop.java:104)
      15. org.apache.fop.apps.Fop.<init>(Fop.java:78)
      16. org.apache.fop.apps.FOUserAgent.newFop(FOUserAgent.java:182)
      17. org.apache.fop.apps.FopFactory.newFop(FopFactory.java:220)
      17 frames
    4. docx4j
      Docx4J.toPDF
      1. org.docx4j.convert.out.fo.renderers.FORendererApacheFOP.render(FORendererApacheFOP.java:199)
      2. org.docx4j.convert.out.fo.renderers.FORendererApacheFOP.render(FORendererApacheFOP.java:159)
      3. org.docx4j.convert.out.fo.AbstractFOExporter.postprocess(AbstractFOExporter.java:168)
      4. org.docx4j.convert.out.fo.AbstractFOExporter.postprocess(AbstractFOExporter.java:47)
      5. org.docx4j.convert.out.common.AbstractExporter.export(AbstractExporter.java:82)
      6. org.docx4j.Docx4J.toFO(Docx4J.java:568)
      7. org.docx4j.Docx4J.toPDF(Docx4J.java:583)
      7 frames
    5. com.github.izhangzhihao
      test.testset
      1. com.github.izhangzhihao.OfficeUtils.DocxProducer.convertDocxToPDF(DocxProducer.java:168)
      2. com.github.izhangzhihao.OfficeUtils.DocxProducer.CreateFromTemplate(DocxProducer.java:54)
      3. com.github.izhangzhihao.OfficeUtils.test.testset(test.java:35)
      3 frames
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    7. JUnit
      JUnitCore.run
      1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      5. org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
      6. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
      7. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
      8. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      9. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      10. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      11. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      12. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      13. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      14. org.junit.runner.JUnitCore.run(JUnitCore.java:137)
      14 frames
    8. IntelliJ junit4 module
      JUnit4IdeaTestRunner.startRunnerWithArgs
      1. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:117)
      2. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42)
      2 frames
    9. IDEA
      JUnitStarter.main
      1. com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:262)
      2. com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:84)
      2 frames
    10. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    11. IDEA
      AppMain.main
      1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
      1 frame