Bug 26949 - NullPointerException on the creation of a workbook
Summary: NullPointerException on the creation of a workbook
Alias: None
Product: POI
Classification: Unclassified
Component: HSSF (show other bugs)
Version: 2.0-pre3
Hardware: Other All
: P3 blocker (vote)
Target Milestone: ---
Assignee: POI Developers List
Depends on:
Reported: 2004-02-15 06:13 UTC by marc antzis
Modified: 2005-08-25 21:56 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description marc antzis 2004-02-15 06:13:36 UTC
the language is RPG
the error i get is: 
Message . . . . :   Java exception received when calling Java method 
Cause . . . . . :   RPG procedure TEST in program MARCANZIS/TEST received 
Java   exception "java.lang.NullPointerException:" when calling 
method "<init>"       with signature "()V" in 
class "org.apache.poi.hssf.usermodel.HSSFWorkbook". 

the code:
CC 1.00 DWB               S               O   CLASS(*JAVA                      
0002.00 D                                     :'org.apache.poi.hssf.usermodel- 
0003.00 D                                     .HSSFWorkbook')                  
0004.00 DCREATEWB         PR              O   EXTPROC(*JAVA                    
0005.00 D                                     :'org.apache.poi.hssf.usermodel- 
0006.00 D                                     .HSSFWorkbook'                   
0007.00 D                                     :*CONSTRUCTOR)                   
0011.00  /FREE                                                                 
0012.00       // Create a Workbook.                                            
0013.00       WB = CREATEWB();                                                 
0014.00       *INLR = *ON;                                                     
0016.00  /END-FREE

any help will be apprecitated
Comment 1 Avik Sengupta 2004-02-15 07:23:46 UTC

While I am pleasently surprised by the wide range of usage POI is getting, you
will appreciate that lacking any knowledge of RPG, we can comment to the extent
of  POI. 

I presume the system is trying to create a new workbook, rather than open an
exiting file? Thats what makes this error so surprising.Using the default
constructor of HSSFWorkbook is NOT known to throw a null pointer exception,
there are many such occurances in the testcases. 

Is there a way you can generate stack traces, so that we can figure out exactly
what's wrong? Are you using the 2.0-final version? 
Comment 2 Jason Height 2005-08-26 05:56:46 UTC
No feedback to Avik's request. RPG? Unsupported configuration.

Closing, please reopen if further information available.