『アドビコミュニティフォーラム』に質問/トピックを投稿する方法
Questions
新着順
I've decided to convert an old app from using Application.cfm to Application.cfc, mainly because I want to use onRequestStart and the like, and I can't get them to initialize in Application.cfm.But for some reason, this Application.cfc file causes my pages to come up blank. I can't for the life of me figure out why, since it's copied from an app that works perfectly fine. <cfcomponent> <cfset this.name = "myapp"> <cfset this.sessionManagement = true> <cfset this.sessionTimeout = CreateTimeSpan(0,2,0,0)> <cfset this.loginStorage="session"> <cfset this.scriptProtect = true> <cfset this.setclientcookies = false> <cffunction name="onApplicationStart"> <cfset application.dsource = "mydsn"> <cfset application.a
I'm trying to read in a pdf form, complete the fields and send it to the user's browser. However I approach it, whenever I use a cfpdf type of tag, I get the error message "Platform, Locale, and Platform Name must not be null".For example the following flags an error on the cfpdfformparam line:<cfpdfform action="populate" source="Order Acknowledgement Form4.pdf"> <cfpdfformparam name="Text1" value="Test Data"> </cfpdfform>What am I doing wrong?Using CF9.01 Developer edition. The PDF was created in Acrobat X from a Word file.The following works and lists the form field, so I'm guessing that it's not a problem with the source file.<cfpdfform source="Order Acknowledgement Form4.pdf" result="resultStruct" action="read"/><cfdump var="#resultStruct#">
In ColdFusion we can create DSN in 2 ways. Either we can select the driver for the specific database or we can use the Other as the driver and we can create the DSN by specifying the connection string. Which is the best way in terms of the performance for apps. Any idea.Here I am looking to create the DSN to SQL Server 2012 and I have create 2 DSN's, one with SQL Server driver and one with other and mentioned the connection string. I don't see any difference as of now. Please advise which one to user.
I was just given a security scan result for one of our web apps that showed two problems:Missing HttpOnly Attribute in Session CookieMissing Secure Attribute in Encrypted Session (SSL) CookieThe interesting thing is that I have both client and domain cookies set to "No" in my Application.cfm file (this is an old application that uses CF8. Maybe I don't understand the concept?I found a piece of code that's supposed to secure cookies: <cfif NOT IsDefined("cookie.cfid") OR NOT IsDefined("cookie.cftoken") OR cookie.cftoken IS NOT session.CFToken> <cfheader name="Set-Cookie" value="CFID=#session.CFID#;path=/;HTTPOnly"> <cfheader name="Set-Cookie" value="CFTOKEN=#session.CFTOKEN#;path=/;HTTPOnly"> </cfif> But I get session.cfid and session.cftoken undefined errors. Before I wrack my brain on something I obviously don't get, can someone steer me in the right direction?Thanks in advance!
Hello,I am looking to connect to the last sql server 2012 multi-subnet failover clustering which requires to mention the connection string MULTISUBNETFAILOVER=Yes.Even though I have mention, its still failing to create the DSN, I am able to connect to it from SQL Server Management Studio. Does any able to connect it. do i need to install any JDBC drivers for this to success.Here I am using ColdFusion 9 enterprise edition.ThanksSrinivas
In CF11 administrator site, I have set a timeout value of 15000 seconds. However the jobs has timeout after 960 seconds (value set in the settings page).Is this attribute deprecated in CF11 ?As a workaround, I have added a cfsetting in the page itself.Thanks,Pierre.
My company owns three licenses of the (incredibly old) V5 ColdFusion server license. We want to move the product to a new server group but are unable to obtain the media to install it on the new servers. I had asked Adobe if they could provide it but the oldest available was V7. Does anyone have any ideas on ways we can locate the media so we can move to our new servers? Our last ditch option is to buy new and consider the old licenses worthless.
We upgraded to ColdFusion 10 in April 2013. It has been running great until the past week or so. Now, at various times, the servers are showing the Error 503 Service Temporarily Unavailable screen. We have 5 servers that are load balanced and are using CF10 Standard. We are in a 32-bit environment on virtual servers. We are running Windows Server 2003 with 4GB RAM. Our traffic has not really changed and nothing has changed for ColdFusion on the servers.I would appreciate any assistance that anyone could lend.Thanks!
My Dept. has just bought CF10 and I'm finally updating my existing web app to CF10 from CF8. My First Problem with CF10 is using session variables.When using the lower version of CF (since CF 4 to 😎 I have never had any problem setting up session variables and getting or using these variables in other pages after a successful login but with CF 10 it seems setting session variables and using them in other pages are a major problems. I'm not sure where have I done wrong in the codes.First I'm setting the session in my Application.cfc This way:<cfcomponent displayname="Application" output="true"> <cfset THIS.Name ="MyNewApp"/> <cfset THIS.ApplicationTimeout = CreateTimeSpan(0,0,20,0) /> <cfset THIS.SessionManagement ="YES"/> <cfset THIS.SessionTimeout = CreateTimeSpan( 0, 0, 20, 0 ) /> <cfset THIS.SetClientCookies = false /><cffunction name="OnApplicationStart" access="public" returntype="boolean" output="false"&
Hi Everyone,Has anyone built an event gateway or other cfc into Facebook chat. I want to send messages form my facebook app into facebook chat using CF and from my reading it appears that what I want is an event gateway. I really don't know much about XMPP so any and all help is appreciated. ThanksMark
GreetingsCan anyone share the code one one put within the application.cfm to password-protect all the files in that directory?The UN & PW are stored in a DB - of course I could create a session_ID and protect each page individually, which I have been doing for years, but in this case, the pages are being loaded using a half-*ss CMS and the users, other than saving files as .cfm, will not be responsible to leave the code on each page.In the DB, the user name is subscriber_email, the password is subscriber_password.Thanks for any help.
Hi chaps,I've decided it's about time I started using cfform (3 mins in and I've already hit my first stumbling block!)I want to have an autosuggest text input for users to choose a city. In my db I have locationnames and locationids. eglocationid | locationname----------------------------------------1 London2 New York3 ParisetcThe user will start to type the locationame - I want autosuggest to show locationanames that match, but when they submit the form I actually want the locationid to be passed..How on earth do I do this with cfform?Thanks very much for any help you can offer.Nick
I am reviewing the ColdFusion Web Connector settings in workers.properties to hopefully address a sporadic response time issue.I've been advised to inspect the output from the metrics.log file (CF Admin > Debugging & Logging > Debug Output Settings > Enable Metric Logging) and use this to inform the adjustments to the settings max_reuse_connections, connection_pool_size and connection_pool_timeout.My question is: How do I interpret the metrics.log output to help with the choice of setting values? Is there any documentation that can guide me?Examples from over a 120 hour period:95% of entries -"Information","scheduler-2","06/16/14","08:09:04",,"Max threads: 150 Current thread count: 4 Current thread busy: 0 Max processing time: 83425 Request count: 9072 Error count: 72 Bytes received: 1649 Bytes sent: 22768583 Free memory: 124252584 Total memory: 1055326208 Active Sessions: 1396"Occurred once -"Information","scheduler-2","06/13/14","14:20:22",,"Max threads: 150 Current thre
Hi,I need to install cf11 on the same windows 2008 server as an existing cf8 install.I realise it would be better to have 2 servers but in this case thats not an option open to us so I need specific help with the 2 installs.The current CF8 is using IIS7.I have done a bit of spade work and I believe the best way to do this cleanly would be to install a 2nd web server, e.g apache on windows and then configure it with CF11.I had hoped that I could actually install CF11 and just configure specific iis sites with it, hoping this would leave the cf8 configured sites intact.Any help would be appreciated.
Hello, everyone.I did fix the last Sandbox security related issue with Solr collections - it was in the "Files/Dir" section, I had to put everything under C:\ColdFusion9\wwwroot.Now, I'm facing yet another Sandbox related issue with collections.I have one reindex script that has NO ISSUES when pulling data from a database and indexing a collection from that.I have another reindex script that will not index a collection from a query, unless Sandbox is disabled. I will try to give some pseudo code.<cfquery name="search_results" datasource="documents"> SELECT DOC_ID, DOC_NAME, DOC_DESCRIPTION FROM DOC WHERE DOC_ID in (<cfqueryparam value="#thisList#" cfsqltype="CF_SQL_VARCHAR" list="yes">)</cfquery><cftry> <cfindex action="refresh" collection="collection_name" key="DOC_DESCRIPTION" type="custom" title="DOC_DESCRIPTION" query="search_results" body="DOC_ID, DOC_NAME, DOC_DESCRIPTION" status="results" /> <cfcatch><cfd
I'm using CF10 and "Use J2EE session variables" is selected in the CF admin.When I visit an application, I get the JSESSIONID cookie, but I also get the CFID and CFTOKEN persistent cookies. The app I'm working with is older and uses Application.cfm instead of Application.cfc, but the clientmanagement and setclientcookies application attributes are set to false.I'm not sure why CFID and CFTOKEN are still set. Are they set regardless of the client and session management settings?
I saw one blog post from March that this was going to be fixed. Has there been any progress?
1. create a task which uses the username password facility (eg run a page that requires authentication to reach)2. save the task (check it runs ok)3. go back in and change something (eg change when the task is to run) but don't touch the username/password bit4. save the taskthe task will now fail to run correctly as the password will now be incorrect (even through it was correct before and hasn't been touched). Is anyone else experiencing this (CF9) - I do wonder if it's my browser messing with the password field?.
Ok so I'm having a hard time getting CF10 64bit installed on Red Hat Enterprise Linux 5.10Apache version: 2.2.3I have installed CF10 but when I try to restart Apache I get this error:Starting httpd: http: Syntax error on line 992 of /etc/httpd/conf/httpd.conf:Syntax error on line 2 of /etc/httpd/conf/mod_jk.conf Cannot load /opt/coldfusion10/cfudion/wsconfig/1/mod_jk.so into server: /opt/coldfusion10/config/wsconfig/1/mod_jk.so unidentified symbol: a_get_server_descriptionEverything else seemed to work just fine but I can't get Apache to restart due to this error.Does anyone have any suggestions to try?TIA
I have received this message several times through CFERROR. The cause of this output exception was that: ClientAbortException: java.net.SocketException: Connection reset by peer: socket write error. How can I fix this?
Hi - Following on from a recent post about how to strip our special characters from a string before insertion to the db I have found this Java code - my question is, how can I turn this into something I can use with CF? I think I need to use the cfscipt tag but that's right on the boundaries of my knowledge base.. If anyone could please help I'd be ever so grateful - thank you!package net.htmlescape; /** * HtmlEscape in Java, which is compatible with utf-8 * @7111211 Ulrich Jensen, http://www.htmlescape.net * Feel free to get inspired, use or steal this code and use it in your * own projects. * License: * You have the right to use this code in your own project or publish it * on your own website. * If you are going to use this code, please include the author lines. * Use this code at your own risk. The author does not warrent or assume any * legal liability or responsibility for the accuracy, completeness or usefullness of * this program code. */ public class HtmlEscape { privat
I set it up years ago but when I tried again I can't for the life of me figure out how to set up Lighthouse Pro.Just wondering if anybody knows where there might be some instructions? I looked inside the files to look for remarks but still could not figure it outI don't use coldspring or modelglue so I have to get those up and running alsoI've tried putting coldspring and model glue into the root, I've also put them into the root of the folder lhp where I have the lighthousepro files.The error I receive is:LighthousePro was unable to use the attachment directory: SETMEI've not set up a database either, rather lost ThanksMark
Hello, Currently trying to work on a "project" in which I would be updating an application to use CF11, I believe its still using 7 at the moment. I've been searching online and haven't had any luck so far. As of CF11 connectstring was removed, what can I use in place of it? I've looked for old documentation and that's hard to get a hold of, but I believe it was deprecated in CF5. I don't necessarily NEED the answer (while that would be helpful), even some direction on where to look would be nice.
I have installed ColdFusion and we noticed a strange issue with cfttp, if file upload fails due to any technical reason then all next upload for the same file will fails until we delete file from FTP location & upload fresh copy.We configured automated jobs with cfftp upload code, so every time I've to delete the file which is failed while uploading, which is not practical solution.please help me to resolve this issue permanently. Thanks in Advance.I've mentioned CFFTP code below<cfftp action="PUTFILE"server="ftp.abc.com"username=" "password=" "passive="Yes"stoponerror="Yes"localfile=”ABC.txt"remotefile="ABC.txt"transfermode="AUTO"timeout="600">
Coldfusion Builder 3.0 - Constantly goes into some type of wait state. It eventually returns...but does anyone have any ideas??
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
すでにアカウントをお持ちですか?ログイン
アカウントをお持ちではありませんか? アカウントを作成
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.