The official community for ColdFusion.
Recently active
Hi there. I've already posted this up on stackoverflow, but thought it might be worth posting here too in case anyone here had some information. The SO link is http://stackoverflow.com/questions/16103089/null-pointer-error-when-using-objectloadobjectsaveI've been having a problem with CF9 and NULL POINTER errors that do not appear to be an issue within Railo. I created a simple CFC and associated mxunit unit test to confirm this with.On Railo (4.0.4) both unit tests pass. On Coldfusion (9.0.1), the unit test getMetaDataBeforeMethodInvocation fails with NULL POINTER error on the GetMetaData call.At present I can only surmise that CF9 does not have access to the full metadata following ObjectLoad until a method within that component is called. Is anyone able to shed more light on this problem, and/or offer a better solution than to ensure that a method within the object is called prior to doing getMetaData?Here is the CFC// NullError.cfccomponent { public Nu
I have probably screwed a setting up but when I try to access the Administrator I get this:Permission denied for creating Java object: coldfusion.server.SystemInfo. So I am unable to access the Administrator. How do I get around this please? I'm stumped.And thanks!
I have a directory on my server named "documents" that I need to make sure users are authenticated (logged in) before they can access this directory.The directory contains PDF documents. Whats happening is that users are bypassing the log in process and directly accessing documents in this documents directory.When my users log in a SESSION variable "allowin" gets set.Normally I have an application.cfc or application.cfm file that will redirect the user to the login page if they dont have the session created.For example if a user tried to access the site directly with a link and not log in they would not be allowed in and be redirected to the log in page.Thats because the application runs each time a cfm page runs.But when a user accesses the site at http://www.mysite.com/documents/test.pdf they get in because the application.cfm doesnt run and enforce the SESSION rule.Because there is not an application.cfm file in the documents directory.Any ideas on how to use CF to boot users
All - I have into an issue in which we can enter the hyperlink address into a <cftextarea richtext = "true"> but the hyperlink doesn't become active after entering it and/or hitting the space button. Has anyone run into this? Is there a fix? We are using the browser Firefox. We are not using IE. Code Below:<cftextarea richText="true" name="OperDesc" id="Desc" height=150" width="770"/>
New to grids.--- Can you select a row in a grid and pass those field values to a registration form? or use an href in each row to pass field values to an action page containing a fom? Thank you --- jim
Just installed my first copy of ColdFusion 10. I am an experience web developer and system administrator. This installation is on a Windows 7 laptop with no other develpment tools and no IIS. I thought I choose all default configuration for ColdFusion 10 and Builder 2. I cannot find the Server Host. I have a C:\ColdFusion10 directory, but no C:\JRun or C:\ColdFusion9 directories.
I'm calling bullshit on Adobe. Had I waited longer, it would have gone on all day. I'm glad I sold their stock.
I still haven't had the time to really become a professional when it comes to regular expressions, and sadly I am in need of one an finding it difficult to wrap my head around.In a text file I have hundreds of instances like the following:{Click here to visit my website}{http://www.adobe.com/}I need a regular expression for Dreamweaver that I can run within the "Find and Replace" window to switch the order of the above elements to:{http://www.adobe.com/}{Click here to visit my website}Can anyone provide some guidance? I'm coming up short due to my lack of experience with regular expressions.Thank you in advance!
Hi there,I make a SQL query on an object with dbtype = query<cfquery name="qry_catalog" dbtype="query">SELECT * FROM catalog queryWHERE country LIKE '# art #'</ cfquery>What also goes without problems, interestingly, the query takes only results when the Upper / lower case is correct.e.g. Search for "UK" brings 13 records from the XML object "uk" no.I have never read that it is case-sensitive.I'm open to all suggestions.Thank you greeting Jochen
Hi,I can create a single PDF. But when I try to combine multipe PDF creations, getting a 500 message.The code below was being used to try display multiple PDF's on the screen:<cfinclude template="module1pdf.cfm"> (the result is information in PDF)<cfinclude template="module2pdf.cfm"> (the result is information in PDF) Only the information from module1pdf.cfm would be displayed.Per my research, I found the cfpdf.Below is the cfpdf function:<cfpdf action="merge" source="module1pdf.cfm,module2pdf.cfm" destination="3.pdf" package="yes" CenterWindowOnScreen overwrite="yes">When the cfpdf is executed, receiving a 500 message.Is the a way of displaying the creating of PDF's on the screen at the same time?Note: Using Cold Fusion 9Thanks,Mike
I am trying to figure out how to build a mobile app using Jquery Mobile on the client side and Coldfusion and MySQL on the server side. It seems very difficult to find a basic example. Can someone please show me a tutorial that shows how to insert data and then read the data and display it? All on a mobile phone? I know this has to be possible but I can't find any documentation.
I need some best practices advice. I'm not sure if there is a better way to do what I'm trying to accomplish. The execution time is very high which is why I'm looking for alternatives. I welcome any tips to help reduce this execution time. Hopefully, I can explain this clearly because I'm not seeing it clearly. I'm going to just use one form field for this example, however, there are about 10 search field options.Multiple items (checkboxes) can be selected for one field. I am going to use CODES for my example.The cfquery on the results page uses a view that has been created in the database. This view joins a primary table (company) to several other tables (i.e., codes) that possibly have many records for that one company. Within the cfquery, I use IN for the joined tables just to see if that company has any of those records. It appears to be working and not taking too long. In order to output the results, a distinct comp
Hello,I am attempting to use this isValid code:<cfparam name="myVar" default=""> <cfif (myVar NEQ "") AND NOT (isValid("string",myVar))> Failed<p><cfelse> passed<p></cfif>if i call this page as myPage.cfm?myVar=5, the page works. if i do myPage.cfm?myVar=5555, i get a 403 error. is this a bug?
My setup is:-DW CS3CF MX 7Windows 7 workstationWindows 2003 development serverLocal area networkI am having a problem with DW CS3.A site I have used for some weeks has suddenly started misbehaving.When trying to access a CF 7 data source binding I get :-"In order to view the columns of this recordset, please associate the variable (#application.dsn#) with a data source. To do this, press the plus button and choose Data Source Name Variable."When I try and associate my application.dsn with a data source none are seen in the drop down.I compared the site to another site which is working fine and I can't see any difference in the setup.I have cleared the site cache and removed the data connections from within DW. (menu, Site => Advanced)I tried completely recreating the site copying only the cfm files into a new directory.I tried removing the configs from the Appdata cache/config.I tried reinstalling Dreamweaver.I've used this set up for years, but that doesn't mean to say I hav
Need to see if ColdFusion 5 will run on MS Server 2008 R2.On a client's site that has ColdFusion 5(yes 5) and wants to move it to a MS Server with 2008 R2 and IIs 7.5 on it. The one app that is on it is going away as is all ColdFusion. So they do not want to invest in an upgrade. Simply not an option for them and they have made it clear. 2008 R2 Issues: CF 5 being 32-bit doesn't install for me. Is there a way to make this happen?IIS 7.5 I've read articles that CF 5 can be run on IIS 7.5 with compatibility mode turned on. I don't think this will be the big hurdle.The alternative is to keep in on the server it's on but for reasons this is the last alternative.So for the most part I am looking for advise on running CF 5 on MS Server 2008 R2.Thank you!
I am using Coldfusion 9.0 and have downloaded the required files CF9.zip and CFIDE-9.zip and extracted them. I cannot find the file 'WEB-INF.zip' file in the CF9 directory referenced in the instructions. The only update file in the CF9 directory is 'hf900-00010.jar'. Where can I get this file? I don't know if I can proceed without it. I'm partly through the fix and am now concerned about any reboot without fully completing the fix.
How can I upgrade my Coldfusion 8.0 to the most recent version?My current installation is as follow :Version 8,0,0,176276 Edition Standard Operating System UNIX (RHEL 4) Kernel Version 2.6.9-48.ELsmp Thanks
Hi,I need to call a function or page at specific intervals. Or I need a ping a page at specific intervals, to keep the session alive.I found window.setInterval() works fine. Is there any such function in coldfusion?
I have 5 directories in my site that for organizational purposed I copied into one directory named usersites so they all would be in one place.So I had these 5 directories before the changewebsite1website2website3website4website5So before the change when my users accessed my site they would access these directories like this www.mysite.com/website1/mypage.cfm or www.mysite.com/website2/mypage.cfm etcSo now after the change the directories are in the usersites directory at www.mysite.com/usersites/website1/I dont want to tell all of my users that they need to change their existing urls from www.mysite.com/website1/pagename.cfm to www.mysite.com/usersites/website1/pagename.cfmIs there a way that when one of my users accessess the old directory that they will automatically be redirected to the new directory?Maybe something in the application.cfm?Just to make sure when a user comes in here www.mysite.com/website1/test.cfm I want them to gets redirected t
We have a Coldfusion application that allows users to submit a form to us and attach PDFs to it. The data is written to an Oracle database and the PDF is convereted to a BLOB using cffile actions and a cfquery (code below) We applied the last CF 9 hotfix when it came out in February 2013, and we upgraded our Oracle database from 11.2.0.1 to 11.2.03 at the beginning of March; at the same time we moved from a Virtuozzo virtual server to a VMWare virtual server. OS on the database server is Windows 2008, on the web server it is Windows 2003 R2.Sometime after the Oracle move & upgrade we noticed that many of the PDFs being submitted through the web application are being corrupted. The Adobe Acrobat message just says 'There was an error opening this document. The file is damaged and could not be repaired.'What I've done to try and debug this:Checked my BLOB size on Oracle- the max size is 119TB and the PDFs are generally under 200KB so there sho
Is there a way to run ColdFusion 10 Developer in Standard mode for testing?My main concern is the Oracle drivers and if the standard edition will meet our needs, but would like to test it before purchasing what could be the incorrect license.
The following code snippet behaves differently on CF10 versus previous versions.<CFOUTPUT>ColdFusion version is #Server.ColdFusion.ProductVersion# <BR></CFOUTPUT><CFQUERY NAME="RS" DATASOURCE="MyDS">SELECT CURRDUMPDATE FROM MISCVALUES WHERE ID = 1</CFQUERY><CFOUTPUT>#RS.CURRDUMPDATE# <BR></CFOUTPUT><CFSET RS.CURRDUMPDATE = UCase(DateFormat(RS.CURRDUMPDATE,"YYYY-MMM-DD"))><CFOUTPUT>#RS.CURRDUMPDATE# <BR></CFOUTPUT>Results are shown as follows:ColdFusion version is 9,0,1,274733 2013-04-17 00:00:00.0 2013-APR-17ColdFusion version is 10,0,5,283319 2013-04-17 00:00:00.0 2013-04-17 00:00:00.0Whether this is best practice or isn’t the issue but the issue is the unexpected behavior change in CF10. Of course I can adjust the code and change how I code this in the future but the added work checking existing applications isn't appreciated. Bug or intentional change it does make us weary about what else might be lu
Our client has purchased IBM Analytics, that they want to run with the ColdFusion servers. IBM has given over the EAR files to deploy on Tomcat. But, ColdFusion uses a highly modified Tomcat. How would someone deploy another J2EE app in this scenario, without installing another server?
how can I get CF10 to work with Sun Java System Web Server 7.0U8
I'm setting up CF10 SP 9 on a copy of the existing web site on a development server etc. I ran cfcompile.bat against the web site and the compile took 107 sec and there was somthing like 14000 files compiled -- but I can't seem to find the .class files that (I think) were supposed to be created. What am I missing?jay
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.