DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34775>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34775

           Summary: java.lang.NullPointerException at
                    org.apache.poi.hssf.usermodel.HSSFSheet.setPropertiesFro
                    mSheet
           Product: POI
           Version: 1.5.1
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: P2
         Component: HSSF
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


Hi,

I am facing a problem while reading a excel file. Following is the error trace 
of the error:

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)                                                         
                    

Following is the code which is producing the error-

String JeffCegalisReportPath = "/home/ms210101/meenaxi/engchangecontrol.xls";

java.io.File jeffsFile = new java.io.File(JeffCegalisReportPath);
FileInputStream fis = new FileInputStream(jeffsFile);
fs = new POIFSFileSystem(fis);
workbook = new HSSFWorkbook(fs);

Workbook is not getting intialized. Error is coming at line in red, because fs 
has a value. If I print following-

if(fs !=null)
            System.out.println("POIFSFileSystem "+fs.getShortDescription());

It prints POIFSFileSystem POIFS FileSystem.

I would be grateful, if you reply to it.

Thanks in advance

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
Mailing List:    http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/

Reply via email to