One tip - maybe do a structkeyexists on your exception values like type and tagcontext within rootcause. I see you using it for rootcause itself, but not the others. (Although message should always exist afaik.)
Worse comes to worse - just mail a dump of the exception object and see the keys there. :) On 1/16/07, Chad Gray <[EMAIL PROTECTED]> wrote: > I have started using application.cfc and sending an email when an error > occurs by placing a CFMail tag in the onError function. > > I have one user that when she is doing an insert on a table and is taken back > to the display page I get this error emailed to me. > > > Event Name: > > Error Info: > Message: > Detail: > Root Cause: > Type: java.lang.NullPointerException > Template: /catalogs/index.cfm?action=displayElements&CatalogID=49 > Tag Context: > > > Here is the code that I have in the function (I think I borrowed it from one > of Ray Camden's applications). > > <cfmail to="#application.adminEmail#" from="#application.adminEmail#" > subject="Error" type="html"> > > <br /> > Event Name: #arguments.eventname#<br /> > <br /> > Error Info:<br /> > Message: #arguments.exception.message#<br /> > Detail: #arguments.exception.detail#<br /> > Root Cause: <br /> > <cfif structKeyExists(arguments.exception,"rootcause")><cfdump > var="#arguments.exception.rootcause#"></cfif> > Type: #arguments.exception.type#<br /> > Template: #cgi.script_name#?#cgi.query_string#<br /> > Tag Context:<br /> > <cfif structKeyExists(arguments.exception,"rootcause")><cfdump > var="#arguments.exception.rootcause.tagcontext#"></cfif> > > </cfmail> > > Anyone know what this java.lang.NullPointerException is? There is nothing in > the CF logs to help me figure out what this error is. > > Chad > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266705 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

