Can Hudson perform JUnit tests that require screen access?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Can Hudson perform JUnit tests that require screen access?

Trisler, Brian

This may be asked and answered someplace already and I was just unable to find it.  If that’s the case I apologize in advance. 

 

I administer the tests for my group and we have a fairly extensive group of automated Junit tests that we run on nightly builds which involve screen access (button pushes, mouse clicks and drags etc.)  We previously used CruiseControl to automate this process and I have been trying to migrate to Hudson.  Is it possible to Run Hudson from Tomcat, which is deployed as a local Windows service?  I’m getting the following error (which I have tried to clean up a bit to only show some of the more relevant information).  It looks like a AWT error to me, which I think is happening because I never see the application being tested appearing on the screen.

 

 

[junit] # An unexpected error has been detected by HotSpot Virtual Machine:

    [junit] #

    [junit] #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d07baf4, pid=3260, tid=288

    [junit] #

    [junit] # Java VM: Java HotSpot(TM) Client VM (1.5.0_09-b03 mixed mode, sharing)

    [junit] # Problematic frame:

    [junit] # C  [awt.dll+0xbaf4]

    [junit] #

    [junit]

    [junit] ---------------  T H R E A D  ---------------

    [junit]

    [junit] Current thread (0x045b0f40):  JavaThread "AWT-EventQueue-1" [_thread_in_native, id=288]

    [junit]

    [junit] siginfo: ExceptionCode=0xc0000005, reading address 0x00004e32

    [junit]

    [junit] Registers:

    [junit] EAX=0x00001388, EBX=0x6d1a2740, ECX=0x00000012, EDX=0x00000012

    [junit] ESP=0x058fe748, EBP=0x17e2a62d, ESI=0x00000088, EDI=0x00000005

    [junit] EIP=0x6d07baf4, EFLAGS=0x00010206

    [junit]

    [junit] Top of Stack: (sp=0x058fe748)

    [junit] 0x058fe748:   ffffffbb 045b1000 6d18e498 00000045

    [junit] 0x058fe758:   17e2a1d4 ff999999 6d1a2700 6d1a26c0

    [junit] 0x058fe768:   00000000 00000000 00000002 6d071a56

    [junit] 0x058fe778:   00ff0000 00000000 000000a6 00000014

    [junit] 0x058fe788:   000000a6 058fe7fc 6d18e498 058fe7f0

    [junit] 0x058fe798:   045b0f40 2ba7d988 058fe93c 2c2dec20

    [junit] 0x058fe7a8:   04bfb9b8 00000045 6d18e498 00000000

    [junit] 0x058fe7b8:   008817a0 00000045 00000030 000000eb

    [junit]

    [junit] Instructions: (pc=0x6d07baf4)

    [junit] 0x6d07bae4:   00 00 83 e6 f8 c1 e0 05 c1 e9 03 03 c6 03 d1 45

    [junit] 0x6d07baf4:   8a 0c 82 8b 44 24 30 88 08 40 89 44 24 30 8b 44

    [junit]

    [junit]

    [junit] Stack: [0x058c0000,0x05900000),  sp=0x058fe748,  free space=249k

    [junit] Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)

    [junit] C  [awt.dll+0xbaf4]

    [junit]

    [junit] Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)

    [junit] j  sun.java2d.loops.Blit.Blit(Lsun/java2d/SurfaceData;Lsun/java2d/SurfaceData;Ljava/awt/Composite;Lsun/java2d/pipe/Region;IIIIII)V+0

    [junit] j  sun.java2d.pipe.DrawImage.blitSurfaceData(Lsun/java2d/SunGraphics2D;Lsun/java2d/pipe/Region;Lsun/java2d/SurfaceData;Lsun/java2d/SurfaceData;Lsun/java2d/loops/SurfaceType;Lsun/java2d/loops/SurfaceType;IIIIIILjava/awt/Color;)V+97

    [junit] j  sun.java2d.pipe.DrawImage.renderImageCopy(Lsun/java2d/SunGraphics2D;Ljava/awt/Image;Ljava/awt/Color;IIIIII)Z+75

    [junit] j  sun.java2d.pipe.DrawImage.copyImage(Lsun/java2d/SunGraphics2D;Ljava/awt/Image;IILjava/awt/Color;)Z+45

    [junit] j  sun.java2d.pipe.DrawImage.copyImage(Lsun/java2d/SunGraphics2D;Ljava/awt/Image;IILjava/awt/Color;Ljava/awt/image/ImageObserver;)Z+15

    [junit] j  sun.java2d.pipe.ValidatePipe.copyImage(Lsun/java2d/SunGraphics2D;Ljava/awt/Image;IILjava/awt/Color;Ljava/awt/image/ImageObserver;)Z+21

    [junit] j  sun.java2d.SunGraphics2D.drawImage(Ljava/awt/Image;IILjava/awt/Color;Ljava/awt/image/ImageObserver;)Z+18

    [junit] j  sun.java2d.SunGraphics2D.drawImage(Ljava/awt/Image;IILjava/awt/image/ImageObserver;)Z+7

    [junit] j  javax.swing.JComponent.paintWithOffscreenBuffer(Ljavax/swing/JComponent;Ljava/awt/Graphics;IIIILjava/awt/Image;)V+232

    [junit] j  javax.swing.JComponent.paintDoubleBuffered(Ljavax/swing/JComponent;Ljava/awt/Component;Ljava/awt/Graphics;IIII)Z+131

    [junit] j  javax.swing.JComponent._paintImmediately(IIII)V+739

    [junit] j  javax.swing.JComponent.paintImmediately(IIII)V+83

    [junit] j  javax.swing.RepaintManager.paintDirtyRegions()V+314

    [junit] j  javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run()V+32

    [junit] j  java.awt.event.InvocationEvent.dispatch()V+47

    [junit] j  java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+26

    [junit] j  itec.swing.WaitCursorEventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+41

    [junit] j  itec.selene.DLBEventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+2

    [junit] j  java.awt.EventDispatchThread.pumpOneEventForHierarchy(ILjava/awt/Component;)Z+233

    [junit] j  java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+26

    [junit] j  java.awt.EventDispatchThread.pumpEventsForHierarchy(Ljava/awt/Conditional;Ljava/awt/Component;)V+4

    [junit] j  java.awt.Dialog$1.run()V+20

    [junit] j  java.awt.Dialog$2.run()Ljava/lang/Object;+4

    [junit] v  ~StubRoutines::call_stub

    [junit] j  java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;)Ljava/lang/Object;+0

    [junit] j  java.awt.Dialog.show()V+103

    [junit] j  java.awt.Component.show(Z)V+5

    [junit] j  java.awt.Component.setVisible(Z)V+2

    [junit] j  itec.swing.BasicAuthenticator.doPasswordAuthentication(Ljava/lang/String;)V+683

    [junit] j  itec.swing.BasicAuthenticator.getPasswordAuthentication(Ljava/lang/String;)Ljava/net/PasswordAuthentication;+8

    [junit] j  itec.swing.BasicAuthenticator.getPasswordAuthentication()Ljava/net/PasswordAuthentication;+2

    [junit] j  java.net.Authenticator.requestPasswordAuthentication(Ljava/lang/String;Ljava/net/InetAddress;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/net/URL;Ljava/net/Authenticator$RequestorType;)Ljava/net/PasswordAuthentication;+105

    [junit] j  sun.net.www.protocol.http.HttpURLConnection$1.run()Ljava/lang/Object;+32

    [junit] v  ~StubRoutines::call_stub

    [junit] j  java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;)Ljava/lang/Object;+0

    [junit] j  sun.net.www.protocol.http.HttpURLConnection.privilegedRequestPasswordAuthentication(Ljava/lang/String;Ljava/net/InetAddress;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/net/URL;Ljava/net/Authenticator$RequestorType;)Ljava/net/PasswordAuthentication;+19

    [junit] j  sun.net.www.protocol.http.HttpURLConnection.getServerAuthentication(Lsun/net/www/protocol/http/AuthenticationHeader;)Lsun/net/www/protocol/http/AuthenticationInfo;+220

    [junit] j  sun.net.www.protocol.http.HttpURLConnection.getInputStream()Ljava/io/InputStream;+635

    [junit] j  java.net.HttpURLConnection.getResponseCode()I+16

    [junit] j  itec.selene.ConnectionCheck.checkConnectionState()Litec/util/MapK;+166

    [junit] j  itec.selene.ConnectionCheck.initLogin()Litec/util/MapK;+43

    [junit] j  itec.selene.Selene.initLogin()V+39

    [junit] j  itec.selene.DLBImpl$4.run()V+4

    [junit] j  java.awt.event.InvocationEvent.dispatch()V+11

    [junit] j  java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+26

    [junit] j  itec.swing.WaitCursorEventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+41

    [junit] j  itec.selene.DLBEventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+2

    [junit] j  java.awt.EventDispatchThread.pumpOneEventForHierarchy(ILjava/awt/Component;)Z+233

    [junit] j  java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+26

    [junit] j  java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4

    [junit] j  java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3

    [junit] j  java.awt.EventDispatchThread.run()V+9

    [junit] v  ~StubRoutines::call_stub

    [junit]

    [junit] ---------------  P R O C E S S  ---------------

    [junit]

    [junit] Java Threads: ( => current thread )

    [junit]   0x04bf97d0 JavaThread "TimerQueue" daemon [_thread_new, id=2280]

    [junit]   0x045b16e0 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=3904]

    [junit] =>0x045b0f40 JavaThread "AWT-EventQueue-1" [_thread_in_native, id=288]

    [junit]   0x045b1558 JavaThread "Wait Cursor Thread" daemon [_thread_blocked, id=3128]

    [junit]   0x04b66938 JavaThread "DLB Single Instance Check" [_thread_blocked, id=1500]

    [junit]   0x045adea8 JavaThread "Thread-2" [_thread_blocked, id=2976]

    [junit]   0x043e2d40 JavaThread "HTTPServer" [_thread_in_native, id=1508]

    [junit]   0x04427bd8 JavaThread "testPrinting" [_thread_blocked, id=3884]

    [junit]   0x043adcc0 JavaThread "AWT-Windows" daemon [_thread_in_native, id=3840]

    [junit]   0x043adb38 JavaThread "AWT-Shutdown" [_thread_blocked, id=4028]

    [junit]   0x041e1b48 JavaThread "WindowMonitor-DispatchThread" daemon [_thread_blocked, id=4040]

    [junit]   0x00848008 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=712]

    [junit]   0x00848628 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2068]

    [junit]   0x00847680 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=4068]

    [junit]   0x00816148 JavaThread "Finalizer" daemon [_thread_blocked, id=3836]

    [junit]   0x00814b70 JavaThread "Reference Handler" daemon [_thread_blocked, id=3308]

    [junit]   0x0013f320 JavaThread "main" [_thread_blocked, id=2436]

    [junit]

    [junit] Other Threads:

    [junit]   0x0083ef18 VMThread [id=2152]

    [junit]   0x008177a0 WatcherThread [id=364]

    [junit]

    [junit] VM state:not at safepoint (normal execution)

    [junit]

    [junit] VM Mutex/Monitor currently owned by a thread: None

    [junit]

    [junit] Heap

    [junit]  def new generation   total 5696K, used 5150K [0x179c0000, 0x17fe0000, 0x18d70000)

    [junit]   eden space 5120K,  89% used [0x179c0000, 0x17e37ba0, 0x17ec0000)

    [junit]   from space 576K, 100% used [0x17f50000, 0x17fe0000, 0x17fe0000)

    [junit]   to   space 576K,   0% used [0x17ec0000, 0x17ec0000, 0x17f50000)

    [junit]  tenured generation   total 75648K, used 1582K [0x18d70000, 0x1d750000, 0x279c0000)

    [junit]    the space 75648K,   2% used [0x18d70000, 0x18efb8c0, 0x18efba00, 0x1d750000)

    [junit]  compacting perm gen  total 8192K, used 3275K [0x279c0000, 0x281c0000, 0x2b9c0000)

    [junit]    the space 8192K,  39% used [0x279c0000, 0x27cf2ef8, 0x27cf3000, 0x281c0000)

    [junit]     ro space 8192K,  67% used [0x2b9c0000, 0x2bf1e5d8, 0x2bf1e600, 0x2c1c0000)

    [junit]     rw space 12288K,  47% used [0x2c1c0000, 0x2c7687f0, 0x2c768800, 0x2cdc0000)

    [junit]

    [junit] Dynamic libraries:

    [junit] 0x00400000 - 0x0040d000       C:\Program Files\Java\jdk1.5.0_09\jre\bin\java.exe

    [junit] 0x77cf0000 - 0x77e17000       C:\Windows\system32\ntdll.dll

    [junit] 0x77c10000 - 0x77ceb000       C:\Windows\system32\kernel32.dll

    [junit] 0x765c0000 - 0x76686000       C:\Windows\system32\ADVAPI32.dll

    [junit] 0x772d0000 - 0x77392000       C:\Windows\system32\RPCRT4.dll

    [junit] 0x77750000 - 0x777fa000       C:\Windows\system32\MSVCRT.dll

    [junit] 0x6d730000 - 0x6d8cb000       C:\Program Files\Java\jdk1.5.0_09\jre\bin\client\jvm.dll

    [junit] 0x77680000 - 0x7771d000       C:\Windows\system32\USER32.dll

    [junit] 0x77630000 - 0x7767b000       C:\Windows\system32\GDI32.dll

    [junit] 0x75050000 - 0x75082000       C:\Windows\system32\WINMM.dll

    [junit] 0x773d0000 - 0x77514000       C:\Windows\system32\ole32.dll

    [junit] 0x77ec0000 - 0x77f4d000       C:\Windows\system32\OLEAUT32.dll

    [junit] 0x75010000 - 0x75049000       C:\Windows\system32\OLEACC.dll

    [junit] 0x773a0000 - 0x773be000       C:\Windows\system32\IMM32.DLL

    [junit] 0x77830000 - 0x778f8000       C:\Windows\system32\MSCTF.dll

    [junit] 0x76370000 - 0x7639c000       C:\Windows\system32\apphelp.dll

    [junit] 0x773c0000 - 0x773c9000       C:\Windows\system32\LPK.DLL

    [junit] 0x77520000 - 0x7759d000       C:\Windows\system32\USP10.dll

    [junit] 0x6d2f0000 - 0x6d2f8000       C:\Program Files\Java\jdk1.5.0_09\jre\bin\hpi.dll

    [junit] 0x764d0000 - 0x764d7000       C:\Windows\system32\PSAPI.DLL

    [junit] 0x6d700000 - 0x6d70c000       C:\Program Files\Java\jdk1.5.0_09\jre\bin\verify.dll

    [junit] 0x6d370000 - 0x6d38d000       C:\Program Files\Java\jdk1.5.0_09\jre\bin\java.dll

    [junit] 0x6d720000 - 0x6d72f000       C:\Program Files\Java\jdk1.5.0_09\jre\bin\zip.dll

    [junit] 0x767c0000 - 0x772cf000       C:\Windows\system32\SHELL32.DLL

    [junit] 0x77900000 - 0x77958000       C:\Windows\system32\SHLWAPI.dll

    [junit] 0x752c0000 - 0x7545e000       C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6001.18000_none_5cdbaa5a083979cc\comctl32.dll

    [junit] 0x6d070000 - 0x6d1d9000       C:\Program Files\Java\jdk1.5.0_09\jre\bin\awt.dll

    [junit] 0x74690000 - 0x746d2000       C:\Windows\system32\WINSPOOL.DRV

    [junit] 0x71030000 - 0x71036000       C:\Windows\system32\wls0wndh.dll

    [junit] 0x6d530000 - 0x6d543000       C:\Program Files\Java\jdk1.5.0_09\jre\bin\net.dll

    [junit] 0x77720000 - 0x7774d000       C:\Windows\system32\WS2_32.dll

    [junit] 0x77620000 - 0x77626000       C:\Windows\system32\NSI.dll

    [junit] 0x75b90000 - 0x75bcb000       C:\Windows\system32\mswsock.dll

    [junit] 0x75bf0000 - 0x75bf5000       C:\Windows\System32\wship6.dll

    [junit] 0x74f90000 - 0x74f9f000       C:\Windows\system32\NLAapi.dll

    [junit] 0x75de0000 - 0x75df9000       C:\Windows\system32\IPHLPAPI.DLL

    [junit] 0x75da0000 - 0x75dd5000       C:\Windows\system32\dhcpcsvc.DLL

    [junit] 0x76020000 - 0x7604c000       C:\Windows\system32\DNSAPI.dll

    [junit] 0x76400000 - 0x76414000       C:\Windows\system32\Secur32.dll

    [junit] 0x75d90000 - 0x75d97000       C:\Windows\system32\WINNSI.DLL

    [junit] 0x75d60000 - 0x75d81000       C:\Windows\system32\dhcpcsvc6.DLL

    [junit] 0x73100000 - 0x7310f000       C:\Windows\system32\napinsp.dll

    [junit] 0x72b80000 - 0x72b92000       C:\Windows\system32\pnrpnsp.dll

    [junit] 0x72bb0000 - 0x72bb8000       C:\Windows\System32\winrnr.dll

    [junit] 0x76570000 - 0x765ba000       C:\Windows\system32\WLDAP32.dll

    [junit] 0x75850000 - 0x75855000       C:\Windows\System32\wshtcpip.dll

    [junit] 0x73110000 - 0x73116000       C:\Windows\system32\rasadhlp.dll

    [junit] 0x6c9c0000 - 0x6c9ca000       C:\Windows\Temp\win32.dll

    [junit] 0x6d550000 - 0x6d559000       C:\Program Files\Java\jdk1.5.0_09\jre\bin\nio.dll

    [junit] 0x6d2b0000 - 0x6d2ef000       C:\Program Files\Java\jdk1.5.0_09\jre\bin\fontmanager.dll

    [junit] 0x6d200000 - 0x6d22f000       C:\Program Files\Java\jdk1.5.0_09\jre\bin\cmm.dll

    [junit] 0x6d430000 - 0x6d44f000       C:\Program Files\Java\jdk1.5.0_09\jre\bin\jpeg.dll

    [junit] 0x755c0000 - 0x755ff000       C:\Windows\system32\UXTHEME.DLL

    [junit]

    [junit] Environment Variables:

    [junit] JAVA_HOME=C:\Program Files\Java\jdk1.5.0_09

    [junit] PATH=C:\Program Files\Java\jdk1.5.0_09\bin;C:\Program Files\Measurement Computing\DAQ\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\FastObjects_t7_9.5\runtime\bin;C:\Program Files\Java\jdk1.6.0_05\bin;C:\Program Files\FastObjects_t7_9.5\runtime\bin;C:\Program Files\FastObjects_t7_9.5\runtime\bin;C:\Program Files\TortoiseCVS

    [junit] OS=Windows_NT

    [junit] PROCESSOR_IDENTIFIER=x86 Family 15 Model 3 Stepping 4, GenuineIntel

    [junit]

    [junit]

    [junit]

    [junit] ---------------  S Y S T E M  ---------------

    [junit]

    [junit] OS: Windows Vista Build 6001 Service Pack 1

    [junit]

    [junit] CPU:total 1 (cores per cpu 1, threads per core 2) family 15 model 3 stepping 4, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ht

    [junit]

    [junit] Memory: 4k page, physical 2097151k(2080040k free), swap 4194303k(4194303k free)

    [junit]

    [junit] vm_info: Java HotSpot(TM) Client VM (1.5.0_09-b03) for windows-x86, built on Oct 12 2006 01:20:10 by "java_re" with MS VC++ 6.0

    [junit]

    [junit]

    [junit] #

    [junit] # An unexpected error has been detected by HotSpot Virtual Machine:

    [junit] #

    [junit] #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d07baf4, pid=3808, tid=3680

    [junit] #

    [junit] # Java VM: Java HotSpot(TM) Client VM (1.5.0_09-b03 mixed mode, sharing)

    [junit] # Problematic frame:

    [junit] # C  [awt.dll+0xbaf4]

    [junit] #

    [junit] # An error report file with more information is saved as hs_err_pid3808.log

    [junit] #

    [junit] # If you would like to submit a bug report, please visit:

    [junit] #   http://java.sun.com/webapps/bugreport/crash.jsp

    [junit] #

    [junit] Running itec.selene.test.PrintTest

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

 

 

Brian Trisler

Software Developer

Navistar, Inc.

E-mail:  [hidden email]

 

CONFIDENTIALITY NOTICE:  This e-mail, and any attachments
and/or documents linked to this email, are intended for the
addressee and may contain information that is privileged,
confidential, proprietary, or otherwise protected by law.  Any
dissemination, distribution, or copying is prohibited.  This
notice serves as a confidentiality marking for the purpose of
any confidentiality or nondisclosure agreement.  If you have
received this communication in error, please contact the
original sender.

Reply | Threaded
Open this post in threaded view
|

Re: Can Hudson perform JUnit tests that require screen access?

Fabrizio Giudici
Sounds more as a bug, or a problem with video drivers etc... because it's a crash. Usually problems related to the need of a graphical interface are notified by regular exceptions.

On Aug 6, 2008, at 14:35 , Trisler, Brian wrote:

This may be asked and answered someplace already and I was just unable to find it.  If that’s the case I apologize in advance. 
 
I administer the tests for my group and we have a fairly extensive group of automated Junit tests that we run on nightly builds which involve screen access (button pushes, mouse clicks and drags etc.)  We previously used CruiseControl to automate this process and I have been trying to migrate to Hudson.  Is it possible to Run Hudson from Tomcat, which is deployed as a local Windows service?  I’m getting the following error (which I have tried to clean up a bit to only show some of the more relevant information).  It looks like a AWT error to me, which I think is happening because I never see the application being tested appearing on the screen.
 
 
[junit] # An unexpected error has been detected by HotSpot Virtual Machine:
    [junit] #
    [junit] #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d07baf4, pid=3260, tid=288
    [junit] #
    [junit] # Java VM: Java HotSpot(TM) Client VM (1.5.0_09-b03 mixed mode, sharing)
    [junit] # Problematic frame:
    [junit] # C  [awt.dll+0xbaf4]
    [junit] #
    [junit]
    [junit] ---------------  T


-- 
Fabrizio Giudici, Ph.D. - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/blog
[hidden email] - mobile: +39 348.150.6941


Reply | Threaded
Open this post in threaded view
|

RE: Re: Can Hudson perform JUnit tests that require screen access?

Trisler, Brian

Sorry about that I should have noted, the same code runs fine in eclipse, and stand alone, both on this machine and several others

 

But I will double check that my drivers are all up-to-date.

 

I’ve also been told that 2-3 years ago, we had the same issue (no access to the screen) from CruiseControl running in a tomcat service. 

 

Brian Trisler

Software Developer

Navistar, Inc.

E-mail:  [hidden email]

From: Fabrizio Giudici [mailto:[hidden email]]
Sent: Wednesday, August 06, 2008 8:47 AM
To: [hidden email]
Subject: Re: Can Hudson perform JUnit tests that require screen access?

 

Sounds more as a bug, or a problem with video drivers etc... because it's a crash. Usually problems related to the need of a graphical interface are notified by regular exceptions.

 



CONFIDENTIALITY NOTICE:  This e-mail, and any attachments
and/or documents linked to this email, are intended for the
addressee and may contain information that is privileged,
confidential, proprietary, or otherwise protected by law.  Any
dissemination, distribution, or copying is prohibited.  This
notice serves as a confidentiality marking for the purpose of
any confidentiality or nondisclosure agreement.  If you have
received this communication in error, please contact the
original sender.


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Trisler, Brian.vcf (574 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Can Hudson perform JUnit tests that require screen access?

Aleksandar Kostadinov
In reply to this post by Trisler, Brian
Just like CruiseControl would need on any UNIX, you need to have DISPLAY
variable set correctly or use awt.headless mode.

If you consider the former then you have 2 choices:
1. start hudson from within an X session (or set DISPLAY variable
according to an existing session)
2. just use the vnc plug-in which  is very convenient and generally a
straightforward move. Easy to debug and control test environment.

Trisler, Brian wrote, On 12/23/-28158 09:59 PM (EEST):

> This may be asked and answered someplace already and I was just unable
> to find it.  If that’s the case I apologize in advance.
>
>  
>
> I administer the tests for my group and we have a fairly extensive group
> of automated Junit tests that we run on nightly builds which involve
> screen access (button pushes, mouse clicks and drags etc.)  We
> previously used CruiseControl to automate this process and I have been
> trying to migrate to Hudson.  Is it possible to Run Hudson from Tomcat,
> which is deployed as a local Windows service?  I’m getting the following
> error (which I have tried to clean up a bit to only show some of the
> more relevant information).  It looks like a AWT error to me, which I
> think is happening because I never see the application being tested
> appearing on the screen.
>
>  
>
>  
>
> [junit] # An unexpected error has been detected by HotSpot Virtual Machine:
>
>     [junit] #
>
>     [junit] #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d07baf4,
> pid=3260, tid=288
>
>     [junit] #
>
>     [junit] # Java VM: Java HotSpot(TM) Client VM (1.5.0_09-b03 mixed
> mode, sharing)
>
>     [junit] # Problematic frame:
>
>     [junit] # C  [awt.dll+0xbaf4]
>
>     [junit] #
>
>     [junit]
>
>     [junit] ---------------  T H R E A D  ---------------
>
>     [junit]
>
>     [junit] Current thread (0x045b0f40):  JavaThread "AWT-EventQueue-1"
> [_thread_in_native, id=288]
>
>     [junit]
>
>     [junit] siginfo: ExceptionCode=0xc0000005, reading address 0x00004e32
>
>     [junit]
>
>     [junit] Registers:
>
>     [junit] EAX=0x00001388, EBX=0x6d1a2740, ECX=0x00000012, EDX=0x00000012
>
>     [junit] ESP=0x058fe748, EBP=0x17e2a62d, ESI=0x00000088, EDI=0x00000005
>
>     [junit] EIP=0x6d07baf4, EFLAGS=0x00010206
>
>     [junit]
>
>     [junit] Top of Stack: (sp=0x058fe748)
>
>     [junit] 0x058fe748:   ffffffbb 045b1000 6d18e498 00000045
>
>     [junit] 0x058fe758:   17e2a1d4 ff999999 6d1a2700 6d1a26c0
>
>     [junit] 0x058fe768:   00000000 00000000 00000002 6d071a56
>
>     [junit] 0x058fe778:   00ff0000 00000000 000000a6 00000014
>
>     [junit] 0x058fe788:   000000a6 058fe7fc 6d18e498 058fe7f0
>
>     [junit] 0x058fe798:   045b0f40 2ba7d988 058fe93c 2c2dec20
>
>     [junit] 0x058fe7a8:   04bfb9b8 00000045 6d18e498 00000000
>
>     [junit] 0x058fe7b8:   008817a0 00000045 00000030 000000eb
>
>     [junit]
>
>     [junit] Instructions: (pc=0x6d07baf4)
>
>     [junit] 0x6d07bae4:   00 00 83 e6 f8 c1 e0 05 c1 e9 03 03 c6 03 d1 45
>
>     [junit] 0x6d07baf4:   8a 0c 82 8b 44 24 30 88 08 40 89 44 24 30 8b 44
>
>     [junit]
>
>     [junit]
>
>     [junit] Stack: [0x058c0000,0x05900000),  sp=0x058fe748,  free space=249k
>
>     [junit] Native frames: (J=compiled Java code, j=interpreted, Vv=VM
> code, C=native code)
>
>     [junit] C  [awt.dll+0xbaf4]
>
>     [junit]
>
>     [junit] Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
>
>     [junit] j  
> sun.java2d.loops.Blit.Blit(Lsun/java2d/SurfaceData;Lsun/java2d/SurfaceData;Ljava/awt/Composite;Lsun/java2d/pipe/Region;IIIIII)V+0
>
>     [junit] j  
> sun.java2d.pipe.DrawImage.blitSurfaceData(Lsun/java2d/SunGraphics2D;Lsun/java2d/pipe/Region;Lsun/java2d/SurfaceData;Lsun/java2d/SurfaceData;Lsun/java2d/loops/SurfaceType;Lsun/java2d/loops/SurfaceType;IIIIIILjava/awt/Color;)V+97
>
>     [junit] j  
> sun.java2d.pipe.DrawImage.renderImageCopy(Lsun/java2d/SunGraphics2D;Ljava/awt/Image;Ljava/awt/Color;IIIIII)Z+75
>
>     [junit] j  
> sun.java2d.pipe.DrawImage.copyImage(Lsun/java2d/SunGraphics2D;Ljava/awt/Image;IILjava/awt/Color;)Z+45
>
>     [junit] j  
> sun.java2d.pipe.DrawImage.copyImage(Lsun/java2d/SunGraphics2D;Ljava/awt/Image;IILjava/awt/Color;Ljava/awt/image/ImageObserver;)Z+15
>
>     [junit] j  
> sun.java2d.pipe.ValidatePipe.copyImage(Lsun/java2d/SunGraphics2D;Ljava/awt/Image;IILjava/awt/Color;Ljava/awt/image/ImageObserver;)Z+21
>
>     [junit] j  
> sun.java2d.SunGraphics2D.drawImage(Ljava/awt/Image;IILjava/awt/Color;Ljava/awt/image/ImageObserver;)Z+18
>
>     [junit] j  
> sun.java2d.SunGraphics2D.drawImage(Ljava/awt/Image;IILjava/awt/image/ImageObserver;)Z+7
>
>     [junit] j  
> javax.swing.JComponent.paintWithOffscreenBuffer(Ljavax/swing/JComponent;Ljava/awt/Graphics;IIIILjava/awt/Image;)V+232
>
>     [junit] j  
> javax.swing.JComponent.paintDoubleBuffered(Ljavax/swing/JComponent;Ljava/awt/Component;Ljava/awt/Graphics;IIII)Z+131
>
>     [junit] j  javax.swing.JComponent._paintImmediately(IIII)V+739
>
>     [junit] j  javax.swing.JComponent.paintImmediately(IIII)V+83
>
>     [junit] j  javax.swing.RepaintManager.paintDirtyRegions()V+314
>
>     [junit] j  
> javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run()V+32
>
>     [junit] j  java.awt.event.InvocationEvent.dispatch()V+47
>
>     [junit] j  java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+26
>
>     [junit] j  
> itec.swing.WaitCursorEventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+41
>
>     [junit] j  
> itec.selene.DLBEventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+2
>
>     [junit] j  
> java.awt.EventDispatchThread.pumpOneEventForHierarchy(ILjava/awt/Component;)Z+233
>
>     [junit] j  
> java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+26
>
>     [junit] j  
> java.awt.EventDispatchThread.pumpEventsForHierarchy(Ljava/awt/Conditional;Ljava/awt/Component;)V+4
>
>     [junit] j  java.awt.Dialog$1.run()V+20
>
>     [junit] j  java.awt.Dialog$2.run()Ljava/lang/Object;+4
>
>     [junit] v  ~StubRoutines::call_stub
>
>     [junit] j  
> java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;)Ljava/lang/Object;+0
>
>     [junit] j  java.awt.Dialog.show()V+103
>
>     [junit] j  java.awt.Component.show(Z)V+5
>
>     [junit] j  java.awt.Component.setVisible(Z)V+2
>
>     [junit] j  
> itec.swing.BasicAuthenticator.doPasswordAuthentication(Ljava/lang/String;)V+683
>
>     [junit] j  
> itec.swing.BasicAuthenticator.getPasswordAuthentication(Ljava/lang/String;)Ljava/net/PasswordAuthentication;+8
>
>     [junit] j  
> itec.swing.BasicAuthenticator.getPasswordAuthentication()Ljava/net/PasswordAuthentication;+2
>
>     [junit] j  
> java.net.Authenticator.requestPasswordAuthentication(Ljava/lang/String;Ljava/net/InetAddress;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/net/URL;Ljava/net/Authenticator$RequestorType;)Ljava/net/PasswordAuthentication;+105
>
>     [junit] j  
> sun.net.www.protocol.http.HttpURLConnection$1.run()Ljava/lang/Object;+32
>
>     [junit] v  ~StubRoutines::call_stub
>
>     [junit] j  
> java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;)Ljava/lang/Object;+0
>
>     [junit] j  
> sun.net.www.protocol.http.HttpURLConnection.privilegedRequestPasswordAuthentication(Ljava/lang/String;Ljava/net/InetAddress;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/net/URL;Ljava/net/Authenticator$RequestorType;)Ljava/net/PasswordAuthentication;+19
>
>     [junit] j  
> sun.net.www.protocol.http.HttpURLConnection.getServerAuthentication(Lsun/net/www/protocol/http/AuthenticationHeader;)Lsun/net/www/protocol/http/AuthenticationInfo;+220
>
>     [junit] j  
> sun.net.www.protocol.http.HttpURLConnection.getInputStream()Ljava/io/InputStream;+635
>
>     [junit] j  java.net.HttpURLConnection.getResponseCode()I+16
>
>     [junit] j  
> itec.selene.ConnectionCheck.checkConnectionState()Litec/util/MapK;+166
>
>     [junit] j  itec.selene.ConnectionCheck.initLogin()Litec/util/MapK;+43
>
>     [junit] j  itec.selene.Selene.initLogin()V+39
>
>     [junit] j  itec.selene.DLBImpl$4.run()V+4
>
>     [junit] j  java.awt.event.InvocationEvent.dispatch()V+11
>
>     [junit] j  java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+26
>
>     [junit] j  
> itec.swing.WaitCursorEventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+41
>
>     [junit] j  
> itec.selene.DLBEventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+2
>
>     [junit] j  
> java.awt.EventDispatchThread.pumpOneEventForHierarchy(ILjava/awt/Component;)Z+233
>
>     [junit] j  
> java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+26
>
>     [junit] j  
> java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
>
>     [junit] j  
> java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
>
>     [junit] j  java.awt.EventDispatchThread.run()V+9
>
>     [junit] v  ~StubRoutines::call_stub
>
>     [junit]
>
>     [junit] ---------------  P R O C E S S  ---------------
>
>     [junit]
>
>     [junit] Java Threads: ( => current thread )
>
>     [junit]   0x04bf97d0 JavaThread "TimerQueue" daemon [_thread_new,
> id=2280]
>
>     [junit]   0x045b16e0 JavaThread "Java2D Disposer" daemon
> [_thread_blocked, id=3904]
>
>     [junit] =>0x045b0f40 JavaThread "AWT-EventQueue-1"
> [_thread_in_native, id=288]
>
>     [junit]   0x045b1558 JavaThread "Wait Cursor Thread" daemon
> [_thread_blocked, id=3128]
>
>     [junit]   0x04b66938 JavaThread "DLB Single Instance Check"
> [_thread_blocked, id=1500]
>
>     [junit]   0x045adea8 JavaThread "Thread-2" [_thread_blocked, id=2976]
>
>     [junit]   0x043e2d40 JavaThread "HTTPServer" [_thread_in_native,
> id=1508]
>
>     [junit]   0x04427bd8 JavaThread "testPrinting" [_thread_blocked,
> id=3884]
>
>     [junit]   0x043adcc0 JavaThread "AWT-Windows" daemon
> [_thread_in_native, id=3840]
>
>     [junit]   0x043adb38 JavaThread "AWT-Shutdown" [_thread_blocked,
> id=4028]
>
>     [junit]   0x041e1b48 JavaThread "WindowMonitor-DispatchThread"
> daemon [_thread_blocked, id=4040]
>
>     [junit]   0x00848008 JavaThread "Low Memory Detector" daemon
> [_thread_blocked, id=712]
>
>     [junit]   0x00848628 JavaThread "CompilerThread0" daemon
> [_thread_blocked, id=2068]
>
>     [junit]   0x00847680 JavaThread "Signal Dispatcher" daemon
> [_thread_blocked, id=4068]
>
>     [junit]   0x00816148 JavaThread "Finalizer" daemon [_thread_blocked,
> id=3836]
>
>     [junit]   0x00814b70 JavaThread "Reference Handler" daemon
> [_thread_blocked, id=3308]
>
>     [junit]   0x0013f320 JavaThread "main" [_thread_blocked, id=2436]
>
>     [junit]
>
>     [junit] Other Threads:
>
>     [junit]   0x0083ef18 VMThread [id=2152]
>
>     [junit]   0x008177a0 WatcherThread [id=364]
>
>     [junit]
>
>     [junit] VM state:not at safepoint (normal execution)
>
>     [junit]
>
>     [junit] VM Mutex/Monitor currently owned by a thread: None
>
>     [junit]
>
>     [junit] Heap
>
>     [junit]  def new generation   total 5696K, used 5150K [0x179c0000,
> 0x17fe0000, 0x18d70000)
>
>     [junit]   eden space 5120K,  89% used [0x179c0000, 0x17e37ba0,
> 0x17ec0000)
>
>     [junit]   from space 576K, 100% used [0x17f50000, 0x17fe0000,
> 0x17fe0000)
>
>     [junit]   to   space 576K,   0% used [0x17ec0000, 0x17ec0000,
> 0x17f50000)
>
>     [junit]  tenured generation   total 75648K, used 1582K [0x18d70000,
> 0x1d750000, 0x279c0000)
>
>     [junit]    the space 75648K,   2% used [0x18d70000, 0x18efb8c0,
> 0x18efba00, 0x1d750000)
>
>     [junit]  compacting perm gen  total 8192K, used 3275K [0x279c0000,
> 0x281c0000, 0x2b9c0000)
>
>     [junit]    the space 8192K,  39% used [0x279c0000, 0x27cf2ef8,
> 0x27cf3000, 0x281c0000)
>
>     [junit]     ro space 8192K,  67% used [0x2b9c0000, 0x2bf1e5d8,
> 0x2bf1e600, 0x2c1c0000)
>
>     [junit]     rw space 12288K,  47% used [0x2c1c0000, 0x2c7687f0,
> 0x2c768800, 0x2cdc0000)
>
>     [junit]
>
>     [junit] Dynamic libraries:
>
>     [junit] 0x00400000 - 0x0040d000       C:\Program
> Files\Java\jdk1.5.0_09\jre\bin\java.exe
>
>     [junit] 0x77cf0000 - 0x77e17000       C:\Windows\system32\ntdll.dll
>
>     [junit] 0x77c10000 - 0x77ceb000       C:\Windows\system32\kernel32.dll
>
>     [junit] 0x765c0000 - 0x76686000       C:\Windows\system32\ADVAPI32.dll
>
>     [junit] 0x772d0000 - 0x77392000       C:\Windows\system32\RPCRT4.dll
>
>     [junit] 0x77750000 - 0x777fa000       C:\Windows\system32\MSVCRT.dll
>
>     [junit] 0x6d730000 - 0x6d8cb000       C:\Program
> Files\Java\jdk1.5.0_09\jre\bin\client\jvm.dll
>
>     [junit] 0x77680000 - 0x7771d000       C:\Windows\system32\USER32.dll
>
>     [junit] 0x77630000 - 0x7767b000       C:\Windows\system32\GDI32.dll
>
>     [junit] 0x75050000 - 0x75082000       C:\Windows\system32\WINMM.dll
>
>     [junit] 0x773d0000 - 0x77514000       C:\Windows\system32\ole32.dll
>
>     [junit] 0x77ec0000 - 0x77f4d000       C:\Windows\system32\OLEAUT32.dll
>
>     [junit] 0x75010000 - 0x75049000       C:\Windows\system32\OLEACC.dll
>
>     [junit] 0x773a0000 - 0x773be000       C:\Windows\system32\IMM32.DLL
>
>     [junit] 0x77830000 - 0x778f8000       C:\Windows\system32\MSCTF.dll
>
>     [junit] 0x76370000 - 0x7639c000       C:\Windows\system32\apphelp.dll
>
>     [junit] 0x773c0000 - 0x773c9000       C:\Windows\system32\LPK.DLL
>
>     [junit] 0x77520000 - 0x7759d000       C:\Windows\system32\USP10.dll
>
>     [junit] 0x6d2f0000 - 0x6d2f8000       C:\Program
> Files\Java\jdk1.5.0_09\jre\bin\hpi.dll
>
>     [junit] 0x764d0000 - 0x764d7000       C:\Windows\system32\PSAPI.DLL
>
>     [junit] 0x6d700000 - 0x6d70c000       C:\Program
> Files\Java\jdk1.5.0_09\jre\bin\verify.dll
>
>     [junit] 0x6d370000 - 0x6d38d000       C:\Program
> Files\Java\jdk1.5.0_09\jre\bin\java.dll
>
>     [junit] 0x6d720000 - 0x6d72f000       C:\Program
> Files\Java\jdk1.5.0_09\jre\bin\zip.dll
>
>     [junit] 0x767c0000 - 0x772cf000       C:\Windows\system32\SHELL32.DLL
>
>     [junit] 0x77900000 - 0x77958000       C:\Windows\system32\SHLWAPI.dll
>
>     [junit] 0x752c0000 - 0x7545e000      
> C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6001.18000_none_5cdbaa5a083979cc\comctl32.dll
>
>     [junit] 0x6d070000 - 0x6d1d9000       C:\Program
> Files\Java\jdk1.5.0_09\jre\bin\awt.dll
>
>     [junit] 0x74690000 - 0x746d2000       C:\Windows\system32\WINSPOOL.DRV
>
>     [junit] 0x71030000 - 0x71036000       C:\Windows\system32\wls0wndh.dll
>
>     [junit] 0x6d530000 - 0x6d543000       C:\Program
> Files\Java\jdk1.5.0_09\jre\bin\net.dll
>
>     [junit] 0x77720000 - 0x7774d000       C:\Windows\system32\WS2_32.dll
>
>     [junit] 0x77620000 - 0x77626000       C:\Windows\system32\NSI.dll
>
>     [junit] 0x75b90000 - 0x75bcb000       C:\Windows\system32\mswsock.dll
>
>     [junit] 0x75bf0000 - 0x75bf5000       C:\Windows\System32\wship6.dll
>
>     [junit] 0x74f90000 - 0x74f9f000       C:\Windows\system32\NLAapi.dll
>
>     [junit] 0x75de0000 - 0x75df9000       C:\Windows\system32\IPHLPAPI.DLL
>
>     [junit] 0x75da0000 - 0x75dd5000       C:\Windows\system32\dhcpcsvc.DLL
>
>     [junit] 0x76020000 - 0x7604c000       C:\Windows\system32\DNSAPI.dll
>
>     [junit] 0x76400000 - 0x76414000       C:\Windows\system32\Secur32.dll
>
>     [junit] 0x75d90000 - 0x75d97000       C:\Windows\system32\WINNSI.DLL
>
>     [junit] 0x75d60000 - 0x75d81000       C:\Windows\system32\dhcpcsvc6.DLL
>
>     [junit] 0x73100000 - 0x7310f000       C:\Windows\system32\napinsp.dll
>
>     [junit] 0x72b80000 - 0x72b92000       C:\Windows\system32\pnrpnsp.dll
>
>     [junit] 0x72bb0000 - 0x72bb8000       C:\Windows\System32\winrnr.dll
>
>     [junit] 0x76570000 - 0x765ba000       C:\Windows\system32\WLDAP32.dll
>
>     [junit] 0x75850000 - 0x75855000       C:\Windows\System32\wshtcpip.dll
>
>     [junit] 0x73110000 - 0x73116000       C:\Windows\system32\rasadhlp.dll
>
>     [junit] 0x6c9c0000 - 0x6c9ca000       C:\Windows\Temp\win32.dll
>
>     [junit] 0x6d550000 - 0x6d559000       C:\Program
> Files\Java\jdk1.5.0_09\jre\bin\nio.dll
>
>     [junit] 0x6d2b0000 - 0x6d2ef000       C:\Program
> Files\Java\jdk1.5.0_09\jre\bin\fontmanager.dll
>
>     [junit] 0x6d200000 - 0x6d22f000       C:\Program
> Files\Java\jdk1.5.0_09\jre\bin\cmm.dll
>
>     [junit] 0x6d430000 - 0x6d44f000       C:\Program
> Files\Java\jdk1.5.0_09\jre\bin\jpeg.dll
>
>     [junit] 0x755c0000 - 0x755ff000       C:\Windows\system32\UXTHEME.DLL
>
>     [junit]
>
>     [junit] Environment Variables:
>
>     [junit] JAVA_HOME=C:\Program Files\Java\jdk1.5.0_09
>
>     [junit] PATH=C:\Program Files\Java\jdk1.5.0_09\bin;C:\Program
> Files\Measurement
> Computing\DAQ\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program
> Files\FastObjects_t7_9.5\runtime\bin;C:\Program
> Files\Java\jdk1.6.0_05\bin;C:\Program
> Files\FastObjects_t7_9.5\runtime\bin;C:\Program
> Files\FastObjects_t7_9.5\runtime\bin;C:\Program Files\TortoiseCVS
>
>     [junit] OS=Windows_NT
>
>     [junit] PROCESSOR_IDENTIFIER=x86 Family 15 Model 3 Stepping 4,
> GenuineIntel
>
>     [junit]
>
>     [junit]
>
>     [junit]
>
>     [junit] ---------------  S Y S T E M  ---------------
>
>     [junit]
>
>     [junit] OS: Windows Vista Build 6001 Service Pack 1
>
>     [junit]
>
>     [junit] CPU:total 1 (cores per cpu 1, threads per core 2) family 15
> model 3 stepping 4, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ht
>
>     [junit]
>
>     [junit] Memory: 4k page, physical 2097151k(2080040k free), swap
> 4194303k(4194303k free)
>
>     [junit]
>
>     [junit] vm_info: Java HotSpot(TM) Client VM (1.5.0_09-b03) for
> windows-x86, built on Oct 12 2006 01:20:10 by "java_re" with MS VC++ 6.0
>
>     [junit]
>
>     [junit]
>
>     [junit] #
>
>     [junit] # An unexpected error has been detected by HotSpot Virtual
> Machine:
>
>     [junit] #
>
>     [junit] #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d07baf4,
> pid=3808, tid=3680
>
>     [junit] #
>
>     [junit] # Java VM: Java HotSpot(TM) Client VM (1.5.0_09-b03 mixed
> mode, sharing)
>
>     [junit] # Problematic frame:
>
>     [junit] # C  [awt.dll+0xbaf4]
>
>     [junit] #
>
>     [junit] # An error report file with more information is saved as
> hs_err_pid3808.log
>
>     [junit] #
>
>     [junit] # If you would like to submit a bug report, please visit:
>
>     [junit] #   http://java.sun.com/webapps/bugreport/crash.jsp
>
>     [junit] #
>
>     [junit] Running itec.selene.test.PrintTest
>
>     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
>
>  
>
>  
>
> Brian Trisler
>
> Software Developer
>
> Navistar, Inc.
>
> E-mail:  [hidden email] <mailto:[hidden email]>
>
>  
>
> CONFIDENTIALITY NOTICE:  This e-mail, and any attachments
> and/or documents linked to this email, are intended for the
> addressee and may contain information that is privileged,
> confidential, proprietary, or otherwise protected by law.  Any
> dissemination, distribution, or copying is prohibited.  This
> notice serves as a confidentiality marking for the purpose of
> any confidentiality or nondisclosure agreement.  If you have
> received this communication in error, please contact the
> original sender.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: Re: Can Hudson perform JUnit tests that require screen access?

Nord, James-2
As this is a windows service have you enabled "Interact with desktop"
option on tomcat>

Services.msc -> Apache Tomcat -> Properties -> Log on -> "Allow sercice
to interact with desktop"

Regards,

        /James

> -----Original Message-----
> From: Aleksandar Kostadinov [mailto:[hidden email]]
> Sent: 06 August 2008 14:31
> To: Trisler, Brian
> Cc: [hidden email]
> Subject: Re: Can Hudson perform JUnit tests that require
> screen access?
>
> Just like CruiseControl would need on any UNIX, you need to
> have DISPLAY variable set correctly or use awt.headless mode.
>
> If you consider the former then you have 2 choices:
> 1. start hudson from within an X session (or set DISPLAY
> variable according to an existing session) 2. just use the
> vnc plug-in which  is very convenient and generally a
> straightforward move. Easy to debug and control test environment.
>
> Trisler, Brian wrote, On 12/23/-28158 09:59 PM (EEST):
> > This may be asked and answered someplace already and I was
> just unable
> > to find it.  If that's the case I apologize in advance.
> >
> >  
> >
> > I administer the tests for my group and we have a fairly extensive
> > group of automated Junit tests that we run on nightly builds which
> > involve screen access (button pushes, mouse clicks and
> drags etc.)  We
> > previously used CruiseControl to automate this process and
> I have been
> > trying to migrate to Hudson.  Is it possible to Run Hudson from
> > Tomcat, which is deployed as a local Windows service?  I'm
> getting the
> > following error (which I have tried to clean up a bit to only show
> > some of the more relevant information).  It looks like a
> AWT error to
> > me, which I think is happening because I never see the application
> > being tested appearing on the screen.
> >
> >  
> >
> >  
> >
> > [junit] # An unexpected error has been detected by HotSpot
> Virtual Machine:
> >
> >     [junit] #
> >
> >     [junit] #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at
> > pc=0x6d07baf4, pid=3260, tid=288
> >
> >     [junit] #
> >
> >     [junit] # Java VM: Java HotSpot(TM) Client VM
> (1.5.0_09-b03 mixed
> > mode, sharing)
> >
> >     [junit] # Problematic frame:
> >
> >     [junit] # C  [awt.dll+0xbaf4]
> >
> >     [junit] #
> >
> >     [junit]
> >
> >     [junit] ---------------  T H R E A D  ---------------
> >
> >     [junit]
> >
> >     [junit] Current thread (0x045b0f40):  JavaThread
> "AWT-EventQueue-1"
> > [_thread_in_native, id=288]
> >
> >     [junit]
> >
> >     [junit] siginfo: ExceptionCode=0xc0000005, reading address
> > 0x00004e32
> >
> >     [junit]
> >
> >     [junit] Registers:
> >
> >     [junit] EAX=0x00001388, EBX=0x6d1a2740, ECX=0x00000012,
> > EDX=0x00000012
> >
> >     [junit] ESP=0x058fe748, EBP=0x17e2a62d, ESI=0x00000088,
> > EDI=0x00000005
> >
> >     [junit] EIP=0x6d07baf4, EFLAGS=0x00010206
> >
> >     [junit]
> >
> >     [junit] Top of Stack: (sp=0x058fe748)
> >
> >     [junit] 0x058fe748:   ffffffbb 045b1000 6d18e498 00000045
> >
> >     [junit] 0x058fe758:   17e2a1d4 ff999999 6d1a2700 6d1a26c0
> >
> >     [junit] 0x058fe768:   00000000 00000000 00000002 6d071a56
> >
> >     [junit] 0x058fe778:   00ff0000 00000000 000000a6 00000014
> >
> >     [junit] 0x058fe788:   000000a6 058fe7fc 6d18e498 058fe7f0
> >
> >     [junit] 0x058fe798:   045b0f40 2ba7d988 058fe93c 2c2dec20
> >
> >     [junit] 0x058fe7a8:   04bfb9b8 00000045 6d18e498 00000000
> >
> >     [junit] 0x058fe7b8:   008817a0 00000045 00000030 000000eb
> >
> >     [junit]
> >
> >     [junit] Instructions: (pc=0x6d07baf4)
> >
> >     [junit] 0x6d07bae4:   00 00 83 e6 f8 c1 e0 05 c1 e9 03
> 03 c6 03 d1 45
> >
> >     [junit] 0x6d07baf4:   8a 0c 82 8b 44 24 30 88 08 40 89
> 44 24 30 8b 44
> >
> >     [junit]
> >
> >     [junit]
> >
> >     [junit] Stack: [0x058c0000,0x05900000),  sp=0x058fe748,  free
> > space=249k
> >
> >     [junit] Native frames: (J=compiled Java code,
> j=interpreted, Vv=VM
> > code, C=native code)
> >
> >     [junit] C  [awt.dll+0xbaf4]
> >
> >     [junit]
> >
> >     [junit] Java frames: (J=compiled Java code,
> j=interpreted, Vv=VM
> > code)
> >
> >     [junit] j
> >
> sun.java2d.loops.Blit.Blit(Lsun/java2d/SurfaceData;Lsun/java2d/Surface
> > Data;Ljava/awt/Composite;Lsun/java2d/pipe/Region;IIIIII)V+0
> >
> >     [junit] j
> >
> sun.java2d.pipe.DrawImage.blitSurfaceData(Lsun/java2d/SunGraphics2D;Ls
> >
> un/java2d/pipe/Region;Lsun/java2d/SurfaceData;Lsun/java2d/SurfaceData;
> >
> Lsun/java2d/loops/SurfaceType;Lsun/java2d/loops/SurfaceType;IIIIIILjav
> > a/awt/Color;)V+97
> >
> >     [junit] j
> >
> sun.java2d.pipe.DrawImage.renderImageCopy(Lsun/java2d/SunGraphics2D;Lj
> > ava/awt/Image;Ljava/awt/Color;IIIIII)Z+75
> >
> >     [junit] j
> >
> sun.java2d.pipe.DrawImage.copyImage(Lsun/java2d/SunGraphics2D;Ljava/aw
> > t/Image;IILjava/awt/Color;)Z+45
> >
> >     [junit] j
> >
> sun.java2d.pipe.DrawImage.copyImage(Lsun/java2d/SunGraphics2D;Ljava/aw
> > t/Image;IILjava/awt/Color;Ljava/awt/image/ImageObserver;)Z+15
> >
> >     [junit] j
> >
> sun.java2d.pipe.ValidatePipe.copyImage(Lsun/java2d/SunGraphics2D;Ljava
> > /awt/Image;IILjava/awt/Color;Ljava/awt/image/ImageObserver;)Z+21
> >
> >     [junit] j
> >
> sun.java2d.SunGraphics2D.drawImage(Ljava/awt/Image;IILjava/awt/Color;L
> > java/awt/image/ImageObserver;)Z+18
> >
> >     [junit] j
> >
> sun.java2d.SunGraphics2D.drawImage(Ljava/awt/Image;IILjava/awt/image/I
> > mageObserver;)Z+7
> >
> >     [junit] j
> >
> javax.swing.JComponent.paintWithOffscreenBuffer(Ljavax/swing/JComponen
> > t;Ljava/awt/Graphics;IIIILjava/awt/Image;)V+232
> >
> >     [junit] j
> >
> javax.swing.JComponent.paintDoubleBuffered(Ljavax/swing/JComponent;Lja
> > va/awt/Component;Ljava/awt/Graphics;IIII)Z+131
> >
> >     [junit] j  javax.swing.JComponent._paintImmediately(IIII)V+739
> >
> >     [junit] j  javax.swing.JComponent.paintImmediately(IIII)V+83
> >
> >     [junit] j  javax.swing.RepaintManager.paintDirtyRegions()V+314
> >
> >     [junit] j
> > javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run()V+32
> >
> >     [junit] j  java.awt.event.InvocationEvent.dispatch()V+47
> >
> >     [junit] j  
> > java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+26
> >
> >     [junit] j
> >
> itec.swing.WaitCursorEventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+41
> >
> >     [junit] j
> > itec.selene.DLBEventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+2
> >
> >     [junit] j
> >
> java.awt.EventDispatchThread.pumpOneEventForHierarchy(ILjava/awt/Compo
> > nent;)Z+233
> >
> >     [junit] j
> >
> java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditi
> > onal;Ljava/awt/Component;)V+26
> >
> >     [junit] j
> >
> java.awt.EventDispatchThread.pumpEventsForHierarchy(Ljava/awt/Conditio
> > nal;Ljava/awt/Component;)V+4
> >
> >     [junit] j  java.awt.Dialog$1.run()V+20
> >
> >     [junit] j  java.awt.Dialog$2.run()Ljava/lang/Object;+4
> >
> >     [junit] v  ~StubRoutines::call_stub
> >
> >     [junit] j
> >
> java.security.AccessController.doPrivileged(Ljava/security/PrivilegedA
> > ction;)Ljava/lang/Object;+0
> >
> >     [junit] j  java.awt.Dialog.show()V+103
> >
> >     [junit] j  java.awt.Component.show(Z)V+5
> >
> >     [junit] j  java.awt.Component.setVisible(Z)V+2
> >
> >     [junit] j
> >
> itec.swing.BasicAuthenticator.doPasswordAuthentication(Ljava/lang/Stri
> > ng;)V+683
> >
> >     [junit] j
> >
> itec.swing.BasicAuthenticator.getPasswordAuthentication(Ljava/lang/Str
> > ing;)Ljava/net/PasswordAuthentication;+8
> >
> >     [junit] j
> >
> itec.swing.BasicAuthenticator.getPasswordAuthentication()Ljava/net/Pas
> > swordAuthentication;+2
> >
> >     [junit] j
> >
> java.net.Authenticator.requestPasswordAuthentication(Ljava/lang/String
> >
> ;Ljava/net/InetAddress;ILjava/lang/String;Ljava/lang/String;Ljava/lang
> >
> /String;Ljava/net/URL;Ljava/net/Authenticator$RequestorType;)Ljava/net
> > /PasswordAuthentication;+105
> >
> >     [junit] j
> >
> sun.net.www.protocol.http.HttpURLConnection$1.run()Ljava/lang/Object;+
> > 32
> >
> >     [junit] v  ~StubRoutines::call_stub
> >
> >     [junit] j
> >
> java.security.AccessController.doPrivileged(Ljava/security/PrivilegedA
> > ction;)Ljava/lang/Object;+0
> >
> >     [junit] j
> >
> sun.net.www.protocol.http.HttpURLConnection.privilegedRequestPasswordA
> >
> uthentication(Ljava/lang/String;Ljava/net/InetAddress;ILjava/lang/Stri
> >
> ng;Ljava/lang/String;Ljava/lang/String;Ljava/net/URL;Ljava/net/Authent
> > icator$RequestorType;)Ljava/net/PasswordAuthentication;+19
> >
> >     [junit] j
> >
> sun.net.www.protocol.http.HttpURLConnection.getServerAuthentication(Ls
> >
> un/net/www/protocol/http/AuthenticationHeader;)Lsun/net/www/protocol/h
> > ttp/AuthenticationInfo;+220
> >
> >     [junit] j
> >
> sun.net.www.protocol.http.HttpURLConnection.getInputStream()Ljava/io/I
> > nputStream;+635
> >
> >     [junit] j  java.net.HttpURLConnection.getResponseCode()I+16
> >
> >     [junit] j
> >
> itec.selene.ConnectionCheck.checkConnectionState()Litec/util/MapK;+166
> >
> >     [junit] j  
> > itec.selene.ConnectionCheck.initLogin()Litec/util/MapK;+43
> >
> >     [junit] j  itec.selene.Selene.initLogin()V+39
> >
> >     [junit] j  itec.selene.DLBImpl$4.run()V+4
> >
> >     [junit] j  java.awt.event.InvocationEvent.dispatch()V+11
> >
> >     [junit] j  
> > java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+26
> >
> >     [junit] j
> >
> itec.swing.WaitCursorEventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+41
> >
> >     [junit] j
> > itec.selene.DLBEventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+2
> >
> >     [junit] j
> >
> java.awt.EventDispatchThread.pumpOneEventForHierarchy(ILjava/awt/Compo
> > nent;)Z+233
> >
> >     [junit] j
> >
> java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditi
> > onal;Ljava/awt/Component;)V+26
> >
> >     [junit] j
> > java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
> >
> >     [junit] j
> > java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
> >
> >     [junit] j  java.awt.EventDispatchThread.run()V+9
> >
> >     [junit] v  ~StubRoutines::call_stub
> >
> >     [junit]
> >
> >     [junit] ---------------  P R O C E S S  ---------------
> >
> >     [junit]
> >
> >     [junit] Java Threads: ( => current thread )
> >
> >     [junit]   0x04bf97d0 JavaThread "TimerQueue" daemon
> [_thread_new,
> > id=2280]
> >
> >     [junit]   0x045b16e0 JavaThread "Java2D Disposer" daemon
> > [_thread_blocked, id=3904]
> >
> >     [junit] =>0x045b0f40 JavaThread "AWT-EventQueue-1"
> > [_thread_in_native, id=288]
> >
> >     [junit]   0x045b1558 JavaThread "Wait Cursor Thread" daemon
> > [_thread_blocked, id=3128]
> >
> >     [junit]   0x04b66938 JavaThread "DLB Single Instance Check"
> > [_thread_blocked, id=1500]
> >
> >     [junit]   0x045adea8 JavaThread "Thread-2"
> [_thread_blocked, id=2976]
> >
> >     [junit]   0x043e2d40 JavaThread "HTTPServer"
> [_thread_in_native,
> > id=1508]
> >
> >     [junit]   0x04427bd8 JavaThread "testPrinting"
> [_thread_blocked,
> > id=3884]
> >
> >     [junit]   0x043adcc0 JavaThread "AWT-Windows" daemon
> > [_thread_in_native, id=3840]
> >
> >     [junit]   0x043adb38 JavaThread "AWT-Shutdown"
> [_thread_blocked,
> > id=4028]
> >
> >     [junit]   0x041e1b48 JavaThread "WindowMonitor-DispatchThread"
> > daemon [_thread_blocked, id=4040]
> >
> >     [junit]   0x00848008 JavaThread "Low Memory Detector" daemon
> > [_thread_blocked, id=712]
> >
> >     [junit]   0x00848628 JavaThread "CompilerThread0" daemon
> > [_thread_blocked, id=2068]
> >
> >     [junit]   0x00847680 JavaThread "Signal Dispatcher" daemon
> > [_thread_blocked, id=4068]
> >
> >     [junit]   0x00816148 JavaThread "Finalizer" daemon
> [_thread_blocked,
> > id=3836]
> >
> >     [junit]   0x00814b70 JavaThread "Reference Handler" daemon
> > [_thread_blocked, id=3308]
> >
> >     [junit]   0x0013f320 JavaThread "main"
> [_thread_blocked, id=2436]
> >
> >     [junit]
> >
> >     [junit] Other Threads:
> >
> >     [junit]   0x0083ef18 VMThread [id=2152]
> >
> >     [junit]   0x008177a0 WatcherThread [id=364]
> >
> >     [junit]
> >
> >     [junit] VM state:not at safepoint (normal execution)
> >
> >     [junit]
> >
> >     [junit] VM Mutex/Monitor currently owned by a thread: None
> >
> >     [junit]
> >
> >     [junit] Heap
> >
> >     [junit]  def new generation   total 5696K, used 5150K
> [0x179c0000,
> > 0x17fe0000, 0x18d70000)
> >
> >     [junit]   eden space 5120K,  89% used [0x179c0000, 0x17e37ba0,
> > 0x17ec0000)
> >
> >     [junit]   from space 576K, 100% used [0x17f50000, 0x17fe0000,
> > 0x17fe0000)
> >
> >     [junit]   to   space 576K,   0% used [0x17ec0000, 0x17ec0000,
> > 0x17f50000)
> >
> >     [junit]  tenured generation   total 75648K, used 1582K
> [0x18d70000,
> > 0x1d750000, 0x279c0000)
> >
> >     [junit]    the space 75648K,   2% used [0x18d70000, 0x18efb8c0,
> > 0x18efba00, 0x1d750000)
> >
> >     [junit]  compacting perm gen  total 8192K, used 3275K
> [0x279c0000,
> > 0x281c0000, 0x2b9c0000)
> >
> >     [junit]    the space 8192K,  39% used [0x279c0000, 0x27cf2ef8,
> > 0x27cf3000, 0x281c0000)
> >
> >     [junit]     ro space 8192K,  67% used [0x2b9c0000, 0x2bf1e5d8,
> > 0x2bf1e600, 0x2c1c0000)
> >
> >     [junit]     rw space 12288K,  47% used [0x2c1c0000, 0x2c7687f0,
> > 0x2c768800, 0x2cdc0000)
> >
> >     [junit]
> >
> >     [junit] Dynamic libraries:
> >
> >     [junit] 0x00400000 - 0x0040d000       C:\Program
> > Files\Java\jdk1.5.0_09\jre\bin\java.exe
> >
> >     [junit] 0x77cf0000 - 0x77e17000      
> C:\Windows\system32\ntdll.dll
> >
> >     [junit] 0x77c10000 - 0x77ceb000      
> C:\Windows\system32\kernel32.dll
> >
> >     [junit] 0x765c0000 - 0x76686000      
> C:\Windows\system32\ADVAPI32.dll
> >
> >     [junit] 0x772d0000 - 0x77392000      
> C:\Windows\system32\RPCRT4.dll
> >
> >     [junit] 0x77750000 - 0x777fa000      
> C:\Windows\system32\MSVCRT.dll
> >
> >     [junit] 0x6d730000 - 0x6d8cb000       C:\Program
> > Files\Java\jdk1.5.0_09\jre\bin\client\jvm.dll
> >
> >     [junit] 0x77680000 - 0x7771d000      
> C:\Windows\system32\USER32.dll
> >
> >     [junit] 0x77630000 - 0x7767b000      
> C:\Windows\system32\GDI32.dll
> >
> >     [junit] 0x75050000 - 0x75082000      
> C:\Windows\system32\WINMM.dll
> >
> >     [junit] 0x773d0000 - 0x77514000      
> C:\Windows\system32\ole32.dll
> >
> >     [junit] 0x77ec0000 - 0x77f4d000      
> C:\Windows\system32\OLEAUT32.dll
> >
> >     [junit] 0x75010000 - 0x75049000      
> C:\Windows\system32\OLEACC.dll
> >
> >     [junit] 0x773a0000 - 0x773be000      
> C:\Windows\system32\IMM32.DLL
> >
> >     [junit] 0x77830000 - 0x778f8000      
> C:\Windows\system32\MSCTF.dll
> >
> >     [junit] 0x76370000 - 0x7639c000      
> C:\Windows\system32\apphelp.dll
> >
> >     [junit] 0x773c0000 - 0x773c9000      
> C:\Windows\system32\LPK.DLL
> >
> >     [junit] 0x77520000 - 0x7759d000      
> C:\Windows\system32\USP10.dll
> >
> >     [junit] 0x6d2f0000 - 0x6d2f8000       C:\Program
> > Files\Java\jdk1.5.0_09\jre\bin\hpi.dll
> >
> >     [junit] 0x764d0000 - 0x764d7000      
> C:\Windows\system32\PSAPI.DLL
> >
> >     [junit] 0x6d700000 - 0x6d70c000       C:\Program
> > Files\Java\jdk1.5.0_09\jre\bin\verify.dll
> >
> >     [junit] 0x6d370000 - 0x6d38d000       C:\Program
> > Files\Java\jdk1.5.0_09\jre\bin\java.dll
> >
> >     [junit] 0x6d720000 - 0x6d72f000       C:\Program
> > Files\Java\jdk1.5.0_09\jre\bin\zip.dll
> >
> >     [junit] 0x767c0000 - 0x772cf000      
> C:\Windows\system32\SHELL32.DLL
> >
> >     [junit] 0x77900000 - 0x77958000      
> C:\Windows\system32\SHLWAPI.dll
> >
> >     [junit] 0x752c0000 - 0x7545e000      
> >
> C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1
> > df_6.0.6001.18000_none_5cdbaa5a083979cc\comctl32.dll
> >
> >     [junit] 0x6d070000 - 0x6d1d9000       C:\Program
> > Files\Java\jdk1.5.0_09\jre\bin\awt.dll
> >
> >     [junit] 0x74690000 - 0x746d2000      
> C:\Windows\system32\WINSPOOL.DRV
> >
> >     [junit] 0x71030000 - 0x71036000      
> C:\Windows\system32\wls0wndh.dll
> >
> >     [junit] 0x6d530000 - 0x6d543000       C:\Program
> > Files\Java\jdk1.5.0_09\jre\bin\net.dll
> >
> >     [junit] 0x77720000 - 0x7774d000      
> C:\Windows\system32\WS2_32.dll
> >
> >     [junit] 0x77620000 - 0x77626000      
> C:\Windows\system32\NSI.dll
> >
> >     [junit] 0x75b90000 - 0x75bcb000      
> C:\Windows\system32\mswsock.dll
> >
> >     [junit] 0x75bf0000 - 0x75bf5000      
> C:\Windows\System32\wship6.dll
> >
> >     [junit] 0x74f90000 - 0x74f9f000      
> C:\Windows\system32\NLAapi.dll
> >
> >     [junit] 0x75de0000 - 0x75df9000      
> C:\Windows\system32\IPHLPAPI.DLL
> >
> >     [junit] 0x75da0000 - 0x75dd5000      
> C:\Windows\system32\dhcpcsvc.DLL
> >
> >     [junit] 0x76020000 - 0x7604c000      
> C:\Windows\system32\DNSAPI.dll
> >
> >     [junit] 0x76400000 - 0x76414000      
> C:\Windows\system32\Secur32.dll
> >
> >     [junit] 0x75d90000 - 0x75d97000      
> C:\Windows\system32\WINNSI.DLL
> >
> >     [junit] 0x75d60000 - 0x75d81000      
> C:\Windows\system32\dhcpcsvc6.DLL
> >
> >     [junit] 0x73100000 - 0x7310f000      
> C:\Windows\system32\napinsp.dll
> >
> >     [junit] 0x72b80000 - 0x72b92000      
> C:\Windows\system32\pnrpnsp.dll
> >
> >     [junit] 0x72bb0000 - 0x72bb8000      
> C:\Windows\System32\winrnr.dll
> >
> >     [junit] 0x76570000 - 0x765ba000      
> C:\Windows\system32\WLDAP32.dll
> >
> >     [junit] 0x75850000 - 0x75855000      
> C:\Windows\System32\wshtcpip.dll
> >
> >     [junit] 0x73110000 - 0x73116000      
> C:\Windows\system32\rasadhlp.dll
> >
> >     [junit] 0x6c9c0000 - 0x6c9ca000       C:\Windows\Temp\win32.dll
> >
> >     [junit] 0x6d550000 - 0x6d559000       C:\Program
> > Files\Java\jdk1.5.0_09\jre\bin\nio.dll
> >
> >     [junit] 0x6d2b0000 - 0x6d2ef000       C:\Program
> > Files\Java\jdk1.5.0_09\jre\bin\fontmanager.dll
> >
> >     [junit] 0x6d200000 - 0x6d22f000       C:\Program
> > Files\Java\jdk1.5.0_09\jre\bin\cmm.dll
> >
> >     [junit] 0x6d430000 - 0x6d44f000       C:\Program
> > Files\Java\jdk1.5.0_09\jre\bin\jpeg.dll
> >
> >     [junit] 0x755c0000 - 0x755ff000      
> C:\Windows\system32\UXTHEME.DLL
> >
> >     [junit]
> >
> >     [junit] Environment Variables:
> >
> >     [junit] JAVA_HOME=C:\Program Files\Java\jdk1.5.0_09
> >
> >     [junit] PATH=C:\Program Files\Java\jdk1.5.0_09\bin;C:\Program
> > Files\Measurement
> >
> Computing\DAQ\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem
> > ;C:\Program Files\FastObjects_t7_9.5\runtime\bin;C:\Program
> > Files\Java\jdk1.6.0_05\bin;C:\Program
> > Files\FastObjects_t7_9.5\runtime\bin;C:\Program
> > Files\FastObjects_t7_9.5\runtime\bin;C:\Program Files\TortoiseCVS
> >
> >     [junit] OS=Windows_NT
> >
> >     [junit] PROCESSOR_IDENTIFIER=x86 Family 15 Model 3 Stepping 4,
> > GenuineIntel
> >
> >     [junit]
> >
> >     [junit]
> >
> >     [junit]
> >
> >     [junit] ---------------  S Y S T E M  ---------------
> >
> >     [junit]
> >
> >     [junit] OS: Windows Vista Build 6001 Service Pack 1
> >
> >     [junit]
> >
> >     [junit] CPU:total 1 (cores per cpu 1, threads per core
> 2) family
> > 15 model 3 stepping 4, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ht
> >
> >     [junit]
> >
> >     [junit] Memory: 4k page, physical 2097151k(2080040k free), swap
> > 4194303k(4194303k free)
> >
> >     [junit]
> >
> >     [junit] vm_info: Java HotSpot(TM) Client VM (1.5.0_09-b03) for
> > windows-x86, built on Oct 12 2006 01:20:10 by "java_re"
> with MS VC++
> > 6.0
> >
> >     [junit]
> >
> >     [junit]
> >
> >     [junit] #
> >
> >     [junit] # An unexpected error has been detected by
> HotSpot Virtual
> > Machine:
> >
> >     [junit] #
> >
> >     [junit] #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at
> > pc=0x6d07baf4, pid=3808, tid=3680
> >
> >     [junit] #
> >
> >     [junit] # Java VM: Java HotSpot(TM) Client VM
> (1.5.0_09-b03 mixed
> > mode, sharing)
> >
> >     [junit] # Problematic frame:
> >
> >     [junit] # C  [awt.dll+0xbaf4]
> >
> >     [junit] #
> >
> >     [junit] # An error report file with more information is
> saved as
> > hs_err_pid3808.log
> >
> >     [junit] #
> >
> >     [junit] # If you would like to submit a bug report,
> please visit:
> >
> >     [junit] #   http://java.sun.com/webapps/bugreport/crash.jsp
> >
> >     [junit] #
> >
> >     [junit] Running itec.selene.test.PrintTest
> >
> >     [junit] Tests run: 1, Failures: 0, Errors: 1, Time
> elapsed: 0 sec
> >
> >  
> >
> >  
> >
> > Brian Trisler
> >
> > Software Developer
> >
> > Navistar, Inc.
> >
> > E-mail:  [hidden email]
> > <mailto:[hidden email]>
> >
> >  
> >
> > CONFIDENTIALITY NOTICE:  This e-mail, and any attachments and/or
> > documents linked to this email, are intended for the
> addressee and may
> > contain information that is privileged, confidential,
> proprietary, or
> > otherwise protected by law.  Any dissemination, distribution, or
> > copying is prohibited.  This notice serves as a confidentiality
> > marking for the purpose of any confidentiality or nondisclosure
> > agreement.  If you have received this communication in
> error, please
> > contact the original sender.
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
*********************************************************************************************************
This e-mail is confidential, the property of NDS Ltd and intended for the addressee only.  Any dissemination, copying or distribution of this message or any attachments by anyone other than the intended recipient is strictly prohibited.  If you have received this message in error, please immediately notify the [hidden email] and destroy the original message.  Messages sent to and from NDS may be monitored.  NDS cannot guarantee any message delivery method is secure or error-free.  Information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses.  We do not accept responsibility for any errors or omissions in this message and/or attachment that arise as a result of transmission.  You should carry out your own virus checks before opening any attachment.  Any views or opinions presented are solely those of the author and do not necessarily represent those of NDS.

To protect the environment please do not print this e-mail unless necessary.

NDS Limited Registered office: One Heathrow Boulevard, 286 Bath Road, West Drayton, Middlesex, UB7 0DQ, United Kingdom. A company registered in England and Wales  Registered no. 3080780   VAT no. GB 603 8808 40-00
**********************************************************************************************************


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: Re: Can Hudson perform JUnit tests that require screen access?

Trisler, Brian
This has already been enabled

Brian Trisler
Software Developer
Navistar, Inc.
E-mail:  [hidden email]

-----Original Message-----
From: Nord, James [mailto:[hidden email]]
Sent: Wednesday, August 06, 2008 9:53 AM
To: [hidden email]; Trisler, Brian
Subject: RE: Re: Can Hudson perform JUnit tests that require screen
access?

As this is a windows service have you enabled "Interact with desktop"
option on tomcat>

Services.msc -> Apache Tomcat -> Properties -> Log on -> "Allow sercice
to interact with desktop"

Regards,

        /James

> -----Original Message-----
> From: Aleksandar Kostadinov [mailto:[hidden email]]
> Sent: 06 August 2008 14:31
> To: Trisler, Brian
> Cc: [hidden email]
> Subject: Re: Can Hudson perform JUnit tests that require
> screen access?
>
> Just like CruiseControl would need on any UNIX, you need to
> have DISPLAY variable set correctly or use awt.headless mode.
>
> If you consider the former then you have 2 choices:
> 1. start hudson from within an X session (or set DISPLAY
> variable according to an existing session) 2. just use the
> vnc plug-in which  is very convenient and generally a
> straightforward move. Easy to debug and control test environment.
>
> Trisler, Brian wrote, On 12/23/-28158 09:59 PM (EEST):
> > This may be asked and answered someplace already and I was
> just unable
> > to find it.  If that's the case I apologize in advance.
> >
> >  
> >
> > I administer the tests for my group and we have a fairly extensive
> > group of automated Junit tests that we run on nightly builds which
> > involve screen access (button pushes, mouse clicks and
> drags etc.)  We
> > previously used CruiseControl to automate this process and
> I have been
> > trying to migrate to Hudson.  Is it possible to Run Hudson from
> > Tomcat, which is deployed as a local Windows service?  I'm
> getting the
> > following error (which I have tried to clean up a bit to only show
> > some of the more relevant information).  It looks like a
> AWT error to
> > me, which I think is happening because I never see the application
> > being tested appearing on the screen.
> >
> >  
> >
> >  
> >
> > [junit] # An unexpected error has been detected by HotSpot
> Virtual Machine:
> >
> >     [junit] #
> >
> >     [junit] #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at
> > pc=0x6d07baf4, pid=3260, tid=288
> >
> >     [junit] #
> >
> >     [junit] # Java VM: Java HotSpot(TM) Client VM
> (1.5.0_09-b03 mixed
> > mode, sharing)
> >
> >     [junit] # Problematic frame:
> >
> >     [junit] # C  [awt.dll+0xbaf4]
> >
> >     [junit] #
> >
> >     [junit]
> >
> >     [junit] ---------------  T H R E A D  ---------------
> >
> >     [junit]
> >
> >     [junit] Current thread (0x045b0f40):  JavaThread
> "AWT-EventQueue-1"
> > [_thread_in_native, id=288]
> >
> >     [junit]
> >
> >     [junit] siginfo: ExceptionCode=0xc0000005, reading address
> > 0x00004e32
> >
> >     [junit]
> >
> >     [junit] Registers:
> >
> >     [junit] EAX=0x00001388, EBX=0x6d1a2740, ECX=0x00000012,
> > EDX=0x00000012
> >
> >     [junit] ESP=0x058fe748, EBP=0x17e2a62d, ESI=0x00000088,
> > EDI=0x00000005
> >
> >     [junit] EIP=0x6d07baf4, EFLAGS=0x00010206
> >
> >     [junit]
> >
> >     [junit] Top of Stack: (sp=0x058fe748)
> >
> >     [junit] 0x058fe748:   ffffffbb 045b1000 6d18e498 00000045
> >
> >     [junit] 0x058fe758:   17e2a1d4 ff999999 6d1a2700 6d1a26c0
> >
> >     [junit] 0x058fe768:   00000000 00000000 00000002 6d071a56
> >
> >     [junit] 0x058fe778:   00ff0000 00000000 000000a6 00000014
> >
> >     [junit] 0x058fe788:   000000a6 058fe7fc 6d18e498 058fe7f0
> >
> >     [junit] 0x058fe798:   045b0f40 2ba7d988 058fe93c 2c2dec20
> >
> >     [junit] 0x058fe7a8:   04bfb9b8 00000045 6d18e498 00000000
> >
> >     [junit] 0x058fe7b8:   008817a0 00000045 00000030 000000eb
> >
> >     [junit]
> >
> >     [junit] Instructions: (pc=0x6d07baf4)
> >
> >     [junit] 0x6d07bae4:   00 00 83 e6 f8 c1 e0 05 c1 e9 03
> 03 c6 03 d1 45
> >
> >     [junit] 0x6d07baf4:   8a 0c 82 8b 44 24 30 88 08 40 89
> 44 24 30 8b 44
> >
> >     [junit]
> >
> >     [junit]
> >
> >     [junit] Stack: [0x058c0000,0x05900000),  sp=0x058fe748,  free
> > space=249k
> >
> >     [junit] Native frames: (J=compiled Java code,
> j=interpreted, Vv=VM
> > code, C=native code)
> >
> >     [junit] C  [awt.dll+0xbaf4]
> >
> >     [junit]
> >
> >     [junit] Java frames: (J=compiled Java code,
> j=interpreted, Vv=VM
> > code)
> >
> >     [junit] j
> >
> sun.java2d.loops.Blit.Blit(Lsun/java2d/SurfaceData;Lsun/java2d/Surface
> > Data;Ljava/awt/Composite;Lsun/java2d/pipe/Region;IIIIII)V+0
> >
> >     [junit] j
> >
> sun.java2d.pipe.DrawImage.blitSurfaceData(Lsun/java2d/SunGraphics2D;Ls
> >
> un/java2d/pipe/Region;Lsun/java2d/SurfaceData;Lsun/java2d/SurfaceData;
> >
> Lsun/java2d/loops/SurfaceType;Lsun/java2d/loops/SurfaceType;IIIIIILjav
> > a/awt/Color;)V+97
> >
> >     [junit] j
> >
> sun.java2d.pipe.DrawImage.renderImageCopy(Lsun/java2d/SunGraphics2D;Lj
> > ava/awt/Image;Ljava/awt/Color;IIIIII)Z+75
> >
> >     [junit] j
> >
> sun.java2d.pipe.DrawImage.copyImage(Lsun/java2d/SunGraphics2D;Ljava/aw
> > t/Image;IILjava/awt/Color;)Z+45
> >
> >     [junit] j
> >
> sun.java2d.pipe.DrawImage.copyImage(Lsun/java2d/SunGraphics2D;Ljava/aw
> > t/Image;IILjava/awt/Color;Ljava/awt/image/ImageObserver;)Z+15
> >
> >     [junit] j
> >
> sun.java2d.pipe.ValidatePipe.copyImage(Lsun/java2d/SunGraphics2D;Ljava
> > /awt/Image;IILjava/awt/Color;Ljava/awt/image/ImageObserver;)Z+21
> >
> >     [junit] j
> >
> sun.java2d.SunGraphics2D.drawImage(Ljava/awt/Image;IILjava/awt/Color;L
> > java/awt/image/ImageObserver;)Z+18
> >
> >     [junit] j
> >
> sun.java2d.SunGraphics2D.drawImage(Ljava/awt/Image;IILjava/awt/image/I
> > mageObserver;)Z+7
> >
> >     [junit] j
> >
> javax.swing.JComponent.paintWithOffscreenBuffer(Ljavax/swing/JComponen
> > t;Ljava/awt/Graphics;IIIILjava/awt/Image;)V+232
> >
> >     [junit] j
> >
> javax.swing.JComponent.paintDoubleBuffered(Ljavax/swing/JComponent;Lja
> > va/awt/Component;Ljava/awt/Graphics;IIII)Z+131
> >
> >     [junit] j  javax.swing.JComponent._paintImmediately(IIII)V+739
> >
> >     [junit] j  javax.swing.JComponent.paintImmediately(IIII)V+83
> >
> >     [junit] j  javax.swing.RepaintManager.paintDirtyRegions()V+314
> >
> >     [junit] j
> > javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run()V+32
> >
> >     [junit] j  java.awt.event.InvocationEvent.dispatch()V+47
> >
> >     [junit] j  
> > java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+26
> >
> >     [junit] j
> >
> itec.swing.WaitCursorEventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+41
> >
> >     [junit] j
> > itec.selene.DLBEventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+2
> >
> >     [junit] j
> >
> java.awt.EventDispatchThread.pumpOneEventForHierarchy(ILjava/awt/Compo
> > nent;)Z+233
> >
> >     [junit] j
> >
> java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditi
> > onal;Ljava/awt/Component;)V+26
> >
> >     [junit] j
> >
> java.awt.EventDispatchThread.pumpEventsForHierarchy(Ljava/awt/Conditio
> > nal;Ljava/awt/Component;)V+4
> >
> >     [junit] j  java.awt.Dialog$1.run()V+20
> >
> >     [junit] j  java.awt.Dialog$2.run()Ljava/lang/Object;+4
> >
> >     [junit] v  ~StubRoutines::call_stub
> >
> >     [junit] j
> >
> java.security.AccessController.doPrivileged(Ljava/security/PrivilegedA
> > ction;)Ljava/lang/Object;+0
> >
> >     [junit] j  java.awt.Dialog.show()V+103
> >
> >     [junit] j  java.awt.Component.show(Z)V+5
> >
> >     [junit] j  java.awt.Component.setVisible(Z)V+2
> >
> >     [junit] j
> >
> itec.swing.BasicAuthenticator.doPasswordAuthentication(Ljava/lang/Stri
> > ng;)V+683
> >
> >     [junit] j
> >
> itec.swing.BasicAuthenticator.getPasswordAuthentication(Ljava/lang/Str
> > ing;)Ljava/net/PasswordAuthentication;+8
> >
> >     [junit] j
> >
> itec.swing.BasicAuthenticator.getPasswordAuthentication()Ljava/net/Pas
> > swordAuthentication;+2
> >
> >     [junit] j
> >
> java.net.Authenticator.requestPasswordAuthentication(Ljava/lang/String
> >
> ;Ljava/net/InetAddress;ILjava/lang/String;Ljava/lang/String;Ljava/lang
> >
> /String;Ljava/net/URL;Ljava/net/Authenticator$RequestorType;)Ljava/net
> > /PasswordAuthentication;+105
> >
> >     [junit] j
> >
> sun.net.www.protocol.http.HttpURLConnection$1.run()Ljava/lang/Object;+
> > 32
> >
> >     [junit] v  ~StubRoutines::call_stub
> >
> >     [junit] j
> >
> java.security.AccessController.doPrivileged(Ljava/security/PrivilegedA
> > ction;)Ljava/lang/Object;+0
> >
> >     [junit] j
> >
> sun.net.www.protocol.http.HttpURLConnection.privilegedRequestPasswordA
> >
> uthentication(Ljava/lang/String;Ljava/net/InetAddress;ILjava/lang/Stri
> >
> ng;Ljava/lang/String;Ljava/lang/String;Ljava/net/URL;Ljava/net/Authent
> > icator$RequestorType;)Ljava/net/PasswordAuthentication;+19
> >
> >     [junit] j
> >
> sun.net.www.protocol.http.HttpURLConnection.getServerAuthentication(Ls
> >
> un/net/www/protocol/http/AuthenticationHeader;)Lsun/net/www/protocol/h
> > ttp/AuthenticationInfo;+220
> >
> >     [junit] j
> >
> sun.net.www.protocol.http.HttpURLConnection.getInputStream()Ljava/io/I
> > nputStream;+635
> >
> >     [junit] j  java.net.HttpURLConnection.getResponseCode()I+16
> >
> >     [junit] j
> >
> itec.selene.ConnectionCheck.checkConnectionState()Litec/util/MapK;+166
> >
> >     [junit] j  
> > itec.selene.ConnectionCheck.initLogin()Litec/util/MapK;+43
> >
> >     [junit] j  itec.selene.Selene.initLogin()V+39
> >
> >     [junit] j  itec.selene.DLBImpl$4.run()V+4
> >
> >     [junit] j  java.awt.event.InvocationEvent.dispatch()V+11
> >
> >     [junit] j  
> > java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+26
> >
> >     [junit] j
> >
> itec.swing.WaitCursorEventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+41
> >
> >     [junit] j
> > itec.selene.DLBEventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+2
> >
> >     [junit] j
> >
> java.awt.EventDispatchThread.pumpOneEventForHierarchy(ILjava/awt/Compo
> > nent;)Z+233
> >
> >     [junit] j
> >
> java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditi
> > onal;Ljava/awt/Component;)V+26
> >
> >     [junit] j
> > java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
> >
> >     [junit] j
> > java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
> >
> >     [junit] j  java.awt.EventDispatchThread.run()V+9
> >
> >     [junit] v  ~StubRoutines::call_stub
> >
> >     [junit]
> >
> >     [junit] ---------------  P R O C E S S  ---------------
> >
> >     [junit]
> >
> >     [junit] Java Threads: ( => current thread )
> >
> >     [junit]   0x04bf97d0 JavaThread "TimerQueue" daemon
> [_thread_new,
> > id=2280]
> >
> >     [junit]   0x045b16e0 JavaThread "Java2D Disposer" daemon
> > [_thread_blocked, id=3904]
> >
> >     [junit] =>0x045b0f40 JavaThread "AWT-EventQueue-1"
> > [_thread_in_native, id=288]
> >
> >     [junit]   0x045b1558 JavaThread "Wait Cursor Thread" daemon
> > [_thread_blocked, id=3128]
> >
> >     [junit]   0x04b66938 JavaThread "DLB Single Instance Check"
> > [_thread_blocked, id=1500]
> >
> >     [junit]   0x045adea8 JavaThread "Thread-2"
> [_thread_blocked, id=2976]
> >
> >     [junit]   0x043e2d40 JavaThread "HTTPServer"
> [_thread_in_native,
> > id=1508]
> >
> >     [junit]   0x04427bd8 JavaThread "testPrinting"
> [_thread_blocked,
> > id=3884]
> >
> >     [junit]   0x043adcc0 JavaThread "AWT-Windows" daemon
> > [_thread_in_native, id=3840]
> >
> >     [junit]   0x043adb38 JavaThread "AWT-Shutdown"
> [_thread_blocked,
> > id=4028]
> >
> >     [junit]   0x041e1b48 JavaThread "WindowMonitor-DispatchThread"
> > daemon [_thread_blocked, id=4040]
> >
> >     [junit]   0x00848008 JavaThread "Low Memory Detector" daemon
> > [_thread_blocked, id=712]
> >
> >     [junit]   0x00848628 JavaThread "CompilerThread0" daemon
> > [_thread_blocked, id=2068]
> >
> >     [junit]   0x00847680 JavaThread "Signal Dispatcher" daemon
> > [_thread_blocked, id=4068]
> >
> >     [junit]   0x00816148 JavaThread "Finalizer" daemon
> [_thread_blocked,
> > id=3836]
> >
> >     [junit]   0x00814b70 JavaThread "Reference Handler" daemon
> > [_thread_blocked, id=3308]
> >
> >     [junit]   0x0013f320 JavaThread "main"
> [_thread_blocked, id=2436]
> >
> >     [junit]
> >
> >     [junit] Other Threads:
> >
> >     [junit]   0x0083ef18 VMThread [id=2152]
> >
> >     [junit]   0x008177a0 WatcherThread [id=364]
> >
> >     [junit]
> >
> >     [junit] VM state:not at safepoint (normal execution)
> >
> >     [junit]
> >
> >     [junit] VM Mutex/Monitor currently owned by a thread: None
> >
> >     [junit]
> >
> >     [junit] Heap
> >
> >     [junit]  def new generation   total 5696K, used 5150K
> [0x179c0000,
> > 0x17fe0000, 0x18d70000)
> >
> >     [junit]   eden space 5120K,  89% used [0x179c0000, 0x17e37ba0,
> > 0x17ec0000)
> >
> >     [junit]   from space 576K, 100% used [0x17f50000, 0x17fe0000,
> > 0x17fe0000)
> >
> >     [junit]   to   space 576K,   0% used [0x17ec0000, 0x17ec0000,
> > 0x17f50000)
> >
> >     [junit]  tenured generation   total 75648K, used 1582K
> [0x18d70000,
> > 0x1d750000, 0x279c0000)
> >
> >     [junit]    the space 75648K,   2% used [0x18d70000, 0x18efb8c0,
> > 0x18efba00, 0x1d750000)
> >
> >     [junit]  compacting perm gen  total 8192K, used 3275K
> [0x279c0000,
> > 0x281c0000, 0x2b9c0000)
> >
> >     [junit]    the space 8192K,  39% used [0x279c0000, 0x27cf2ef8,
> > 0x27cf3000, 0x281c0000)
> >
> >     [junit]     ro space 8192K,  67% used [0x2b9c0000, 0x2bf1e5d8,
> > 0x2bf1e600, 0x2c1c0000)
> >
> >     [junit]     rw space 12288K,  47% used [0x2c1c0000, 0x2c7687f0,
> > 0x2c768800, 0x2cdc0000)
> >
> >     [junit]
> >
> >     [junit] Dynamic libraries:
> >
> >     [junit] 0x00400000 - 0x0040d000       C:\Program
> > Files\Java\jdk1.5.0_09\jre\bin\java.exe
> >
> >     [junit] 0x77cf0000 - 0x77e17000      
> C:\Windows\system32\ntdll.dll
> >
> >     [junit] 0x77c10000 - 0x77ceb000      
> C:\Windows\system32\kernel32.dll
> >
> >     [junit] 0x765c0000 - 0x76686000      
> C:\Windows\system32\ADVAPI32.dll
> >
> >     [junit] 0x772d0000 - 0x77392000      
> C:\Windows\system32\RPCRT4.dll
> >
> >     [junit] 0x77750000 - 0x777fa000      
> C:\Windows\system32\MSVCRT.dll
> >
> >     [junit] 0x6d730000 - 0x6d8cb000       C:\Program
> > Files\Java\jdk1.5.0_09\jre\bin\client\jvm.dll
> >
> >     [junit] 0x77680000 - 0x7771d000      
> C:\Windows\system32\USER32.dll
> >
> >     [junit] 0x77630000 - 0x7767b000      
> C:\Windows\system32\GDI32.dll
> >
> >     [junit] 0x75050000 - 0x75082000      
> C:\Windows\system32\WINMM.dll
> >
> >     [junit] 0x773d0000 - 0x77514000      
> C:\Windows\system32\ole32.dll
> >
> >     [junit] 0x77ec0000 - 0x77f4d000      
> C:\Windows\system32\OLEAUT32.dll
> >
> >     [junit] 0x75010000 - 0x75049000      
> C:\Windows\system32\OLEACC.dll
> >
> >     [junit] 0x773a0000 - 0x773be000      
> C:\Windows\system32\IMM32.DLL
> >
> >     [junit] 0x77830000 - 0x778f8000      
> C:\Windows\system32\MSCTF.dll
> >
> >     [junit] 0x76370000 - 0x7639c000      
> C:\Windows\system32\apphelp.dll
> >
> >     [junit] 0x773c0000 - 0x773c9000      
> C:\Windows\system32\LPK.DLL
> >
> >     [junit] 0x77520000 - 0x7759d000      
> C:\Windows\system32\USP10.dll
> >
> >     [junit] 0x6d2f0000 - 0x6d2f8000       C:\Program
> > Files\Java\jdk1.5.0_09\jre\bin\hpi.dll
> >
> >     [junit] 0x764d0000 - 0x764d7000      
> C:\Windows\system32\PSAPI.DLL
> >
> >     [junit] 0x6d700000 - 0x6d70c000       C:\Program
> > Files\Java\jdk1.5.0_09\jre\bin\verify.dll
> >
> >     [junit] 0x6d370000 - 0x6d38d000       C:\Program
> > Files\Java\jdk1.5.0_09\jre\bin\java.dll
> >
> >     [junit] 0x6d720000 - 0x6d72f000       C:\Program
> > Files\Java\jdk1.5.0_09\jre\bin\zip.dll
> >
> >     [junit] 0x767c0000 - 0x772cf000      
> C:\Windows\system32\SHELL32.DLL
> >
> >     [junit] 0x77900000 - 0x77958000      
> C:\Windows\system32\SHLWAPI.dll
> >
> >     [junit] 0x752c0000 - 0x7545e000      
> >
> C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1
> > df_6.0.6001.18000_none_5cdbaa5a083979cc\comctl32.dll
> >
> >     [junit] 0x6d070000 - 0x6d1d9000       C:\Program
> > Files\Java\jdk1.5.0_09\jre\bin\awt.dll
> >
> >     [junit] 0x74690000 - 0x746d2000      
> C:\Windows\system32\WINSPOOL.DRV
> >
> >     [junit] 0x71030000 - 0x71036000      
> C:\Windows\system32\wls0wndh.dll
> >
> >     [junit] 0x6d530000 - 0x6d543000       C:\Program
> > Files\Java\jdk1.5.0_09\jre\bin\net.dll
> >
> >     [junit] 0x77720000 - 0x7774d000      
> C:\Windows\system32\WS2_32.dll
> >
> >     [junit] 0x77620000 - 0x77626000      
> C:\Windows\system32\NSI.dll
> >
> >     [junit] 0x75b90000 - 0x75bcb000      
> C:\Windows\system32\mswsock.dll
> >
> >     [junit] 0x75bf0000 - 0x75bf5000      
> C:\Windows\System32\wship6.dll
> >
> >     [junit] 0x74f90000 - 0x74f9f000      
> C:\Windows\system32\NLAapi.dll
> >
> >     [junit] 0x75de0000 - 0x75df9000      
> C:\Windows\system32\IPHLPAPI.DLL
> >
> >     [junit] 0x75da0000 - 0x75dd5000      
> C:\Windows\system32\dhcpcsvc.DLL
> >
> >     [junit] 0x76020000 - 0x7604c000      
> C:\Windows\system32\DNSAPI.dll
> >
> >     [junit] 0x76400000 - 0x76414000      
> C:\Windows\system32\Secur32.dll
> >
> >     [junit] 0x75d90000 - 0x75d97000      
> C:\Windows\system32\WINNSI.DLL
> >
> >     [junit] 0x75d60000 - 0x75d81000      
> C:\Windows\system32\dhcpcsvc6.DLL
> >
> >     [junit] 0x73100000 - 0x7310f000      
> C:\Windows\system32\napinsp.dll
> >
> >     [junit] 0x72b80000 - 0x72b92000      
> C:\Windows\system32\pnrpnsp.dll
> >
> >     [junit] 0x72bb0000 - 0x72bb8000      
> C:\Windows\System32\winrnr.dll
> >
> >     [junit] 0x76570000 - 0x765ba000      
> C:\Windows\system32\WLDAP32.dll
> >
> >     [junit] 0x75850000 - 0x75855000      
> C:\Windows\System32\wshtcpip.dll
> >
> >     [junit] 0x73110000 - 0x73116000      
> C:\Windows\system32\rasadhlp.dll
> >
> >     [junit] 0x6c9c0000 - 0x6c9ca000       C:\Windows\Temp\win32.dll
> >
> >     [junit] 0x6d550000 - 0x6d559000       C:\Program
> > Files\Java\jdk1.5.0_09\jre\bin\nio.dll
> >
> >     [junit] 0x6d2b0000 - 0x6d2ef000       C:\Program
> > Files\Java\jdk1.5.0_09\jre\bin\fontmanager.dll
> >
> >     [junit] 0x6d200000 - 0x6d22f000       C:\Program
> > Files\Java\jdk1.5.0_09\jre\bin\cmm.dll
> >
> >     [junit] 0x6d430000 - 0x6d44f000       C:\Program
> > Files\Java\jdk1.5.0_09\jre\bin\jpeg.dll
> >
> >     [junit] 0x755c0000 - 0x755ff000      
> C:\Windows\system32\UXTHEME.DLL
> >
> >     [junit]
> >
> >     [junit] Environment Variables:
> >
> >     [junit] JAVA_HOME=C:\Program Files\Java\jdk1.5.0_09
> >
> >     [junit] PATH=C:\Program Files\Java\jdk1.5.0_09\bin;C:\Program
> > Files\Measurement
> >
> Computing\DAQ\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem
> > ;C:\Program Files\FastObjects_t7_9.5\runtime\bin;C:\Program
> > Files\Java\jdk1.6.0_05\bin;C:\Program
> > Files\FastObjects_t7_9.5\runtime\bin;C:\Program
> > Files\FastObjects_t7_9.5\runtime\bin;C:\Program Files\TortoiseCVS
> >
> >     [junit] OS=Windows_NT
> >
> >     [junit] PROCESSOR_IDENTIFIER=x86 Family 15 Model 3 Stepping 4,
> > GenuineIntel
> >
> >     [junit]
> >
> >     [junit]
> >
> >     [junit]
> >
> >     [junit] ---------------  S Y S T E M  ---------------
> >
> >     [junit]
> >
> >     [junit] OS: Windows Vista Build 6001 Service Pack 1
> >
> >     [junit]
> >
> >     [junit] CPU:total 1 (cores per cpu 1, threads per core
> 2) family
> > 15 model 3 stepping 4, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ht
> >
> >     [junit]
> >
> >     [junit] Memory: 4k page, physical 2097151k(2080040k free), swap
> > 4194303k(4194303k free)
> >
> >     [junit]
> >
> >     [junit] vm_info: Java HotSpot(TM) Client VM (1.5.0_09-b03) for
> > windows-x86, built on Oct 12 2006 01:20:10 by "java_re"
> with MS VC++
> > 6.0
> >
> >     [junit]
> >
> >     [junit]
> >
> >     [junit] #
> >
> >     [junit] # An unexpected error has been detected by
> HotSpot Virtual
> > Machine:
> >
> >     [junit] #
> >
> >     [junit] #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at
> > pc=0x6d07baf4, pid=3808, tid=3680
> >
> >     [junit] #
> >
> >     [junit] # Java VM: Java HotSpot(TM) Client VM
> (1.5.0_09-b03 mixed
> > mode, sharing)
> >
> >     [junit] # Problematic frame:
> >
> >     [junit] # C  [awt.dll+0xbaf4]
> >
> >     [junit] #
> >
> >     [junit] # An error report file with more information is
> saved as
> > hs_err_pid3808.log
> >
> >     [junit] #
> >
> >     [junit] # If you would like to submit a bug report,
> please visit:
> >
> >     [junit] #   http://java.sun.com/webapps/bugreport/crash.jsp
> >
> >     [junit] #
> >
> >     [junit] Running itec.selene.test.PrintTest
> >
> >     [junit] Tests run: 1, Failures: 0, Errors: 1, Time
> elapsed: 0 sec
> >
> >  
> >
> >  
> >
> > Brian Trisler
> >
> > Software Developer
> >
> > Navistar, Inc.
> >
> > E-mail:  [hidden email]
> > <mailto:[hidden email]>
> >
> >  
> >
> > CONFIDENTIALITY NOTICE:  This e-mail, and any attachments and/or
> > documents linked to this email, are intended for the
> addressee and may
> > contain information that is privileged, confidential,
> proprietary, or
> > otherwise protected by law.  Any dissemination, distribution, or
> > copying is prohibited.  This notice serves as a confidentiality
> > marking for the purpose of any confidentiality or nondisclosure
> > agreement.  If you have received this communication in
> error, please
> > contact the original sender.
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
************************************************************************
*********************************
This e-mail is confidential, the property of NDS Ltd and intended for
the addressee only.  Any dissemination, copying or distribution of this
message or any attachments by anyone other than the intended recipient
is strictly prohibited.  If you have received this message in error,
please immediately notify the [hidden email] and destroy the
original message.  Messages sent to and from NDS may be monitored.  NDS
cannot guarantee any message delivery method is secure or error-free.
Information could be intercepted, corrupted, lost, destroyed, arrive
late or incomplete, or contain viruses.  We do not accept responsibility
for any errors or omissions in this message and/or attachment that arise
as a result of transmission.  You should carry out your own virus checks
before opening any attachment.  Any views or opinions presented are
solely those of the author and do not necessarily represent those of
NDS.

To protect the environment please do not print this e-mail unless
necessary.

NDS Limited Registered office: One Heathrow Boulevard, 286 Bath Road,
West Drayton, Middlesex, UB7 0DQ, United Kingdom. A company registered
in England and Wales  Registered no. 3080780   VAT no. GB 603 8808 40-00
************************************************************************
**********************************



CONFIDENTIALITY NOTICE:  This e-mail, and any attachments
and/or documents linked to this email, are intended for the
addressee and may contain information that is privileged,
confidential, proprietary, or otherwise protected by law.  Any
dissemination, distribution, or copying is prohibited.  This
notice serves as a confidentiality marking for the purpose of
any confidentiality or nondisclosure agreement.  If you have
received this communication in error, please contact the
original sender.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Trisler, Brian.vcf (574 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Can Hudson perform JUnit tests that require screen access?

Kohsuke Kawaguchi
Administrator
In reply to this post by Fabrizio Giudici
Fabrizio Giudici wrote:
> Sounds more as a bug, or a problem with video drivers etc... because  
> it's a crash. Usually problems related to the need of a graphical  
> interface are notified by regular exceptions.

Yeah, I recommend Brian to file this as a bug to JVM.

>
> On Aug 6, 2008, at 14:35 , Trisler, Brian wrote:
>
>> This may be asked and answered someplace already and I was just  
>> unable to find it.  If that’s the case I apologize in advance.
>>
>> I administer the tests for my group and we have a fairly extensive  
>> group of automated Junit tests that we run on nightly builds which  
>> involve screen access (button pushes, mouse clicks and drags etc.)  
>> We previously used CruiseControl to automate this process and I have  
>> been trying to migrate to Hudson.  Is it possible to Run Hudson from  
>> Tomcat, which is deployed as a local Windows service?  I’m getting  
>> the following error (which I have tried to clean up a bit to only  
>> show some of the more relevant information).  It looks like a AWT  
>> error to me, which I think is happening because I never see the  
>> application being tested appearing on the screen.
>>
>>
>> [junit] # An unexpected error has been detected by HotSpot Virtual  
>> Machine:
>>     [junit] #
>>     [junit] #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at  
>> pc=0x6d07baf4, pid=3260, tid=288
>>     [junit] #
>>     [junit] # Java VM: Java HotSpot(TM) Client VM (1.5.0_09-b03  
>> mixed mode, sharing)
>>     [junit] # Problematic frame:
>>     [junit] # C  [awt.dll+0xbaf4]
>>     [junit] #
>>     [junit]
>>     [junit] ---------------  T
>>
>

--
Kohsuke Kawaguchi
Sun Microsystems                   http://weblogs.java.net/blog/kohsuke/


smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Can Hudson perform JUnit tests that require screen access?

stephenconnolly
I would recommend starting a Hudson JNLP slave on the same machine and have that slave autorun on login.  That way the main hudson can be a service with Interact with network, while the slave can give you the GUI stuff you need.  It's also more scalable as when you need to more slaves you have everything working on one slave already

On Thu, Aug 7, 2008 at 1:21 AM, Kohsuke Kawaguchi <[hidden email]> wrote:
Fabrizio Giudici wrote:
Sounds more as a bug, or a problem with video drivers etc... because  it's a crash. Usually problems related to the need of a graphical  interface are notified by regular exceptions.

Yeah, I recommend Brian to file this as a bug to JVM.



On Aug 6, 2008, at 14:35 , Trisler, Brian wrote:

This may be asked and answered someplace already and I was just  unable to find it.  If that's the case I apologize in advance.

I administer the tests for my group and we have a fairly extensive  group of automated Junit tests that we run on nightly builds which  involve screen access (button pushes, mouse clicks and drags etc.)   We previously used CruiseControl to automate this process and I have  been trying to migrate to Hudson.  Is it possible to Run Hudson from  Tomcat, which is deployed as a local Windows service?  I'm getting  the following error (which I have tried to clean up a bit to only  show some of the more relevant information).  It looks like a AWT  error to me, which I think is happening because I never see the  application being tested appearing on the screen.


[junit] # An unexpected error has been detected by HotSpot Virtual  Machine:
   [junit] #
   [junit] #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at  pc=0x6d07baf4, pid=3260, tid=288
   [junit] #
   [junit] # Java VM: Java HotSpot(TM) Client VM (1.5.0_09-b03  mixed mode, sharing)
   [junit] # Problematic frame:
   [junit] # C  [awt.dll+0xbaf4]
   [junit] #
   [junit]
   [junit] ---------------  T




--
Kohsuke Kawaguchi
Sun Microsystems                   http://weblogs.java.net/blog/kohsuke/


Reply | Threaded
Open this post in threaded view
|

Re: Can Hudson perform JUnit tests that require screen access?

Joshua McKinnon
Stephen's idea sounds good.

At my office we run Tomcat as an application (scheduled task on
startup) so that it can have network access and interact with the
desktop for our Abbot (GUI) tests, which require control of the
desktop to run. If there are simple ways around this I would love to
know about them. Otherwise, if running as an app is an option, then
this method works (as I have many hudson instances doing this)


On Thu, Aug 7, 2008 at 3:26 AM, Stephen Connolly
<[hidden email]> wrote:

> I would recommend starting a Hudson JNLP slave on the same machine and have
> that slave autorun on login.  That way the main hudson can be a service with
> Interact with network, while the slave can give you the GUI stuff you need.
> It's also more scalable as when you need to more slaves you have everything
> working on one slave already
>
> On Thu, Aug 7, 2008 at 1:21 AM, Kohsuke Kawaguchi
> <[hidden email]> wrote:
>>
>> Fabrizio Giudici wrote:
>>>
>>> Sounds more as a bug, or a problem with video drivers etc... because
>>>  it's a crash. Usually problems related to the need of a graphical
>>>  interface are notified by regular exceptions.
>>
>> Yeah, I recommend Brian to file this as a bug to JVM.
>>
>>>
>>> On Aug 6, 2008, at 14:35 , Trisler, Brian wrote:
>>>
>>>> This may be asked and answered someplace already and I was just  unable
>>>> to find it.  If that's the case I apologize in advance.
>>>>
>>>> I administer the tests for my group and we have a fairly extensive
>>>>  group of automated Junit tests that we run on nightly builds which  involve
>>>> screen access (button pushes, mouse clicks and drags etc.)   We previously
>>>> used CruiseControl to automate this process and I have  been trying to
>>>> migrate to Hudson.  Is it possible to Run Hudson from  Tomcat, which is
>>>> deployed as a local Windows service?  I'm getting  the following error
>>>> (which I have tried to clean up a bit to only  show some of the more
>>>> relevant information).  It looks like a AWT  error to me, which I think is
>>>> happening because I never see the  application being tested appearing on the
>>>> screen.
>>>>
>>>>
>>>> [junit] # An unexpected error has been detected by HotSpot Virtual
>>>>  Machine:
>>>>    [junit] #
>>>>    [junit] #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at  pc=0x6d07baf4,
>>>> pid=3260, tid=288
>>>>    [junit] #
>>>>    [junit] # Java VM: Java HotSpot(TM) Client VM (1.5.0_09-b03  mixed
>>>> mode, sharing)
>>>>    [junit] # Problematic frame:
>>>>    [junit] # C  [awt.dll+0xbaf4]
>>>>    [junit] #
>>>>    [junit]
>>>>    [junit] ---------------  T
>>>>
>>>
>>
>>
>> --
>> Kohsuke Kawaguchi
>> Sun Microsystems                   http://weblogs.java.net/blog/kohsuke/
>>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]