mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-18 06:22:29 +00:00
improved error diagnostics for Mac OS X with headless. See #1133 for the failure mode.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6510 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
0ee10d77e1
commit
58ca08638c
1 file changed
+10
-1
@@ -207,7 +207,7 @@ public final class Hudson extends View implements ItemGroup<TopLevelItem>, Node,
|
||||
*/
|
||||
private transient final List<Widget> widgets = new CopyOnWriteArrayList<Widget>();
|
||||
|
||||
private transient volatile DependencyGraph dependencyGraph = DependencyGraph.EMPTY;
|
||||
private transient volatile DependencyGraph dependencyGraph;
|
||||
|
||||
/**
|
||||
* Set of installed cluster nodes.
|
||||
@@ -285,6 +285,15 @@ public final class Hudson extends View implements ItemGroup<TopLevelItem>, Node,
|
||||
throw new IllegalStateException("second instance");
|
||||
theInstance = this;
|
||||
|
||||
try {
|
||||
dependencyGraph = DependencyGraph.EMPTY;
|
||||
} catch (InternalError e) {
|
||||
if(e.getMessage().contains("window server")) {
|
||||
throw new Error("Looks like the server runs without X. Please specify -Djava.awt.headless=true as JVM option",e);
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
|
||||
// load plugins.
|
||||
pluginManager = new PluginManager(context);
|
||||
|
||||
|
||||
Reference in new issue
Block a user