Tuesday, March 1, 2011

CFSTAT kills my ColdFusion 8 on Win2008R2

Enabling CFSTAT on ColdFusion 8.01 running on Win2008R2 crashed my ColdFusion ...

I'm talking about this:

I'm trying to figure out why is it that CFDOCUMENT with images, crashes my ColdFusion whenever the image is in a directory for wich the IIS has Integrated Authentication... but that's another story.

In the process of figuring that one out, I tried enabling CFSTAT to get more information on my problem.  My server simply crashed just I clicked the SAVE button.

This post on Adobe forums says:


Turning on CFSTAT in the admin is what killed my server.
Just FYI... I'm using 64-bit Vista with my CF8 installation. 
and the solution to this problem is:

Edit the neo-metric configuration file
c:\ColdFusion8\lib\neo-metric.xml
(This file doesn't contain any formatting, so its best to open it with Dreamweaver or some other editor that will format the file to make it easier to read)  
Delete the following code:
<var name="cfstat">
<string>true</string> </var>  
...which should be located somewhere inside the coldfusion.server.ConfigMap struct.  
<wddxpacket version="1.0">
</wddxpacket>



<header>
<data>
<struct type="coldfusion.server.ConfigMap">
<var name="cfstat">
<string>true</string> </var></struct></data></header>
The problem is not related to x64 windows, as I have a Win2003 x64 server where this setting is enabled with no problem.  I believe the problem is more related to IIS7 ...  any comments ?

Tuesday, February 22, 2011

CF BUG 80577 : Deleted Probes are still alive !!!!!

A friend showed me this today: http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html#bugId=80577

It was reported for CF9, but applies to CF8 too.

And it just happened to us.  We moved our probes from server X to server Y... however, a week later we discover our exception log shows "probe not found" all over...   in deed, the probes are still trying to run even after you deleted them from CF Admin.

So, bug isn't fixed yet... here's the workaround:

Renaming a probe (via the CFADMIN), creates a new probe and leaves the old one orphaned.  You will then get exceptions each time the old probe runs (according to its own schedule), e.g. "Error","jrpp-5","10/29/09","19:38:00",,"Probe not found: ""sk: homepage"" The specific sequence of files included or processed is: C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\CFIDE\probe.cfm, line: 85 "
Workaroundmanually modify neo-cron.xml to remove the old entry, and restart CF 

Tuesday, February 15, 2011

Not Found:404 with coldfusion.ajax.submitform on IIS7

A friend ran into this error when migrated a CF8 application to IIS7:  
Not Found:404 
It happens when executing a coldfusion.ajax.submitform of a form with quite many fields and values....

As you know, coldfusion.ajax.submitform sends a request to the handler page via URL, that contains the whole structure of the referenced form with it's selected values.   In some cases this means the resulting URL can be very large depending on the complexity of the referenced form.

IIS7 apparently has a lower tolerance to URL Requests size limits than IIS6 had... and in order for some ajax.submitform to work, you would need to increase the size limits on your IIS7.  This is done on REQUEST FILTERING like this:


The red out values have to be increased to match the length of your form.. so it allows IIS7 to send it as an URL Request ...

Tuesday, February 8, 2011

CF8 and CF9 Security Hotfix released

people... a new security hotfix was released by Adobe today.  get it here.  Adobe strongly suggests you all update using this patch.

This update applies to CF8 and CF9.

Please note as you follow installation instructions that there's some additional steps to be performed after you extract the .jar file on the CF Admin. page.

Reset CF Admin Password

This is an oldie but goodie..  had to resource of this before and now someone reminded me how it works (I cannot quote the original source as I got this on an email)


What if you forget the ColdFusion Admin Password?
Imagine suppose you have forgotten the admin password and cannot log in to ColdFusion Administrator. Here is a solution for this, follow the below steps.
1. Make a backup copy of CF_HOME\lib\neo-security.xml file
In case of multi-server editions, the path is: 
C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\cfusion\lib\neo-security.xml 
2. Open the neo-security.xml file in a text editor and change 'true' to 'false' for the admin.security.enabled variable tag. For example, search the file for "admin.security.enabled" and change the entry as follows: 
 
3. Restart the ColdFusion application server. 
You should now be able to bypass the login to the ColdFusion administrator. You can reset the password by choosing Security > Administrator.
This works for CF7 and CF8 ... don't know if it works on CF9, has anyone tried ?

Monday, January 31, 2011

jQuery 1.5 released

jQuery 1.5 released today .  Read it here.

Interesting stat they published on this release note, how much faster jQuery is on Chrome (and sometimes on Safari), than on any other browser.

Sunday, January 30, 2011

OperatingSystemMXBean: how to know when your ColdFusion server is using much memory, and how to fix it.

This is an excellent post found on http://www.coldfusionjedi.com about how to access the memory consumption on your ColdFusion server.  Read it here.
Basically, there’s this Java Interface, OperatingSystemMXBean, that will tell you the server’s Total Physical Memory, and the server’s Free Physical Memory.
It goes like this:
<cfset mf = createObject("java", "java.lang.management.ManagementFactory")>
<cfset osbean = mf.getOperatingSystemMXBean()>
<cfoutput>
free physical mem = #osbean.getFreePhysicalMemorySize()#<br/>
total physical mem = #osbean.getTotalPhysicalMemorySize()#<br/>
</cfoutput>

I find this interesting because my production server is recently starting to act up… every once in a while is reporting memory full on the JVM.  While I figure out the reasons, I need to perform a garbage collection every now and then.  Using this little script, I can create a Scheduled Task that periodically checks on the memory consumption, and whenever it reaches some limit, I want it to trigger the G.C.

About the G.C., here it is:


<cfset obj = createObject("java","java.lang.System")/>
<cfset obj.gc()/>
<cfset obj.runFinalization()/>

It does work to keep the server running, but I still need to find that memory leak.

Wednesday, December 22, 2010

Skype down

So.. Skype down... and the hordes of people tweeting about it is about to bring twitter down.. ironic isn't it? ... the reports go from 8 million to 21 million affected...

The official Skype Blog is down .. but before people DOS'ed it, they mentioned it would take "a few hours" to fix the problem

the problem is logging into the system.. for those (like me) who are always logged in, you can use the services normally.

read more here.

CFEclipse 1.4.4.

And so I heard CFEclipse 1.4.4 is out… this is what I know so far:

http://cfeclipse.org/update/web/doc/intro/doc/new.html

Saturday, December 18, 2010

Install ColdFusion 8 or 9 on IIS7

When IIS7 (Windows 7, Win Server 2008) installs, by default it doesn’t include two very important features required for ColdFusion to run: ISAPI Extensions and IIS Metabase and IIS 6 configuration compatibility

As I discovered while reading this, before you install CF8 or CF9, you need to go first to CONTROL PANEL --> PROGRAMS AND FEAUTRES and then TURN WINDOWS FEAUTRES ON OR OFF. In here you enable those missing features like this:

Friday, December 17, 2010

IIS7: How to backup and restore one website on IIS7 ..or "the single most important use of appcmd"

Microsoft didn't make it easy for us when it came to facilitate the very important task of backing up one single website on IIS7 to later be able to restore it to a new server...

They didn't even make it easy if you wanted to backup the whole server configuration. In this case you follow the instructions posted in here.

So How was it on IIS6 ?

But when all you want to do is backup ONE SINGLE WEBSITE, with all it's Virtual Directories, all it's settings, passwords, mime types, chaching rules, etc... if you still have II6, you can do like this:


to create the XML file, wich we'll edit to change the SITE ID and SITE NAME or even the HOST NAME to avoid later a conflict when we restore that XML file as new website like this:


But how is it on IIS7 ?

On new IIS7... this is not possible via GUI ...we have to do it the old fashioned way, by typing commands on the CMD console...(running as administrator if you are on Win7 or WinServer2008)

Gotta do as follows:
Go CMD on windows (as adminsitrator) and go to the IIS install folder (say C:\windows\system32\inetsrv\) and type:
appcmd list site

This will list all the sites on the server.... take note of the ID for these sites, the new site you create must have a new ID.
arcpmd list site "myOldSite" /config /xml > myXMLFile.xml
This will create a file named "myXMLFile.xml" on the current IIS Install folder
Edit (with notepad maybe) this file and change the ID values on the XML so it won't conflict with any of the sites previously listed. Also change the name of the site and the binding information..
appcmd add site "myNewSite" /in < myXMLFile.xml
this will take that XML File and turn it into a new website on the server .... a perfect replica of the original ...

This Post helped me a lot understanding the arcpmd command