All about IllegalAccessException in CFMX

Occasionally when working with Java classes in ColdFusion MX gold you receive an error message, java.lang.IllegalAccessException. Why did you receive this when the method you’re calling is public? Why do we care since it’s been fixed in ColdFusion MX 6.1?

The answer to the first question leads into the second–exploring these issues helps us learn more about how ColdFusion MX works.
Continue reading

Unzip a file in CFMX with java.util.zip

The question of unzipping a file came up on the forums again. I’ve always replied that they can use CFX_Zip in CF5 and the java.util.zip package in CFMX. Never having had to actually use this myself in a ColdFusion application, I never relalized that java.util.zip is not all that straightforward.

After some research and one server crash, I put together this UDF.

Continue reading

Thread Hijacking

Ran into a few instances of Thread Hijacking today. Not sure if the term is clear–what I mean is if one person posts a question in a forum starting a new thread and then another person posts a new question as a response in the same thread. Is anyone else bothered by this or is it just me?

We end up with two different questions in the same thread and two different conversations intermingled. Intermingling is nice in the real world–especially for those of us computer geeks held up in basement offices that look more like NASA than my real NASA office–but for forum threads, intermingling is bad.

It’d be easier to get answers to your question is you post it as a new question as opposed to a response to an existing question. It’s more curteous to the original poster and to everyone participating.