Re: 6-0-15 > 6.2.6 append method was not found

Chris Kent <[email protected]>
Newsgroups gmane.comp.cms.farcry.devel
Message-ID <[email protected]>
Try a quick amend in /core/Application.cfc to send the error email/display 
the error 

Lines 449-458
<cfset stException = oError.normalizeError(arguments.exception) />
 <cfset oError.logData(stException) />
 <!--- Email error --->
<cfif isdefined("application.config.general.bEmailErrors") and 
application.config.general.bEmailErrors and 
len(application.config.general.errorEmail)>
<cfmail to="#application.config.general.errorEmail#" 
from="#application.config.general.adminEmail#" 
subject="#application.applicationname#: #stException.message# 
(#stException.bot#)" 
type="text/plain"><cfoutput>#oError.formatError(stException,"text")#</cfoutput></cfmail>
</cfif>
 <cfset oError.showErrorPage("500 Internal Server Error",stException) />

Try commenting out the 
 <cfset oError.logData(stException) />
You might then be able to see what the underlying error is.

Chris.



On Wednesday, 16 January 2013 19:28:45 UTC, Might Aswell wrote:
>
> anyone else have any input? I'll mention that this site (6.0.15) has been 
> continuously upgraded since 4.x maybe something outside of core I need to 
> look at? 
>
> On Tuesday, January 8, 2013 10:39:21 AM UTC-8, Might Aswell wrote:
>>
>> no additional info with debug flag..
>>
>> The error is now;
>>
>> The element at position 0 cannot be found. The error occurred in *D:\InetPub\farcry\core\packages\lib\error.cfc: 
>> line 221*
>>
>> 219 : 				<cfset stacktrace.append(arguments.log.stack[i].template) />
>> 220 : 				<cfset stacktrace.append(":") />*221 : 				<cfset stacktrace.append(arguments.log.stack[i-1].line) />*
>> 222 : 				<cfif i eq arraylen(arguments.log.stack)>
>> 223 : 					<cfset stacktrace.append(variables.newline) />
>>
>>
>> On Friday, January 4, 2013 6:19:54 PM UTC-8, AJ Mercer wrote:
>>>
>>> what do you get is you put 
>>> ?debug=1 
>>> onto the URL?
>>>
>>>
>>> On 5 January 2013 08:56, Might Aswell <[email protected]> wrote:
>>>
>>>> The append method was not found.Either there are no methods with the 
>>>> specified method name and argument types, or the append method is 
>>>> overloaded with argument types that ColdFusion cannot decipher reliably. 
>>>> ColdFusion found 2 methods that matched the provided arguments. If this is 
>>>> a Java object and you verified that the method exists, you may need to use 
>>>> the javacast function to reduce ambiguity.  The error occurred in *D:\InetPub\farcry\core\packages\lib\error.cfc: 
>>>> line 221*
>>>>
>>>> 219 : 				<cfset stacktrace.append(arguments.log.stack[i].template) />
>>>> 220 : 				<cfset stacktrace.append(":") />
>>>> *221 : 				<cfset stacktrace.append(arguments.log.stack[i-1].line) />*
>>>>
>>>> 222 : 				<cfif i eq arraylen(arguments.log.stack)>
>>>> 223 : 					<cfset stacktrace.append(variables.newline) />
>>>>
>>>>
>>>> On Friday, January 4, 2013 4:42:14 PM UTC-8, AJ Mercer wrote:
>>>>
>>>>> I think Dennis means
>>>>> stack[i - 1]
>>>>>
>>>>>
>>>>> On 5 January 2013 08:20, Might Aswell <[email protected]> wrote:
>>>>>
>>>>>> Not sure if  this was what you meant, but doesn't seem to help, did I 
>>>>>> misinterpret?
>>>>>>
>>>>>> The append method was not found.Either there are no methods with the 
>>>>>> specified method name and argument types, or the append method is 
>>>>>> overloaded with argument types that ColdFusion cannot decipher reliably. 
>>>>>> ColdFusion found 2 methods that matched the provided arguments. If this is 
>>>>>> a Java object and you verified that the method exists, you may need to use 
>>>>>> the javacast function to reduce ambiguity.  The error occurred in *
>>>>>> D:\InetPub\farcry\core\packages\lib\error.cfc: line 221*
>>>>>>  
>>>>>> 219 : 				<cfset stacktrace.append(arguments.**log.stack[i].template) />
>>>>>> 220 : 				<cfset stacktrace.append(":") />
>>>>>> *221 : 				<cfset stacktrace.append(-1) />*
>>>>>>
>>>>>> 222 : 				<cfif i eq arraylen(arguments.log.stack)>
>>>>>> 223 : 					<cfset stacktrace.append(variables.**newline) />
>>>>>>
>>>>>>
>>>>>> On Friday, January 4, 2013 3:58:10 PM UTC-8, Dennis Clark wrote:
>>>>>>
>>>>>>> Given that the error was thrown on line 221 and not 219 or 220, I'd 
>>>>>>> say the exception that error.cfc was trying to handle doesn't have a line 
>>>>>>> number.
>>>>>>>
>>>>>>> We'll need to patch error.cfc to handle such cases, but for now try 
>>>>>>> replacing arguments.log.stack[i].line with -1 so you can see what the 
>>>>>>> underlying exception is. Make a backup of error.cfc first so you can revert 
>>>>>>> the change after you're done.
>>>>>>>
>>>>>>> Regards,
>>>>>>> -- Dennis
>>>>>>> On 05/01/2013 10:30 AM, "Might Aswell" <[email protected]> wrote:
>>>>>>>
>>>>>>>>  trying to go from 6.0.15 to 6.2.6 on Win2008  / CF8
>>>>>>>>
>>>>>>>> Dropped in a new core and get this when updating app.
>>>>>>>>
>>>>>>>> The append method was not found.Either there are no methods with 
>>>>>>>> the specified method name and argument types, or the append method is 
>>>>>>>> overloaded with argument types that ColdFusion cannot decipher reliably. 
>>>>>>>> ColdFusion found 5 methods that matched the provided arguments. If this is 
>>>>>>>> a Java object and you verified that the method exists, you may need to use 
>>>>>>>> the javacast function to reduce ambiguity.  The error occurred in *
>>>>>>>> D:\InetPub\farcry\core\packages\lib\error.cfc: line 221*
>>>>>>>>  
>>>>>>>> 219 : 				<cfset stacktrace.append(arguments.**lo**g.stack[i].template) />
>>>>>>>> 220 : 				<cfset stacktrace.append(":") />*221 : 				<cfset stacktrace.append(arguments.log.stack[i].line) />*
>>>>>>>> 222 : 				<cfif i eq arraylen(arguments.log.stack)>
>>>>>>>> 223 : 					<cfset stacktrace.append(variables.**ne**wline) />
>>>>>>>>
>>>>>>>>  -- 
>>>>>>>> You received this message cos you are subscribed to "farcry-dev" 
>>>>>>>> Google group.
>>>>>>>> To post, email: farcr...-/[email protected]
>>>>>>>> To unsubscribe, email: farcry-dev+...@**googlegroups.**com
>>>>>>>>
>>>>>>>> For more options: http://groups.google.com/**group**/farcry-dev<http://groups.google.com/group/farcry-dev>
>>>>>>>> ------------------------------****--
>>>>>>>> Follow us on Twitter: http://twitter.com/farcry
>>>>>>>>  
>>>>>>>>  
>>>>>>>>
>>>>>>>  -- 
>>>>>> You received this message cos you are subscribed to "farcry-dev" 
>>>>>> Google group.
>>>>>> To post, email: farcr...-/[email protected]
>>>>>> To unsubscribe, email: farcry-dev+...@**googlegroups.com
>>>>>> For more options: http://groups.google.com/**group/farcry-dev<http://groups.google.com/group/farcry-dev>
>>>>>> ------------------------------**--
>>>>>> Follow us on Twitter: http://twitter.com/farcry
>>>>>>  
>>>>>>  
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> -- 
>>>>>
>>>>> *AJ Mercer*
>>>>> <webonix:net strength="Industrial" /> <http://webonix.net> | <webonix:org 
>>>>> community="Open" /> <http://webonix.org>
>>>>> http://twitter.com/webonix
>>>>> Railo Community Manager<http://www.getrailo.org/index.cfm/community/team/>
>>>>>  
>>>>  -- 
>>>> You received this message cos you are subscribed to "farcry-dev" Google 
>>>> group.
>>>> To post, email: farcr...-/[email protected]
>>>> To unsubscribe, email: farcry-dev+...-/[email protected]
>>>> For more options: http://groups.google.com/group/farcry-dev
>>>> --------------------------------
>>>> Follow us on Twitter: http://twitter.com/farcry
>>>>  
>>>>  
>>>>
>>>
>>>
>>>
>>> -- 
>>>
>>> *AJ Mercer*
>>> <webonix:net strength="Industrial" /> <http://webonix.net> | <webonix:org 
>>> community="Open" /> <http://webonix.org>
>>> http://twitter.com/webonix
>>> Railo Community Manager<http://www.getrailo.org/index.cfm/community/team/>
>>>  
>>

-- 
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: farcry-dev-/[email protected]
To unsubscribe, email: farcry-dev+unsubscribe-/[email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.