I’m using ColdFusion with Microsoft SQL Server 2005 and on occasion I get this error:
“[Macromedia][SQLServer JDBC Driver]Object has been closed.”
The traceback invariably leads to an SQL query as one would expect, even simple SELECT commands with no JOINs or input parameters or anything fancy at all.
The only solution I’ve heard about so far is to restart “the service”, which I can only imagine refers to the SQL Server service. I’ve tried restarting both the SQL Server and the ColdFusion Service, but it still keeps happening at random times.
(Also a restart isn’t a solution. One cannot have arbitrary pages giving arbitrary error messages at arbitrary times in a production environment.)
When it occurs, it occurs persistently for a few minutes, then goes away and might come back in a few seconds or minutes. It started happening when I was developing a JavaScript portion of my application which should have nothing to do with either the ColdFusion code or the SQL commands.
My searches online have been fruitless so far.
Any help appreciated.
Turns out this simply happens when the server is overloaded. There seems to be no remedy other than restarting and/or removing load from the server.
Thanks all who answered, anyway!