coldfusion-9

Server and JRE are set to TLS 1.2 but Coldfusion 9 still trying to use TLS 1.0

回眸只為那壹抹淺笑 提交于 2019-12-11 16:09:54
问题 I'm not 100% sure what's going on however we have a Coldfusion 9 server that connects to a web service. the web service has made the changes to only allow connections via TLS 1.2. We thought we were ok because we set the server to only use TLS 1.2 and we set the JRE (1.7) to use tls 1.2. However in the Coldfusion Administrator -> Web services when I try to refresh the web service connection it still tries to connect via TLS 1.0 (confirmed using wireshark). Anyone that is well versed in

$Ajax - getting coldfusion error “ ColdFusion was unable to add the text you specified to the output stream.”

Deadly 提交于 2019-12-11 13:43:29
问题 I'm stopped on a couple of pages because of this error. I'm not sure why my cfc method is returning anything to the output stream. It's the success function that is returning the error message. The database is being updated correctly. function onSelectChange(){ var selected = $("#MrMrsSelect option:selected"); if(selected.val() != 0){ //alert("You Selected " + selected.text() + "for " + SelectedInvid); $.ajax({ type: "POST", url: "cfc/basic.cfc?method=FixMrMrs", data: "indivNum=" +

Coldfusion error handling

老子叫甜甜 提交于 2019-12-11 11:46:54
问题 I am trying to create some custom error pages that email our developers that there has been an 404 or 500 error in coldfusion. Also it would be helpful if within the email it gives the error variables. I have set up a error page in coldfusion and have pointed IIS(7) at it. Also in my application.cfm file I am declaring the following: <cferror type="exception" template="#name#"> <cferror type="request" template="#name#"> <cferror type="validation" template="#name#"> <cferror type="monitor"

Upload File in Object

别等时光非礼了梦想. 提交于 2019-12-11 11:46:37
问题 What am I doing wrong? fileUpload.cfm <cfcomponent name="fileAttachment" hint="This is the File Attachment Object"> <cffunction name="uploadFile" access="public" output="no" returntype="string"> <cfargument name="fileToUpload" type="string" required="no"> <cfargument name="pDsn" required="no" type="string"> <cfset var cffile = ""> <cffile action="upload" destination="D:\apache\htdocs\abc\uploads" filefield="#ARGUMENTS.fileToUpload#" nameconflict="makeunique"> <cfreturn cffile.clientFile /> <

Solr: change default value of MaxFieldLength in <mainIndex>

∥☆過路亽.° 提交于 2019-12-11 10:32:40
问题 Is there a way to change the default <mainIndex><maxFieldLength> value in the solarconfig.xml file, so that when a Solr collection is created ALL collections will use the new value? The default value of 10000 is okay for most applications, but most of the PDFs I am working with are over 100 pages. The client is concerned that the search results do not return EVERY PDF containing the given keywords. Correct me if I'm wrong, but I'm pretty sure that the maxFieldLength is limiting the indexing

How to resolve deadlock issue in ColdFusion 9: coldfusion.util.AbstractCache$Lock

梦想与她 提交于 2019-12-11 06:43:17
问题 I have been attempting to resolve an issue where the execution of certain scripts causes a deadlock, putting all subsequent requests into limbo, using up 99.9% of the CPU, and eventually effectively crashing the server. Here is an example stack trace for one of the requests which has been put in limbo (waiting eternally): Thread Stack Trace Trace Time: 21:00:44.463 06-Jun-2012 Request ID: 6131 Script Name: http://www.example.com/allreviews.cfm Started: 21:00:21.225 06-Jun-2012 Exec Time:

Coldfusion SerializeJSON and deSerializeJSON is converting a string to number

江枫思渺然 提交于 2019-12-11 06:39:37
问题 ColdFusion is converting a string to number when passing to JS via a SerializeJSON and deSerializeJSON. This is only happening when an 'E' is used between two set of numbers. like 3E6, 65E3, 56e45 etc. This is the code inside cfscript. x = "2e9"; writedump(SerializeJSON(x)); writedump(deSerializeJSON(SerializeJSON(x))); Output: 2.0E9 2000000000 Please suggest, if is there any other way for such issues. 回答1: It is this: https://bugbase.adobe.com/index.cfm?event=bug&id=3695627: "SerializeJSON

A timeout occur while attempting to local fusebox

情到浓时终转凉″ 提交于 2019-12-11 04:55:31
问题 I have a fusebox application setup on coldfusion 9 and it is in production mode. When application got started, it is giving me following error. A timeout occur while attempting to local fusebox. I have increased the timeout but that not help. Also tried other solution but nothing help. There is one more thing. When i increased the JVM heap size from 1-2 gb to 2-3 gb. Then after restart of coldfusion service, Error remain for 1-2 hour and then site start working. It also stop working after

How do I render pages with “file” extensions like xml, json, csv, etc. in CFWheels with the file type in the URL?

[亡魂溺海] 提交于 2019-12-10 21:52:00
问题 I can't seem to figure out how to create pages in CFWheels with clean URLs that contain "file" extensions. I'd like to be able to do the following: http://www.example.com/products.xml http://www.example.com/products.json As apposed to this: http://www.example.com/products?format=xml http://www.example.com/products?format=json I've read through these docs but am still unclear about the actual implementation. Lets say I have a controller ( /controllers/Product.cfc ) that looks something like

Why writedump function doesn't require semicolon in cfscript?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 21:25:03
问题 Normally all statement written in CFSCRIPT tag must end with semicolor (;) but today I was working with sample code where I forgot to write semicolon (;) after writedump() function but still code execute fine. Se below sample code and this work fine with ; at the end of statement. Just curios to know why writeDump work without semicolon. I am working with Coldfusion version 9,0,1,274733. <cfscript> a = "Hello"; b = "World"; concat(a,b); writeDump(a & b) writeOutput(a); </cfscript> <cffunction