jastrachan | 2 Feb 12:46 2005
Picon

Re: [groovy-dev] 2 Unit test failures

I've been running tests all day today and it works for me when I type  
'maven' into the command shell. I'm on OS X but I am on a dual G5, so  
it could be a timing issue maybe?

On 2 Feb 2005, at 10:01, Scott Stirling wrote:
> Hi,
>
> Does everyone see these? Is this a Mac OS problem? Timing-related? I  
> just
> started seeing it late tonight. I reverted my own local changes to see  
> if
> they went away but they didn't.
>
> src/test/groovy/util/AntTest.groovy and one other:
>
> INFO:
> ------------- ---------------- ---------------
> Testcase: testBug(groovy.bugs.Groovy303_Bug):   Caused an ERROR
> java.awt.HeadlessException
> org.codehaus.groovy.runtime.InvokerInvocationException:
> java.awt.HeadlessException
>     at groovy.lang.MetaClass.doConstructorInvoke(MetaClass.java:1631)
>     at groovy.lang.MetaClass.invokeConstructor(MetaClass.java:530)
>     at
> org.codehaus.groovy.runtime.Invoker.invokeConstructorOf(Invoker.java: 
> 183)
>     at
> org.codehaus.groovy.runtime.InvokerHelper.invokeConstructorOf(InvokerHe 
> lper.
> java:122)
>     at
> groovy.bugs.Scholastic.createUI(/Users/scottstirling/Desktop/eclipse 
> -3.0.1/w
> orkspace/groovy/groovy-core/target/test-classes/groovy/bugs/ 
> Groovy303_Bug.gr
> oovy)
>     at
> gjdk.groovy.bugs.Scholastic_GroovyReflector.invoke(Scholastic_GroovyRef 
> lecto
> r.java)
>     at groovy.lang.MetaMethod.invoke(MetaMethod.java:110)
>     at groovy.lang.MetaClass.doMethodInvoke(MetaClass.java:1401)
>     at groovy.lang.MetaClass.invokeMethod(MetaClass.java:319)
>     at groovy.lang.MetaClass.invokeMethod(MetaClass.java:304)
>     at  
> org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:143)
>     at
> org.codehaus.groovy.runtime.InvokerHelper.invokeNoArgumentsMethod(Invok 
> erHel
> per.java:91)
>     at
> groovy.bugs.Groovy303_Bug.testBug(/Users/scottstirling/Desktop/ 
> eclipse-3.0.1
> /workspace/groovy/groovy-core/target/test-classes/groovy/bugs/ 
> Groovy303_Bug.
> groovy)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja 
> va:39
> )
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso 
> rImpl
> .java:25)
> Caused by: java.awt.HeadlessException
>     at
> java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java: 
> 121)
>     at java.awt.Window.<init>(Window.java:274)
>     at java.awt.Frame.<init>(Frame.java:401)
>     at javax.swing.JFrame.<init>(JFrame.java:198)
>     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native  
> Method)
>     at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructor 
> Acces
> sorImpl.java:39)
>     at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCon 
> struc
> torAccessorImpl.java:27)
>     at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
>     at groovy.lang.MetaClass.doConstructorInvoke(MetaClass.java:1619)
>
>
>

James
-------
http://radio.weblogs.com/0112098/


Gmane