Thanks very much for the response Peter.
Please see my inline responses to your questions below. I hope you not reading this in text mode or it will probably be difficult to follow. It is unlikely that I will be able to get our server people to upgrade to a newer version of Cold Fusion. It is unlikely that I will be allowed the time to upgrade to a newer version of Mach-II due to the application retesting time involved. Bryan From: [email protected] [mailto:[email protected]] On Behalf Of Peter J. Farrell Sent: Tuesday, March 30, 2010 1:27 PM To: [email protected] Subject: Re: [Mach-II] A ghost is re-firing my URL There is no functionality in Mach-II directly that would cause behavior like this. However, I do have a few questions: 1. What version of Mach-II are you using? Please report the full version number (something like 1.6.1.8 or 1.8.0.8 -- you can see it in the README file header or in the M2 Dashboard). [my response] ----------------------- Mach-II - Version 1.1.0 ----------------------- $Id: Mach-II-Readme.txt 517 2005-09-29 07:31:56Z pfarrell $ 2. What vendor and version of you CFML engine are you using? (I'm guessing ti might be cf9...????) [my response] Server Details Server Product ColdFusion MX Version 7,0,2,142559 Edition Enterprise Operating System UNIX OS Version 2.6.9-78.0.8.0.1.EL Update Level /usr/local/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib /updates/chf7020003.jar JVM Details Java Version 1.4.2_13 Java Vendor Sun Microsystems Inc. 3. Have you checked for var scope issues in your code? [my response] Yes. Definitely. I have everything in a <cfset var local = structNew() /> local.thisVarName 4. Are you using cfthread anywhere? [my response] No. I just did d a global search of the application to confirm. 5. <cfhttp> needs to have an "name" attribute which needs to be var'ed. It could be possible that there is a threading issue with the vendor/version of your CFML engine. [my response] That snippet of code is in a .cfm file. The cfhttp used to be a cflocation. Why is a name attribute needed? The syntax I used came from a trusted source on the internet. 6. I think you need to share more code. I'd also log the user agent in the log message you are doing as well. [my response] I'm not sure what code would be most useful. What would you like to see? I am logging a lot more but I didn't want to overwhelm the reader. See below. These two logged report executions resulted in three reports being produced because of this problem. Report 1 ran from 9:44 to 9:46. Report 2 ran from 9:45 to 9:51. Report 3 ran from 9:50 to 955. As you can see in the logging the cfhttp call that started at 9:45 did not complete until 9:55. Therefore both Report 2 and Report 3 ran during that time period. This should not happen. It is O.K. for multiple reports to run simultaneously under certain circumstances that are checked in checkIfReportShouldRun. However Report 3 should not have fired while Report 2 was running and it was rejected by checkIfReportShouldRun as shown in the last paragraph of the log, at the very bottom of this message . (donotremove01 is a system login name and all of the cgi.remote_addr were identical.) {ts '2010-03-30 09:44:03'} local.configNumber=4-CFHTTP START -local.cfhttpStartTime={ts '2010-03-30 09:44:03'}-local.configName=Report Test-local.desiredEvent=http://myAppUrl/index.cfm?event=runNextReport&empTyp e=any&scheduleId=0&adminEmail=developer&userEmail=developer&desiredDwLoadSta tus=Auto Determine&daysToCheck=7&configNumber=4&executeScheduleIdTime={ts '2010-03-30 09:44:03'}&cfhttpStartTime={ts '2010-03-30 09:44:03'}CFHTTP START {ts '2010-03-30 09:45:03'} local.configNumber=5-CFHTTP START -local.cfhttpStartTime={ts '2010-03-30 09:45:03'}-local.configName=Report Test-local.desiredEvent=http://myAppUrl/index.cfm?event=runNextReport&empTyp e=any&scheduleId=0&adminEmail=developer&userEmail=developer&desiredDwLoadSta tus=Auto Determine&daysToCheck=7&configNumber=5&executeScheduleIdTime={ts '2010-03-30 09:45:03'}&cfhttpStartTime={ts '2010-03-30 09:45:03'}CFHTTP START {ts '2010-03-30 09:46:16'} local.configNumber=4-CFHTTP COMPLETE-local.cfhttpStartTime={ts '2010-03-30 09:44:03'}-local.cfhttpCompleteTime={ts '2010-03-30 09:46:16'}-local.configName=Report Test-local.desiredEvent=http://myAppUrl/index.cfm?event=runNextReport&empTyp e=any&scheduleId=0&adminEmail=developer&userEmail=developer&desiredDwLoadSta tus=Auto Determine&daysToCheck=7&configNumber=4&executeScheduleIdTime={ts '2010-03-30 09:44:03'}&cfhttpStartTime={ts '2010-03-30 09:44:03'}&cfhttpCompleteTime={ts '2010-03-30 09:46:16'}CFHTTP COMPLETE {ts '2010-03-30 09:55:01'} local.configNumber=5-CFHTTP COMPLETE-local.cfhttpStartTime={ts '2010-03-30 09:45:03'}-local.cfhttpCompleteTime={ts '2010-03-30 09:55:01'}-local.configName=Report Test-local.desiredEvent=http://myAppUrl/index.cfm?event=runNextReport&empTyp e=any&scheduleId=0&adminEmail=developer&userEmail=developer&desiredDwLoadSta tus=Auto Determine&daysToCheck=7&configNumber=5&executeScheduleIdTime={ts '2010-03-30 09:45:03'}&cfhttpStartTime={ts '2010-03-30 09:45:03'}&cfhttpCompleteTime={ts '2010-03-30 09:55:01'}CFHTTP COMPLETE This shows the extra report being fired. The one I bolded in red fired without going through checkIfReportShouldRun which is why the top three lines of logging are missing. {ts '2010-03-30 09:44:03'} configNumber=4-configName=Report Test-http://myAppUrl/index.cfm?event=runNextReport&empType=any&scheduleId=0& adminEmail=developer&userEmail=developer&desiredDwLoadStatus=Auto Determine&daysToCheck=7&configNumber=4&executeScheduleIdTime={ts '2010-03-30 09:44:03'} {ts '2010-03-30 09:44:03'} maxToRunVsRunning=10-0 - maxMonthlyToRunVsRunning=1-0 - maxRepToRunVsRunning=5-0 - maxTechToRunVsRunning=5-0 {ts '2010-03-30 09:44:03'} schedulesRunningList= - monthlySchedulesRunningList= - salesRepSchedulesRunningList= - techSchedulesRunningList= {ts '2010-03-30 09:44:14'} The following scheduledId was just executed: 119 - arguments.configNumber = 4 - local.uuidForSchedule = AF50B3CC-C3FF-6B48-7B3C069989EB0058 - local.statusCodeBeforeSetToInProcess = A - now() = {ts '2010-03-30 09:44:14'} - cgi.REMOTE_ADDR = 10.xxx.x.xxx - cgi.http_referer = - cgi.http_user_agent = ColdFusion - cgi.remote_addr = 10.xxx.x.xxx - cgi.request_method = GET - cgi.script_name = /myApp/index.cfm - arguments.securityUser.GetUserName() = donotremove01 {ts '2010-03-30 09:45:03'} configNumber=5-configName=Report Test-http://myAppUrl/index.cfm?event=runNextReport&empType=any&scheduleId=0& adminEmail=developer&userEmail=developer&desiredDwLoadStatus=Auto Determine&daysToCheck=7&configNumber=5&executeScheduleIdTime={ts '2010-03-30 09:45:03'} {ts '2010-03-30 09:45:03'} maxToRunVsRunning=10-1 - maxMonthlyToRunVsRunning=1-0 - maxRepToRunVsRunning=5-0 - maxTechToRunVsRunning=5-1 {ts '2010-03-30 09:45:03'} schedulesRunningList=119 - monthlySchedulesRunningList= - salesRepSchedulesRunningList= - techSchedulesRunningList=119 {ts '2010-03-30 09:45:12'} The following scheduledId was just executed: 523 - arguments.configNumber = 5 - local.uuidForSchedule = AF51991D-0B2A-6CD2-AE705137BF9D10B9 - local.statusCodeBeforeSetToInProcess = A - now() = {ts '2010-03-30 09:45:12'} - cgi.REMOTE_ADDR = 10.xxx.x.xxx - cgi.http_referer = - cgi.http_user_agent = ColdFusion - cgi.remote_addr = 10.xxx.x.xxx - cgi.request_method = GET - cgi.script_name = /myApp/index.cfm - arguments.securityUser.GetUserName() = donotremove01 {ts '2010-03-30 09:50:12'} The following scheduledId was just executed: 729 - arguments.configNumber = 5 - local.uuidForSchedule = AF562C1A-F6EA-BA0F-1CDA5046A4375179 - local.statusCodeBeforeSetToInProcess = A - now() = {ts '2010-03-30 09:50:12'} - cgi.REMOTE_ADDR = 10.xxx.x.xxx - cgi.http_referer = - cgi.http_user_agent = ColdFusion - cgi.remote_addr = 10.xxx.x.xxx - cgi.request_method = GET - cgi.script_name = /myApp/index.cfm - arguments.securityUser.GetUserName() = donotremove01 -- You received this message because you are subscribed to Mach-II for CFML list. 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/mach-ii-for-coldfusion?hl=en SVN: http://greatbiztoolsllc.svn.cvsdude.com/mach-ii/ Wiki / Documentation / Tickets: http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/ To unsubscribe from this group, send email to mach-ii-for-coldfusion+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
