coldfusion-10

Force cfmail tag to send from a specfic server IP address

耗尽温柔 提交于 2019-12-11 05:46:08
问题 Here is my server set up: Web Server: ColdFusion 10 u10 64-bit, Windows Server 2008 R2, multiple public/private IP addresses. Mail server: Is a different Windows 2008 R2 server. Keeping it simple for this question, I have two web sites (this is just theory; using private IPs in example). Site 1: 10.10.10.1 Site 2: 10.10.10.2 I'm sending mail using the cfmail tag from Site 1 (10.10.10.1), but when I look at the mail headers of the sent emails and the SMTP log on the mail server, it says that

ColdFusion 10 - CFHTTP - Random peer not authenticated on SSL calls (cacerts file updated)

徘徊边缘 提交于 2019-12-11 04:55:47
问题 We have 9 ColdFusion 10 servers running version 10,0,13,287689. We've added the correct certificates to the cacerts file for java version being using by ColdFusion. Our CFHTTP SSL calls will work correctly for a while, then suddenly they will start returning peer not authenticated. The will not work agian until the ColdFusion instance is recycled at which point they work until the fail again. There is no information in the coldfusion-out, coldfusion-error, http, or exception ColdFusion logs

How to find the nested cfoutput recordcount when using group

痞子三分冷 提交于 2019-12-11 03:36:13
问题 Consider the following: <cfoutput query="resources" group="type"> <h4>#type#</h4> <cfoutput> #name# </cfoutput> </cfoutput> resources.recordcount would give me the total number of records, but is there an elegant way of finding out the recordcount of the nested data? e.g <cfoutput query="resources" group="type"> <h4>#type# (#noofrecords# of #resources.recordcount#)</h4> <cfoutput> #name# </cfoutput> </cfoutput> I could probably do something hacky with loops, but wondered if there was a way of

Stale Java classes when using ColdFusion 10's custom Java loader

两盒软妹~` 提交于 2019-12-11 03:04:02
问题 I'm trying to use ColdFusion 10's ability to load custom Java classes and watch for changes. I have been able to successfully load Java classes but they do not get updated when they are changed and recompiled. The following is an example using both ColdFusion 10's java loading and the JavaLoader library; the JavaLoader library works, ColdFusion 10 doesn't. application.cfc <cfcomponent accessors="true" output="false" persistent="false"> <cfscript> THIS.mappings["/javaloader"] =

Setting up Session variable in Application.cfc

故事扮演 提交于 2019-12-11 03:02:52
问题 Hi I'm very new with ColdFusion 10 especially with Application.cfc. It is very confusing. I created Application.cfc and inside this cfc I created the following: My questions are: 1. Why do I get session error? (see my codes below) 2. What should I put in sessionEnd function? <!--- Application.cfc ---> <CFCOMPONENT displayname="Application" output="true"> <cfset THIS.Name = "MyTestApp" /> <cfset THIS.ApplicationTimeout = CreateTimeSpan(0,0,60,0) /> <cfset THIS.SessionManagement = true />

ColdFusion with IIS URL Rewrite - Page never finishes loading

丶灬走出姿态 提交于 2019-12-11 02:49:01
问题 I am running CF10 on IIS 7.5 with URL Rewrite module installed. All the rewrite rules work perfectly and ColdFusion is returning the correct pages. In order to get the page displayed in the browser I have to manually set the 'content-length' value in Application.cfc like this: <cfcomponent> <cffunction name="onRequestEnd"> <cfheader name="Content-Length" value="#getPageContext().getCFOutput().getBuffer().size()#" /> </cffunction> </cfcomponent> Without this code the browser does not display

java.security.AccessControlException: access denied (“java.net.SocketPermission” “localhost:10648” “listen,resolve”)

こ雲淡風輕ζ 提交于 2019-12-10 20:51:51
问题 I am calling a jar file from CF. Inside CF I have created a java class object successfully. When I am going to call my function that time, it generates the following error: java.security.AccessControlException: access denied ("java.net.SocketPermission" "localhost:10648" "listen,resolve") How can I overcome this exception? I have deployed our code in a CF 10 server. Here is my login.cfm file code: <cfsetting requesttimeout="1000000"> <!---Setting phantomJS path start---> <cfset phantompath =

how to get cfhttp.filecontent when throwonerror=true on cfhttp?

限于喜欢 提交于 2019-12-10 18:01:25
问题 I make a REST service call using cfhttp with the throwonerror attribute set to true. When I use a try/catch statement to capture the error, I can't seem to find a way to output what error the REST service call tried to return, which would reside in the cfhttp.filecontent variable. I also tried putting the result in a variable. Coldfusion keeps telling me that cfhttp and that variable dont exist. It seems like the call and its result get thrown out the door when an exception is raised. I've

Image is not displaying in cfdocument pdf for coldfusion 10

浪尽此生 提交于 2019-12-10 15:57:25
问题 I am using ColdFusion 10 Enterprise edition, and am unable to display images when using CFDOCUMENT to generate a PDF. Below is the piece of code I am using: <cfsavecontent variable="report"> <table align='center'> <cfoutput query="VARIABLES.result"> <tr> <td> <div class='addInfoDetails'>#SHOWINFO#</div> </td> </tr> </cfoutput> </table> </cfsavecontent> In the above code, the VARIABLES.result query is coming from database and SHOWINFO is a variable having the content of image and text. For

SEVERE: Error in getRealPathFromConn

梦想的初衷 提交于 2019-12-10 13:49:02
问题 Currently I am debugging a seemingly random error with our applications. I will attempt to try to provide as much detail as possible. Basically after a while, one of the application pools for an application on our server stops. I have to start it, or sometimes, restart Coldfusion or worse the machine to get things running again. The Server logs indicate the pool was stopped because of the Rapid Fail Succession thing in IIS. (The App serves X number of errors in a short amount of time so IIS