java.net.SocketPermission error

ColdFusion No Comments »

I have been having a problem on a sandboxed CFMX7 server where by clients would get the following error unless a sandbox is created for their site.

 

Security: The requested template has been denied access to <domain name>.

 

The actual cf error you will get in the debug output is

 

access denied (java.net.SocketPermission <domain name> resolve)

 

The reason for this error is because they have enabled session management in their application.cfm, exactly why this would result in a SocketPermission error I do not know, but here Is the work around.

 

You should have a default (top level) security sandbox where you are disabling certain tags and functions by default for the WWWROOT or wherever your web sites are stored. In this sandbox you need to explicity allow the IP address of the server on port 80 under the Server/Ports tab. The the error will no longer occur and you will no longer need to setup a security sandbox just to allow session management.

 

You may find that this error also occurs when making connections to other resources, like database servers (I have a similar issue with MySQL connections on this same server), and adding the server IP and port for the remote server shoudl also work in the same way.

New Baby

Jibber Jabber 10 Comments »

Today at 9:24AM I again became a proud father when my second son "Bret Maverick" was born. He weighed 7Llb 12oz.

Mother and baby are doing fine. Thankfully no violence was involved during the birth and my testicles are still intact :-)

 

My Mohawk has gone

Jibber Jabber 5 Comments »

Yes it has finally happened, I shaved off my mohawk.

Those of you that know me well will know I have had a mohawk for many years in varying colours, in fact it is sort of my trademark as that is how people tend to remember me.

But last night on a whim I decided to shave it off and go "Stone Cold Steve Austin" style. It certainly looks odd now when I look in the mirror, and I haven't yet decided whether i'm going to keep it this way or grow it out and have a normal haircut. The great thing with my mohawk was that it hid my receeding hairline and made me look a little younger.

According to my wife I now look like Grant Mitchel from Eastenders LOL.

 

Updated: 21st November

As per Nicks comment, here is a before and after photos. Sorry they are crappy photos taken taken with my phone. At least Charlie Arehart can't use that "despite the way he looks" comment now seeing as we are now both baldies :-)

 

russ with mohawk
Russ without mohawk
 BEFOREAFTER

 

 

 

CFDevCon 2006 Big success

ColdFusion 7 Comments »

Well my first CFDevCon is now over, and i'm glad to announce it was a big success.

I have received lots of positive feedback and praise so far and plenty of people have told me they will definitely come next year, so it was worth all the hard work and late nights.

 

The turnout reached my expectations which was around 200 people, which resulted in a nicely packed venue with the main room being about 3/4 full with room for a few tables for people to sit with their laptops, which was mainly the speakers tweaking their presentations, or actually writing them at the last minute (no names mentioned Alex).

 

New Atlanta and Charlie Arehart seemed very happy with the event and the turnout, so i'm really glad the trip was worth their while too. 

I just wish I was able to sit still long enough to watch everyones talk myself. 

 

The after party was also great fun, although only about half the delegates were able to stick around due to the need to catch trains and drive home, but those who did stay polished the tequila with gusto. The magician (Hugh Nightingale) also went down great and amazed everyone with his tricks. You always think that if you see these guys tricks face to face you will be able to suss out how they do it, but you can't. How he managed to turn my £10 note into a $50 bill I have no idea.

 

The only disapointment for me was the conference centres own hotel, which was a total dive. Thankfully it wasn't the only hotel, and most people I spoke to ended up staying at the Jury's inn instead, which luckily was right next door. If I hadn't had all my boxes of t-shirts and goody bags with me, I would have moved to the Jury's Inn as well, but I didn't fancy having to move it all just for the sake of 2 nights.

So if your ever in Croydon DO NOT stay at the Fairfield Hotel. The Fairfield Conference centre itself though is great. 

 

As some other people have already started reviewing the event on their blogs, i'll just post their links here as I find them.

 

Mark Drew has posted a PDF of his presentation HERE and his photos  HERE.  Most of the pics of me are at the party, but I did actually wear a proper shirt and tie during the conference honest.

 

Andy Jarrett's review and pics

Alan Williamson's review

Trond Ulseths review

Nick Tong  

 

 

 

 

Application Error

ColdFusion No Comments »

Have you ever just received this useless error from any of your cfm pages

"Application Error"

And nothing else, no debug output, nothing except a blank page.

Well I just found one reason for this today while trying to use CreateObject(java) when this function is disabled in the sites security sandbox. Specifically I was using "getPageContext().forward("#attributes.URL#");"
It seems CF doesn't like to give you any error at all in this situation, so I presume the same may apply to other tags/functions that are disabled by a security sandbox.

So be sure to check all your tags and fucntions are enabled if you get this error.

Also note that if you are calling such code via a custom tag, it also causes the page to take a very long time to return the error or timeout altogether. In FusionReactor the page will just hang and show in "Running Requests" indefinitely and you cannot kill it. 

 

 

Powered by Mango Blog. Design and Icons by N.Design Studio
RSS Feeds