AssertionError: Number of scheduled jobs should be at least 4 but is 3 expected

3 views
Skip to first unread message

Eyal Edri

unread,
May 4, 2011, 3:20:49 AM5/4/11
to jenkins...@googlegroups.com
Hi,

I'm getting this Assertion error from Jenkins from time to time making the
build unstable.
I've already seen another assertion error which I posted a thread on
named: ' unexplaind periodic build fail on JUnit (AssertionFailedError)'.

Could it be that Jenkins has synchronization problems with large projects
running multiple tests?

The problem is this error only occurs sometimes and it is difficult to
pinpoint the problem.

Anyone seen this ?

Error Message
Number of scheduled jobs should be at least 4 but is 3 expected:<true> but
was:<false>
Stacktrace
java.lang.AssertionError: Number of scheduled jobs should be at least 4
but is 3 expected:<true> but was:<false>
at org.junit.Assert.fail(Assert.java:91)
at org.junit.Assert.failNotEquals(Assert.java:645)
at org.junit.Assert.assertEquals(Assert.java:126)
at
com.redhat.rhevm.utils.timer.SchedulerUtilQuartsImplTest.fixedDelayJob2(Sc
hedulerUtilQuartsImplTest.java:154)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm
pl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMetho
d.java:44)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable
.java:15)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.
java:41)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.j
ava:20)
at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:
28)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.j
ava:76)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.j
ava:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at
org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at
org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:
28)
at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31
)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:
62)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(
AbstractDirectoryTestSuite.java:140)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Abstrac
tDirectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm
pl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Surefir
eBooter.java:345)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1
009)

Standard Output
Start Time=1304492825927
onTimer1 state=1 Time=1304492825928
onTimer2 state=2 Time=1304492825929
onTimer1 state=3 Time=1304492825929
Done Time=1304492825984


Page generated: May 4, 2011 10:26:22 AMJenkins ver. 1.409

Reply all
Reply to author
Forward
0 new messages