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:266696
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to