SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 66742: A SAS® Risk and Finance Workbench report might fail with a java.lang.NullPointerException error if the project data does not satisfy the template

DetailsHotfixAboutRate It

In SAS Risk and Finance Workbench, a java.lang.NullPointerException error might occur when you run a report and the data in the project does not satisfy the template column. For example, there could be no data available for a given report cell.

You encounter the issue when you complete steps similar to the following:

  1. Log on to SAS Risk and Finance Workbench.
  2. Go to the Projects page, and then click one of the projects.
  3. Click the Reports tab. Create a Category, and then click New Report.
  4. Select Filter.
  5. Select the new report that you created above and run it. An error similar to the following occurs if the data does not satisfy the template column.
2020-07-21 21:07:31,553 [Thread-4968] [sasdemo] sasdemo/-123c ERROR com.sas.stress.rest.services.ReportService - Exception while running report: Report 3 java.lang.NullPointerException
        at com.sas.risk.output.generators.XlsxGenerator.generate(XlsxGenerator.java:121)
        at com.sas.risk.output.generators.XlsxEmbedGenerator.generate(XlsxEmbedGenerator.java:51) ...

Click the Hot Fix tab in this note to access the hot fix for this issue.

After you apply this hot fix, the java.lang.NullPointerException does not occur when there is no data available for a given report cell.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Risk and Finance WorkbenchMicrosoft® Windows® for x643.19.4 TS1M5
Linux for x643.19.4 TS1M5
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.