You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2012/11/14 17:26:14 UTC

[jira] [Updated] (SLING-2638) Unclosed Session Detected causing later tests to fail

     [ https://issues.apache.org/jira/browse/SLING-2638?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler updated SLING-2638:
------------------------------------

    Affects Version/s:     (was: JCR Base 2.1.2)
                       JCR Resource 2.2.0
    
> Unclosed Session Detected causing later tests to fail
> -----------------------------------------------------
>
>                 Key: SLING-2638
>                 URL: https://issues.apache.org/jira/browse/SLING-2638
>             Project: Sling
>          Issue Type: Bug
>          Components: JCR
>    Affects Versions: JCR Resource 2.2.0
>         Environment: JDK 1.5 on the CI server
>            Reporter: Ian Boston
>            Assignee: Carsten Ziegeler
>
> An unclosed session in test JcrResourceListenerTest [1] which passes, causes an unclosed session to be detected in the next test JcrModifiablePropertyMapTest.testInputStream[2] which then causes all subsequent tests in this module to tail.
> This does not happen all the time and is not easy to reproduce locally.
> 1 https://builds.apache.org/job/sling-trunk-1.5/org.apache.sling$org.apache.sling.jcr.resource/1835/testReport/junit/org.apache.sling.jcr.resource.internal/JcrResourceListenerTest/testDefaultWorkspace/
> 2 https://builds.apache.org/job/sling-trunk-1.5/org.apache.sling$org.apache.sling.jcr.resource/1835/testReport/org.apache.sling.jcr.resource.internal/JcrModifiablePropertyMapTest/testInputStream/
> Key Stack trace (just incase the CI gets wiped)
> java.lang.AssertionError
> 	at org.apache.jackrabbit.core.TransientRepository.startRepository(TransientRepository.java:277)
> 	at org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:375)
> 	at org.apache.sling.commons.testing.jcr.RepositoryUtil$RepositoryWrapper.login(RepositoryUtil.java:189)
> 	at org.apache.sling.commons.testing.jcr.RepositoryUtil$RepositoryWrapper.loginAdministrative(RepositoryUtil.java:210)
> 	at org.apache.sling.commons.testing.jcr.RepositoryTestBase.getSession(RepositoryTestBase.java:62)
> 	at org.apache.sling.jcr.resource.internal.JcrPropertyMapTest.setUp(JcrPropertyMapTest.java:56)
> 	at org.apache.sling.jcr.resource.internal.JcrModifiablePropertyMapTest.setUp(JcrModifiablePropertyMapTest.java:48)
> 	at junit.framework.TestCase.runBare(TestCase.java:132)
> 	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:243)
> 	at junit.framework.TestSuite.run(TestSuite.java:238)
> 	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
> 	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:35)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:115)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:97)
> 	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:592)
> 	at org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103)
> 	at $Proxy0.invoke(Unknown Source)
> 	at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150)
> 	at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:91)
> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69)
> Standard Error
> 53669 [Finalizer] WARN org.apache.jackrabbit.core.SessionImpl - Unclosed session detected. The session was opened here: 
> java.lang.Exception: Stack Trace
> 	at org.apache.jackrabbit.core.SessionImpl.<init>(SessionImpl.java:237)
> 	at org.apache.jackrabbit.core.SessionImpl.<init>(SessionImpl.java:259)
> 	at org.apache.jackrabbit.core.XASessionImpl.<init>(XASessionImpl.java:107)
> 	at org.apache.jackrabbit.core.RepositoryImpl.createSessionInstance(RepositoryImpl.java:1602)
> 	at org.apache.jackrabbit.core.RepositoryImpl.createSession(RepositoryImpl.java:1010)
> 	at org.apache.jackrabbit.core.RepositoryImpl.login(RepositoryImpl.java:1500)
> 	at org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:380)
> 	at org.apache.sling.commons.testing.jcr.RepositoryUtil$RepositoryWrapper.login(RepositoryUtil.java:189)
> 	at org.apache.sling.commons.testing.jcr.RepositoryUtil$RepositoryWrapper.loginAdministrative(RepositoryUtil.java:210)
> 	at org.apache.sling.jcr.resource.internal.JcrResourceListener.<init>(JcrResourceListener.java:117)
> 	at org.apache.sling.jcr.resource.internal.SynchronousJcrResourceListener.<init>(SynchronousJcrResourceListener.java:47)
> 	at org.apache.sling.jcr.resource.internal.JcrResourceListenerTest.generateEvents(JcrResourceListenerTest.java:281)
> 	at org.apache.sling.jcr.resource.internal.JcrResourceListenerTest.testDefaultWorkspace(JcrResourceListenerTest.java:74)
> 	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:592)
> 	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:243)
> 	at junit.framework.TestSuite.run(TestSuite.java:238)
> 	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
> 	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:35)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:115)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:97)
> 	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:592)
> 	at org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103)
> 	at $Proxy0.invoke(Unknown Source)
> 	at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150)
> 	at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:91)
> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69)

--
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