ExceptionInInitializerError in BaseEnvironmentManager on Servers with no Attached Displays

(Doc ID 2226021.1)

Last updated on JANUARY 23, 2017

Applies to:

Oracle Network Management for Utilities - DMS - Version to [Release 1.12]
Oracle Utilities Network Management System - Version to [Release 1.12]
Information in this document applies to any platform.


When attempting to run a program that uses the BaseEnvironmentManager class on a system that does not have an attached monitor (or an exported DISPLAY), this error is generated:

Exception in thread "main" java.lang.ExceptionInInitializerError
  at com.splwg.oms.client.BaseEnvironmentManager.(BaseEnvironmentManager.java:711)
  at com.splwg.oms.jbot.JBotEnvironmentManager.(JBotEnvironmentManager.java:40)
  at com.splwg.oms.jbot.JBotEnvironmentManager.(JBotEnvironmentManager.java:21)
Caused by: java.awt.HeadlessException
  at sun.java2d.HeadlessGraphicsEnvironment.getDefaultScreenDevice(HeadlessGraphicsEnvironment.java:77)
  at com.splwg.oms.client.util.ui.GuiSize.(GuiSize.java:77)
  ... 5 more




Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms