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 1.12.0.3 to 1.12.0.3 [Release 1.12]
Oracle Utilities Network Management System - Version 1.12.0.3 to 1.12.0.3 [Release 1.12]
Information in this document applies to any platform.

Symptoms


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
 


Changes

 

Cause

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