poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 15573] New: - Can not modify a workbook containing a chart
Date Fri, 20 Dec 2002 16:02:55 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15573>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15573

Can not modify a workbook containing a chart

           Summary: Can not modify a workbook containing a chart
           Product: POI
           Version: 2.0-dev
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: HSSF
        AssignedTo: poi-dev@jakarta.apache.org
        ReportedBy: fthiriet@calendra.com
                CC: nmoyere@calendra.com


When trying to instantiate a workbook containing a chart on another sheet than
the data, or when a chart is created as a new sheet, the HSSFWorkbook(fs)
constructor fails.
However when the chart is in the same sheet as the data, it seems to work fine.

Tested with the latest nighlty jar : jakarta-poi-1.9.0-dev-20021216.jar

Here is the stack trace : 
-----
java.lang.NullPointerException
	at
org.apache.poi.hssf.usermodel.HSSFSheet.setPropertiesFromSheet(HSSFSheet.java:171)
	at org.apache.poi.hssf.usermodel.HSSFSheet.<init>(HSSFSheet.java:134)
	at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:154)
	at com.calendra.services.functions.ExcelTest.writeResults(ExcelTest.java:28)
	at com.calendra.services.functions.ExcelTest.main(ExcelTest.java:110)

Mime
View raw message