Today is a good day to code

ColdFusion MX 7.0.1 and the 500 null Error

Posted: December 31st, 1969 | Author: | Filed under: Uncategorized | 1 Comment »

ColdFusion MX 7.0.1 and the 500 null Error

Picture of IrvinI have been living with the horribly ugly JRun 500 null error for a while now. For some time I thought it had gone away only to find that it had come back to haunt me.

The reason I found finally after digging around on the internet is that if you use the StructClear function to clear out the CLIENT scope, it will destroy the CLIENT.hitcount variable. Apparently ColdFusion needs this variable to be available, so if you really need it, you will have to set it to 1 in order to prevent the 500 null from appearing at the bottom of all your pages, and in some of your DIVs.

My solution was to simply go into my CLIENT data store DSN and tell ColdFusion not to use hitcount, etcetera. This is not an option for those who are using the registry for CLIENT storage, but really no one should be using that. If you don't need it, I'd just turn it off. I just thought I'd post a little about that. If you want to hear it from the horse's mouth…

Comments on the 500 null error

  • http://Website copro

    Hi, thanks for this post. I’m having the exact same problem. Unfortunately, this solution only fixed the problem temporarily. Once I had logged in (set new client variables) the error came back. Did you ever experience this? We’re storing client variables in a db table.