ddarriba / jmodeltest2

Automatically exported from code.google.com/p/jmodeltest2
GNU General Public License v3.0
75 stars 47 forks source link

Error with HTML logging #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
HTML logging is calling swing methods even in console mode, what raises 
exceptions if X11 is not available:

Exception in thread "main" java.lang.InternalError: Can't connect to X11 window 
server using 'localhost:10.0' as the value of the DISPLAY variable.
        at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
        at sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:65)
        at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:110)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:74)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:186)
        at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:102)
        at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:81)
        at sun.swing.SwingUtilities2.isLocalDisplay(SwingUtilities2.java:1457)
        at javax.swing.plaf.metal.MetalLookAndFeel.initComponentDefaults(MetalLookAndFeel.java:1556)
        at javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(BasicLookAndFeel.java:148)
        at javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(MetalLookAndFeel.java:1592)
        at javax.swing.UIManager.setLookAndFeel(UIManager.java:536)
        at javax.swing.UIManager.setLookAndFeel(UIManager.java:576)
        at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1345)
        at javax.swing.UIManager.initialize(UIManager.java:1455)
        at javax.swing.UIManager.maybeInitialize(UIManager.java:1422)
        at javax.swing.UIManager.getDefaults(UIManager.java:656)
        at javax.swing.UIManager.getColor(UIManager.java:698)
        at org.jfree.chart.JFreeChart.<clinit>(JFreeChart.java:263)
        at org.jfree.chart.ChartFactory.createHistogram(ChartFactory.java:2120)
        at es.uvigo.darwin.jmodeltest.io.RFHistogram.buildHistogram(Unknown Source)
        at es.uvigo.darwin.jmodeltest.io.RFHistogram.buildDistancesHistogram(Unknown Source)
        at es.uvigo.darwin.jmodeltest.io.RFHistogram.buildRFHistogram(Unknown Source)
        at es.uvigo.darwin.jmodeltest.io.HtmlReporter.buildChart(Unknown Source)
        at es.uvigo.darwin.jmodeltest.io.HtmlReporter.buildReport(Unknown Source)
        at es.uvigo.darwin.jmodeltest.ModelTest.runCommandLine(Unknown Source)
        at es.uvigo.darwin.jmodeltest.ModelTest.<init>(Unknown Source)
        at es.uvigo.darwin.jmodeltest.ModelTest.main(Unknown Source)

Original issue reported on code.google.com by DiegoDL84 on 9 Nov 2013 at 12:44

GoogleCodeExporter commented 9 years ago
Images are not created in headless environments

Original comment by DiegoDL84 on 3 Apr 2014 at 5:31