Friday, May 16, 2014

ColdFusion 11 and IIS 8+ Woes

If for any reason you seem to be banging your head against the wall because you installed ColdFusion 11 on a Windows OS with IIS 8+ (Windows 8 or Server 2012) and are dealing with a first request delay that is unexplainably long 12-15 secs than don't worry you are not alone.

I created the following bug in Adobe's bug base and today an engineer called me and confirmed the issue from the details I emailed. The issue is basically as follows.

The first request to ColdFusion after any of the following events cause a delay of 12+ seconds, after that everything works great. The events that cause this issue are as follows:

  1. Restart ColdFusion
  2. Recycle an App Pool in IIS
  3. Restart IIS from GUI or Command iisreset
  4. Edit a Web.Config file (recycle the App Pool)
Just to make sure it was not OS specific I enabled the embedded web server and installed Apache on one of my Windows VMs and the issue did not exists in either. On my Mac I did not experience the issue either so in the end it appears it is an issue with the connector and IIS App Pool timeout or recycles.

The engineer did state he was able to replicate and they will start working on it on Monday May 19th. If you ran into this post thru a search I will make sure to update or follow the bug I linked to above.

I also noticed that my ehcache files are now created at the root of my site if I am using secondary cache in an ORM app which I will be submitting another bug for.

The issues above occurred for me in the following configurations.
  • Windows 8.1 w/ IIS 8.5
  • Server 2012 w/ IIS 8
  • Server 2012 R2 w/ IIS 8.5
* Slow Initial Request on IIS 8 w/ ColdFusion 11

Monday, May 5, 2014

ORM Event Handling and ColdFusion 11

If you are banging your head against the wall because your new install of ColdFusion 11 is crashing your app and you are using ORM Event Handling all you need to do is update your CFC with 2 new functions introduced in 11. These functions are as follows:

public void function preFlush(any entities){};
public void function postFlush(any entities){};

Thank you CF Engineers for making this such a fun Monday. That is sarcasm in case you guys do not understand it.

Thursday, April 17, 2014

New Screenshot Discovery on my Mac today

So anyone who knows me knows that I love Macs and recommend them highly to any new or old PC user. One thing I love is how easy it is to take screenshots. There are 4 keyboard shortcuts which I use all the time and they are as follows:

Capture the screen to a file
Capture the screen to the Clipboard
Capture a selection to a file
Capture a selection to the Clipboard

The ones I used the most is the Shift+4 options as I have dual screen and sometimes just need to capture a certain area. When I want to email the screenshot, I use the first option as it creates a PNG for me on the desktop (which is what I have it set to do) or if I want to manipulate in any image editor I use the second value to simply save to my clipboard and then paste it right into the application (saves me from having to open the file and dragging into the document I am working on). OK, so for the discovery when I did Command-Shift-Control-4, my thumb hit the spacebar shortly after by mistake and what appeared now was a camera icon and anytime I was over any window it would highlight the window, which pretty much led me to safely assume that if I click to accept that is what I would get a screenshot of. So I did and that is exactly what happened. I think it is great because now it saved me from even having to set the selection area, if what I originally wanted was a screenshot of the application window.

You can manipulate what you want your screenshots to be saved as using terminal commands or with utilities like Cocktail from Maintain which I recommend purchasing. Any

Interested in learning more keyboard shortcuts for your mac? Click here to see them on Apple's website.

Friday, January 10, 2014

ColdFusion Developers on Mavericks .. you can quit crying now.

Well it appears the ColdFusion 10 Update 13 is now available.

This update introduces support for OS X 10.9 Mavericks. It fixes the web server connector issue on OS X 10.9 reported on bug #3653076. Which itself had a solution by another very smart developer but the bug itself was filled with whiny developers that didn't care to read the comments and find a solution themselves. Instead it was filled with people complaining that they were now not able to work, which I found quite silly. Oh well, my days here are limited as this is the year I am committing to make the full switch and I got RoR and iOS Development on my radar.

You can refer to this technote.

And if you want to entertain yourself with whiny comments check out the bug.

Thursday, October 24, 2013

Help ColdFusion not starting Part 2

This is a follow up to my original post Help ColdFusion not working in the sky. I was basically having the same issue here at the ColdFusion Summit 2013, since my hostname continued to get automatically set when I would join the WIFI network. So each time I restarted my local ColdFusion server it would fail if it could not ping itself and I quickly got tired of adding aliases in my /etc/host file. I then decided to ask the question "Why does this happen" and apparently there is a setting on Mac that lets your Hostname get set automatically and this is located in the /etc/hostconfig file (if it is not there it is because it is the default setting - read more about this here).


Basically all you have to do is open that file and set it to the value you'd like and it will no longer get overwritten when joining networks. For example, I changed mine to the value I have in my sharing tab.


Now when I join new networks my hostname stays as is and I can restart ColdFusion as many times as I want without any more issues. On another note, I upgraded to Mavericks which introduced other headaches of ColdFusion not working which there is a temporary fix here. I will most likely post about this later but for now, it CF does not work for you it is due to the connector not working on Apache 2.2.4 which is what Mavericks comes with.

Web Analytics