OK, I just found the case only failed in 3.1.* branch, not in trunk. The problem is that in AnnotationDeployer, it only scan the DependsOn annotation on the singletion bean, while in trunk, all the session beans are scanned. It is changed in OpenEJB-1296, merge the changes of that JIRA to branch will fix the failed case.
2010/7/23 Ivan <[email protected]> > I have tried it on both linux and windows, not seen this error. But I have > no Mac on hand, just create a debug patch, it contains some output while > sorting the elements. If anyone has time to try it and paste the outputs, it > will be easy for me to debug the issue. > Thanks ! > > 2010/7/23 David Jencks <[email protected]> > > I've seen this once or twice but it always passes the next time I try it. >> >> I've seen a much stranger compiler error several times... something like a >> ClassCastError >> >> required: org.apache.openejb.config.rules.Key >> supplied: org.apache.openejb.config.rules.Key >> >> (this is from memory). >> david jencks >> >> On Jul 22, 2010, at 8:50 PM, Kevan Miller wrote: >> >> > I get this same error on Mac OS. Is anybody working on DependsOn? I >> recall there were some @DependsOn fixes, a while back. Either this test is >> bad, or there's some more work to do... >> > >> > --kevan >> > On Jul 22, 2010, at 9:47 PM, [email protected] wrote: >> > >> >> Online report : >> http://vmbuild.apache.org/continuum/buildResult.action?buildId=375243&projectId=2699 >> >> >> >> Build statistics: >> >> State: Failed >> >> Previous State: Failed >> >> Started at: Thu 22 Jul 2010 18:18:49 -0700 >> >> Finished at: Thu 22 Jul 2010 18:46:31 -0700 >> >> Total time: 27m 42s >> >> Build Trigger: Schedule >> >> Build Number: 4 >> >> Exit code: 1 >> >> Building machine hostname: vmbuild.apache.org >> >> Operating system : Linux(unknown) >> >> Java Home version : >> >> java version "1.5.0_12" >> >> Java(TM) 2 Runtime Environment, Standard Edition (build >> 1.5.0_12-b04) >> >> Java HotSpot(TM) Client VM (build 1.5.0_12-b04, mixed mode, >> sharing) >> >> >> >> Builder version : >> >> Maven version: 2.0.9 >> >> Java version: 1.5.0_12 >> >> OS name: "linux" version: "2.6.24-28-server" arch: "i386" >> Family: "unix" >> >> >> >> >> **************************************************************************** >> >> SCM Changes: >> >> >> **************************************************************************** >> >> No files changed >> >> >> >> >> **************************************************************************** >> >> Dependencies Changes: >> >> >> **************************************************************************** >> >> No dependencies changed >> >> >> >> >> >> >> **************************************************************************** >> >> Build Definition: >> >> >> **************************************************************************** >> >> POM filename: pom.xml >> >> Goals: clean install -Dassemble >> >> Arguments: --batch-mode >> >> Build Fresh: true >> >> Always Build: false >> >> Default Build Definition: true >> >> Schedule: DEFAULT_SCHEDULE >> >> Profile Name: Java 5, Large Memory >> >> Description: >> >> >> >> >> **************************************************************************** >> >> Test Summary: >> >> >> **************************************************************************** >> >> Tests: 3297 >> >> Failures: 1 >> >> Errors: 0 >> >> Success Rate: 99 >> >> Total time: 596.89105 >> >> >> >> >> **************************************************************************** >> >> Test Failures: >> >> >> **************************************************************************** >> >> >> >> DependsOnTest >> >> test : >> >> junit.framework.AssertionFailedError >> >> junit.framework.AssertionFailedError: expected:<[four, three, two, >> one]> but was:<[three, two, four, one]> >> >> at junit.framework.Assert.fail(Assert.java:47) >> >> at junit.framework.Assert.failNotEquals(Assert.java:277) >> >> at junit.framework.Assert.assertEquals(Assert.java:64) >> >> at junit.framework.Assert.assertEquals(Assert.java:71) >> >> at >> org.apache.openejb.core.singleton.DependsOnTest.test(DependsOnTest.java:86) >> >> 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:585) >> >> 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:79) >> >> 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(AbstractDirectoryTestSuite.java:165) >> >> at org.apache.maven.surefire.Surefire.run(Surefire.java:107) >> >> 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:585) >> >> at >> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:289) >> >> at >> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:993) >> >> >> >> >> >> >> >> >> > >> >> > > > -- > Ivan > -- Ivan
