Uploaded image for project: 'NetarchiveSuite'
  1. NetarchiveSuite
  2. NAS-1801

Could not initialize class sun.awt.X11GraphicsEnvironment when starting Quickstart system on Fedora

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.15.0
    • Fix Version/s: None
    • Component/s: Harvest Monitor
    • Labels:
      None

      Description

      I get this exception when I deploy netarchivesuite on a single machine (Quickstart setup).
      I deploy to test@localhost and if I log on manually with ssh to test@localhost and restart the apps using the restart.sh, the problem disappears.

      SEVERE: Task threw exception:
      java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment
      at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
      at java.util.concurrent.FutureTask.get(FutureTask.java:83)
      at dk.netarkivet.common.lifecycle.PeriodicTaskExecutor.checkExecution(PeriodicTaskExecutor.java:197)
      at dk.netarkivet.common.lifecycle.PeriodicTaskExecutor.access$500(PeriodicTaskExecutor.java:47)
      at dk.netarkivet.common.lifecycle.PeriodicTaskExecutor$1.run(PeriodicTaskExecutor.java:176)
      Caused by: java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:169)
      at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68)
      at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:89)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:169)
      at java.awt.Toolkit$2.run(Toolkit.java:834)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:826)
      at sun.swing.SwingUtilities2$AATextInfo.getAATextInfo(SwingUtilities2.java:118)
      at javax.swing.plaf.metal.MetalLookAndFeel.initComponentDefaults(MetalLookAndFeel.java:1556)
      at javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(BasicLookAndFeel.java:130)
      at javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(MetalLookAndFeel.java:1591)
      at javax.swing.UIManager.setLookAndFeel(UIManager.java:514)
      at javax.swing.UIManager.setLookAndFeel(UIManager.java:554)
      at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1317)
      at javax.swing.UIManager.initialize(UIManager.java:1406)
      at javax.swing.UIManager.maybeInitialize(UIManager.java:1394)
      at javax.swing.UIManager.getDefaults(UIManager.java:633)
      at javax.swing.UIManager.getColor(UIManager.java:675)
      at org.jfree.chart.JFreeChart.<clinit>(JFreeChart.java:261)
      at dk.netarkivet.harvester.harvesting.monitor.StartedJobHistoryChartGen.generatePngChart(StartedJobHistoryChartGen.java:445)
      at dk.netarkivet.harvester.harvesting.monitor.StartedJobHistoryChartGen$ChartGen.run(StartedJobHistoryChartGen.java:197)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
      at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:619)

        Attachments

          Activity

            People

            • Assignee:
              svc Søren Vejrup Carlsen
              Reporter:
              svc Søren Vejrup Carlsen
              Inspector:
              Mikis Seth Sørensen (Inactive)
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: