CFAPPLICATION November 25, 2007
Posted by scoopseven in ColdFusion.1 comment so far
Despite what CFMX 6.1 documentation says, I’ve recently learned that the CFAPPLICATION tag, located in application.cfm doesn’t like ambiguity. The problem manifests itself by throwing a “NullPointerException at ColdFusion.runtime.clientScopeKey” error in the exception log.
We have been specifying something like this for our CFAPPLICATION tag.
<cfapplication
name=”myApp”
sessionmanagement=”Yes”
sessiontimeout=”#CreateTimeSpan(0,0,30,0)#”
clientmanagement=”Yes”>
Because documentation states that if no “clientstorage” tag is specified in the cfapplication tag it will default to the setting specified in the client storage setting in the CF administrator section, which we have set to “Cookie”. Unfortunately, for busy apps, this doesn’t hold true. CF throws errors with the above cfapplication tag when the app gets busy enough, stating that it can’t find the clientstorage variable value.
So, for all your CFAPPLICATION tags in application.cfm, make sure you add the two additional variables below (clientstorage and setclientcookies) to remove any ambiguity.
<cfapplication
name=”myApp”
sessionmanagement=”yes”
sessiontimeout=”#CreateTimeSpan(0,0,30,0)#”
clientmanagement=”yes”
clientstorage=”Cookie”
setclientcookies=”yes”>
From ODBC To JDBC November 7, 2007
Posted by scoopseven in MySQL.add a comment
Dear JDBC,
Although you may crash less, when connecting mySQL to Coldfusion, it has come to my attention that you cause some unexpected errors, which didn’t seem to bother me much.
I (ODBC) didn’t mind datetime fields set to 00:00:00. If you try to run a CF query that returns a 00:00:00 date, you (JDBC) throw an exception.
I (ODBC) also allow a user to update a date field to ” in Coldfusion. So [set datetimefield = ''] was ok. You (JDBC) throw an exception on that one too.
Your old friend, ODBC.
When DreamWeaver Crashes November 5, 2007
Posted by scoopseven in ColdFusion.add a comment
Adobe dream weaver CS3 started crashing when I was selecting text in code view.
Here are some links to explain/solve the problem:
http://www.beetrootstreet.com/blog/index.cfm/2007/10/31/Adobe-Dreamweaver-CS3-crashes-when-selecting-text-in-code-view
http://groups.google.com/group/macromedia.dreamweaver/browse_thread/thread/e493f48243a14b28/2fa3ea8a3c34ba5b
The crux of it was deleting the winfilecachexxxxx.dat file – Once doing this, it was plain sailing and hasn’t crashed since.
On Windows Xp, the file is at:-
[drive]:\Documents and Settings\[username]\Application Data\Adobe\Dreamweaver
9\Configuration
On Windows Vista, you can find it in:-
[drive]:\Users\[username]\AppData\Roaming\Adobe\Dreamweaver 9\Configuration
or accessible via windows explorer in
Desktop\[username]\Roaming\Adobe\Dreamweaver 9\Configuration