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 24519] New: - getCustomPalette() on newly created HSSFWorkbook crashes
Date Sat, 08 Nov 2003 03:36:34 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=24519>.
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=24519

getCustomPalette() on newly created HSSFWorkbook crashes

           Summary: getCustomPalette() on newly created HSSFWorkbook crashes
           Product: POI
           Version: 2.0-dev
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: HSSF
        AssignedTo: poi-dev@jakarta.apache.org
        ReportedBy: stefan.proels@gmx.de


Calling getCustomPalette() on a newly created HSSFWorkbook
throws an InternalError with POI 2.0 RC1.

It used to work fine with 2.0-pre3.

------------------------------------------------------------
import org.apache.poi.hssf.usermodel.*;

public class PaletteBug  {

  public static void main(String[] args) {
    HSSFWorkbook workbook = new HSSFWorkbook();
    System.out.println(workbook.getCustomPalette());
  }
}
------------------------------------------------------------

Exception in thread "main" java.lang.RuntimeException: InternalError: Expected
PaletteRecord but got a '[USESELFS]
    .flag            = 0
[/USESELFS]
'
        at org.apache.poi.hssf.model.Workbook.getCustomPalette(Workbook.java:2073)
        at
org.apache.poi.hssf.usermodel.HSSFWorkbook.getCustomPalette(HSSFWorkbook.java:985)
        at PaletteBug.main(PaletteBug.java:7)

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: poi-dev-help@jakarta.apache.org


Mime
View raw message