The official community for ColdFusion.
Recently active
I am looking for this specific install.Where can i download it?
Hi,please help, i can't figure out The variables.compID is numeric but with this code below, i have an error: "the CompID argument passed to the getItem function is not type numeric". I then change it to <cfargument name="compID" type="any" required="yes" > for testing and then got the diffrent error: The Element compID is undefined in argumentsCan any one tell me why? thanks<!---cfm---><cfset variables.compID = request.state.compID /><cfinput type="text" name="name" size="30" id="name" value="" autosuggest="cfc:cfc.query.getItem({cfautosuggestvalue},{variables.compID})"/><!---cfc---><cffunction name="getItem" access="remote" returntype="Array" > <cfargument name="search" type="any" required="false"/> <cfargument name="compID" type="numeric" required="yes" > <cfdump var="#arguments.compID#" > <!--- Define variables ---> <cfset var qItem=""> 
In a function is it better to define 4 arguements of type string, or one single arguement of type struct that contains these values?
Am I setting the property wrong?teams.cfccomponent peristent = true { ... property name = 'emails' fieldtype='one-to-many' cfc = 'emails' fkcolumn = 'team' type = 'array' singularname = 'email' inverse = 'true' fetchtype = 'lazy' lazy = 'extra'; ...}emails.cfccomponent persistent = true { ... property name = 'team' fieldtype = 'many-to-one' cfc = 'teams' lazy = true; ...}If I try entityload('teams'), all emails are loaded too - I do not want this. If I try it the other way around, entityload('emails'), the team is loaded. I only want it to show up when I explicity call it.Whether it's set to true, extra, or false -- nothing changes. ormreload() is being used at the beginning of each request.Any ideas?
After my laptop froze yesterday I rebooted, and now the ColdFusion 9 Application Server service starts and restarts endlessly! Although it's set to start automatically, upon bootup it does not start. So I start it manually. Then I look at the Windows Event Viewer which reports: "The ColdFusion 9 Application Server service for the "coldfusion" server was started. PID is 5788". That's good. But then, about 9 seconds later, Event Viewer reports:"The ColdFusion 9 Application Server service for the "coldfusion" server is restarting." 16 seconds later, the Event Viewer reports that the service has, in fact, started again. And 9 seconds after that, it reports that the service is starting again.Unless I manually stop the service, this cycle continues, with the CF service restarting itself every 25 seconds, give or take a second. Needless to say, I can't use ColdFusion. When I try to reach a page, I get error 500: "There is no web appl
Hi AllI'd thought id share some of the pain ive been having with installing CF10. We have a pretty big install environment and during our CF10 migration project we have had to install- a dev VM on CentOS- 3 UAT boxes on Solaris 10 (Sparc)- 4 staging/Prod boxes on Solaris 10 (Sparc)all up that's 8 installs of CF10 and almost 20 instances of CF across all the applications. I have to say I'm really disappointed. This is the first big update ive done on Unix, in the past ColdFusion v4-v9 I have worked on Windows servers. Some of my main greifs have included this time around:- You must apply the mandatory update after you installhttp://helpx.adobe.com/coldfusion/kb/coldfusion-10-mandatory-update.html- you then must update to the latest patch - update 11. Except on Solaris I have found it wont do work via CFIDE. You have to use the command line. (CFIDE is broken)- CFIDE is horribly broken, we cannot use the 'settings' page at all. Everything must be edited via neo-*.xml fileshttp://helpx.ado
I have a page that first generates a PDF using cfdocument:<cfdocument name="doc1" format="PDF" marginbottom="1" >After this, I am merging this with other PDF files:<cfpdf action="merge" name="outputpdf"> <cfpdfparam source="doc1"> <cfpdfparam source="#absolutemaindir#\patdocs\#fname#"></cfpdf>I am then optimizing the result:<cfpdf action="optimize" source="outputpdf" pages="*" algo="Nearest_Neighbour" name="optimized" nobookmarks nothumbnails nometadata nofonts>Then finally, I am either outputing this to the screen:<cfcontent type="application/pdf" variable="#tobinary(optimized)#" >or I am protecting the result:<cfpdf encrypt="AES_128" action="protect" password="#oldpw#" source="optimized" newuserpassword="#newpw#" permissions="allowprinting">Randomly, I am getting
Hi All,I have couple days trying to configure this new MAC with FB 4.7 and ColdFusion 10.Alex was helping me to debug this issue but I still cannot figure this out, sorry no an expert in MAC or apache.http://apache-flex-users.2333346.n4.nabble.com/Flex-amp-CF-on-MAC-OSX-10-8-4-td2614.htmlHere is the way I configured the CF in MAC:http://iknowkungfoo.com/blog/index.cfm/2013/2/27/Installing-ColdFusion -10-on-OSX-108-Mountain-LionSo my web server is:[ localhost:cfusion ] Apache : /private/etc/apache2 The article said that I can use "/Users/myUserName/Sites" as my web root, or not? I am confuse.I am trying to configure my project for Flash Builder4.7, in windows for CF9 and IIS i set:ColdFusion root folder: c:/ColdFusion9Web root: c:/inetpub/wwwrootRoot URL: http://localhost/Output folder: c:/inetpub/wwwroot/myTest-debugSo far I figure this in MACColdFusion root folder: /Applications/ColdFusion10/cfusionWeb root: ???Root URL: http://localhost/Output folder: This should be the same as the w
Hi,Can someone please tell me how to configure the logging options in ColdFusion 10? In particular, we have a lot of WARN and INFO errors in our coldfusion-error.log and coldfusion-out.log files. These errors are not fixable, and we would rather not log them as they are not critical. The issue is that the logs grow massively and are not wanted.How can we control the level of logging in ColdFusion 10? There is no information anywhere on this subject, either on the web generally or on Adobe's own website.Advice appreciated.Thanks,Mark
Here are the environments:OLD SERVERServer Product: ColdFusionVersion: 8,0,1,195765 Edition: Enterprise 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")NEW SERVERServer Product: ColdFusion Version: 10,0,11,285437 Tomcat Version: 7.0.23.0 Edition: Enterprise Operating System: Windows Server 2008 R2 OS Version: 6.1 Update Level: .... chf10000011.jar Adobe Driver Version: 4.1 (Build 0001) IIS Version: 7.5Here is the problem:Moved all files and database to NEW SERVER, configured datasource, etc. Configured IIS, set up a testing domain for the NEW SERVER. After jumping through the new ColdFusion hoops (wsconfig.exe, etc), got the new version of the site up and running. However, authentication/login is not working.I have a pretty standard Coldfusion login, using cfloginuser in the Application.cfc
I'm troubleshooting a problem a client is having with their migration from CF9 to CF10. A webservice call that previously worked, no longer is working. When I call it from my CF10 server, I get this error: C:...\cfusion\stubs\WS-853189522_2...\service.java:10: class, interface, or enum expected package ...;The ellipses are to replace proprietary files paths and names.When I add the cfinvoke attributes wsversion and refreshwsdl, I get a "Unable to read WSDL from URL: .../service.asmx?WSDL" error instead of the above error. I also changed the default ws version from 2 to 1 in the CF Administrator, with no change. Are there any other known issues with CF10 that would interfere with a webservice call that worked in an earlier version?
We have had a lot of issues with CF10 running on our server.We've gotten to the point that we've killed off our old VM Server and have replaced it with a new one.Everything was going okay but last night in the middle of the night the server crashed. My guess is that it has something to do with a nightly task but in reality I don't know that. I've got the error that caused it if anyone can point me in the right directionSep 9, 2013 6:06:43 PM org.apache.catalina.core.StandardWrapperValve invokeSEVERE: Servlet.service() for servlet [CfmServlet] in context with path [/] threw exceptioncoldfusion.monitor.event.MonitoringServletFilter$StopThreadException: The request has been canceled by the administrator or by the server. at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:65) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
What exactly does this setting do in the CF admin configuration under the "Logging Settings" section? "Use operating system logging facilities "
I've been trying to figure out exactly why this tag has been consistently failing on one of my two production boxes for 3 weeks, with very limited success.On system one, it works fine, and generates the following for a standard PDF:<?xml version="1.0" encoding="UTF-8"?><xfdf xmlns="http://ns.adobe.com/xfdf/" xml:space="preserve"> <fields> <field name="HIGH SCHOOL DIPLOMA"/> ...fields deleted for brevity... <field name="Print"/> </fields> <ids original="6F185C876244254CBA5693F8CDC7D0AA" modified="25576F3D95DBC54B87BDFC8CCAAE408D"/></xfdf>On system two, however, the XML generated looks a little different:<?xml version="1.0" encoding="UTF-8"?><xfdf xml:xml:space="preserve"> &l
This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusionBuilder/2.0/Using/WS0ef8c004658c1089-2cf13501121af8ece2c-7fe8.html
I have a check box on the form and want to pass it check or not to my cfstoredproc.I tried to use followign code I got invalid data error message, I tried to use cf_sql_bit, cf_sql_int, but I always get error message,My stored procedure expect bit data type, but I can change what ever the check box value is for database server stored procedure.Your help and information is great appreciated,Regards,Iccsi,<cfstoredproc procedure="MySP"><cfprocparam value="form.MyCheckBox" cfsqltype="cf_sql_tinyint"><cfprocresult name="SP1" resultset="1"></cfstoredproc><cfinput type="checkbox" name="MyCheckBox" value="MyCheckBox" id="MyCheckBox">
Hello,I'm in the middle of a project that is using AJAX and remote CFC's to allow data from the client side to interact with the server. This is an add-on for an existing application and am having a bit of difficulty figuring out the best way to secure a remote CFC. My jQuery makes the call to the CFC and returns the data as expected, but anyone can call the CFC directly with the right parameters and have the data returned.I had tried a scenario where the CFC queries my the authentication log in my database and checks for a current login based on a user ID, however I've figured out the hard way that you can't nest a second query inside of a single function. Here's my code:<cffunction name="getSubCategoryAID" access="remote" returntype="query" returnformat="JSON" > <cfargument name="userID" type="numeric" required="true"> <cfque
I need to let user enter the new value does not exist in the list and add a new record for the user using CFSELECT.Does CFSELECT have the option to let user to enter a data not in the list?Your help and information is great appreciated,regards,Iccsi,
I have a CFSELECT like following and I need sometime sort by MyCode and sometime sort by MyNamelike following code<cfif (isDefined("form.MyID") AND form.MyID EQ MySP.MyID)>selected="selected"</cfif>>#MySP.MyCode# - #MySP.MyName#</option>or<cfif (isDefined("form.MyID") AND form.MyID EQ MySP.MyID)>selected="selected"</cfif>>#MySP.MyName# - #MySP.MyName#</option>I need switch MyName and MyCode and change sort order at run time.Are there any place I can use CFIF to compare the condition to change?Your help and information is great appreciated,regards,Iccsi, <cfselect name="MyList" id="myList" > <option value=""> </option> <cfoutput query="MySP"> <option value="#MySP.MyID#" <cfif (isDefined("form.MyID") AND form.MyID EQ MySP.MyID)>selected="selected"</cfif>>#MySP.MyCode# - #MySP.MyName#</optio
I have deployed two test sites, using Adobe's own example code for application based user security, copied in its entirety from the Adobe website. One test site is in ColdFusion 8, one is ColdFusion 10. The code and databases are identical on both sites. I added cfdump output to monitor session variables and login status as they are set.Test Site ColdFusion 8: http://cf8loginadobe.cimhost.com/securitytest.cfmTest Site ColdFusion 10: http://cf10loginadobe.cimhost.com/securitytest.cfmLogging in using a user of "Bob" and password of "secret" demonstrates the failure in CF10. Initially it appears login was successful, but note that the cfdump of the session does not show a cfauthorization_orders value in CF10, where in CF8 the value is present.In CF8 subsequent visits to the same URL after login correctly retain the logged in user status and do not present the login form. In CF10, no session was actually created for the user, and therefore subsequent visits to the same URL prompt for login
This code excutes on Coldfusion 10... However, Why does it not excute on Coldfusion 8.The line in red is where it fails.<cfscript>if (IsDefined("FORM.fName") AND IsDefined("FORM.lName") AND IsDefined("FORM.email") AND IsDefined("FORM.lms") AND IsDefined("FORM.updated_lms")) {if (FORM.fName NEQ "" AND FORM.lName NEQ "" AND FORM.email NEQ "" AND FORM.lms NEQ "" AND FORM.updated_lms NEQ "") {if (IsNumeric(FORM.lms) AND IsNumeric(FORM.updated_lms)) { //If LMS Numbers are EQUAL THEN UPDATE OTHERWISE check to see if new LMS Number exists IF NOT THEN UPDATE if (FORM.lms EQ FORM.updated_lms) { try { runquery = updateTraineeUser(); } catch(any excpt) { WriteOutput("<p class=""error"">The application was unable to perform a required o
I want to user to upload attachement to my upload directory like followingC:\inetpub\wwwroot\MySite\Test\uploadFile<cfset strPath = ExpandPath( "./" ) /> <cfset strPath = GetDirectoryFromPath(GetCurrentTemplatePath()) /><cfoutput> #strPath#</cfoutput>I use above code which gives me the following path.C:\inetpub\wwwroot\MySite\Test\Are there any way to add \uploadFile to the return path?Your help and information is great appreciated,regards,Iccsi,
Hi there,I need to pass the companyId into the cfc but i keep gettting an error, does any know?- thanksYou cannot specify more arguments to a CFC function than it declares. Error parsing bind cfc:cfc.query.getCustName({cfautosuggestvalue},{request.compERP.compID}) .cfm<cfinput type="text" name="cust_name" id="cust_name" size="50" autosuggest="cfc:cfc.query.getCustName({cfautosuggestvalue},compID=request.defaultcompId.compID})" > .cfc<cffunction name="getCustName" access="remote" returntype="array"> <cfargument name="search" type="any" required="yes" default="" /> <cfargument name="CompID" type="numeric" required="yes" /> <!--- Define variables ---> <cfset var qCust=""> <cfset var result=ArrayNew(1)> <cfquery name="qCust" datasource="devlivery" > select cust_name from customer WHERE lower(cust_name) LIKE lower('#ARGUMENTS.search#%')
I need to get a java.util.Calendar object for a webservice.Using CreateObject("java", "coldfusion.util.DateUtils").getCalendar(Now()) works fantastic, except I have to allow access to internal ColdFusion Java components, which I'd prefer not to do.Is there an easy alternative?
Hi,I installed CF10 on mac using this link:http://iknowkungfoo.com/blog/index.cfm/2013/2/27/Installing-ColdFusion-10-on-OSX-108-Mountain-LionThe CF server is working.I was fine until the step 8 on OSX Sites. I can see fine the file from the step 7 "http://localhost/~username/index.htm", means that apache also is working fine.Why I cannot see the current time from "http://localhost/~username/index.cfm"? I only see the content of the file <cfoutput>#now()#</cfoutput>Any ideas how to fix or test this?I will install flash builder 4.7 after to work with CF10.Thanks
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.