[NAS-1801] Could not initialize class sun.awt.X11GraphicsEnvironment when starting Quickstart system on Fedora Created: 16/Mar/11 Updated: 29/Jul/14 Resolved: 07/Oct/11 |
|
Status: | Resolved |
Project: | NetarchiveSuite |
Component/s: | Harvest Monitor |
Affects Version/s: | 3.15.0 |
Fix Version/s: | None |
Type: | Bug | Priority: | Major |
Reporter: | Søren Vejrup Carlsen (Inactive) | Assignee: | Søren Vejrup Carlsen (Inactive) |
Resolution: | Cannot Reproduce | ||
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Inspector: | Mikis Seth Sørensen (Inactive) |
Description |
I get this exception when I deploy netarchivesuite on a single machine (Quickstart setup). SEVERE: Task threw exception: |
Comments |
Comment by Søren Vejrup Carlsen (Inactive) [ 07/Oct/11 ] |
As the HarvestMonitorApplication has disappeared in 3.16.0, the bug can no longer be verified. |
Comment by Søren Vejrup Carlsen (Inactive) [ 30/Mar/11 ] |
Considering this bug fixed, now. |
Comment by Søren Vejrup Carlsen (Inactive) [ 17/Mar/11 ] |
Thus the problem can be solved by including a (or updating the) deployJavaOpt line for the HarvestMonitorApplication in the deployconfiguration: <deployJavaOpt>-Xmx1536m -Djava.awt.headless=true</deployJavaOpt> E.g.: <applicationName name="dk.netarkivet.harvester.harvesting.monitor.HarvestMonitorApplication"> <deployClassPath>lib/dk.netarkivet.harvester.jar</deployClassPath> <deployClassPath>lib/dk.netarkivet.monitor.jar</deployClassPath> <deployJavaOpt>-Xmx1536m -Djava.awt.headless=true</deployJavaOpt> |
Comment by Søren Vejrup Carlsen (Inactive) [ 16/Mar/11 ] |
Adding -Djava.awt.headless=true to the starting script for the HarvestMonitorApplication (conf/start_HarvestMonitorApplication.sh) does indeed solve the problem in my case! |
Comment by Mikis Seth Sørensen (Inactive) [ 16/Mar/11 ] |
A general solution to this problem according to Google is to set the java.awt.headless property to true, eg.
java -Djava.awt.headless=true .....
|