tracker issue : CF-3039456

select a category, or use search below
(searches all categories and all time range)
Title:

Bug 79102:Strange "Invalid CFML construct" message - code is definitely o

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Harry Klein / Harry Klein (Harry Klein)

Created: 07/28/2009

Components: Language, Tags

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 / 245200

Priority/Frequency: Major / Unknown

Locale/System: English / Win All

Vote Count: 0

Problem:

Strange  "Invalid CFML construct" message - code is definitely o.k.Error in WriteLog() line?<cffunction name="publish" ...>...<cfif variables.monitoring><cfset writeLog("MONITORING: getting monitoring pre publish instance data...")>
Method:

<cffunction name="publish" ...>...<cfif variables.monitoring><cfset writeLog("MONITORING: getting monitoring pre publish instance data...")>...<cffunction name="writeLog" access="public" output="No" returntype="void"><cfargument name="sMessage" type="string" required="Yes"><cfargument name="sType" type="string" required="No" default="publish"><cfset var iDuration = 0><cfset var iDurationBoundary = variables.iLogDurationThreshold><cfset var iTicks= getTickCount()><cfset var sTimingMessage= createODBCDateTime(now()) & " "><cfif variables.bLog OR (variables.monitoring AND listFirst(arguments.sMessage, ":") EQ "monitoring")><cfif NOT structKeyExists(request, "stLastLogTickcount")><cfset request.stLastLogTickcount= structNew()></cfif><cfif NOT structKeyExists(request.stLastLogTickcount, arguments.sType)><cfset request.stLastLogTickcount[arguments.sType]= iTicks><cffile action="APPEND" file="#variables.sLogFilepath##arguments.sType#.log" output="+++++++++++++++++++++++++ #variables.stContens.applicationname# New request (from #cgi.remote_host#) at #iTicks# system millis / #createODBCDateTime(now())#" addnewline="Yes"></cfif><cfif structKeyExists(variables.stLastLogTickcount, arguments.sType)><cfset iDuration = iTicks-variables.stLastLogTickcount[arguments.sType]><cfset sTimingMessage= sTimingMessage & "#right('        ' & iDuration, 8)# millis since last log / "><cfelse><cfset iDuration = 0><cfset sTimingMessage= sTimingMessage & "** first log at #iTicks# system millis / "><cffile action="APPEND" file="#variables.sLogFilepath##arguments.sType#.log" output="=========================" addnewline="Yes"></cfif><cfset variables.stLastLogTickcount[arguments.sType]= iTicks><cfif iDuration gte iDurationBoundary><cffile action="APPEND" file="#variables.sLogFilepath##arguments.sType#.log" output="#sTimingMessage##arguments.sMessage#" addnewline="Yes"></cfif></cfif></cffunction>
Result:

Invalid CFML construct

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3039456

External Customer Info:
External Company:  
External Customer Name: Harry Klein
External Customer Email: 10050DCB445F83AF9920157F
External Test Config: 07/28/2009

Attachments:

Comments: