Uploaded image for project: 'Hawkular'
  1. Hawkular
  2. HAWKULAR-838

Hawkular (Agent) won't start properly without -Djava.awt.headless=true on Mac OS X

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Obsolete
    • 1.0.0.Alpha7
    • None
    • Agent
    • None
    • Workaround Exists
    • Hide

      Set it manually in JAVA_OPTS

      Show
      Set it manually in JAVA_OPTS

    Description

      When starting Hawkular (on Mac OS X 10.11.1) without -Djava.awt.headless=true being passed, I'm getting the following exception:

      2015-11-23 12:18:57,692 ERROR [org.hawkular.agent.monitor.service.MonitorService] (Controller Boot Thread) HAWKMONITOR010054: Agent encountered errors during start up and will be stopped.: java.lang.Error: Cannot load com.apple.laf.AquaLookAndFeel
      	at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1351)
      	at javax.swing.UIManager.initialize(UIManager.java:1459)
      	at javax.swing.UIManager.maybeInitialize(UIManager.java:1426)
      	at javax.swing.UIManager.getDefaults(UIManager.java:659)
      	at javax.swing.UIManager.getString(UIManager.java:788)
      	at javax.swing.filechooser.UnixFileSystemView.<clinit>(FileSystemView.java:610)
      	at javax.swing.filechooser.FileSystemView.getFileSystemView(FileSystemView.java:86)
      	at oshi.software.os.mac.local.MacFileSystem.getFileStores(MacFileSystem.java:52)
      	at oshi.software.os.mac.MacHardwareAbstractionLayer.getFileStores(MacHardwareAbstractionLayer.java:100)
      	at org.hawkular.agent.monitor.protocol.platform.OshiPlatformCache.getFileStores(OshiPlatformCache.java:111)
      	at org.hawkular.agent.monitor.protocol.platform.OshiPlatformCache.discoverResources(OshiPlatformCache.java:391)
      	at org.hawkular.agent.monitor.protocol.platform.PlatformDriver.fetchNodes(PlatformDriver.java:53)
      	at org.hawkular.agent.monitor.protocol.platform.PlatformDriver.fetchNodes(PlatformDriver.java:38)
      	at org.hawkular.agent.monitor.protocol.Discovery.discoverChildren(Discovery.java:121)
      	at org.hawkular.agent.monitor.protocol.Discovery.discoverChildren(Discovery.java:155)
      	at org.hawkular.agent.monitor.protocol.Discovery.discoverAllResources(Discovery.java:108)
      	at org.hawkular.agent.monitor.protocol.EndpointService.doDiscoverAll(EndpointService.java:197)
      	at org.hawkular.agent.monitor.protocol.EndpointService.start(EndpointService.java:353)
      	at org.hawkular.agent.monitor.protocol.ProtocolService.start(ProtocolService.java:73)
      	at org.hawkular.agent.monitor.protocol.ProtocolServices.start(ProtocolServices.java:197)
      	at org.hawkular.agent.monitor.service.MonitorService.startMonitorService(MonitorService.java:491)
      	at org.hawkular.agent.monitor.service.MonitorService$1.propertyChange(MonitorService.java:390)
      	at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:335)
      	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:327)
      	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:263)
      	at org.jboss.as.controller.ControlledProcessStateService.stateChanged(ControlledProcessStateService.java:114)
      	at org.jboss.as.controller.ControlledProcessState.setRunning(ControlledProcessState.java:115)
      	at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:277)
      	at java.lang.Thread.run(Thread.java:745)
      

      This is coming from the Platform / File System scanning. When the option is passed it works properly.

      The option should be appended to current/existing JAVA_OPTS by default.

      Attachments

        Activity

          People

            jmazzitelli John Mazzitelli
            alexandrem_jira Alexandre Mendonça (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: