directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Karasulu <akaras...@gmail.com>
Subject Re: I need someone using Windows to test a fix for DIRSERVER-1348
Date Sat, 02 May 2009 18:27:08 GMT
Looks like timing dependent code to me.  You're stuff did go real slow too.
Might be a sloppy test case.

On Sat, May 2, 2009 at 2:23 PM, Emmanuel Lecharny <elecharny@apache.org>wrote:

> I just run the trunk on Windows (the computer is a dog, it took 45
> minutes to build), and I got this error (see below). Seems like we
> have issues in the kerberos package on windows (java 1.6.0_13)
>
>
> -------------------------------------------------------------------------------
> Test set:
> org.apache.directory.server.kerberos.protocol.TicketGrantingServiceTest
>
> -------------------------------------------------------------------------------
> Tests run: 37, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.171
> sec <<< FAILURE!
>
> testStartTimeMinimumNeverValid(org.apache.directory.server.kerberos.protocol.TicketGrantingServiceTest)
>  Time elapsed: 0.016 sec  <<< FAILURE!
> java.lang.AssertionError: Requested start time is later than end time
> expected:<11> but was:<33>
>        at org.junit.Assert.fail(Assert.java:74)
>        at org.junit.Assert.failNotEquals(Assert.java:448)
>        at org.junit.Assert.assertEquals(Assert.java:102)
>        at org.junit.Assert.assertEquals(Assert.java:323)
>        at
> org.apache.directory.server.kerberos.protocol.TicketGrantingServiceTest.testStartTimeMinimumNeverValid(TicketGrantingServiceTest.java:1187)
>         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.junit.internal.runners.TestMethod.invoke(TestMethod.java:59)
>        at
> org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98)
>        at
> org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79)
>        at
> org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87)
>        at
> org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)
>        at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)
>        at
> org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)
>        at
> org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
>        at
> org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
>        at
> org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
>        at
> org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
>        at
> org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
>        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: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: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:345)
>        at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
>
>
>
> On Fri, May 1, 2009 at 1:39 PM, Ashish <paliwalashish@gmail.com> wrote:
> >> Much better ! Which JVM are you using ?
> >
> > java version "1.6.0_10-rc"
> > Java(TM) SE Runtime Environment (build 1.6.0_10-rc-b28)
> > Java HotSpot(TM) Client VM (build 11.0-b15, mixed mode, sharing)
> >
> >>
> >> Can you provide the
> >>
> C:\Projects\opensource\apacheds\protocol-kerberos\target\surefire-reports\testPreAuthenticationFlag(org.apache.directory.server.kerberos.protocol.TicketGrantingServiceTest.txt
> >> file ?
> >
> > This is the content (complete folder is attached)
> >
> >
> -------------------------------------------------------------------------------
> > Test set:
> org.apache.directory.server.kerberos.protocol.TicketGrantingServiceTest
> >
> -------------------------------------------------------------------------------
> > Tests run: 37, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.516
> > sec <<< FAILURE!
> >
> testPreAuthenticationFlag(org.apache.directory.server.kerberos.protocol.TicketGrantingServiceTest)
> >  Time elapsed: 0.015 sec  <<< ERROR!
> > java.lang.ClassCastException:
> > org.apache.directory.server.kerberos.shared.messages.ErrorMessage
> > cannot be cast to
> > org.apache.directory.server.kerberos.shared.messages.TicketGrantReply
> >        at
> org.apache.directory.server.kerberos.protocol.TicketGrantingServiceTest.testPreAuthenticationFlag(TicketGrantingServiceTest.java:1359)
> >        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.junit.internal.runners.TestMethod.invoke(TestMethod.java:59)
> >        at
> org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98)
> >        at
> org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79)
> >        at
> org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87)
> >        at
> org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)
> >        at
> org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)
> >        at
> org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)
> >        at
> org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
> >        at
> org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
> >        at
> org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
> >        at
> org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
> >        at
> org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
> >        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: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: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:345)
> >        at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
> >
> >
> > --
> > thanks
> > ashish
> >
> > Blog: http://www.ashishpaliwal.com/blog
> > My Photo Galleries: http://www.pbase.com/ashishpaliwal
> >
>
>
>
> --
> Regards,
> Cordialement,
> Emmanuel L├ęcharny
> www.iktek.com
>



-- 
Alex Karasulu
My Blog :: http://www.jroller.com/akarasulu/
Apache Directory Server :: http://directory.apache.org
Apache MINA :: http://mina.apache.org

Mime
View raw message