The downloaded dashboard in the excel format from MTC-M, cannot be opened. The following error is displayed.
The VANWEBUI STC logs show the following errors.
SEVERE: Servlet.service() for servlet ¨FileExportServlet( in context with path ¨/VantageGMI( threw exception ¨Servlet execution thre
w an exception( with root cause
java.awt.AWTError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
.at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
.at sun.awt.X11GraphicsEnvironment.access#200(X11GraphicsEnvironment.java:79)
.at sun.awt.X11GraphicsEnvironment#1.run(X11GraphicsEnvironment.java:140)
.at java.security.AccessController.doPrivileged(AccessController.java:690)
.at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:88)
.at java.lang.Class.forNameImpl(Native Method)
.at java.lang.Class.forName(Class.java:340)
.at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:114)
.at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:93)
.at sun.awt.X11FontManager.isHeadless(X11FontManager.java:521)
.at sun.awt.X11FontManager.getFileNameFromPlatformName(X11FontManager.java:201)
.at sun.font.SunFontManager.initCompositeFonts(SunFontManager.java:3518)
.at sun.font.SunFontManager.access#800(SunFontManager.java:77)
.at sun.font.SunFontManager#2.run(SunFontManager.java:567)
.at java.security.AccessController.doPrivileged(AccessController.java:690)
.at sun.font.SunFontManager.<init>(SunFontManager.java:397)
.at sun.awt.FcFontManager.<init>(FcFontManager.java:47)
.at sun.awt.X11FontManager.<init>(X11FontManager.java:69)
.at java.lang.J9VMInternals.newInstanceImpl(Native Method)
.at java.lang.Class.newInstance(Class.java:2108)
.at sun.font.FontManagerFactory#1.run(FontManagerFactory.java:95)
.at java.security.AccessController.doPrivileged(AccessController.java:690)
.at sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:86)
.at java.awt.Font.getFont2D(Font.java:502)
.at java.awt.Font.canDisplayUpTo(Font.java:2075)
.at java.awt.font.TextLayout.singleFont(TextLayout.java:481)
.at java.awt.font.TextLayout.<init>(TextLayout.java:542)
.at org.apache.poi.ss.util.SheetUtil.getDefaultCharWidth(SheetUtil.java:285)
.at org.apache.poi.xssf.streaming.AutoSizeColumnTracker.<init>(AutoSizeColumnTracker.java:117)
.at org.apache.poi.xssf.streaming.SXSSFSheet.<init>(SXSSFSheet.java:89)
.at org.apache.poi.xssf.streaming.SXSSFWorkbook.createAndRegisterSXSSFSheet(SXSSFWorkbook.java:703)
.at org.apache.poi.xssf.streaming.SXSSFWorkbook.createSheet(SXSSFWorkbook.java:722)
.at com.ca.vantage.gwt.server.servlet.FileExportServlet.exportToExcel(FileExportServlet.java:297)
.at com.ca.vantage.gwt.server.servlet.FileExportServlet.exportTableView(FileExportServlet.java:170)
.at com.ca.vantage.gwt.server.servlet.FileExportServlet.doGet(FileExportServlet.java:85)
.at javax.servlet.http.HttpServlet.service(HttpServlet.java:529)
.at javax.servlet.http.HttpServlet.service(HttpServlet.java:623)
.at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:209)
.at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
.at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
.at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
.at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
.at org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(HttpHeaderSecurityFilter.java:126)
.at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
.at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
.at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
.at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
.at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
.at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
.at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:167)
.at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90)
.at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:481)
.at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:130)
.at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:673)
.at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)
.at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
.at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
.at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:389)
.at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
.at org.apache.coyote.AbstractProtocol#ConnectionHandler.process(AbstractProtocol.java:926)
.at org.apache.tomcat.util.net.NioEndpoint#SocketProcessor.doRun(NioEndpoint.java:1791)
Following things are need to fix the problem.
1. Please check that latest VANWEBUI proc is used from the *.CCTUSAMP library and also make sure that the following parameter is present in the proc.
IJO="$IJO -Djava.awt.headless=true"
2. Please make sure the following parameter is present in the VANWEBUI proc.
export IBM_JAVA_OPTIONS="$IJO"
3. If the DISPLAY environment variable is set with some value then need to clear it by using the following command on OMVS
export DISPLAY='' (Note: use two single quotes to indicate a null value for DISPLAY)
4. Recycle the STC task to reflect these changes.
The export as CSV file still works without any error. Only downloading in excel format is causing this error.