HTML to PDF / DOCX / RTF Java converter library Forums PD4ML Forums Technical questions / Troubleshooting BufferOverflowException when generating PDFs on WebSphere Open Liberty

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #41181

    Hello,

    We’re experiencing an issue with PD4ML when generating PDFs on IBM Open Liberty.

    Environment:

    Open Liberty / WebSphere Liberty 24.0.0.2
    JDK 21.0.1
    Jakarta EE 10
    PD4ML 4.0.17, 4.1.0, and 4.1.1 (same behavior on all versions)

    Issue:
    PDF generation works correctly on Tomcat but consistently fails on Open Liberty with:

    java.nio.BufferOverflowException
    at java.nio.HeapByteBuffer.put()
    at com.ibm.ws.bytebuffer.internal.WsByteBufferImpl.put()
    at com.pd4ml.taglib.jakarta.PD4MLTransformerTag.doEndTag(…)

    After the failure, Liberty reports:

    java.lang.IllegalStateException: SRVE0199E: OutputStream already obtained

    This is a secondary error caused while rendering the error page.

    What we’ve already tried:

    Tested PD4ML 4.0.17, 4.1.0, and 4.1.1.
    Removed custom response wrappers and GZIP filter.
    Increased servlet response buffer (response.setBufferSize()).
    Increased JSP page buffer.
    Removed embedded TrueType fonts (<pd4ml:usettf>).
    The issue only occurs on Open Liberty; the same application works correctly on Tomcat.

    Do you know if this is a known compatibility issue with Open Liberty, or is there a recommended configuration or workaround?

    Thank you.

    #41182

    Thank you for the issue report! We have created a helpdesk ticket for further investigation.

    #41186

    BTW, have you received the helpdesk message with the additional info request?

    #41188

    I haven’t received it, please provide it.

    #41204

    As we can see, all notification emails go to Jeff’s email.
    To simplify things, please send an email to helpdesk pd4ml com (with all other request participants in CC, if any), so we do not need to manually create new user accounts. Thank you!

    #41290

    Hi Team,

    I’ve sent a few emails to helpdesk@pd4ml.com from my vitaliy…@…ai email address, but I haven’t received a response yet.

    Could you please follow up or let me know if my emails were received? I’d appreciate any update.

    Thank you!

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.