Answered
Catching java.lang.NullPointerException with cftry/cfcatch?
I'm getting a java.lang.NullPointerException returned on an
update function in a CFC:
"The cause of this output exception was that: java.lang.NullPointerException."
I want to find where it's generating this error so I can fix it. I've never really used CFTRY and CFCATCH, but figured now would be a good time to learn if this helped me track down the null. Can anyone provide an example of how to use these tags with the above NPE and output a message that give info on where it's faulting?
I'm using a standard update query,
<cfquery>
UPDATE table
SET columns = new values
WHERE ID column = some ID
</cfquery>
"The cause of this output exception was that: java.lang.NullPointerException."
I want to find where it's generating this error so I can fix it. I've never really used CFTRY and CFCATCH, but figured now would be a good time to learn if this helped me track down the null. Can anyone provide an example of how to use these tags with the above NPE and output a message that give info on where it's faulting?
I'm using a standard update query,
<cfquery>
UPDATE table
SET columns = new values
WHERE ID column = some ID
</cfquery>
