search cancel

The policy manager failed to startup on MacOS

book

Article ID: 256894

calendar_today

Updated On:

Products

CA Mobile API Gateway CA API Gateway

Issue/Introduction

The policy manager failed to startup on MacOS with java.awt.headlessexception,

 

com.l7tech.console.logging.DefaultErrorHandler handle

WARNING: Startup Error

java.lang.NullPointerException

 at com.l7tech.console.util.SplashScreen.dispose(Unknown Source)

 at com.l7tech.console.Main.run(Unknown Source)

 at com.l7tech.console.Main.main(Unknown Source)

 


Exception in thread "main" java.awt.HeadlessException

 at java.desktop/java.awt.GraphicsEnvironment.checkHeadless(Unknown Source)

 at java.desktop/java.awt.Window.<init>(Unknown Source)

 at java.desktop/java.awt.Frame.<init>(Unknown Source)

 at java.desktop/java.awt.Frame.<init>(Unknown Source)

 at com.l7tech.console.logging.DefaultErrorHandler.handle(Unknown Source)

 at com.l7tech.console.logging.DefaultErrorEvent.handle(Unknown Source)

 at com.l7tech.console.logging.ModularAssertionErrorHandler.handle(Unknown Source)

 at com.l7tech.console.logging.DefaultErrorEvent.handle(Unknown Source)

 at com.l7tech.console.logging.PermissionDeniedErrorHandler.handle(Unknown Source)

 at com.l7tech.console.logging.DefaultErrorEvent.handle(Unknown Source)

 at com.l7tech.console.logging.RmiErrorHandler.handle(Unknown Source)

 at com.l7tech.console.logging.DefaultErrorEvent.handle(Unknown Source)

 at com.l7tech.console.logging.PersistenceErrorHandler.handle(Unknown Source)

 at com.l7tech.console.logging.DefaultErrorEvent.handle(Unknown Source)

 at com.l7tech.console.logging.VersionMismatchErrorHandler.handle(Unknown Source)

 at com.l7tech.console.logging.DefaultErrorEvent.handle(Unknown Source)

 at com.l7tech.console.logging.AdminSessionValidationErrorHandler.handle(Unknown Source)

 at com.l7tech.console.logging.DefaultErrorEvent.handle(Unknown Source)

 at com.l7tech.console.logging.LicenseErrorHandler.handle(Unknown Source)

 at com.l7tech.console.logging.DefaultErrorEvent.handle(Unknown Source)

 at com.l7tech.console.logging.GatewayFailureErrorHandler.handle(Unknown Source)

 at com.l7tech.console.logging.DefaultErrorEvent.handle(Unknown Source)

 at com.l7tech.console.logging.RoleErrorHandler.handle(Unknown Source)

 at com.l7tech.console.logging.DefaultErrorEvent.handle(Unknown Source)

 at com.l7tech.console.logging.f.handle(Unknown Source)

 at com.l7tech.console.logging.DefaultErrorEvent.handle(Unknown Source)

 at com.l7tech.console.logging.ErrorManager.a(Unknown Source)

 at com.l7tech.console.logging.ErrorManager.notify(Unknown Source)

 at com.l7tech.console.logging.ErrorManager.notify(Unknown Source)

 at com.l7tech.console.Main.run(Unknown Source)

 at com.l7tech.console.Main.main(Unknown Source)

Environment

Release : 2.0

Resolution

Use -Djava.awt.headless=false option.

For example,

$ java -Djava.awt.headless=false -jar Manager.jar

 

(The Manager.sh uses some java options which might not fit for all environments)