tracker issue : CF-4110955

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

cfdocument generation of PDF occaisionally hangs for all PDF generation

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/CannotReproduce

Reporter/Name(from Bugbase): Chris Hopkins / Chris Hopkins (Chris Hopkins)

Created: 01/27/2016

Components: Document Management

Versions: 11.0

Failure Type: Incorrect w/Workaround

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Normal / Unknown

Locale/System: English / Win 2008 Server R2 86 bit

Vote Count: 1

Problem Description:

Occaisionally PDF generation using cfdocument hangs and times out for all PDF generation accross a server.

Steps to Reproduce:

<cfdocument format="PDF" pagetype="A4" authpassword="password" authuser="user" saveAsName="#pdf_save_name#" >
	<cfoutput>#certificate_content#</cfoutput>
</cfdocument>

Actual Result:

request hangs and eventually times out

Expected Result:

A PDF

Any Workarounds:

To fix this we have found that restarting the add on service fixes the issue

Stacktrace from Fusion Reactor

"ajp-bio-8014-exec-5306" Id=55414 TIMED_WAITING on coldfusion.util.Waiter@459ceb6a 
   java.lang.Thread.State: TIMED_WAITING
        at java.lang.Object.wait(Native Method)
        - waiting on coldfusion.util.Waiter@459ceb6a
        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._processContent(DocumentTag.java:1769)
        at coldfusion.tagext.lang.DocumentTag.doAfterBody(DocumentTag.java:1701)
        ....

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	4110955

Reason:	PRNeedInfo

External Customer Info:
External Company:  
External Customer Name: Chris Hopkins
External Customer Email:  
External Test Config: My Hardware and Environment details:



Win Server 2008R2 Standard SP 1

IIS 7.5



CF Details



CF 11.0.07.296330

Tomcat 7.0.64.0

Java 1.8.0_66

Attachments:

Comments:

Hi Chris, Can you please tell us in what frequency do you see these errors? Also, can you also let us know the load in which you see these failures? Finally, if possible please share your logs with us so that we can debug the issue. Thanks, Kailash
Comment by Kailash Bihani
4841 | February 23, 2016 01:42:02 AM GMT
Have mailed Kailash directly with the info requested
Comment by External User
4842 | February 24, 2016 05:40:19 AM GMT
Hi Chris, We are not able to repro this issue. Can you please tell us the frequency in which you see this issue? Also, what is the load on the server, the CPU/RAM utilization and how many requests are you sending concurrently? Finally, can you share a specific test case where it always fails? Or is it not the case? Can you also share whats the content of #certificate_content# specified inside cfdocument tag.? Thanks, Kailash
Comment by Kailash Bihani
4843 | July 22, 2016 12:18:16 AM GMT
I'm also seeing this problem in Coldfusion 9. We don't use the functionality often, around once or twice a day, converting an excel spreadsheet to PDF file. The spreadsheets are the same files every time and it will work for a few days but then the requests start to hang and the cfdocument tag stops working at all (other aspects of CF carry on working fine).
Comment by External User
4844 | August 08, 2016 03:06:05 AM GMT
Hi Oliver, Can you please tell us the frequency in which you see this issue? Also, what is the load on the server, the CPU/RAM utilization and how many requests are you sending concurrently? Finally, can you share a specific test case where it always fails? Or is it not the case? Also, can you share the excel spreadsheet, and a test case where you see this failure? All these questions because this happens occasionally, and we are not able to repro this issue on our side Thanks, Kailash
Comment by Kailash Bihani
4845 | August 09, 2016 04:27:08 AM GMT
Oliver, can you share an update?
4846 | August 18, 2016 01:48:38 AM GMT
The failure would happen every 5-10 requests to convert an excel file to PDF. Server load is low under 20 concurrent users. It always fails after 5-10 requests for this process, when we turn off this process server runs fine. Sorry cannot share the excel document due to confidentiality. This has just started to happen since migrating server to Windows 7 (over XP). Win 7 is also running Open Office 4 over Open Office 3.
Comment by External User
4847 | August 18, 2016 01:59:49 AM GMT
Unable to repro the issue. Will reopen if a proper scenario is shared where we are able to see the failure.
Comment by Kailash Bihani
29562 | August 21, 2018 06:08:52 AM GMT
Hi I am seeing this error currently in two of our 4 environments. Unfortunately it's our acceptance and production environments. Dev and Test behave fine, but it might be the volume of data being generated in the PDFs I'm running CF2016 update 4 on RHEL7 java.lang.Object.wait(Native Method) - waiting on <0x17f53213> (a coldfusion.util.Waiter) coldfusion.util.Waiter.getResponse(Waiter.java:44) coldfusion.document.DocumentProcessor.processContent(DocumentProcessor.java:274) coldfusion.document.DocumentProcessor.processContent(DocumentProcessor.java:179) coldfusion.tagext.lang.DocumentTag.processContent(DocumentTag.java:1868) coldfusion.tagext.lang.DocumentTag._processContent(DocumentTag.java:1769) coldfusion.tagext.lang.DocumentTag.doAfterBody(DocumentTag.java:1701) cfservice_main_pdf2ecfm1554691382._factor16(/service/pdf/service_main_pdf.cfm:76) cfservice_main_pdf2ecfm1554691382.runPage(/service/pdf/service_main_pdf.cfm:1) After the CF instance is restarted a simple PDF generates fine. <cfdocument format="PDF"> <cfoutput> ipsum dolor sit amet #dateformat(now(), "short")# </cfoutput> </cfdocument> But if I try to generate one of the proper PDFs it times out. Then the simple PDF times out as well. Cheers, Simon
Comment by Simon Janssens
29616 | August 25, 2018 12:19:14 PM GMT
Hi Simon,   You mentioned "But if I try to generate one of the proper PDFs it times out. Then the simple PDF times out as well". Can we take a look at how this PDF is generated? If code can't be shared, can we go on a call for this? Please drop me an email at [bihani@adobe.com|mailto:bihani@adobe.com] with a suitable time and your time zone for this.   Thanks, Kailash
Comment by Kailash Bihani
29619 | August 27, 2018 04:58:46 AM GMT
Bug still exists. Found out you can reproduce if you have css that is trying to do an @import call with a relative protocol. This works: @import url('https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i'); This spins: @import url('//fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i');
Comment by Chad Haney
29789 | October 16, 2018 03:54:23 PM GMT
Hi Chad,   The shared code works for me. Both relative and absolute URL works fine for me. Is it possible to go on a call to see the actual issue? Can you email me at [bihani@adobe.com|mailto:bihani@adobe.com] so that I can setup a meeting to see the issue?   Thanks, Kailash
Comment by Kailash Bihani
29798 | October 17, 2018 11:53:21 AM GMT