Questions
Als letztes aktiv
hi everyone,I have a file that only contains a number in it (invoice number). Every time someone submits a form, it should increase the value of the number in the file by one. It's my understanding that the file should be "locked" while it is being written to, so it does not give a duplicate amount if two people submit at the same time. Upon updating the file, it would then unlock the file, so it could then be written to by the next transaction.The file would exist in the same folder as the form. That's just my speculation as to how I think it should work. Basically, Open file, Lock file, write to file, unlock file.Does anyone know of any tutorials that would show how to do this?Thanks!
I have a web app that deals with both authenticated users (who log in via a central login) and unauthenticated ones.For the authenticated ones, I call a web service that returns an XML file. I'm using this code: <cfif IsDefined("session.loginauth")> <cfset session.logincreds = XMLParse(session.loginauth)> <cfset session.userid = session.logincreds.user.row[1].user_id.XmlText> <cfset session.rights = session.logincreds.user.row[1].user_type.XmlText> <cfset session.usernm = session.logincreds.user.row[1].name_first.XmlText & " " & session.logincreds.user.row[1].name_last.XmlText> </cfif> It works fine for authenticated users, but fails for unauthenticated ones. The error is on the line with the XMLParse(). It's like the IsDefined isn't working and the code within the cfif is
We are running CF 10 on Windows 2012 and just this weekend started having a lockup of the ColdFusion server about once a day. When I look at the services, it shows the ColdFusion Application Server as running, but pages are not served, just an Apache error page saying that the system is unavailable due to maintenance or overloading. If I restart the ColdFusion Application Server, everything is back to normal. The Windows Application event viewer shows two events that seem to correspond with the timing of each shutdown:Log Name: ApplicationSource: ColdFusion 10 Application ServerDate: 7/23/2014 6:02:53 AMEvent ID: 3Task Category: NoneLevel: InformationKeywords: ClassicUser: N/AComputer: Webserver-2Description:The description for Event ID 3 from source ColdFusion 10 Application Server cannot be found. Either the component that r
Question in the heading!Thanks!
hi thereI have a very strange behavior: Since years, we run CF10 Standard on Win2k3 for an old productive site. Some weeks ago, I faced some DOS-like problems on it and discovered that CF Admin shows the version as Developer Edition. This was absolutely surprising to me as we have a valid CF10 Standard Serial since 2012. Of course I entered it immediately again but to no avail. CF10 would remain in developer state.Can this be caused by some CF10 Updates? We are at Update 13. Afaik, we do not need anything that is a CF10 Enterpreise feature. Can it be that some CF10Ent feature was turned on somehow that now prevents entering a Standard serial? And if so, what can I do to get bacl to a full working CF10 Standard? Any other ideas?CF10 currently runs on Apache 2.2.27. Apache was updated several times over time.This is critical because of the IP limitations. Lucky we that this system is used only seldomly. But still: DOS like problems appear.Any ideas how to correct that?not to say that thi
Hi All,I have exiting ColdFusion project in my local drive and I want to import it in Eclipse. I already have CFEclipse installed in Eclipse. Is there any step by step instruction to do this?Thanks
I was wondering if you could have a cfif statement inside of a update query. See example below. Is there a better way of doing it? thanks.<cfquery DATASOURCE="xxx" name="update"> UPDATE plant_gen_info SET levels_complete = #URL.var0# <cfif IsDefined("URLvar13"> ,Q1_answer = #URL.var13# </cfif> WHERE ID = #session.member_id# </cfquery>
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
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Sie haben bereits einen Account? Anmelden
Noch kein Konto? Konto erstellen
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.