NOTICE! This is a static HTML version of a legacy ImageJ Trac ticket.

The ImageJ project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Ticket #297 (closed defect: fixed)

Opened 2010-12-01T17:24:02-06:00

Last modified 2012-02-24T15:23:56-06:00

Fix ij1-bridge tests that fail due to headless violations

Reported by: curtis Owned by: curtis
Priority: blocker Milestone: biweekly-2010: Nov-29 to Dec-10
Component: Build System Version:
Severity: fatal Keywords:
Cc: Blocked By:
Blocking: #1012, #1014

Description

Some tests require graphical AWT components, and thus fail during Hudson builds. E.g.:

-------------------------------------------------------------------------------
Test set: imagej.ij1bridge.plugin.Ij1PluginFinderTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.03 sec <<< FAILURE!
testIj1PluginFinder(imagej.ij1bridge.plugin.Ij1PluginFinderTest)  Time elapsed: 0.027 sec  <<< ERROR!
java.awt.HeadlessException: 
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
	at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)
	at java.awt.Window.<init>(Window.java:432)
	at java.awt.Frame.<init>(Frame.java:403)
	at ij.ImageJ.<init>(ImageJ.java:118)
	at ij.ImageJ.<init>(ImageJ.java:106)
	at imagej.ij1bridge.plugin.Ij1PluginFinder.findPlugins(Ij1PluginFinder.java:21)
	at imagej.ij1bridge.plugin.Ij1PluginFinderTest.testIj1PluginFinder(Ij1PluginFinderTest.java:19)

Change History

comment:1 Changed 2010-12-01T17:24:19-06:00 by curtis

  • Milestone set to biweekly-2010: Nov-29 to Dec-10

comment:2 Changed 2010-12-02T12:50:10-06:00 by curtis

  • Status changed from new to closed
  • Resolution set to fixed

Rick has commented out the problematic tests for now.

comment:3 Changed 2012-02-24T15:23:56-06:00 by curtis

  • Blocking 1012, 1014 added