Issue
Export to Excel on on-prem instance fails:
1. When the download button is clicked then the page loads with an error "Requested attachment does not exist".
2. Check the logs if looks similar like below:
2019-02-07 10:20:35 (799) glide.background.generation.79a8d4e4632f6380f0917d7ad6ba947b SYSTEM txid=fda8d828632f SEVERE * ERROR * Could not initialize class sun.awt.X11FontManager
java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at sun.font.FontManagerFactory$1.run(FontManagerFactory.java:82)
at java.security.AccessController.doPrivileged(Native Method)
at sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:74)
at java.awt.Font.getFont2D(Font.java:491)
at java.awt.Font.canDisplayUpTo(Font.java:2060)
at java.awt.font.TextLayout.singleFont(TextLayout.java:470)
at java.awt.font.TextLayout.<init>(TextLayout.java:531)
at org.apache.poi.ss.util.SheetUtil.getDefaultCharWidth(SheetUtil.java:274)
at org.apache.poi.xssf.streaming.AutoSizeColumnTracker.<init>(AutoSizeColumnTracker.java:117)
at org.apache.poi.xssf.streaming.SXSSFSheet.<init>(SXSSFSheet.java:79)
at org.apache.poi.xssf.streaming.SXSSFWorkbook.createAndRegisterSXSSFSheet(SXSSFWorkbook.java:652)
at org.apache.poi.xssf.streaming.SXSSFWorkbook.createSheet(SXSSFWorkbook.java:673)
at org.apache.poi.xssf.streaming.SXSSFWorkbook.createSheet(SXSSFWorkbook.java:89)
at com.glide.processors.ExcelSpreadsheet.createSheet(ExcelSpreadsheet.java:259)
at com.glide.processors.ExcelSpreadsheet.writeDocument(ExcelSpreadsheet.java:214)
at com.glide.processors.ExcelSpreadsheet.createDocument(ExcelSpreadsheet.java:193)
at com.glide.processors.ExcelSpreadsheet.createDocument(ExcelSpreadsheet.java:172)
at com.glide.generators.ExcelExporter.createDocument(ExcelExporter.java:88)
at com.glide.generators.ExcelExporter.generate(ExcelExporter.java:74)
at com.glide.generators.BackGroundGenerationThread.run(BackGroundGenerationThread.java:71)
Release
Applies to on-prem instances.
Cause
On the application server libgcc RPM package of 32 bit version is not installed.
Resolution
Verification of the packages can be done on your Linux application server with the following command:
$ rpm -qi libgcc
Should return both the 64 and 32 bit versions.
For Example:
[Appserver ~]$ rpm -qa | grep libgcc
libgcc-4.4.7-23.el6.i686
libgcc-4.4.7-23.el6.x86_64
Please install the missing bit version of libgcc package on the server using yum install and restart the ServiceNow nodes to export the list view records to excel successfully.