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; 0015.00 0016.00 /END-FREE any help will be apprecitated
Marc, 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?
No feedback to Avik's request. RPG? Unsupported configuration. Closing, please reopen if further information available. Jason