Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Cameron Jacobs / Cameron Jacobs (Cameron.Jacobs)
Created: 04/30/2012
Components: General Server
Versions: 10.0
Failure Type: Non Functioning
Found In Build/Fixed In Build: Public Beta / 283424
Priority/Frequency: Major / Some users will encounter
Locale/System: English / Linux Ubuntu 10.10
Vote Count: 2
Duplicate ID: CF-3042909
Problem Description:
cfspreadsheet action="write" is unable to write to the ram drive.
I have tried this with the following code sets:
First:
<cfspreadsheet action="write" filename="ram://test.xlsx" query="resultQuery"/>
2 Errors are received (refreshing the same page shows 1 error or the other with no code changes):
1) An exception occurred while using action=write. java.io.FileNotFoundException: ram:///test.xlsx
2) An exception occurred while using action=write. java.lang.ClassCastException: coldfusion.vfs.VFileOutputStream cannot be cast to java.io.FileOutputStream
Second:
<cfspreadsheet action="write" filename="ram://test.xlsx" query="resultQuery" overwrite="true"/>
Error:
An exception occurred while using action=write. java.io.FileNotFoundException: ram:///test.xlsx
Third:
<cfscript>
sheet = spreadsheetNew("SUMs SpreadSheet");
spreadsheetAddRows(sheet, resultQuery);
</cfscript>
<cfspreadsheet action="write" filename="ram://test.xlsx" name="sheet" overwrite="true"/>
Error:
An exception occurred while using action=write. coldfusion.excel.ExcelProcessException: An exception occurred while using action=write.
CFspreadsheet seems to work perfectly when writing to a file on disk, but does not seem to work when writing to the ram drive.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3178676
External Customer Info:
External Company:
External Customer Name: Cameron.Jacobs
External Customer Email:
External Test Config: My Hardware and Environment details:
2 different environments
Environment 1:
ColdFusion 10 x64
Ubuntu 11.10 x86_64
Apache 2.2
Environment 2:
ColdFusion 10 x64
Fedora 16 x86_64
Apache 2.2
Attachments:
Comments: