The official community for ColdFusion.
Recently active
I am having trouble referencing a CFC.I have this in Application.cfc:<cfset request.components = getDirectoryFromPath(getCurrentTemplatePath()) & "cfc" />The cfcs are in the subdirectory wwwroot/cfcI am trying to reference like this:<cfinvokecomponent="#request.components#.qry-todatabase"method="qry_taxologyhierarchylistfornav"returnvariable="qry_taxologyhierarchylistfornav"taxologykey="#arguments.taxologykey#">I hope you don't mind. No worries if you can't help.Here is what I was looking at:http://www.sitepoint.com/forums/showthread.php?695772-Invoking-CF-component-without-mapping
Any ideas about what could be crashing CF 10 standard repeatedly? My box is a virtualized Windows Server 64bit 2008 R2, Apache 2.2, 8GB RAM. I've tried increasing the JVM memory settings, using the latest JVM externally, cleaning up code and slower queries, and rebuilding the web connector. Restarting the CF service fixes things until the next crash. When CF is unresponsive, Apache is serving static pages just fine; FusionReactor, shows normal JVM heap memory and CPU isn't maxed and has no active requests running; MySQL doesn't show a bunch of slow queries. The CF exception logs don't show anything amiss until a restart when I get a warning about a possible memory leak. This has been very frustrating because it just stops working at random intervals.Two months ago, I posted this with no replies:Still having this problem too and it's driving me nuts. I don't know what changed, because CF10 was working fine for a while. Now Coldfusion stops responding
Hitting command+t displays the shortcut list but hitting a key does not fire off the shortcut. Clicking the shortcut works but not via the keyboard.
I hav bought and installed CF Builder 3. I can not get Code Assist to work. Anybody have the same problem? Solution?
We are getting intermittent blank screen on an iis 7.5 website with ColdFusion 10.There was no error on IIS and Cold fusion. Whenever this issue happens , we need to restart/recycle application pool or restart cold fusion services Any ideas on what could be causing the blank white screen. Is this issue with IIS or ColdFusion ? Is it because of heavy load on the site? How can we troubleshoot it and find out the root cause of the issueOS==>Windows 2008 R2 Service Pack 1 - 64 bitIIS==>7.5 Cold Fusion ==> 10 and Update level 13
I am sending an ajax request which calls a method in a CFC. The method runs a query and returns some data. I want to use the ajax call's "success" option to display the returned "myString" value in an empty div. But nothing displays. Everything else is working. Shouldn't the ajax call return to me values for "myString" and "myNumber" that I can then use? Or do I have the syntax wrong? <script src="//code.jquery.com/jquery-1.10.2.js"></script> <script> function getMyData() { $.ajax({ type: "post", url: "test.cfc", dataType: "json", data: { method: "getMyData", city: 'Hartford' } , success: function(data) {$('#result').html(myString);} , error: function(data) {$('#result').html('That failed');} }); $('#anotherDiv').html('Goodbye'); } </script> </head> <body> <a href="javascrip
Where do I actually develop a web app? Enterprise or Developer? Do I need Developer?
We just completed a ColdFusion 10 installation on Windows Server 2008 R2. After taking care of some configuration issues, we're now faced with a problem that we can't figure out. Searches on Google for the error returned almost nothing.The error occurs when xmltransform is called in a CFC file. The error we get from CF is: An error occured while Transforming an XML document Failed to compile stylesheet. 1 error detected. It's not very helpful. In the coldfusion-error.log file, we have this entry:Error at xsl:output on line 2 column 193 XTSE1560: Conflicting values for output property methodAnyone have any ideas how to fix this? Is it something simple that we overlooked, or a fundamental difference in the way CF10 handles xmltransform?Thanks,Jamie Carter
Very odd issue that has just started with our CF10 environment with 2 of our dev boxes.....I have a box for example that has been configured with 2 instances....dev-app and dev-admin. Randomly both instances will have issues talking to our DSN's , the main coldfusion admin http://localhost/CFIDE/administrator communicates no problem with the same set of DSN's. I have 2 boxes out of 15 acting like this....they are all setup exactly the same in terms of virtulization, firewall, etcSpecific error I receive is Connection verification failed for data source: cc_corejava.sql.SQLException: Timed out trying to establish connectionThe root cause was that: java.sql.SQLException: Timed out trying to establish connectionI am at a loss why these boxes are suddenly popping up with these DSN timeouts....I have even rebuilt one of the boxes as far as CF goes but still same issue.....it might work again but I can't have it soo flaky.
Up until a week or so ago we were using tinypng api to compress png images using CFHTTP to connect to their API. It uses SSL. Suddenly it stopped working. They say their ssl certificate has not been changed. No changes have been made to the server that I am aware of. We can connect to every other SSL site I can think of to test with no issues at all.Site we are trying to connect to: https://api.tinypng.com/shrink or for testing simply https://www.tinypng.comThey are using a godaddy certificate. We have tried importing all of the godaddy certs using keytool, into both the CF cacerts file and into the java one. Restarted CF, restarted the server, still we get the same error.I tested on 3 other servers running CF 9.01 and all have the same problem.Others recommended we try cfx_http5. Tried that and same issue, error is a windows error code that basically matches the CFHTTP error that we are getting.Set up a test on an amazon ec2 server running cf 11 and it works fine. Copied the cacerts f
<cfset request.CURRENTSITENAME = "fatcate-juice.com">I have this in Application.cfc. Yet it shows as undefined. Please help.
I have many pages that use CFGRID and most of those pages use script to manipulate either the grid itself or data within the grids. All of the scripting worked fine in CF9 and CF10. While testing it on CF11, none of the code works. To me it appears that changes were made in the ext-js imports that are not backwards compatible. The first error thrown is the "Object doesn't support property or method 'getColumnModel'", with the source being the file that I am calling. The code I typically use to call it is:changeStatus = function () { grid = ColdFusion.Grid.getGridObject('gridName'); cm = grid.getColumnModel(); cm.setRenderer(18,ChangeSomething);}That error is followed by "Unable to get property 'tagName' of undefined or null reference", with the source being {site}/cfide/scripts/ajax/ext/ext-all.js.Did the format to call the getColumnModel get changed in ColdFusion 11?Message was edited
Just installed ColdFusion 11 onto a Windows 8.1 desktop running IIS8. I have been developing ASP.Net applications on this configuration without any problems.When I create a simple HTML page with a FORM, posting to a CFM page that references form variables through #FORM.variablename# I get an error saying variablename is undefined. The simple FORM page contains only textboxes, no checkboxes and even when I convert the simple HTML page into a CFM page and use <cfform> it makes no difference.I have used FIDDLER to monitor the traffic and have verified that the request to the CFM page is a POST and that the body has the form variables as is expected.I have also run this setup with the same CFM pages on a Windows 7 desktop without issue, so I am confident it is nothing to do with the code, but the setup of ColdFusion and/or the configuration within IIS.Anyone else seen this or have an idea where to start ?
As per the CF10 documentation,cacheIDOptionalID to be used to store query result in cache. This ID can be used to either retrieve or remove query from cacheSo what I have tried is simply,<cfquery name="qryGetStudents" datasource="localdsn" cachedwithin="#createTimeSpan(1,0,0,0)#" cacheid="q1"> SELECT * FROM student</cfquery>and dumped<cfdump var="#CacheGetAllIds()#">CacheGetAllIds() returns an array, So logically this array should contain the cache id "q1" .But I can not see that.Anyone else faced the same?
Hello,Thanks for taking a look and for any ideas you might have.RobColdFusion app errors when attempting to query MSSQL 2008 R2 databse via SSL connection.The datasource verifies fine. I have EncryptionMethod=SSL;validateServerCertificate=false for connection string.Setting a trace on the SQL server doesn't show it trying to hit the database at all.I have a copy of the same database on a SQL Server 2012 box (this one is server core if it matters). I can edit the datasource to just point to this server and the app works fine.Both SQL servers require SSL.Here is the first few lines of a coldfusion log of database calls.spy(Thread-66)(2014/07/15 16:07:53.353)>> Connection[1].getMetaData()spy(Thread-66)(2014/07/15 16:07:53.353)>> java.sql.SQLException: [Macromedia][SQLServer JDBC Driver]Object has been closed. ErrorCode=0 SQLState=HY000java.sql.SQLException: [Macromedia][SQLServer JDBC Driver]Object has been closed. at macromedia.jdbc.sqlserverbase
I just installed a new server Windows SErver 2012 R2 and IIS 8.5 with ColdFusion 11. I copied over our intranet from using IIS6 and ColdFusion 6.1. The ldap is not working, the CGI.Auth_user is not populating.
We are testing out one of our web applications in CF11.We have a basic ORM entity update function that fetches an object, individually calls several setters, and then saves the entity inside a transaction tag in cfscript. We are working with Microsoft SQL 2012 Standard edition. This worked under CF9 and CF10.Under CF11, we get the following error:Error: An exception occurred when committing the transaction. The root cause of this exception was: coldfusion.orm.hibernate.HibernateSessionException: [macromedia][SQLServer JDBC Driver]The specified SQL type is not supported by this driver..The line of code throwing the error is whatever the last line inside the transaction {} block is.The SQL being run follows. This is super basic. What is going on here?Hibernate log: 05/07 17:21:04 [ajp-bio-8014-exec-1] HIBERNATE DEBUG - update dbo.registrations set childID=?, registered=?, dropped=?, droppedBy=?, droppedDate=?, neverPlayed=?, WL=?, WLRemoveDate=?, WLRemoveBy=?, sexdiv=?, age_calc=?, Schol
hi there,We are in process of installing CF 10 on linux 6.5. application migrated from CF 9 to CF 10 and running fine. Now when I add scheduled task on CF 10 using CF admin, it is added...but when I try to access URL application/scheduledTasks/getScheduledTasksList.cfm it shows nothing and moreover the job gets disappear from CF admin.Do anybody have any idea for the root cause and the resolution?ThanksNeeraj
we have a series of applications that use cfusion_encrypt() to encrypt query strings passed between and with in applications. We are currently running CF10 and are not experiencing any problems. We are looking at upgrading to CF11 and are now experiencing a plethora of errors related to encrypt/decrypt.the issue i am currently working on is related to encrypt a url. no matter how I code the key,algorythm, or encoding, The encrypted portion of the url shows up as part of the link.example:<cfset theURL ="method=c.login&pid=validateLoginObj&vid=0&datasource=foo"><cfset encryptedUURL ="http://localhost/1/2/inventory/index.cfm?encrypt(theURL, '123','CFMX_COMPAT','UU')"><a class="nav_link" href="#encryptedUURL#">Inventory</a>when the page is displayed, the user sees:"WL.5KP1EY"3\'?=KH1* target="blank"> Inventory " as the link(yes I shortened the encrypted string for demo purposes)this sort of thing is through out 8 major applicat
Installed CF 11 on Windows 7. Installed it using built-in server the first time and later using Apache server. I get the same results regardless of server installed.The CFM page loads and displays text and will load <cfinclude> files. However a 404 error results when trying to load an .htm file. Also, in my .cfm index file, all CSS and Images are ignored (images show place holder box and Alt info but no image).I attempted the above via DreamWeaver 8 and also by directly entering the URL into the browser. I have tested this with both Safari and FireFox. The examples below had their URLs entered directly (no DW involved).The test pages I reference display perfectly in CF 9 but not in CF 11 (had same issue in CF10). I thought this was a TomCat problem at first. That is why I installed Apache.The above is the CF 11 page (same results if built-in server or Apache).This is the CF 9 page using built-in server.This is the source for both in
Hi,Do you know what's CF function do I need to get every 2nd character of a string? Basically, I have a string: w3f587j8a9. I want to get every 2nd, 4th, 6th, 8th, 10th, ect... So the result would be 35789. Of course the limit of the loop will be like 4 characters or something like that.Thanks.
Hi,Currently, the application is using Cold Fusion 9. Soon to upgrade to Cold Fusion 10 or 11.I would like to implement CAPTCHA on the login page.Is there any information on how to implement CAPTCHA in Cold Fusion?Thanks,Mike
HiI'm hoping that someone can suggest a basic strategy to debug this.I have a fairly large and complicated query that is executed by a function in a cfc.It returns (for example) 100 rows. If I use cfdump and then copy and paste the SQL of the query (with the variables, of course) into Navicat and execute exactly the same query on the same mySQL database, it returns 130 rows.Same SQL string, same database, same data - the only difference is that in one instance Navicat submits the query and in the other, Coldfusion does.Has anyone ever had anything like this happen before?
I need to check whether HTML 5 native validation is successful or not. Based on this I need to call an ajax function.An example code is here. http://jsfiddle.net/inDiscover/4Pbcp/Also providing the example code as below. <!DOCTYPE html> <html> <head> <title>jQuery UI Dialog: Open Dialog on Clicksssssssssss</title> <link rel="stylesheet" href="../css/jquery-ui.css" /> <link rel="stylesheet" href="../css/style.css" /> <script type="text/javascript" src="../scripts/jquery.js"></script> <script type="text/javascript" src="../scripts/
My client uses CFGRID and IE a lot (yeah, I know) and I have been tasked to solve this problem.When the grid first comes up in IE, the headers are invisible; mouse over them and they'll appear and stay on until you move on to a new table or refresh the screen.Firefox and Chrome do not have this problem.To make matters worse, my client has disabled the developer tools access in IE so I can't drill down to the CSS and look for a solution that way.I am trying to find a cfgrid.onload solution, but apparently the documentation is sparse on the methods available in cfgrid (know where they are? Please enlighten me!)I stumbled across .refresh() and updateHeaders() but I cannot find their proper syntax and just what the heck they're supposed to do. I know, lame, but try RTFM when you can't find TFM!My first try was to create and OnLoad this:function IEReload() { var grid = ColdFusion.Grid.getGridObject('mygridname'); grid.updateHeaders('mygr
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.