coldfusion

The request has exceeded the allowable time limit Tag: cfhttp

你。 提交于 2019-12-12 11:09:25
问题 I am facing this issue on a daily basis. I am having an application which Catches the huge data from various applications in the nightly schedule jobs through a cfhhtp call/request. The problem here is that it calls the 'extensive list of scopes' to catch the data, and unfortunately we cannot limit the scopes :( The timeout set in the Task is 9000 seconds(which already is quite high), but still it says timeout at cfhttp tag "The request has exceeded the allowable time limit Tag: cfhttp". I

Generating an image from HTML with ColdFusion

我与影子孤独终老i 提交于 2019-12-12 11:02:23
问题 I have a ColdFusion page with a styled HTML table in it. What I would like to be able to do is set up a feature that allows our customers to save the table as an image file, for use in their slide shows. I have read some of the documentation for cfcontent however, I am beginning to get the feeling that I will need a third party library. I was hoping someone could shed some light on this. 回答1: You could render your html table to a static page, then call http://code.google.com/p/wkhtmltopdf/

How to set debug output query name using queryExecute

最后都变了- 提交于 2019-12-12 10:59:09
问题 I'd like to find out if there is a way to set the debug output query name using queryExecute(). <cfscript> qryTest = queryExecute('SELECT * FROM art', {}, {datasource="cfartgallery"}); writeDump(var="#qryTest#"); </cfscript> Generates debug output like this: UPDATE for CF 11u5, the debug output replaces "_queryname_var0" with "ExecuteQuery". It looks like this variable name is safe from being over-written. 回答1: I'm posting this as an answer so I can maybe get some points. ;) It is a bug, pure

Coldfusion sessions - how exactly is CF identifying a connection / unique client

前提是你 提交于 2019-12-12 10:58:14
问题 Coldfusion sessions - how exactly is CF identifying a connection / unique client After doing some digging with remote CFCs I called from Word VBA I found they set sessions also. Which got me to thinking and Googling (unsuccessfully) for an explanation of just how CF does distinguish between different clients. I had previously assumed it was a browser cookie being set to identify the client, but then here I was consuming a web service through a word app and still getting the session variables

Anyone have issues going from ColdFusion's serializeJSON method to PHP's json_decode?

吃可爱长大的小学妹 提交于 2019-12-12 10:56:38
问题 The Interwebs are no help on this one. We're encoding data in ColdFusion using serializeJSON and trying to decode it in PHP using json_decode . Most of the time, this is working fine, but in some cases, json_decode returns NULL . We've looked for the obvious culprits, but serializeJSON seems to be formatting things as expected. What else could be the problem? UPDATE: A couple of people (wisely) asked me to post the output that is causing the problem. I would, except we just discovered that

Programmatically reading a Microsoft Word document

折月煮酒 提交于 2019-12-12 10:51:42
问题 I have my students submit their Microsoft Word assignments to a ColdFusion 10 server. I'd like to write an error checker to check for common mistakes like not having a page number in the header, the name of the school on the title page, their name on the title page, etc. I specify a lot of APA rules. Example: The phrase "Running head:" must be in the header section of page 1 but not the rest of the paper. I assign a point value to each rule. Ideally, this error checker would run when they

How to configure the ColdFusion Eclipse debugger

孤街醉人 提交于 2019-12-12 10:49:52
问题 I'm running the ColdFusion Builder 3 (Express edition) to connect to a locally running ColdFusion 9 server (windows machine). When I set up the RDS configuration on the CF Builder and click on Test Connection everything is ok. But when I click on Test Debugger I get the following error: Could not initialize class coldfusion.log.CFLogs Is this a problem with CF Builder 3 trying to access the CF 9 server? 回答1: According to this Adobe forum post they resolved the same issue by changing the port

WCF and ColdFusion

空扰寡人 提交于 2019-12-12 10:47:36
问题 I have a WCF WebService I would like to consume using ColdFusion. The regular process is to use CFHTTP to the WSDL with the SOAP request in the body. Normally, this works and everything is working fine. <cfsavecontent variable="xmlBody" > <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:tem="http://tempuri.org/"> <soap:Header/> <soap:Body> <tem:GetVersion/> </soap:Body> </soap:Envelope> </cfsavecontent> <cfhttp url="https://www.example.com/OtherService.svc?wsdl"

Uploading a file with cfhttp appends a newline (even on binary files)

纵然是瞬间 提交于 2019-12-12 10:46:59
问题 Update : I've found a workaround. If I submit a dummy form field along with the file, it works. Is this a ColdFusion bug, or is there something in the HTTP spec that says forms must contain at least one non-file form field? Update 2 : I'm convinced this is a ColdFusion cfhttp bug. This is based on Leigh's answer and the fact that I used the code below to submit a form with only the file element using javascript, and it works fine: <form enctype="multipart/form-data" action="<cfoutput>#CGI

inventory system: transaction-based or store quantity, update with trigger?

白昼怎懂夜的黑 提交于 2019-12-12 10:07:32
问题 How would you design the data model for an inventory management system in RDBMS? Would you: store each purchase & usage, and uses SUM() and GROUP BY to calculate the warehouse quantity on-the-fly? same as 1, but consolidate the quantity daily, and use the value of the previous day? quantity as an Int field, update through application layer? same as 3, but make use of DB trigger? Transaction-based inventory system seems to be superior in terms of level of details it captures, but it is harder