Adobe ColdFusion 9 on MAC Lion - Fix for Hanging Admin

First let me start off that I am not a MAC owner and therefore please keep this in mind.

One of the issues with ACF9 on MAC is the use of the java.awt package to get items like the list of available printers.  The AWT package is just a wrapper for a packages that are native on the target operating system.  In this case, there are bugs in the apple.awt.CToolkit class that is the problem on MAC.

We were having an issue with Mach-II 1.9 hanging on MAC Lion recently and we narrowed it done to our use of java.awt.Toolkit.  You can indicate to the JVM that you want to use the sun.awt.* package instead which appears to have fixed the issue for Mach-II 1.9 for MAC Lion users.  The positive side effect is that it fixed the hung "Info" page in the CFIDE as well.

You probably already have headless=true in your jvm.config file, however you need another directive to use a different awt toolkit otherwise the JVM will default the buggy apple.awt toolkit.

Let me know if this fixes other ACF9 issues on MAC Lion like cfdocument.

-Djava.awt.headless=true
-Dawt.toolkit=sun.awt.HToolkit

This also fixes an issue with Mach-II 1.9 on ACF9 with CHF2 running on MAC Lion.

Mach-II has reignited my passion for development! (via CFGears)

For a while now I've been in a rut. I'm not really sure of the cause, but lately I just haven't had the passion I once had for writing code. The spark seemed to be gone. I really haven't had much of a desire to work on any of my side projects, and getting stuff done for clients sometimes seems like a chore. Maybe it's because we've mainly just been doing tedious bug fixes at work for a while and no new development, or maybe it's because I lost a couple of my side contracts since they're moving away from CF. It may just be a side effect of me getting some non-programming hobbies and focusing my time on something else. Whatever the reason, sitting in front of my computer when I'm not at work is not something that I've wanted to do lately. In fact, I've found myself coming up with excuses NOT to get on the computer. But, that all changed last night.

A couple of days ago I decided to dust off one of my old pet projects and start working on it again. This particular project is a custom Mach-II CMS that I was building for a client. The client knew about it and thought it would be nice to have, but they don't really need it so there's never been a big push to get it finished. It's just something that I worked on in my spare time and if it never got finished it was no big deal. About a year ago, I decided to shelve this project and go with Mura instead (no sense reinventing the wheel, right?). Well, that didn't work out so hot, and I really want this client on a CMS, so last night I fired up Subversion and pulled down my old Mach-II project.

This was the first time I've looked at Mach-II since I stopped working on this project a year ago. Imagine my surprise when within just a few minutes of looking through the code I started getting excited about this project. Almost instantly I was looking forward to doing some development again! I actually had to make myself turn off the computer and go to bed last night. It's been a long time since that has happened, and it's been a long time since I felt like that about writing some code. I don't know what it is, but something about working in Mach-II always excites me. Maybe it's because I'm still fairly new to Mach-II and I'm learning a lot while working with it, but I really enjoy working with Mach-II. So much so, that I even try to contribute to the wiki when I can. As funny as it sounds, what really set off this excitement was realizing that the first thing I need to do on this project is set up autowiring for ColdSpring in all of my listeners.

So, yeah, I'm in full geek mode again. :) Thanks Mach-II, this is going to be fun!

Are there any programming languages or frameworks that you work with that get you excited like this?

And Eric hits the nail right on the head! It doesn't matter if Mach-II inspires you; it matters that you are inspired.

For a small soapbox moment, instead of going off and creating a new open source project run by a solo developer. Look around the CFML ecosystem and see if there are projects that you love and use that need your help. Actually, ALL open source projects need your help. So team up and help your favorite open source project instead of trying to do it all yourself. We can do much more for the CFML community if we band together and then divide and conquer. We cannot do it as individuals!

CFML needs to be:
Got Apps?

Not:
Got (More) Frameworks?

FAQ: How-To Clear Your Template Cache in Adobe CF, OpenBD and Railo

Yet another successful colaboration has occurred to get an FAQ setup for Mach-II on how to clear and shut off your template cache in Adobe CF, OpenBD and Railo.  Be sure to check it out on the wiki:

How To Clear Your Template Cache - Instructions for Adobe CF, OpenBD and Railo

We're using Twitter to now help us broadcast small items that the community can help the project with.  So if you're interested, be sure to help us out.  No account is necessary to contribute - our wiki is anonymous write access:

Help us add examples using Listeners via <notify> and <publish> commands on the wiki. Anon write access: http://is.gd/cBG1q