Thank you very much,Ivan! I copied the test case from trunk,it works.
2010/2/5 Ivan <[email protected]> > Hi, Delos: > It was caused by the code changes of Tomcat, so our Mock testing codes > need to update, you could refer to the same testcase in trunk. > > 2010/2/5 Delos <[email protected]> > > Hi, >> >> I have pulled in source code of Tomcat 6.0.24 into >> https://svn.apache.org/repos/asf/geronimo/external/trunk/tomcat-parent-6.0.24. >> I also applied several patches.(You may find detail in GERONIMO-5122 or the >> commit log) >> >> Currently, the Tomcat itself can be built successfully.But when I build >> 2.1 branch with the new tomcat, it failed in "tomcat6-clustering-wadi". >> Could anyone give any hints about this issue? >> >> Thanks a lot! >> >> Here is the error log: >> >> *-------------------------------------------------------* >> * T E S T S* >> *-------------------------------------------------------* >> *Running org.apache.geronimo.tomcat.cluster.AnAbstractClusteredValveTest* >> *Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.251 >> sec* >> *Running org.apache.geronimo.tomcat.cluster.ClusteredManagerTest* >> *Tests run: 6, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.338 >> sec <<< FAILURE!* >> * >> * >> *Results :* >> * >> * >> *Failed tests: * >> * >> >> testInvalidateSessionReleasesUnderlyingSessionAndRemoveSessionFromManager(org.apache.geronimo.tomcat.cluster.ClusteredManagerTest) >> * >> >> >> *And surefire report content is* >> >> >> ------------------------------------------------------------------------------- >> Test set: org.apache.geronimo.tomcat.cluster.ClusteredManagerTest >> >> ------------------------------------------------------------------------------- >> Tests run: 6, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.338 sec >> <<< FAILURE! >> testInvalidateSessionReleasesUnderlyingSessionAndRemoveSessionFromManager(org.apache.geronimo.tomcat.cluster.ClusteredManagerTest) >> Time elapsed: 0.012 sec <<< FAILURE! >> com.agical.rmock.core.exception.UnexpectedInvocationException: >> UNEXPECTED! >> No expectation matched: context.getLoader() >> ----------------------------------------------------------------- >> 1 expectation(s) have not yet been matched >> (indicated by '->' in the listing below) >> ----------------------------------------------------------------- >> Unordered section:root { >> Unordered section:main { >> 1(1) sessionManager.registerListener() >> 1(1) context.getSessionTimeout() >> 1(1) context.addPropertyChangeListener(!isNull(<null>)) >> 1(*) context.getApplicationLifecycleListeners() >> 0(*) context.getApplicationEventListeners() >> 1(1) sessionManager.createSession(eq(<sessionId>)) >> 0(*) session1$.getSessionId() >> 1(1) session1$.getState() >> -> 0(1) session1$.release() >> } >> Unordered section:defaults { >> } >> } >> at >> com.agical.rmock.core.expectation.InvocationVerifier.getException(InvocationVerifier.java:56) >> at >> com.agical.rmock.core.expectation.InvocationVerifier.invocation(InvocationVerifier.java:44) >> at com.agical.rmock.core.expectation.Engine.invocation(Engine.java:65) at >> sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source) at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:585) at >> com.agical.rmock.core.hub.ProxySetMethodConnectionStrategy$ConsumableInvocationHandler.invoke(ProxySetMethodConnectionStrategy.java:34) >> at $Proxy1.invocation(Unknown Source) at >> com.agical.rmock.extension.cglib.InterfaceInvocationHandler.invoke(InterfaceInvocationHandler.java:85) >> at org.apache.catalina.ContextMock.getLoader(<generated>) at >> org.apache.catalina.session.StandardSession.expire(StandardSession.java:681) >> at >> org.apache.catalina.session.StandardSession.expire(StandardSession.java:643) >> at >> org.apache.catalina.session.StandardSession.invalidate(StandardSession.java:1143) >> at >> org.apache.geronimo.tomcat.cluster.ClusteredManager$ClusteredSession.invalidate(ClusteredManager.java:120) >> at >> org.apache.catalina.session.StandardSessionFacade.invalidate(StandardSessionFacade.java:150) >> at >> org.apache.geronimo.tomcat.cluster.ClusteredManagerTest.testInvalidateSessionReleasesUnderlyingSessionAndRemoveSessionFromManager(ClusteredManagerTest.java:158) >> at >> org.apache.geronimo.tomcat.cluster.ClusteredManagerTest.testInvalidateSessionReleasesUnderlyingSessionAndRemoveSessionFromManager(ClusteredManagerTest.java:158) >> 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 >> com.agical.rmock.core.strategy.impl.MethodStep.invokeMethod(MethodStep.java:37) >> at com.agical.rmock.core.strategy.impl.MethodStep.run(MethodStep.java:29) at >> com.agical.rmock.core.strategy.impl.ExceptionVerifierTestStepDecorator.run(ExceptionVerifierTestStepDecorator.java:22) >> at >> com.agical.rmock.core.strategy.impl.CompositeStep.run(CompositeStep.java:24) >> at com.agical.rmock.core.strategy.impl.FinallyStep.run(FinallyStep.java:19) >> at com.agical.rmock.core.expectation.Engine.runStrategy(Engine.java:142) 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 >> com.agical.rmock.core.hub.ProxySetMethodConnectionStrategy$ConsumableInvocationHandler.invoke(ProxySetMethodConnectionStrategy.java:34) >> at $Proxy8.runStrategy(Unknown Source) at >> com.agical.rmock.extension.junit.AbstractStrategyTestCase.runBare(AbstractStrategyTestCase.java:112) >> at junit.framework.TestResult$1.protect(TestResult.java:106) at >> junit.framework.TestResult.runProtected(TestResult.java:124) at >> junit.framework.TestResult.run(TestResult.java:109) at >> junit.framework.TestCase.run(TestCase.java:118) at >> junit.framework.TestSuite.runTest(TestSuite.java:208) at >> junit.framework.TestSuite.run(TestSuite.java:203) 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.junit.JUnitTestSet.execute(JUnitTestSet.java:213) >> at >> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138) >> at >> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125) >> at org.apache.maven.surefire.Surefire.run(Surefire.java:132) 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:290) >> at >> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818) >> >> >> >> >> >> -- >> Best Regards, >> >> Delos >> > > > > -- > Ivan > -- Best Regards, Delos
