*sigh*

On 5/15/07, Taco Fleur <[EMAIL PROTECTED]> wrote:
> This is interesting and looks like what I'm experiencing.
> http://www.cfcdeveloper.com/index.cfm/2006/2/24/Applicationcfc-onError-tweaks
>
>
> On 5/15/07, Chris Velevitch <[EMAIL PROTECTED]> wrote:
> >
> >
> > Try replacing references to arguments.exception with
> > #textDump(arguments.Exception)#
> >
> > where the function textDump is:-
> >
> > <cffunction name="textDump">
> >        <cfargument name="pValue">
> >        <cfargument name="pPrefix" default="">
> >
> >        <cfif pPrefix neq ''>
> >                <cfset pPrefix="#pPrefix#.">
> >        </cfif>
> >        <cfoutput>
> >        <cfloop item="i" collection="#pValue#">
> >                <cfset j = pValue[i]>
> >                <cfif isSimpleValue(j)>
> >                        #pPrefix##i#: #j#<br>
> >                <cfelse>
> >                        <cfif isStruct(j)>
> >                                <cfset lvLabel = "#pPrefix##i#">
> >                                #textDump(j[a],lvLabel)#
> >                        <cfelse>
> >                                <cfif isArray(j)>
> >                                        <cfloop index="a" from="1"
> > to="#ArrayLen(j)#">
> >                                                <cfif isSimpleValue(j[a])>
> >                                                #pPrefix##i#[#a#]: #j[a]#
> >                                                <cfelse>
> >                                                        <cfset lvLabel =
> > "#pPrefix##i#[#a#]">
> >                                                #textDump(j[a],lvLabel)#
> >                                                </cfif>
> >                                        </cfloop>
> >                                </cfif>
> >                        </cfif>
> >                </cfif>
> >        </cfloop>
> >        </cfoutput>
> > </cffunction>
> >
> > This should give you the complete content of the exception structure.
> > At least you'll have all the information to better determine the
> > cause.
> >
> > On 5/14/07, Taco Fleur <[EMAIL PROTECTED]> wrote:
> > > Andrew,
> > >
> > > <cffunction
> > >   name="onError"
> > >   returntype="void"
> > >   output="true">
> > >
> > >
> > >   <cfargument
> > >    name="Exception"
> > >    required="true">
> > >   <cfargument
> > >    name="EventName"
> > >    type="string"
> > >    required="true">
> > >
> > >   <cfset variables.referenceNumber = lsDateFormat( now(), "yyyymmdd" ) &
> > > lsTimeFormat( now(), "hhmmss" ) >
> > >   <cfif len( cgi.http_referer ) neq 0 and len( cgi.remote_addr ) neq 0
> > and
> > > len( cgi.host ) neq 0 >
> > >    <cftry>
> > >     <cfmail
> > >      to="[EMAIL PROTECTED]"
> > >      from="[EMAIL PROTECTED] "
> > >      subject="Error occured on Sellmystuff"
> > >      server="mail.xxx.com.au"
> > >      mailerid="sellmystuff.com.au "
> > >      wraptext="60">
> > >  An error occured on the Sellmystuff website.
> > >
> > >  The details of the error are;
> > >
> > >  browser: #cgi.http_user_agent#
> > > _______________________________________________________________
> > >
> > >  reference number: #variables.referenceNumber#
> > > _______________________________________________________________
> > >
> > >  Date: #lsDateFormat( now() )# #lsTimeFormat( now() )#
> > > _______________________________________________________________
> > >
> > >  #arguments.Exception.message#
> > >
> > >  #arguments.Exception.detail#
> > > _______________________________________________________________
> > >
> > >  referer: #cgi.http_referer#
> > > _______________________________________________________________
> > >
> > >  remote address: #cgi.remote_addr#
> > > _______________________________________________________________
> > >
> > >  host/script: #cgi.host# #cgi.script#
> > > _______________________________________________________________
> > >
> > >  path: #cgi.path_info#
> > > _______________________________________________________________
> > >
> > >  query: #cgi.query_string#
> > > _______________________________________________________________
> > >
> > >  User identity:
> > > <cftry>#session.User.getUserIdentity()#<cfcatch></cfcatch></cftry>
> > > _______________________________________________________________
> > >
> > >  Form variables: <cfloop collection="#form#" item="key">
> > >   #variables.key# = #form[ variables.key ]#
> > >  </cfloop>
> > > _______________________________________________________________
> > >
> > >  #cgi.request_body#
> > >
> > >     </cfmail>
> > >     <cfquery
> > >      name="rsInsert"
> > >
> > > datasource="#application.system.Datasource.getName()#">
> > >      INSERT INTO   [tbl_error] (
> > >            [errorMessage]
> > >            , [script_name]
> > >            , [query_string]
> > >           )
> > >      VALUES    (
> > >            <cfqueryparam
> > > value="#arguments.Exception.message#
> > > #arguments.Exception.detail#" cfsqltype="CF_SQL_VARCHAR">
> > >              , <cfqueryparam value="#cgi.script_name#"
> > > cfsqltype="CF_SQL_VARCHAR">
> > >              , <cfqueryparam value="#cgi.query_string#"
> > > cfsqltype="CF_SQL_VARCHAR" null="#yesNoFormat( len( cgi.query_string )
> > eq 0
> > > )#">
> > >           )
> > >     </cfquery>
> > >     <cfcatch>
> > >     </cfcatch>
> > >    </cftry>
> > >   </cfif>
> > >   <cfoutput>
> > >    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> > > "http://www.w3.org/TR/html4/strict.dtd";>
> > >    <html>
> > >     <head>
> > >      <meta http-equiv="Content-Type" content="text/html;
> > > charset=iso-8859-1">
> > >      <title>Error</title>
> > >      <link href="/_resource/style/error/default.css"
> > > rel="stylesheet" type="text/css">
> > >     </head>
> > >     <body>
> > >      <div id="body-content">
> > >       <h1>Error</h1>
> > >       <div id="maincol-container">
> > >        <h2>Oops, there was a problem!</h2>
> > >        <cfif findNoCase( "/administration/protected/", cgi.script_name )
> > or
> > > findNoCase( "development.sellmystuff.com.au", cgi.http_host ) or
> > findNoCase(
> > > "web-strategists.com", cgi.http_host ) >
> > >         <p>
> > >          A description of the problem is:
> > >         </p>
> > >         <p>
> > >          <strong>#arguments.Exception.message#</strong>
> > >         </p>
> > >        </cfif>
> > >        <p>
> > >         The problem could be caused by a network, database, programming
> > or
> > > connection problem, you could try again to see if the problem is solved.
> > >        </p>
> > >        <p>
> > >         The technical team (<a href="
> > > mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a>)
> > > has been notified of the problem and will work on fixing this issue as
> > soon
> > > as possible.
> > >        </p>
> > >        <p>
> > >         <strong>A reference number for this problem is
> > > <strong>#variables.referenceNumber#</strong></strong>
> > >        </p>
> > >       </div>
> > >       </div>
> > >     </body>
> > >    </html>
> > >   </cfoutput>
> > >
> > >
> > >  </cffunction>
> > >
> > >
> > > On 5/14/07, Andrew Scott <[EMAIL PROTECTED]> wrote:
> > > >
> > > >
> > > > Taco..
> > > >
> > > > So I am going to assume the info has come from the email, now can you
> > post
> > > the onError code that you are using minus any sensitive info. I think I
> > > might know your problem, it could be possible that you are referencing
> > > session variables that do not exist, or even persistant variables. Does
> > that
> > > trigger anything with you.
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > On 5/14/07, Taco Fleur < [EMAIL PROTECTED]> wrote:
> > > > >
> > > > >
> > > > >
> > > > > ?? even on that link the onSesisonEnd does not return anything.
> > > > >
> > > > >
> > > > >
> > > > > <cffunction name="onSessionEnd" returnType="void" output="false">
> > > > >
> > > > > <cfargument name="sessionScope" type="struct" required="true">
> > > > >
> > > > > <cfargument name="appScope" type="struct" required="false">
> > > > >
> > > > > </cffunction>
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > On 5/14/07, Andrew Scott < [EMAIL PROTECTED] > wrote:
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > Where do you get that info from? When I was beta testing
> CFMX7.0all
> > > the developer notes and docs said otherwise.
> > > > > >
> > > > > > So all my methods are like this.
> > > > > >
> > > > > > http://ray.camdenfamily.com/downloads/app.pdf
> > > > > >
> > > > > > notice the methods return true!!
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > On 5/14/07, Taco Fleur < [EMAIL PROTECTED] > wrote:
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > Andrew,
> > > > > > >
> > > > > > > a onSessionEnd method should not return anything ;-)
> > > > > > > And yes it exists in my Application.cfc.
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > On 5/14/07, Andrew Scott < [EMAIL PROTECTED] > wrote:
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > Taco,
> > > > > > > >
> > > > > > > > If this is a scheldued CF event, then I can understand why
> > there
> > > is no session and the onSessionEnd is being fired. Now I know this is
> > not a
> > > problem normally, but maybe the scheduled event requires the <cfreturn
> > true
> > > /> have you tried that, in the method in Application.cfc? not sure if
> > you
> > > said that method existed in the Application.cfc or not, but it might pay
> > to
> > > add it.
> > > > > > > >
> > > > > > > > But on a side note, the onError method should be able to
> > provide
> > > all the same details as cfcatch provides so a stack trace might be good
> > to
> > > add to give some more information.
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > On 5/14/07, Taco Fleur < [EMAIL PROTECTED] > wrote:
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > Agreed, but here is the scenario again;
> > > > > > > > >
> > > > > > > > > The onError method in Application.cfc sends an email when an
> > > error occurs, one of the errors is as following (copied and pasted
> > exactly
> > > as per the way we get it);
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > browser:
> > > > > > > > > reference number: 20070508103502
> > > > > > > > > Date: 8/05/2007 10:35
> > > > > > > > >
> > > > > > > > > Event Handler Exception.
> > > > > > > > >
> > > > > > > > > An exception occurred
> > > > > > > > >
> > > > > > > > > when invoking a event handler method from Application.cfcThe
> > > method name is: onSessionEnd.
> > > > > > > > >
> > > > > > > > > referer:
> > > > > > > > > remote address:
> > > > > > > > > host/script:
> > > > > > > > > path:
> > > > > > > > > query:
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > Just to be sure I've searched all log, Application,
> > Exception
> > > etc. logs for more information, but its not in there.
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > On 5/14/07, MrBuzzy <[EMAIL PROTECTED]> wrote:
> > > > > > > > > >
> > > > > > > > > > It doesn't seem right to hide the errors just because you
> > cant
> > > find
> > > > > > > > > > the cause.. I'd like to help more but i don't think you've
> > > posted
> > > > > > > > > > enough info for anyone to work it out. So what else can
> > you
> > > give us?
> > > > > > > > > >
> > > > > > > > > > On 5/14/07, Taco Fleur <[EMAIL PROTECTED] > wrote:
> > > > > > > > > > > I've noticed there is no cgi referer or remote address,
> > so
> > > I've just made a
> > > > > > > > > > > rule to block emails when an error occurs that has no
> > > referer or remote
> > > > > > > > > > > address. I'm thinking that its caused by ColdFusion task
> > > scheduler, I have a
> > > > > > > > > > > task that runs every 5 minutes.
> > > > > > > > > > >
> > > > > > > > > > > hhmmm, I guess no error would contain the referer or
> > remote
> > > address as the
> > > > > > > > > > > methods are called by ColdFusion itself not the client.
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > On 5/12/07, Chris Velevitch < [EMAIL PROTECTED]>
> > > wrote:
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > Do you have a <cftry type="any"> block and <cflog> all
> > the
> > > attributes
> > > > > > > > > > > > of cfcatch?
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > Chris
> > > > > > > > > > > > --
> > > > > > > > > > > > Chris Velevitch
> > > > > > > > > > > > Manager - Sydney Flash Platform Developers Group
> > > > > > > > > > > > m: 0415 469 095
> > > > > > > > > > > > www.flashdev.org.au
> > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > --
> > > > > > > > > > > Taco Fleur - http://www.pacificfox.com.au
> > > > > > > > > > > Web Design, Web development, Graphic Design and Complete
> > > Internet Solutions
> > > > > > > > > > > an industry leader with commercial IT experience since
> > 1994
> > > …
> > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > --
> > > > > > > > > Taco Fleur - http://www.pacificfox.com.au
> > > > > > > > > Web Design, Web development, Graphic Design and Complete
> > > Internet Solutions
> > > > > > > > > an industry leader with commercial IT experience since 1994
> > …
> > > > > > > > > www.aegeon.com.au
> > > > > > > > > Phone: +613  8676 4223
> > > > > > > > > Mobile: 0404 998 273
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > http://www.pacificfox.com.au
> > > > > > > > > Web Design, Web development, Graphic Design and Complete
> > > Internet Solutions
> > > > > > > > > an industry leader with commercial IT experience since 1994
> > …
> > > > > > > > > --
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > Senior Coldfusion Developer
> > > > > > > > > Aegeon Pty. Ltd.
> > > > > > > > > www.aegeon.com.au
> > > > > > > > > Phone: +613  8676 4223
> > > > > > > > > Mobile: 0404 998 273
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > --
> > > > > > > > > Taco Fleur - http://www.pacificfox.com.au
> > > > > > > > > Web Design, Web development, Graphic Design and Complete
> > > Internet Solutions
> > > > > > > > > an industry leader with commercial IT experience since 1994
> > …
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > Senior Coldfusion Developer
> > > > > > > > Aegeon Pty. Ltd.
> > > > > > > > www.aegeon.com.au
> > > > > > > > Phone: +613  8676 4223
> > > > > > > > Mobile: 0404 998 273
> > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > > > > > Taco Fleur - http://www.pacificfox.com.au
> > > > > > > > Web Design, Web development, Graphic Design and Complete
> > Internet
> > > Solutions
> > > > > > > > an industry leader with commercial IT experience since 1994 …
> > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> >
> > --
> > Chris Velevitch
> > Manager - Sydney Flash Platform Developers Group
> > m: 0415 469 095
> > www.flashdev.org.au
> >
> > >
> >
>
>
> --
> Taco Fleur - http://www.pacificfox.com.au
> Web Design, Web development, Graphic Design and Complete Internet Solutions
> an industry leader with commercial IT experience since 1994 …
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to