Bug#690152: bsaf: FTBFS: Test org.jdesktop.application.TaskMonitorTest failed

gregor herrmann gregoa at debian.org
Wed Oct 24 16:13:11 UTC 2012


On Thu, 11 Oct 2012 22:21:04 -0700, tony mancill wrote:

> >> During a rebuild of all packages in *wheezy*, your package failed to
> >> build on amd64.
> > I couldn't reproduce this in wheezy or sid, but I was only using pbuilder to test.
> I was able to get the build to fail by setting DISPLAY to something not
> accessible to the build machine, but it failed in the first unit test
> (different than the failure in the bug report).  After unsetting
> DISPLAY, the build is successful.  So I don't think it's the same issue.
>  My builds were in a cowbuilder chroot.

It fails for me in cowbuilder (without doing anything) in the first
unit test with a clear error message:

compile-test:
    [javac] /tmp/buildd/bsaf-1.9/build.xml:49: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 26 source files to /tmp/buildd/bsaf-1.9/test
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
     [copy] Copying 28 files to /tmp/buildd/bsaf-1.9/test

check-display:

test:
    [junit] Running org.jdesktop.application.AbstractBeanTest
    [junit] Testsuite: org.jdesktop.application.AbstractBeanTest
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.046 sec
    [junit] No protocol specified
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.046 sec
    [junit] 
    [junit] Testcase: fireOnEdtTest(org.jdesktop.application.AbstractBeanTest): Caused an ERROR
    [junit] Can't connect to X11 window server using ':0' as the value of the DISPLAY variable.
    [junit] java.lang.InternalError: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable.
    [junit]     at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
    [junit]     at sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:62)
    [junit]     at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:178)
    [junit]     at java.security.AccessController.doPrivileged(Native Method)
    [junit]     at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:142)
    [junit]     at java.lang.Class.forName0(Native Method)
    [junit]     at java.lang.Class.forName(Class.java:186)
    [junit]     at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82)
    [junit]     at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:112)
    [junit]     at java.lang.Class.forName0(Native Method)
    [junit]     at java.lang.Class.forName(Class.java:186)
    [junit]     at java.awt.Toolkit$2.run(Toolkit.java:849)
    [junit]     at java.security.AccessController.doPrivileged(Native Method)
    [junit]     at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:841)
    [junit]     at java.awt.Toolkit.getEventQueue(Toolkit.java:1698)
    [junit]     at java.awt.EventQueue.isDispatchThread(EventQueue.java:878)
    [junit]     at javax.swing.SwingUtilities.isEventDispatchThread(SwingUtilities.java:1360)
    [junit]     at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:90)
    [junit]     at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:229)
    [junit]     at org.jdesktop.application.AbstractBean.firePropertyChange(Unknown Source)
    [junit]     at org.jdesktop.application.AbstractBeanTest$TestBean.fire(Unknown Source)
    [junit]     at org.jdesktop.application.AbstractBeanTest.fireOnEdtTest(Unknown Source)
    [junit] 
    [junit] 

BUILD FAILED
/tmp/buildd/bsaf-1.9/build.xml:68: Test org.jdesktop.application.AbstractBeanTest failed


Running the tests under xvfb I get a different failure:
  
  (Side question: why are the tests run at dh_auto_build time and not
  under dh_auto_test?)

    [junit] Running org.jdesktop.application.ApplicationTest
    [junit] Testsuite: org.jdesktop.application.ApplicationTest
    [junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 0.453 sec
    [junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 0.453 sec
    [junit] 
    [junit] This test generates logger warnings.  Ignore them.
    [junit] Running org.jdesktop.application.BadSessionStateTest
    [junit] Testsuite: org.jdesktop.application.BadSessionStateTest
    [junit] Oct 24, 2012 4:03:59 PM org.jdesktop.application.LocalStorage getId
    [junit] WARNING: unspecified resource Application.id using BadSessionStateApplication
    [junit] Oct 24, 2012 4:03:59 PM org.jdesktop.application.SingleFrameApplication initRootPaneContainer
    [junit] WARNING: couldn't restore session [mainFrame.session.xml]
    [junit] java.lang.ArrayIndexOutOfBoundsException: 0
    [junit]     at com.sun.beans.ObjectHandler.dequeueResult(ObjectHandler.java:189)
    [junit]     at java.beans.XMLDecoder.readObject(XMLDecoder.java:223)
    [junit]     at org.jdesktop.application.LocalStorage.load(Unknown Source)
    [junit]     at org.jdesktop.application.SessionStorage.restore(Unknown Source)
    [junit]     at org.jdesktop.application.SingleFrameApplication.initRootPaneContainer(Unknown Source)
    [junit]     at org.jdesktop.application.SingleFrameApplication.show(Unknown Source)
    [junit]     at org.jdesktop.application.BadSessionStateTest$BadSessionStateApplication.startup(Unknown Source)
    [junit]     at org.jdesktop.application.Application$1.run(Unknown Source)
    [junit]     at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
    [junit]     at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:670)
    [junit]     at java.awt.EventQueue.access$400(EventQueue.java:96)
    [junit]     at java.awt.EventQueue$2.run(EventQueue.java:631)
    [junit]     at java.awt.EventQueue$2.run(EventQueue.java:629)
    [junit]     at java.security.AccessController.doPrivileged(Native Method)
    [junit]     at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
    [junit]     at java.awt.EventQueue.dispatchEvent(EventQueue.java:640)
    [junit]     at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
    [junit]     at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
    [junit]     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
    [junit]     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
    [junit]     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
    [junit]     at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1.109 sec
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1.109 sec
    [junit] 
    [junit] ------------- Standard Error -----------------
    [junit] This test generates logger warnings.  Ignore them.
    [junit] Oct 24, 2012 4:09:26 PM org.jdesktop.application.LocalStorage getId
    [junit] WARNING: unspecified resource Application.id using BadSessionStateApplication
    [junit] Oct 24, 2012 4:09:26 PM org.jdesktop.application.SingleFrameApplication initRootPaneContainer
    [junit] WARNING: couldn't restore session [mainFrame.session.xml]
    [junit] java.lang.ArrayIndexOutOfBoundsException: 0
    [junit]     at com.sun.beans.ObjectHandler.dequeueResult(ObjectHandler.java:189)
    [junit]     at java.beans.XMLDecoder.readObject(XMLDecoder.java:223)
    [junit]     at org.jdesktop.application.LocalStorage.load(Unknown Source)
    [junit]     at org.jdesktop.application.SessionStorage.restore(Unknown Source)
    [junit]     at org.jdesktop.application.SingleFrameApplication.initRootPaneContainer(Unknown Source)
    [junit]     at org.jdesktop.application.SingleFrameApplication.show(Unknown Source)
    [junit]     at org.jdesktop.application.BadSessionStateTest$BadSessionStateApplication.startup(Unknown Source)
    [junit]     at org.jdesktop.application.Application$1.run(Unknown Source)
    [junit]     at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
    [junit]     at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:670)
    [junit]     at java.awt.EventQueue.access$400(EventQueue.java:96)
    [junit]     at java.awt.EventQueue$2.run(EventQueue.java:631)
    [junit]     at java.awt.EventQueue$2.run(EventQueue.java:629)
    [junit]     at java.security.AccessController.doPrivileged(Native Method)
    [junit]     at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
    [junit]     at java.awt.EventQueue.dispatchEvent(EventQueue.java:640)
    [junit]     at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
    [junit]     at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
    [junit]     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
    [junit]     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
    [junit]     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
    [junit]     at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
    [junit] ------------- ---------------- ---------------
    [junit] Testcase: testBadSessionState(org.jdesktop.application.BadSessionStateTest):    Caused an ERROR
    [junit] null
    [junit] java.lang.reflect.InvocationTargetException
    [junit]     at java.awt.EventQueue.invokeAndWait(EventQueue.java:1068)
    [junit]     at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1347)
    [junit]     at org.jdesktop.application.BadSessionStateTest.testBadSessionState(Unknown Source)
    [junit] Caused by: java.lang.StackOverflowError

(and it goes on and on for pages)

So: no idea :/

(I'm still attaching the change to use xvfb which seems to be a good
idea in any case.)


Cheers,
gregor

-- 
 .''`.  Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer  -  http://www.debian.org/
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: Various Artists: Katie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 690152.diff
Type: text/x-diff
Size: 1371 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20121024/80a9d292/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20121024/80a9d292/attachment.pgp>


More information about the pkg-java-maintainers mailing list