coldfusion-10

Cannot register REST services

南楼画角 提交于 2019-12-25 07:49:43
问题 I try to register a directory as a REST app in my CFIDE administrator: Error registering REST service. Please ensure that you have entered a proper mapping and path. Application servizi could not be initialized. Reason: The application does not contain any rest enabled CFCs. The application does not contain any rest enabled CFCs. My directory contains: Application.cfc component output="false" { this.name = "otticanet-rest"; this.applicationTimeout = createTimespan(0,1,0,0); this.datasource =

Issue with PUT request in ColdFusion 10

流过昼夜 提交于 2019-12-24 03:21:02
问题 While working with a API , I need to make a PUT request to a URL along with some parameters needs to be passed as POST parameter. Locally I have created 2 files calling.cfm and caller.cfm to test cfhttp with PUT request. But each time it is throwing error The request has exceeded the allowable time limit Tag: cfhttp caller.cfm <cfhttp url="http://cflocal.com/jquerySliderApp/calling.cfm" method="put"> <cfhttpparam type="header" name="Content-Type" value="application/x-www-form- urlencoded;

How can I convert scientific notation to decimal in ColdFusion?

五迷三道 提交于 2019-12-24 01:27:22
问题 I have a number that is represented in scientific notation as 1E-05. I would like to display this value, via ColdFusion, as 0.00001. How do I do that? 回答1: Also worth noting: you can pass any valid number to PrecisionEvaluate() . So, if you have a mix of scientific notation and regular numbers, you are safe to just wrap them all in PrecisionEvaluate(). Examples: PrecisionEvaluate('1E-05') // 0.00001 PrecisionEvaluate('1E-06') // 0.000001 PrecisionEvaluate('10') // 10 PrecisionEvaluate('11

Programmatic reloading of Java JARs without restarting ColdFusion

霸气de小男生 提交于 2019-12-23 20:12:49
问题 Background From ColdFusion 10 onward it is possible to include JARs from a custom location. To load custom Java libraries (or .java files) code similar to the following is added to Application.cfc this.javaSettings = {LoadPaths = [".\java_lib\",".\java\myjar.jar"], loadColdFusionClassPath = true, reloadOnChange = false} Or to pickup changes (with a default 60 second refresh time) the following is added this.javaSettings = {LoadPaths = [".\java_lib\",".\java\myjar.jar"],

Is there a difference with the HTMLEditFormat function in ColdFusion CF9 versus CF10?

我只是一个虾纸丫 提交于 2019-12-23 14:02:32
问题 I'm seeing a difference in how HTMLEditFormat works in CF9 and CF10. HTMLEditFormat(">") In CF9: showing up as ">" (no difference) In CF10: showing up as "&gt;" (double-escaped, which seems correct to me) I've looked through the CF10 notes and reviewed the HTMLEditFormat documentation, but cannot find any mention of there being a difference in how this function works. Does anyone know of a difference, or know of documentation that proves there is no difference? ...Or know of any other

ffmpeg - Can I draw an audio channel as an image?

狂风中的少年 提交于 2019-12-23 07:40:06
问题 I'm wondering if it's possible to draw an audio channel of a video or audio file as an image using ffmpeg, or if there's another tool that would do it on Win2k8 x64. I'm doing this as part of an encoding process after a user uploads a video or audio file. I'm using ColdFusion 10 to handle the upload and calling cfexecute to run ffmpeg. I need the image to look something like this (without the horizontal lines): 回答1: You can do this programmatically very easily. Study the basics of FFmpeg. I

404 Handler Hanging on ColdFusion 10, works perfect on ColdFusion 8

寵の児 提交于 2019-12-22 10:33:54
问题 I'm having an odd intermittent issue with the 404 handler pages on our ColdFusion 10 server. Here's the backstory: We have been running 2 load-balanced ColdFusion 8 servers for ages without issue. We have upgraded one of these two servers to ColdFusion 10 in order to soft-launch our ColdFusion 10 upgrade. I've installed Update 8 on the CF10 server, and have removed and re-added the connectors. Both servers are running Windows 2008 R2. I've read several forum posts stating issues with people

CFHTTP: first request fast, following slow

妖精的绣舞 提交于 2019-12-22 04:56:07
问题 I'm having a lot of trouble with CF10's CFHTTP at the moment. First, my test script: <CFSET results = arraynew(1) /> <CFLOOP from="1" to="10" index="idx"> <CFSET timer_start = getTickCount() /> <CFHTTP url="https://www.google.de" method="get" result="test" /> <CFSET arrayappend(results, (getTickCount()-timer_start)/1000 & " s") /> </CFLOOP> <CFDUMP var="#results#" /> 10 CFHTTP calls in a row, the time they take gets pushed to an array; that's all. Results of our CF9 server: Results of our

ColdFusion 10: Handling and Logging Errors With New REST API

故事扮演 提交于 2019-12-21 22:32:55
问题 I'm using ColdFusion 10's new REST API: http://www.adobe.com/devnet/coldfusion/articles/restful-web-services.html Whenever there's an exception, the API handles it nicely and automatically returns something like this: HTTP/1.1 500 Internal Server Error Content-Length: 52 Content-Type: application/json Date: Fri, 22 Feb 2013 01:07:49 GMT {"Message":"Element FOO is undefined in ARGUMENTS."} The problem is that neither of the following gets called: Site-wide Error Handler Application.cfc's

ColdFusion 8 to ColdFusion 10 Migration: CFloginUser Not Working As Expected

▼魔方 西西 提交于 2019-12-21 21:29:38
问题 After upgrading from CF8 to CF10, moving all files and databases and jumping through all the configuration hoops, the new version of the site is up and running, but the authentication/login is not working. Here are the environments: Old server: ColdFusion Enterprise 8,0,1,195765 Operating System: Windows Vista* OS Version: 6.0 Update Level: .... hf801-00007.jar IIS Version: 7 (*not sure where that "Vista" comes from? The System Information says "Windows Server 2008 Datacenter without Hyper-V"