Re: cfdocument on cf8 and unix/linux
Dave Phillips wrote: This looks familiar. Can you try the following code: cfsetting requesttimeout=60 cfdocument format=PDF This my test PDF. /cfdocument Then check whether it times out after 30 or 60 seconds. Also, what is I tried this. Interestingly enough, it timed out after 30 seconds, not 60 as I would have expected. I have seen something like that before with 7.02. If you restart the instance and you are unlucky it will work for a number of reports that is equal to the maximum number of threads, and if you are lucky it will continue to work until the next restart. I never tested it with CF 8 and never experienced it with CF 8.0.1 beta or final. the behaviour if you increase the maximum number of simultaneous threads by 2 and then run this code 3 times? Have to get assistance from someone else tomorrow on this as I don't have admin access. If your issue is the same as mine the first 2 runs of the code will work and the third will timeout. To get this working: restart. To get this fixed: get a stack trace, call Adobe. Jochem ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303170 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfdocument on cf8 and unix/linux
To everyont that has helped so far, I have used the following code to test my problem. I can be sure now that it is NOT permissions. See below. mytest.txt is created successfully, but the cfdocument tag times out after 30 seconds (the timeout set in cfadmin). cfset sStuff = This is some stuff. cffile action=write file=#expandPath('tempfiles/')#mytest.txt output=#sStuff# cfset sReportNameAndPath = expandPath('tempfiles/') 'mytest.pdf' cfdocument format=PDF filename=#sReportNameAndPath# This my test PDF. /cfdocument I'm going to see if we can get a stack trace today, but it's going to be difficult due to our infrastructure setup. Any other ideas would be helpful. Oh, by the way, I did find something odd in the exception.log at the same time as my timeout. Here's the info on that: Error,WebContainer : 1,04/10/08,08:31:39,, coldfusion.document.DocumentProcessor$TimeOutException at coldfusion.document.DocumentProcessor.processContent(DocumentProcessor.java:251) at coldfusion.document.DocumentProcessor.processContent(DocumentProcessor.java:155) at coldfusion.tagext.lang.DocumentTag.processContent(DocumentTag.java:1476) at coldfusion.tagext.lang.DocumentTag._processContent(DocumentTag.java:1396) at coldfusion.tagext.lang.DocumentTag.doAfterBody(DocumentTag.java:1354) at cftest2ecfm625691459.runPage(/was_d68i/WebSphere/AppServer/profiles/was_d68i/installedApps/tfl0663bNode04Cell/Adobe_ColdFusion_8.ear/cfusion.war/Support/AcctTeamRpt/test.cfm:4) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:192) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:366) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:279) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:86) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70) at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:74) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.CfmServlet.service(CfmServlet.java:175) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1068) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1009) at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190) at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130) at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87) at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:771) at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:679) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:539) at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478) at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744) at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1455) at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:115) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:263) at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214) at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113) at
Re: cfdocument on cf8 and unix/linux
Dave Phillips wrote: I'm going to see if we can get a stack trace today, but it's going to be difficult due to our infrastructure setup. If you have the administrator password you can get a snapshot through the Admin API or through the server monitor. Oh, by the way, I did find something odd in the exception.log at the same time as my timeout. Here's the info on that: Error,WebContainer : 1,04/10/08,08:31:39,, coldfusion.document.DocumentProcessor$TimeOutException at coldfusion.document.DocumentProcessor.processContent(DocumentProcessor.java:251) This looks familiar. Can you try the following code: cfsetting requesttimeout=60 cfdocument format=PDF This my test PDF. /cfdocument Then check whether it times out after 30 or 60 seconds. Also, what is the behaviour if you increase the maximum number of simultaneous threads by 2 and then run this code 3 times? Jochem ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303101 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfdocument on cf8 and unix/linux
If you have the administrator password you can get a snapshot through the Admin API or through the server monitor. Have to get assistance from someone else tomorrow on this as I don't have admin access. This looks familiar. Can you try the following code: cfsetting requesttimeout=60 cfdocument format=PDF This my test PDF. /cfdocument Then check whether it times out after 30 or 60 seconds. Also, what is I tried this. Interestingly enough, it timed out after 30 seconds, not 60 as I would have expected. the behaviour if you increase the maximum number of simultaneous threads by 2 and then run this code 3 times? Have to get assistance from someone else tomorrow on this as I don't have admin access. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303144 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfdocument on cf8 and unix/linux
The problem here is most likely permissions. Check to see that whatever user you're running ColdFusion as has write permissions to the tempfiles/ directory you indicate in your code. Usually your CF server will be running as nobody or apache, but it's specific to how it was installed on your system. Check with the person who installed it if you're unsure. Selecting the user to run as is part of the installation process. Jordan - thanks for your help. Unfortunately, this isn't it, however. We confirmed which user ColdFusion was running under and gave that user write permission to the tempfiles/ directory. That didn't help any. Then, we gave ALL access to EVERYONE (drwxrwxrwx). Do you (or anyone else) have any other ideas why this might be happening? Thanks! Dave ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303007 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfdocument on cf8 and unix/linux
Dave Phillips wrote: Do you (or anyone else) have any other ideas why this might be happening? Get a stacktrace and see what it is doing. Jochem ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303013 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfdocument on cf8 and unix/linux
Yeah, a stack trace would certainly give you better detail. How about parent directories? If the CF user cannot enter one of the parent directories, then it won't be able to write to a sub-directory no matter what the permissions on the subdirectory are. A good way to test this would be to have CF write to the /tmp directory (a directory that everyone can write to), instead of the directory you're using now. If CF can create the file there, then it's almost certainly a permissions issue. If it cannot, then the problem is somewhere else. Hope this helps! Warm regards, Jordan Michaels Vivio Technologies http://www.viviotech.net/ Open BlueDragon Steering Committee Adobe Solution Provider Jochem van Dieten wrote: Dave Phillips wrote: Do you (or anyone else) have any other ideas why this might be happening? Get a stacktrace and see what it is doing. Jochem ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303055 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
cfdocument on cf8 and unix/linux
Hi all, My app just got moved to a Linux/Unix box and as a result, now my cfdocument has stopped working properly. Basically, I have output that is saved to a variable with cfsavecontent and then it is displayed to the screen. However, if the user so chooses, they can have the output sent to a PDF instead. I have the code below to force the page to load as a PDF instead. Please be aware, this worked just fine in Windows environment, the only thing changed is that the app has been moved to unix/linux. What happens now is that the request just simply times out (on the cfoutput#sReportContent#/cfoutput line). Any ideas? Dave cfdocument format=pdf filename=#expandPath('tempfiles/' sReportName '.pdf')# overwrite=true orientation=landscape scale=100 pagewidth=10.5 pageheight=8 margintop=.25 marginbottom=.25 marginleft=.25 marginright=.25 html head LINK REL=StyleSheet HREF=assets/styles/global.css TYPE=text/css !--- adding this style below will keep the PDF from generating an extra blank page --- style body, html { height: auto; } /style /head body cfoutput#sReportContent#/cfoutput /body /html /cfdocument ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302852 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfdocument on cf8 and unix/linux
The problem here is most likely permissions. Check to see that whatever user you're running ColdFusion as has write permissions to the tempfiles/ directory you indicate in your code. Usually your CF server will be running as nobody or apache, but it's specific to how it was installed on your system. Check with the person who installed it if you're unsure. Selecting the user to run as is part of the installation process. File permissions are one of the common trip-ups of folks who are moving from a windows environment to a Linux environment. Case-Sensitivity is another. Hope this helps. Warm regards, Jordan Michaels Vivio Technologies http://www.viviotech.net/ Open BlueDragon Steering Committee Adobe Solution Provider Dave Phillips wrote: Hi all, My app just got moved to a Linux/Unix box and as a result, now my cfdocument has stopped working properly. Basically, I have output that is saved to a variable with cfsavecontent and then it is displayed to the screen. However, if the user so chooses, they can have the output sent to a PDF instead. I have the code below to force the page to load as a PDF instead. Please be aware, this worked just fine in Windows environment, the only thing changed is that the app has been moved to unix/linux. What happens now is that the request just simply times out (on the cfoutput#sReportContent#/cfoutput line). Any ideas? Dave cfdocument format=pdf filename=#expandPath('tempfiles/' sReportName '.pdf')# overwrite=true orientation=landscape scale=100 pagewidth=10.5 pageheight=8 margintop=.25 marginbottom=.25 marginleft=.25 marginright=.25 html head LINK REL=StyleSheet HREF=assets/styles/global.css TYPE=text/css !--- adding this style below will keep the PDF from generating an extra blank page --- style body, html { height: auto; } /style /head body cfoutput#sReportContent#/cfoutput /body /html /cfdocument ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302879 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4