I copied an export cfc that creates an Excel file from a query object from another application to this application but for some reason it fails. I have used the exact same cfc in several other applications on the same server. It still works in the other application but it throws the following error in this application "Server Error: The server encountered an internal error and was unable to complete your request. Application server is busy. Either there are too many concurrent requests or the server still is starting up." is shown to the user and the following error is recorded in the exception.log file. The error occures on line 78 but if I cause the program to skip that condition then it fails on line 86.
exception.log
"Error","jrpp-5132","05/22/13","08:50:15","192194B933ECEF2F12871BE3F495FBA0","coldfusion.excel.Excel.formatCell(Lcoldfusion/excel/ExcelInfo;Lcoldfusion/runtime/Struct;IIZ)V The specific sequence of files included or processed is: /..pathtoapp../index.cfm, line: 79 " java.lang.NoSuchMethodError: coldfusion.excel.Excel.formatCell(Lcoldfusion/excel/ExcelInfo;Lcoldfusion/runtime/Struct;IIZ)V at coldfusion.runtime.CFPage.SpreadSheetFormatCell(CFPage.java:7318) at coldfusion.runtime.CFPage.SpreadSheetFormatCell(CFPage.java:7312) at cfpExport2ecfc955548417$funcQUERYTOEXCEL.runFunction(/..pathtoapp../plugins/pExport.cfc:79) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472)
Snippet from cfc file
<cfscript>
//Create a new Excel spreadsheet object.
theSheet = SpreadsheetNew( Arguments.FileName );
if( Arguments.Title neq "" ){
/*LINE79*/ SpreadSheetFormatCell(theSheet, { bold="true", alignment="center" } ,1,1);
SpreadsheetMergeCells(theSheet,1,1,1, ListLen(Arguments.Columns, '|' ) );
SpreadsheetSetCellValue(theSheet,Arguments.Title,1,1);
}
</cfscript>
<cfif Arguments.HeaderTitles neq "">
<cfset counter = 1 >
<cfloop index="Header" list="#Arguments.HeaderTitles#" delimiters="|">
<cfset SpreadSheetFormatCell(theSheet, { bold="true", alignment="center" } ,2,counter) >
<cfset SpreadsheetSetCellValue(theSheet, Header, 2, counter) >
<cfset counter = counter + 1>
</cfloop>
<cfelse>
<cfset counter = 1 >
<cfloop index="Header" list="#Arguments.Columns#" delimiters="|">
<cfset SpreadSheetFormatCell(theSheet, { bold="true", alignment="center" } ,2,counter) ><!---LINE 86--->
<cfset SpreadsheetSetCellValue(theSheet,Header,2,counter) >
<cfset counter = counter + 1>
</cfloop>
</cfif>
System: Coldfusion 9, Coldbox 3.5 framework, Linux Server
Would appreciate any suggestions about what is going on. Thanks.