Skip to main content
March 28, 2008
Question

Random Null Errors

  • March 28, 2008
  • 4 replies
  • 612 views
my coldfusion 8 developer keeps giving me null pointer errors randomly. If I refresh the page one or two times they go away, the variable it says is null is not null, and it happens randomly with different variables. There is no pattern to what variables it thinks are null or when. I can refresh a page once and get the error and then it wont pop up again for an hour!

It's nothing critical, but it's annoying as hell
    This topic has been closed for replies.

    4 replies

    Participating Frequently
    March 28, 2008
    Have you resolved the problem? MySQL settings problem?
    March 28, 2008
    excellent, thanks guys!
    Participating Frequently
    March 28, 2008
    Here is a summary for their problem:

    "The Null Pointer error is due to an issue with ColdFusion8 and MySQL. The fix for this is to uncheck 'Maintain connections across client requests' in the Advanced settings fir the ColdFusion DSN. Please let us know if we can be of further assistance."
    Participating Frequently
    March 28, 2008
    Here is a discussion about same topic.

    http://www.coldfusionjedi.com/index.cfm/2007/9/28/ColdFusion-8-MySQL-HostMySite-and-NPEs

    It looks like it may be because of some driver settings especially if you are using MySQL etc.