Details
-
Type: Bug
-
Status: Open
-
Priority: Major
-
Resolution: Unresolved
-
Affects Version/s: EE-1.8.2.GA_P03
-
Fix Version/s: None
-
Component/s: ICE-Components
-
Labels:None
Description
The attached sample uses a patched version of 1.8.2 EE P03 with fixes for ICE-7415 and ICE-7558. The following exception is thrown after attempting to export the data a second time:
SEVERE: renderToHandler()
java.lang.NullPointerException
at jxl.write.biff.File.write(File.java:149)
at jxl.write.biff.WritableWorkbookImpl.write(WritableWorkbookImpl.java:697)
at com.icesoft.faces.component.dataexporter.ExcelOutputHandler.flushFile(ExcelOutputHandler.java:78)
at com.icesoft.faces.component.dataexporter.DataExporter.renderToHandler(DataExporter.java:482)
at com.icesoft.faces.component.dataexporter.DataExporter.createFile(DataExporter.java:356)
........
........
SEVERE: Servlet.service() for servlet [Blocking Servlet] in context with path [/sf-10586] threw exception [java.io.FileNotFoundException: Exported Excel_1330556713876.xls (No such file or directory)] with root cause
java.io.FileNotFoundException: Exported Excel_1330556713876.xls (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:120)
at com.icesoft.faces.context.FileResource$NotifyingFileInputStream.<init>(FileResource.java:78)
at com.icesoft.faces.context.FileResource.open(FileResource.java:55)
SEVERE: renderToHandler()
java.lang.NullPointerException
at jxl.write.biff.File.write(File.java:149)
at jxl.write.biff.WritableWorkbookImpl.write(WritableWorkbookImpl.java:697)
at com.icesoft.faces.component.dataexporter.ExcelOutputHandler.flushFile(ExcelOutputHandler.java:78)
at com.icesoft.faces.component.dataexporter.DataExporter.renderToHandler(DataExporter.java:482)
at com.icesoft.faces.component.dataexporter.DataExporter.createFile(DataExporter.java:356)
........
........
SEVERE: Servlet.service() for servlet [Blocking Servlet] in context with path [/sf-10586] threw exception [java.io.FileNotFoundException: Exported Excel_1330556713876.xls (No such file or directory)] with root cause
java.io.FileNotFoundException: Exported Excel_1330556713876.xls (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:120)
at com.icesoft.faces.context.FileResource$NotifyingFileInputStream.<init>(FileResource.java:78)
at com.icesoft.faces.context.FileResource.open(FileResource.java:55)
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Could you add this in your web.xml then it should be resolved.
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/icefaces/*</url-pattern>
</servlet-mapping>