You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomee.apache.org by Jacek Laskowski <ja...@laskowski.net.pl> on 2010/12/10 21:01:57 UTC

BUILD FAILURE - testTimeoutAround(org.apache.openejb.timer.TimeoutAroundTest) fails?

Hi,

I've been building o3 on my imac and although I'd reported earlier
that the build worked fine it breaks on this machine. What's wrong and
why didn't I run into it earlier? It looks that BAD_VALUE kicks in.

jacek:~/oss/openejb3/container/openejb-core
$ mvn -Dtest=org.apache.openejb.timer.TimeoutAroundTest test
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building OpenEJB :: Container :: Core 3.2-SNAPSHOT
[INFO] ------------------------------------------------------------------------
...
-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.apache.openejb.timer.TimeoutAroundTest
WARN - Unable to scrape for @Stateful, @Stateless or @MessageDriven
annotations. Invalid EjbModule URL:
org.apache.openejb.jee.EjbJar@5f1eb199
Dec 10, 2010 8:54:13 PM org.apache.openejb.cdi.CdiBuilder createApplication
INFO: existing thread singleton service in SystemInstance() null
Dec 10, 2010 8:54:13 PM org.apache.openejb.cdi.CdiBuilder build
INFO: Created new singletonService
org.apache.openejb.cdi.ThreadSingletonServiceImpl@11d13272
Dec 10, 2010 8:54:13 PM org.apache.openejb.cdi.CdiBuilder build
INFO: succeeded in installing singleton service
Dec 10, 2010 8:54:13 PM org.apache.openejb.cdi.OpenEJBLifecycle initialize
INFO: OpenWebBeans Container is starting...
Dec 10, 2010 8:54:13 PM org.apache.webbeans.plugins.PluginLoader
startApplication
INFO: Adding OpenWebBeansPlugin : [CdiPlugin]
Dec 10, 2010 8:54:13 PM org.apache.openejb.cdi.BeansDeployer startApplication
INFO: All injection points were validated successfully.
Dec 10, 2010 8:54:13 PM org.apache.openejb.cdi.OpenEJBLifecycle initialize
INFO: OpenWebBeans Container has started, it took [83] ms.
computeFirstFireTime [null] nextFireTime [null]
computeFirstFireTime [null] nextFireTime [null]
computeFirstFireTime [null] nextFireTime [null]
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 5.864
sec <<< FAILURE!

Results :

Failed tests:
  testTimeoutAround(org.apache.openejb.timer.TimeoutAroundTest)

Tests run: 1, Failures: 1, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------

jacek:~/oss/openejb3/container/openejb-core
$ cat target/surefire-reports/org.apache.openejb.timer.TimeoutAroundTest.txt
-------------------------------------------------------------------------------
Test set: org.apache.openejb.timer.TimeoutAroundTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 5.887
sec <<< FAILURE!
testTimeoutAround(org.apache.openejb.timer.TimeoutAroundTest)  Time
elapsed: 5.858 sec  <<< FAILURE!
junit.framework.AssertionFailedError:
expected:<[INTERCEPTOR_BEFORE_AROUNDTIMEOUT,
INTERCEPTOR_BEFORE_AROUNDTIMEOUT, INTERCEPTOR_BEFORE_AROUNDTIMEOUT,
BEAN_BEFORE_AROUNDTIMEOUT, BEAN_TIMEOUT, BEAN_AFTER_AROUNDTIMEOUT,
INTERCEPTOR_AFTER_AROUNDTIMEOUT, INTERCEPTOR_AFTER_AROUNDTIMEOUT,
INTERCEPTOR_AFTER_AROUNDTIMEOUT]> but
was:<[INTERCEPTOR_BEFORE_AROUNDTIMEOUT,
INTERCEPTOR_BEFORE_AROUNDTIMEOUT, INTERCEPTOR_BEFORE_AROUNDTIMEOUT,
BAD_VALUE, BEAN_BEFORE_AROUNDTIMEOUT, BEAN_TIMEOUT,
BEAN_AFTER_AROUNDTIMEOUT, INTERCEPTOR_AFTER_AROUNDTIMEOUT,
INTERCEPTOR_AFTER_AROUNDTIMEOUT, INTERCEPTOR_AFTER_AROUNDTIMEOUT]>
	at junit.framework.Assert.fail(Assert.java:47)
	at junit.framework.Assert.failNotEquals(Assert.java:283)
	at junit.framework.Assert.assertEquals(Assert.java:64)
	at junit.framework.Assert.assertEquals(Assert.java:71)
	at org.apache.openejb.timer.TimeoutAroundTest.testTimeoutAround(TimeoutAroundTest.java:118)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at junit.framework.TestCase.runTest(TestCase.java:168)
	at junit.framework.TestCase.runBare(TestCase.java:134)
	at junit.framework.TestResult$1.protect(TestResult.java:110)
	at junit.framework.TestResult.runProtected(TestResult.java:128)
	at junit.framework.TestResult.run(TestResult.java:113)
	at junit.framework.TestCase.run(TestCase.java:124)
	at junit.framework.TestSuite.runTest(TestSuite.java:232)
	at junit.framework.TestSuite.run(TestSuite.java:227)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:120)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:145)
	at org.apache.maven.surefire.Surefire.run(Surefire.java:104)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
	at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1017)

Jacek

-- 
Jacek Laskowski
Notatnik Projektanta Java EE - http://jaceklaskowski.pl