Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-19913

PDF export sometimes fails when setting the cookies for the headless Chrome browser

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 14.6-rc-1, 14.4.3
    • 14.4.2, 14.5
    • Export - PDF
    • None
    • Unknown
    • N/A
    • N/A

    Description

      The PDF export job log has:

      <throwable class="java.lang.IllegalStateException">
        <detailMessage>Duplicate key JSESSIONID (attempted merging values node0g2ixuy1y4xdh2sx4pku2vxzu4.node0 and 38DC3561D64739F37CAFA615201C4BB6)</detailMessage>
        <stackTrace>
          <trace>java.base/java.util.stream.Collectors.duplicateKeyException(Collectors.java:133)</trace>
          <trace>java.base/java.util.stream.Collectors.lambda$uniqKeysMapAccumulator$1(Collectors.java:180)</trace>
          <trace>java.base/java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169)</trace>
          <trace>java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655)</trace>
          <trace>java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)</trace>
          <trace>java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)</trace>
          <trace>java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)</trace>
          <trace>java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)</trace>
          <trace>java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)</trace>
          <trace>org.xwiki.export.pdf.internal.chrome.ChromeManager.setCookies(ChromeManager.java:311)</trace>
          <trace>org.xwiki.export.pdf.internal.docker.DockerPDFPrinter.print(DockerPDFPrinter.java:166)</trace>
          <trace>org.xwiki.export.pdf.internal.docker.DockerPDFPrinter.print(DockerPDFPrinter.java:60)</trace>
          <trace>org.xwiki.export.pdf.internal.job.PDFExportJob.saveAsPDF(PDFExportJob.java:162)</trace>
          <trace>org.xwiki.export.pdf.internal.job.PDFExportJob.runInternal(PDFExportJob.java:115)</trace>
          <trace>org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:243)</trace>
          <trace>org.xwiki.job.AbstractJob.run(AbstractJob.java:220)</trace>
          <trace>java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)</trace>
          <trace>java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)</trace>
          <trace>java.base/java.lang.Thread.run(Thread.java:829)</trace>
        </stackTrace>
      </throwable>
      

      Attachments

        Activity

          People

            mflorea Marius Dumitru Florea
            mflorea Marius Dumitru Florea
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: