Vladimir, I don't think we should exclude tests. The issue happens when a connection to X server is lost. I would call this configurational problem.
[junit] Xlib: connection to "nstdrlxl5:4.0" refused by server [junit] Xlib: No protocol specified [junit] Uncaught exception in AWT-NativeEventThread: [junit] java.lang.InternalError: Cannot open display '' BTW, I think it is a good idea to configure tests to run with a virtual framebuffer. This requires downloading and building Xvfb. -- Thank you, Alexei On 11/24/06, Vladimir Ivanov <[EMAIL PROTECTED]> wrote:
OK. Could we exclude tests failed due to this issue? As I see it was created some time ago. Thanks, Vladimir On 11/24/06, Alexei Fedotov <[EMAIL PROTECTED]> wrote: > > Guys, > This is known problem, see > http://issues.apache.org/jira/browse/HARMONY-2220. > > Alexey, > Have you succeed reproducing the problem with AWT test? > > On 11/23/06, Vladimir Ivanov <[EMAIL PROTECTED]> wrote: > > On 11/23/06, Ivanov, Alexey A <[EMAIL PROTECTED]> wrote: > > > > > > Vladimir, all, > > > > > > I believe the problem lurks somewhere in VM. > > > Swing is 100% pure Java code (with a small exception for > j.s.filechooser > > > package). > > > > > > As I can't see the problem is that AWT failed to open display. Do AWT > > > tests pass? Is it the only test that fails? > > > > > > > > The last line was added especially to be sure that other tests reported > > 'passed' status. > > > > Actually, excluding 3 tests: one for issue 2770 and 2 swing (I think > these > > are intermittent failures): > > Test: testSetBounds Class: javax.swing.JComponentRTest > > junit.framework.AssertionFailedError at > > javax.swing.JComponentRTest.testSetBounds(JComponentRTest.java:53) at > > java.lang.reflect.VMReflection.invokeMethod(Native Method) at > > javax.swing.BasicSwingTestCase.runBareSuper(BasicSwingTestCase.java) > at > > javax.swing.SwingTestCase$1.run(SwingTestCase.java) at > > java.awt.event.InvocationEvent.runAndNotify(InvocationEvent.java:90) > at > > java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:78) at > > java.awt.EventQueueCore.dispatchEventImpl(EventQueueCore.java:133) at > > java.awt.EventQueue.dispatchEvent(EventQueue.java:144) at > > java.awt.EventDispatchThread.runModalLoop(EventDispatchThread.java:74) > at > > java.awt.EventDispatchThread.run(EventDispatchThread.java:45) Test: > > testIsAfter Class: javax.swing.text.PlainViewI18N_LineViewTest > > junit.framework.AssertionFailedError at > > javax.swing.text.PlainViewI18N_LineViewTest.testIsAfter > (PlainViewI18N_LineViewTest.java:234) > > at java.lang.reflect.VMReflection.invokeMethod(Native Method) at > > javax.swing.BasicSwingTestCase.runBareSuper(BasicSwingTestCase.java) > at > > javax.swing.SwingTestCase$1.run(SwingTestCase.java) at > > java.awt.event.InvocationEvent.runAndNotify(InvocationEvent.java:90) > at > > java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:78) at > > java.awt.EventQueueCore.dispatchEventImpl(EventQueueCore.java:133) at > > java.awt.EventQueue.dispatchEvent(EventQueue.java:144) at > > java.awt.EventDispatchThread.runModalLoop(EventDispatchThread.java:74) > at > > java.awt.EventDispatchThread.run(EventDispatchThread.java:45) > > > > I'll try to reproduce the problem. > > > > > > Regards, > > > -- > > > Alexey A. Ivanov > > > Intel Enterprise Solutions Software Division > > > > > > > > > >-----Original Message----- > > > >From: Vladimir Ivanov [mailto:[EMAIL PROTECTED] > > > >Sent: Thursday, November 23, 2006 8:42 AM > > > >To: dev > > > >Subject: [classlib][drlvm][swing] test TEST- > > > >javax.swing.text.DefaultStyledDocumentRTest leads to VM crash > > > > > > > >Could somebody look at the > > > >TEST-javax.swing.text.DefaultStyledDocumentRTest.xml test crash (log > > > below)? > > > >Seems, it is intermittent failure. > > > >My configuration is SUSE 9 on [EMAIL PROTECTED] CPU, 1Gb RAM: > > > >vivanov> uname -a > > > >Linux nstdrlxl5 2.6.5-7.191-bigsmp #1 SMP Tue Jun 28 14:58:56 UTC > 2005 > > > i686 > > > >i686 i386 GNU/Linux > > > >vivanov> > > > > Thanks, Vladimir > > > > > > > >Log: > > > >........................ > > > > [exec] [junit] Xlib: connection to "nstdrlxl5:4.0" refused > by > > > >server > > > > [exec] [junit] Xlib: No protocol specified > > > > > > > > [exec] [junit] Uncaught exception in AWT-NativeEventThread: > > > > [exec] [junit] java.lang.InternalError: Cannot open display > '' > > > > [exec] [junit] at > > > >java.lang.reflect.VMReflection.newClassInstance(Native > > > >Method) > > > > [exec] [junit] at > > > >java.lang.reflect.Constructor.newInstance(Unknown > > > >Source) > > > > [exec] [junit] at java.lang.Class.newInstance(Unknown > Source) > > > > [exec] [junit] at > > > java.awt.Toolkit.createWTK(Toolkit.java:985) > > > > [exec] [junit] at java.awt.Toolkit.access$1(Toolkit.java) > > > > [exec] [junit] at java.awt.Toolkit$1.init(Toolkit.java) > > > > [exec] [junit] at > > > >org.apache.harmony.awt.wtk.NativeEventThread.run > > > >(NativeEventThread.java:45) > > > > [exec] [junit] Uncaught exception in > AWT-EventDispatchThread: > > > > [exec] [junit] java.lang.NullPointerException > > > > [exec] [junit] at java.awt.Toolkit.getNativeEventQueue( > > > >Toolkit.java) > > > > [exec] [junit] at java.awt.EventDispatchThread.run( > > > >EventDispatchThread.java) > > > > [exec] [junit] java: > > > > >/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/class_support/C > > > _Int > > > >erface.cpp:2288: > > > >void vm_gc_lock_enum(): Assertion `hythread_is_suspend_enabled()' > > > failed. > > > > [exec] [junit] SIGABRT in VM code. > > > > [exec] [junit] Stack trace: > > > > [exec] [junit] 1: ?? (??:-1) > > > > [exec] [junit] 2: abort (??:-1) > > > > [exec] [junit] 3: __assert_fail (??:-1) > > > > [exec] [junit] 4: vm_gc_lock_enum > > > > >(/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/class_support/ > > > C_In > > > >terface.cpp:2288) > > > > [exec] [junit] 5: gc_alloc > > > > >(/export/viv/trunk/cc/projects/drlvm/trunk/vm/gc_cc/src/gc_for_vm.cpp:2 > > > 31) > > > > [exec] [junit] 6: vm_alloc_and_report_ti(unsigned int, > > > unsigned > > > >int, void*, Class*) > > > > >(/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/jvmti/jvmti_ev > > > ent. > > > >cpp:1208) > > > > [exec] [junit] 7: string_create > > > > >(/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/util/vm_string > > > s.cp > > > >p:247) > > > > [exec] [junit] 8: string_create_from_utf8(char const*, > > > unsigned > > > >int) > > > > >(/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/util/vm_string > > > s.cp > > > >p:295) > > > > [exec] [junit] 9: prepare_exc_creating > > > > >(/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/exception/exce > > > ptio > > > >ns_impl.cpp:132) > > > > [exec] [junit] 10: prepare_exc_creating > > > > >(/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/exception/exce > > > ptio > > > >ns_impl.cpp:162) > > > > [exec] [junit] 11: exn_throw_by_class_internal(Class*, char > > > >const*, _jobject*) > > > > >(/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/exception/exce > > > ptio > > > >ns_impl.cpp:308) > > > > [exec] [junit] 12: exn_rethrow() > > > > >(/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/exception/exce > > > ptio > > > >ns.cpp:358) > > > > [exec] [junit] <end of stack trace> > > > > [exec] [junit] Running > > > javax.swing.text.DefaultStyledDocumentTest > > > > [exec] [junit] Test > > > >javax.swing.text.DefaultStyledDocumentRTestFAILED > > > > [exec] [junit] Xlib: connection to "nstdrlxl5:4.0" refused > by > > > >server > > > > [exec] [junit] Xlib: No protocol specified > > > > > > > > [exec] [junit] Uncaught exception in AWT-NativeEventThread: > > > > [exec] [junit] java.lang.InternalError: Cannot open display > '' > > > > [exec] [junit] at > > > >java.lang.reflect.VMReflection.newClassInstance(Native > > > >Method) > > > > [exec] [junit] at > > > >java.lang.reflect.Constructor.newInstance(Unknown > > > >Source) > > > > [exec] [junit] at java.lang.Class.newInstance(Unknown > Source) > > > > [exec] [junit] at > > > java.awt.Toolkit.createWTK(Toolkit.java:985) > > > > [exec] [junit] at java.awt.Toolkit.access$1(Toolkit.java) > > > > [exec] [junit] at java.awt.Toolkit$1.init(Toolkit.java) > > > > [exec] [junit] at > > > >org.apache.harmony.awt.wtk.NativeEventThread.run > > > >(NativeEventThread.java:45) > > > > [exec] [junit] Uncaught exception in > AWT-EventDispatchThread: > > > > [exec] [junit] java.lang.NullPointerException > > > > [exec] [junit] at java.awt.Toolkit.getNativeEventQueue( > > > >Toolkit.java) > > > > [exec] [junit] at java.awt.EventDispatchThread.run( > > > >EventDispatchThread.java) > > > > [exec] [junit] java: > > > > >/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/class_support/C > > > _Int > > > >erface.cpp:2288: > > > >void vm_gc_lock_enum(): Assertion `hythread_is_suspend_enabled()' > > > failed. > > > > [exec] [junit] SIGABRT in VM code. > > > > [exec] [junit] Stack trace: > > > > [exec] [junit] 1: ?? (??:-1) > > > > [exec] [junit] 2: abort (??:-1) > > > > [exec] [junit] 3: __assert_fail (??:-1) > > > > [exec] [junit] 4: vm_gc_lock_enum > > > > >(/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/class_support/ > > > C_In > > > >terface.cpp:2288) > > > > [exec] [junit] 5: gc_alloc > > > > >(/export/viv/trunk/cc/projects/drlvm/trunk/vm/gc_cc/src/gc_for_vm.cpp:2 > > > 31) > > > > [exec] [junit] 6: vm_alloc_and_report_ti(unsigned int, > > > unsigned > > > >int, void*, Class*) > > > > >(/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/jvmti/jvmti_ev > > > ent. > > > >cpp:1208) > > > > [exec] [junit] 7: string_create > > > > >(/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/util/vm_string > > > s.cp > > > >p:247) > > > > [exec] [junit] 8: string_create_from_utf8(char const*, > > > unsigned > > > >int) > > > > >(/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/util/vm_string > > > s.cp > > > >p:295) > > > > [exec] [junit] 9: prepare_exc_creating > > > > >(/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/exception/exce > > > ptio > > > >ns_impl.cpp:132) > > > > [exec] [junit] 10: prepare_exc_creating > > > > >(/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/exception/exce > > > ptio > > > >ns_impl.cpp:162) > > > > [exec] [junit] 11: exn_throw_by_class_internal(Class*, char > > > >const*, _jobject*) > > > > >(/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/exception/exce > > > ptio > > > >ns_impl.cpp:308) > > > > [exec] [junit] 12: exn_rethrow() > > > > >(/export/viv/trunk/cc/projects/drlvm/trunk/vm/vmcore/src/exception/exce > > > ptio > > > >ns.cpp:358) > > > > [exec] [junit] <end of stack trace> > > > > [exec] [junit] Running > > > >javax.swing.text.DefaultStyledDocument_AttributeUndoableEditTest > > > > [exec] [junit] Test > > > >javax.swing.text.DefaultStyledDocumentTestFAILED > > > > [exec] [junit] Tests run: 7, Failures: 0, Errors: 0, Time > > > elapsed: > > > >0.486 sec > > > > > > > > > > -- > Thank you, > Alexei >
