[gatein-issues] [JBoss JIRA] (GTNPORTAL-2944) Some of the token unit tests are randomly failed sometimes

Trong Tran (JIRA) jira-events at lists.jboss.org
Wed Apr 24 23:50:53 EDT 2013


    [ https://issues.jboss.org/browse/GTNPORTAL-2944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12770035#comment-12770035 ] 

Trong Tran commented on GTNPORTAL-2944:
---------------------------------------

I believe that the cleaning up expired tokens by a thread is leading to these exceptions
                
> Some of the token unit tests are randomly failed sometimes
> ----------------------------------------------------------
>
>                 Key: GTNPORTAL-2944
>                 URL: https://issues.jboss.org/browse/GTNPORTAL-2944
>             Project: GateIn Portal
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 3.6.0.Beta01
>            Reporter: Trong Tran
>            Assignee: Trong Tran
>              Labels: portal-s70
>             Fix For: 3.6.0.Beta02
>
>
> The following are some of unit tests failed sometimes that we have got :
> {code}
> Running unit test:testDuplicatedTokenGeneration
> 14:07:46,024 ERROR TestSimpleGeneratorService:103 - Unit test testDuplicatedTokenGeneration did not complete
> java.lang.NullPointerException
> 	at org.exoplatform.web.security.TestSimpleGeneratorService.testDuplicatedTokenGeneration(TestSimpleGeneratorService.java:80)
> 	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)
> {code}
> {code}
> Running unit test:testCleanExpiredTokens
> 19:58:45,167 ERROR TestGadgetTokenInfoService:103 - Unit test testCleanExpiredTokens did not complete
> junit.framework.AssertionFailedError: expected:<0> but was:<1>
> 	at junit.framework.Assert.fail(Assert.java:50)
> 	at junit.framework.Assert.failNotEquals(Assert.java:287)
> 	at junit.framework.Assert.assertEquals(Assert.java:67)
> 	at junit.framework.Assert.assertEquals(Assert.java:134)
> 	at junit.framework.Assert.assertEquals(Assert.java:140)
> 	at org.exoplatform.portal.gadget.TestGadgetTokenInfoService.testCleanExpiredTokens(TestGadgetTokenInfoService.java:147)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> {code}
> {code}
> Running unit test:testCleanExpiredTokens
> 02:46:41,188 ERROR TestPlainCookieTokenService:103 - Unit test testCleanExpiredTokens did not complete
> junit.framework.AssertionFailedError: expected:<0> but was:<1>
> 	at junit.framework.Assert.fail(Assert.java:50)
> 	at junit.framework.Assert.failNotEquals(Assert.java:287)
> 	at junit.framework.Assert.assertEquals(Assert.java:67)
> 	at junit.framework.Assert.assertEquals(Assert.java:134)
> 	at junit.framework.Assert.assertEquals(Assert.java:140)
> 	at org.exoplatform.web.security.AbstractCookieTokenServiceTest.testCleanExpiredTokens(AbstractCookieTokenServiceTest.java:89)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the gatein-issues mailing list