tracker issue : CF-4198342

select a category, or use search below
(searches all categories and all time range)
Title:

cfdocument timeout

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/CannotReproduce

Reporter/Name(from Bugbase): Cody W / Cody W ()

Created: 02/16/2017

Components: Document Management, PDF generation

Versions: 2016

Failure Type: Usability Issue

Found In Build/Fixed In Build: 2016,0,03,300357 or any other /

Priority/Frequency: Normal / Few users will encounter

Locale/System: / Win 2012 Server x64

Vote Count: 3

Problem Description:
Intermittently, cfdocument will simply stop working completely. We're using the below code to generate a PDF, and it simply times out.

<cfdocument format="PDF">
<cfoutput>test</cfoutput>
</cfdocument>

You can set the timeout to be any length you want, and cfdocument will still fail to generate even a simple PDF. I've attached a stack trace from SeeFusion when the request was stuck as "cfdocument_while_running.txt". I've attached a stack trace provided by ColdFusion after the timeout as "cfdocument_after_timeout.txt". If any more information is needed, we're happy to provide it as this happens on a somewhat regular basis across several servers.

Steps to Reproduce:
Try to use cfdocument with any content.

Actual Result:
Error Occurred While Processing Request
The content of this document process takes more than 300000 milliseconds to process.

Expected Result:
PDF with the word "test" in it.

Attachments:

  1. February 16, 2017 00:00:00: cfdocument_after timeout.txt
  2. February 16, 2017 00:00:00: cfdocument_while_running.txt

Comments:

Hi, How often does this issue occur? Also, how much load is there in the system that the issue starts coming? Also, are you running some other requests too along with the one shared? Thanks, Kailash
Comment by Kailash Bihani
1169 | March 10, 2017 09:40:05 AM GMT
Hello, The issue occurs intermittently. There is very little load. The server is a shared hosting server, so it's very likely that other requests are running at the same time when the issue begins. However, once cfdocument breaks, it will continue to timeout regardless of server load or lack of other requests. To be clear, once cfdocument quits working, there could be no other ColdFusion requests running and it will still timeout. Thanks, Cody W
Comment by Cody W
1170 | April 06, 2017 02:27:54 PM GMT
Any chance we could get an update on this? This issue is intermittent and keeps causing us to have to restart ColdFusion. Each time, the stack trace is almost identical and gets stuck in the following pattern. at coldfusion.util.Waiter.getResponse(Waiter.java:44) at coldfusion.document.DocumentProcessor.processContent(DocumentProcessor.java:274) at coldfusion.document.DocumentProcessor.processContent(DocumentProcessor.java:179) at coldfusion.tagext.lang.DocumentTag.processContent(DocumentTag.java:1868) at coldfusion.tagext.lang.DocumentTag.access$200(DocumentTag.java:136)
Comment by Cody W
1171 | September 26, 2017 05:23:08 PM GMT
Hi Cody, As we don't have a specific test case, we will see how best we could check this in the code. It always helps if you could share isolated reproducible code so that we can fix the same quickly. Thanks, Kailash
Comment by Kailash Bihani
1172 | October 03, 2017 10:37:59 AM GMT
We have experienced this same issue. It seems the issue is triggered when more than one person hits the same cfdocument process at the same time. I would consider this a major issue as it impacts reporting under load.
1175 | January 24, 2018 08:17:16 PM GMT
We have experienced this same issue. It seems the issue is triggered when more than one person hits the same cfdocument process at the same time. Mark
Comment by Mark Pennypacker
1173 | January 24, 2018 08:18:03 PM GMT
We are implementing a pay-for-pdf system with CF, and have just hit this issue in a VPS environment. CFDOCUMENT causes the server to hang, then we get the Internal Server Error message after timing out. After this, any other CFDOCUMENT process encounters the same problem, even using this simple CFDOCUMENT code: <cfdocument format="pdf" mimetype="text/html"> This is a test pdf. </cfdocument>
Comment by Chris Rousseau
1174 | March 02, 2018 04:55:46 PM GMT
Hi,   It has been 5 months since the last update. Just checking if this is working for you? If not, can we get on a call to see when the issue is happening? You can email me at [bihani@adobe.com|mailto:bihani@adobe.com]    Thanks, Kailash
Comment by Kailash Bihani
29577 | August 21, 2018 07:24:32 AM GMT
Closing it for now. We will reopen it again once user comes back.
Comment by Kailash Bihani
29649 | August 30, 2018 07:16:55 AM GMT
This same behavior has recently represented itself in one of our production environments. <cfdocument> tags will suddenly begin timing out with no explanation. ColdFusion is stuck waiting on "processContent" as reported in earlier incidents. at coldfusion.util.Waiter.getResponse(Waiter.java:44) - locked <0x000000072b969cb0> (a coldfusion.util.Waiter) at coldfusion.document.DocumentProcessor.processContent(DocumentProcessor.java:274) at coldfusion.document.DocumentProcessor.processContent(DocumentProcessor.java:179) at coldfusion.tagext.lang.DocumentTag.processContent(DocumentTag.java:1868) at coldfusion.tagext.lang.DocumentTag.access$200(DocumentTag.java:136) This issue is intermittent and isn't reproducible. Restarting ColdFusion fixes this issue when it presents itself.
Comment by dakota c
29909 | November 08, 2018 06:58:11 PM GMT