huxi / lilith

Lilith is a Logging- and AccessEvent viewer for Logback, log4j, log4j2 and java.util.logging
http://lilith.huxhorn.de
GNU Lesser General Public License v3.0
137 stars 18 forks source link

Unable to build #24

Closed jlanzarotta closed 8 years ago

jlanzarotta commented 8 years ago

When attempting to build lilith from a fresh source checkout, I get the following issue on a FAILED test... Any ideas? Thanks.

:sulky-groovy:classes                                                                                         
:sulky-groovy:jar                                                                                             
:sulky-groovy:javadoc                                                                                         
Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true                                                      
                                                         :sulky-groovy:javadocJar                             
:sulky-groovy:sourceJar                                                                                       
:sulky-groovy:signArchives SKIPPED                                                                            
:sulky-groovy:assemble                                                                                        
:sulky-groovy:compileTestJava                                                                                 
:sulky-groovy:compileTestGroovy UP-TO-DATE                                                                    
:sulky-groovy:processTestResources                                                                            
:sulky-groovy:testClasses                                                                                     
:sulky-groovy:test                                                                                            

de.huxhorn.sulky.groovy.GroovyInstanceTest > refresh[0] FAILED                                                
    org.junit.ComparisonFailure at GroovyInstanceTest.java:159                                                
Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true                                                      

12 tests completed, 1 failed                                                                                  
:sulky-groovy:test FAILED                                                                                     

FAILURE: Build failed with an exception.                                                                      

* What went wrong:                                                                                            
Execution failed for task ':sulky-groovy:test'.                                                               
> There were failing tests. See the report at: file:///C:/Develop/Lilith/sulky/sulky-groovy/build/reports/test
/index.html                                                                                                   

* Try:                                                                                                        
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED                                                                                                  

Total time: 56.006 secs                                                                                       
Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true                                                      

C:\Develop\Lilith\sulky (master)                                                                              
huxi commented 8 years ago

Take a look at C:\Develop\Lilith\sulky\sulky-groovy\build\reports\test\index.html - it should give you (or rather us) some more info.

huxi commented 8 years ago

It might just be a timeout issue. Did you try it more than once? Unfortunately, those tests are still JUnit instead of Spock so the output will likely be less than ideal...

jlanzarotta commented 8 years ago

Thanks for the quick reply...

I did try it a could times in succession; however, I get the same results...

The context of index.html looks like this...

org.junit.ComparisonFailure: expected:<[Bar]> but was:<[Foo]>
    at org.junit.Assert.assertEquals(Assert.java:115)
    at org.junit.Assert.assertEquals(Assert.java:144)
    at de.huxhorn.sulky.groovy.GroovyInstanceTest.refresh(GroovyInstanceTest.java:159)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
    at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
    at org.junit.rules.RunRules.evaluate(RunRules.java:20)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at org.junit.runners.Suite.runChild(Suite.java:128)
    at org.junit.runners.Suite.runChild(Suite.java:27)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.runTestClass(JUnitTestClassExecuter.java:105)
    at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.execute(JUnitTestClassExecuter.java:56)
    at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassProcessor.processTestClass(JUnitTestClassProcessor.java:64)
    at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:49)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
    at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
    at org.gradle.messaging.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32)
    at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
    at com.sun.proxy.$Proxy2.processTestClass(Unknown Source)
    at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:106)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
    at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
    at org.gradle.messaging.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:360)
    at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)
    at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
huxi commented 8 years ago

Could you pull sulky again? I just changed the test a bit. Unfortunately, I can't reproduce your problem so this is mostly guessing.

jlanzarotta commented 8 years ago

Fantastic, that worked. I will try and build lilith now...

huxi commented 8 years ago

Nice. I'll close this issue. Feel free to open another one if you stumble somewhere else.