The official community for ColdFusion.
Recently active
We are considering adding ORM to an existing project. We have not worked with ORM in production before and this has the potential to be one of our biggest projects in terms of usage. For this reason, I have hesitated to suggest it, but i think it could simplify some things for us, specifically with respect to code maintenance and re-use. This is also the second phase of development, so all the query logic so far is in place without ORM, although we do have queries separated into a separate service layer. We are looking to get some arguments for and against using ORM it in production.Are people using ORM in large production projects now? Any problems or considerations using ORM mixed with native CF query methodologies (cfquery, etc)? What are some things to consider with respect to scaling and performance (I have played around with options for lazy loading, batch loading, and secondary caching using ehcache)? What about maintenance and security?
This is just a community service announcement. If you have a twitter account and want updates on CF related bugs and other information you might want to check out @cfnotifications or the corresponding website http://cfn.cfuser.com. The information comes from the Adobe bugbase. The twitter feed and website are not officially supported or sponsored by Adobe.
I have a <select multiple> Tag that lists out cities. Is there anyway to have a button that would select all contents in that field?
I have a page that is tall enough that it scrolls vertically. When it finishes loading, the browser automatically scrolls to the bottom of the page where a cfgrid element lives. It happens in IE, Chrome and Firefox.I've narrowed the cause down to the JavaScript that the ColdFusion 11 server adds to the top of the page. If I disable scripts in the browser, the page doesn't automatically scroll to the bottom.Adding window.scrollTo(0,0) to the body onload doesn't work. Whatever JS is scrolling to the bottom happens after the onload event. I haven't tried jQuery's .ready() yet; hoping there is a fix.Has anyone else seen this and know of a fix or workaround?
Adobe is running a ColdFusion User survey to understand various aspects related to ColdFusion such as product satisfaction, product usage, platform usage, purchase process, access to training resources and issues related to hiring CF developers. Adobe is working with a third party research organization to host and analyze the results from this survey.Survey will approximately take 20 mins of your time, but the detail in the survey may provide valuable insights into making the product, that you care for, so much better and relevant.Here is the link for the survey.
Can anybody help!Payment processor Chargify updated their SSL from SHA-1 to a Comodo SHA-2 SSL. Well this has caused major problems on my end. CFHTTP now returns "Connection Failure" and nothing more.I have:Downloaded the new cert from Chargify.com in .cer format.Used the keytool to import it to CACERTS sucessfully (Java version 1.4.2_19 Which should work)Restarted Coldfusion and that didn't workAlso downloaded COMODOExtendedValidationSecureServerCA.cer and COMODOCertificationAuthority.cer and added both CACERTS file via keytool import.Restarted Coldfusion and that didn't work.I'm thinking if they would have used Thawte or Verisign, I wouldn't have this problem. Anybody have any suggestions??? I've been pulling my hair out for the last 8 hours trying to figure this out.
I have CF 10 sp 14 running on a Windows 2012R2 Virtual Machin and I need to connect from a win 8.1 client running CF Report Builder 10 to the CF server. The cf server erver is hosting 2 web sites with seperate IP addresses and a third web site with the CFadmin site. I have tried all the combinations of the CF RB RDS server setup screens without success.I can browse the local server folders while setting up the data sources - which I think means that RDS is working.I also have setup individual users with RDS access and passwords. I am using the CFadmin IP address for the Host Name: 172.16.1.242 and port 80 or 443 (I do connect to the admin pages with https) Typical errors when using Test Connection. The following error occurred while trying to connect to the RDS Server: Http/1.1.404 Not Found Ideas - is this supposed to work? Jay Bietz
Hi All,I am limited to CF standard 9.0.2 with Java Virtual Machine Path = 1024 and -XX:MaxPermSize=512m.In the pass i was able to fix my memory issue with -XX:-UseGCOverheadLimit, not this time.The error "java.lang.OutOfMemoryError: Java heap space" is when it is reading and excel macro file (.xlsm) with 2,500 KB already compact using this tech:http://datapigtechnologies.com/blog/index.php/how-to-compress-xlsx-files-to-the-smallest-possible-size/My code is:<!--- new file to write --><cfset xlsFile = createObject("java","java.io.FileOutputStream").init(filepath) /><!--- open stream and read in excel file template ---><cfset xlsFileTemplate = createObject("java","java.io.FileInputStream").init(filepathtemplate) /><cfset newWorkbook = createObject("java","org.apache.poi.ss.usermodel.WorkbookFactory").create(xlsFileTemplate) /> <!--- Error line ---><!--- read from template to new FileOutput ---><cfset writeableWorkbook = createObject("java
I've searched everywhere for a solution, but I didn't see anyone doing exactly what I want to do, even though it's pretty simple. Here is my pdfAPI.cfc code:<cfcomponent > <cffunction name="pdfconvert" access="remote" returntype="binary" output="false" produces="application/xml" > <cfargument name="sourceWebPageURL" type="string" > <cfset pdfDoc = "" > <cfdocument format="PDF" name="pdfDoc" src="#sourceWebPageURL#" mimetype="text/html" /> <cfreturn #pdfDoc#> </cffunction></cfcomponent>And here is the code to invoke the service:<cfset
Hi,I've implemented page caching on a site by adding a call to cfcache in the application.cfc onRequest function. It all works fine on individual requests. However under load (e.g. running a broken link spider across the site) I'm getting error notifications (via the onError function) with the message "Cache A95C0BF9E9BFBC6F151F03E939D2D2D6TEMPLATE already exists". It seems like there may be two requests trying to save into the cache under the same ID? I would have thought CFCACHE should have handled locking and concurrency issues for us? We route 404s back to a main handler to "rewrite" friendly/clean URLs, so whilst these requests use different URLs they are all running the same set of components and templates.The relevant parts of the onRequest handler in application.cfm are:188: <!--- setup caching if enabled --->189: <cfif getConfigValue('page_cache') eq "true" and not application.security.isLoggedOn()>190: &nb
Installation hung up here:Failed to copy hotfix files:C:\Users\itsm-sse-svc-cf\331588.tmp\dist\cfusion Status: FATAL ERROR Additional Notes: FATAL ERROR - Failed to copy the hotfix files to the target location:E:\ColdFusion10\cfusion FATAL ERROR - E:\ColdFusion10\cfusion\bin\coldfusion.exe (The process cannot access the file because it is being used by another process)Tried several times, making sure all services were stopped, but no luck
Adobe should sell ColdFusion to a company who's primary focus is the Marketing Sales and support of the product. It seems that for years Adobe has overlooked their ColdFusion product while choosing to focus on Photoshop and other design related products. ColdFusion does not get the attention that it deserves and had built a fence around adoption of the product by pricing the product out of reach for many. Why would anyone want to purchase ColdFusion when you could be using, PHP, Railo .NET, Ruby on Rails or one of the myriad of other development environments that are just as robust but easier to afford.
I have had CF 10 running on my VM for about a week now. The VM is Windows 2008 Enterprise, 64 bit. CF 10 is 64 bit. The error that I keep getting is:Service Temporary Unavailable!The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later. Jakarta/ISAPI/isapi_redirector/1.2.32 () To recover, I need to stop and restart all the CF services. Anyone else having this problem or has anyone else had to fix it?
Hello, everyone,Are the files that comprise a collection supposed to be set to 'read only'?C:\ColdFusion10\cfusion\collections is indicating 'read only' for it and all sub-folders/files.Optimizing a collection does not update anything (not even the date last modified) unless I use "purge".I have code that, whenever a user submits a question, will insert the question into a database, query the database for ALL questions, then run a CFINDEX action="refresh" based upon that query (which does, indeed, include the new question.) But the collection never sees the new question.Thoughts/ideas?V/r,^_^
Good afternoon,I would like to think this question has been asked and answered before but I'm not having the best time naving the updated forum. Anyway, I have a compiled Java application that I cannot read with CF. This is my error message: Object Instantiation Exception. Class not found. My jar exists in here: <cfset THIS.javaSettings = {LoadPaths = ["/ReaderRFID/lib"], loadColdFusionClassPath = true, reloadOnChange=false}/>. My output page:<cfset jar = CreateObject("java", "AlienClass1ReaderTest")><cfset readTags = jar.AlienClass1ReaderTest><cfoutput>#readTags#</cfoutput>The class should be called from the jar but nothing happens. Any help is always appreciated. Thanks!
In the distant past, I've written a "next-previous" page selector, but I remember (again in the distant past) there was a section that listed pre-created apps that were available for free or pay. If one still exists, I can't find it.I want to create this type of thing and I don't want to spend a lot of time doing it:Does anyone know where code (free or priced) that would support this application exists?Karen
Hi,The current environment is Cold Fusion 9 and SQL Server 2008 R2 Enterprise.The some of the data on the SQL Server is going to be encrypted because it contains sensitive data. The data is going to be encrypted by SQL server.The data is not going to be encrypted by Cold Fusion.The question I have is there a way for Cold Fusion to access the encrypted SQL Server data?Also, is there a way for Cold Fusion to encrypt the data (Using the SQL Server encrytion)?Thanks,Mike
Hi all - I am looking for the fastest, most effective way to create private blog (diary) areas for my site's readers.In the distant past, I handcrafted an extensive diary and note system, but today, there are two problems. The first is that compared to what is offered today, it looks like an antique, and two, I want to minimize stress for the people who run CF and SQL servers and make sure I create the most secure system possible.I want people to create an account that includes a private "note/blog" area. Their entries can be seen sequentially by, at least, date. It would be nice to search the entries by key words, however, I'm OK with keeping things simple.I wouldn't mind using something like a very stripped down CMS like, for example, WordPress. The issue is that I anticipate making thousands of diaries. So I'm more concerned with the CMS than WordPress itself and all of its themes.I am aware of FCKeditor and fooled around a bit with it 10 years ago. Possibly that is all I need to co
I am importing a CSV file into a temporary table and then running a select query that joins my actual database table with the temporary table, looking for any changes in the data. If changes exist, the select query is looped from 1 to #recordCount# and an update is applied to each record via cfquery. It runs very quickly (much more quickly than looping the query itself), but my memory spikes and overloads after about 1500 updates are completed. I need to be able to do upwards of 20000 at a time, without killing my system. I have tried manually setting the runtime garbage collection to trigger after X number of loops, but that doesn't seem to help. I am running CF8. See below for loop example:<cfloop from="1" to="#updatedRecordsQuery.recordCount#" index="a"><cftry> <cfquery datasource="#db#" name="doUpdate"> &n
Hi People,When I am using iframes or frames (older sites), as a extra security precaution I use the JavaScript function:<SCRIPT LANGUAGE="JavaScript1.1">if (top == self) self.location.href = "../index.cfm";</SCRIPT><cfif (HTTP_REFERER DOES NOT CONTAIN "referer_page.cfm") <cfabort></cfif>It works great to keep visitors (hackers?) from opening and/or trying to post to the page.The problem is that the JavaScript displays in source code and the less they know...I know the JS is client side but is there anyway to create the function in the server side CF or otherwise hide from prying eyes?I a running cf9 on my and most of my client sites.Thank in advance
Hi,I'm running CF11 deployed in JEE configuration (as a war file on "Vanilla" Tomcat 7.0.57). Oracle Java 1.7.0_71 It seems to be functioning correctly but it fails to shutdown cleanly. In particular there is two errors in the error log each time. The first one:INFO: A valid shutdown command was received via the shutdown port. Stopping the Server instance.Nov 20, 2014 10:45:27 AM org.apache.coyote.AbstractProtocol pauseINFO: Pausing ProtocolHandler ["http-bio-8680"]Nov 20, 2014 10:45:27 AM org.apache.coyote.AbstractProtocol pauseINFO: Pausing ProtocolHandler ["ajp-bio-8609"]Nov 20, 2014 10:45:27 AM org.apache.catalina.core.StandardService stopInternalINFO: Stopping service CatalinaNov 20, 2014 10:45:32 AM Information [localhost-startStop-2] - Stopping Monitoring Server.Exception in thread "qtp1802875397-63" Exception in thread "qtp1802875397-64" java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/Str
I'm in the early stages of redoing one of my websites and would like to build a "continuous feed" into my Blog -Littleviews Blog BitsThe effect would feed information pinterest or facebook-like.I connect to SQL server, so would have no trouble posting the data, and I suppose I could display it "page by page," but I'd really like to have a continuously fed scrolling display.Do any of you know how to do this?Karen
anyone know how to fix this?
Hi All,I am very new in ColdBox framework but have a good experience in ColdFusion.In browser I am firing a url like below.http://abc.xyz.dev.local/index.cfm?event=event.userLists&user_id=1463613.Here the event handler named "event" is pointing to the path - \handlers\pdt\real\ldr\ldr_nm\ldr_portal\ldr_agt\event.cfc. My question here is how ColdBox framework identifies this cfc file(\handlers\pdt\real\ldr\ldr_nm\ldr_portal\ldr_agt\event.cfc). I know there is some config file where we can provide this handlerspath . But in my application (where I am working) I can see this file but it has been configured as just "handlers" instead of what I am expecting like "\handlers\pdt\real\ldr\ldr_nm\ldr_portal\ldr_agt\event.cfc". Please correct me if I am wrong as I dont have much knowledge about this frameworkIs there any other configuration file or any more set up can be done to map this handler to.Your timely help is well appreciated.Thanks in advance
Hi All,As we all know ColdFusion included mobile application development in CF11. While debugging native functionality like Geo Location, Camera API, Phone Book we should be able to debug it by connecting a device in your computer so that we can debug it properly. I couldn't find a good tutorial/documentation where I can follow the steps to set up the development environment.Please suggest any blog/tutorial regarding this.
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.