Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-18910

Fix TestPermissionHierarchyFileSystemChanges.testRootlessItems random failure

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: 8.2-SNAPSHOT
    • Component/s: Core, Nuxeo Drive

      Description

      Seen:

      java.lang.AssertionError: expected:<1> but was:<0>
      	at org.junit.Assert.fail(Assert.java:88)
      	at org.junit.Assert.failNotEquals(Assert.java:743)
      	at org.junit.Assert.assertEquals(Assert.java:118)
      	at org.junit.Assert.assertEquals(Assert.java:555)
      	at org.junit.Assert.assertEquals(Assert.java:542)
      	at org.nuxeo.drive.hierarchy.permission.TestPermissionHierarchyFileSystemChanges.testRootlessItems(TestPermissionHierarchyFileSystemChanges.java:313)
      

      Standard Output

      11:09:05,245 ERROR [AbstractWork] Exception during work: ListenerWork(Listener auditLoggerListener [documentModified/93cc3f19-93af-45c7-afe3-deca7d9838c6, rootRegistered/93cc3f19-93af-45c7-afe3-deca7d9838c6], Progress(?%, ?/0), null)
      org.nuxeo.ecm.core.api.NuxeoException: Cannot connect to database: test
      	at org.nuxeo.ecm.core.storage.sql.jdbc.JDBCConnection.openConnections(JDBCConnection.java:147)
      	at org.nuxeo.ecm.core.storage.sql.jdbc.JDBCMapper.connect(JDBCMapper.java:1386)
      	at org.nuxeo.ecm.core.storage.sql.jdbc.JDBCBackend.newMapper(JDBCBackend.java:215)
      	at org.nuxeo.ecm.core.storage.sql.RepositoryImpl.newMapper(RepositoryImpl.java:269)
      	at org.nuxeo.ecm.core.storage.sql.RepositoryImpl.getConnection(RepositoryImpl.java:251)
      	at org.nuxeo.ecm.core.storage.sql.ra.ManagedConnectionFactoryImpl.initialize(ManagedConnectionFactoryImpl.java:277)
      	at org.nuxeo.ecm.core.storage.sql.ra.ManagedConnectionFactoryImpl.createManagedConnection(ManagedConnectionFactoryImpl.java:184)
      	at org.apache.geronimo.connector.outbound.MCFConnectionInterceptor.getConnection(MCFConnectionInterceptor.java:49)
      	at org.apache.geronimo.connector.outbound.XAResourceInsertionInterceptor.getConnection(XAResourceInsertionInterceptor.java:41)
      	at org.apache.geronimo.connector.outbound.SinglePoolMatchAllConnectionInterceptor.internalGetConnection(SinglePoolMatchAllConnectionInterceptor.java:88)
      	at org.apache.geronimo.connector.outbound.AbstractSinglePoolConnectionInterceptor.getConnection(AbstractSinglePoolConnectionInterceptor.java:80)
      	at org.apache.geronimo.connector.outbound.ThreadLocalCachingConnectionInterceptor.getConnection(ThreadLocalCachingConnectionInterceptor.java:70)
      	at org.apache.geronimo.connector.outbound.TransactionEnlistingInterceptor.getConnection(TransactionEnlistingInterceptor.java:49)
      	at org.apache.geronimo.connector.outbound.TransactionCachingInterceptor.getConnection(TransactionCachingInterceptor.java:101)
      	at org.apache.geronimo.connector.outbound.ConnectionHandleInterceptor.getConnection(ConnectionHandleInterceptor.java:43)
      	at org.apache.geronimo.connector.outbound.TCCLInterceptor.getConnection(TCCLInterceptor.java:39)
      	at org.apache.geronimo.connector.outbound.ConnectionTrackingInterceptor.getConnection(ConnectionTrackingInterceptor.java:66)
      	at org.apache.geronimo.connector.outbound.AbstractConnectionManager.allocateConnection(AbstractConnectionManager.java:77)
      	at org.nuxeo.runtime.jtajca.NuxeoContainer$ConnectionManagerWrapper.allocateConnection(NuxeoContainer.java:851)
      	at org.nuxeo.ecm.core.storage.sql.ra.ConnectionFactoryImpl.getConnection(ConnectionFactoryImpl.java:103)
      	at org.nuxeo.ecm.core.storage.sql.ra.ConnectionFactoryImpl.getSession(ConnectionFactoryImpl.java:166)
      	at org.nuxeo.ecm.core.repository.RepositoryService.getSession(RepositoryService.java:223)
      	at org.nuxeo.ecm.core.api.local.LocalSession.createSession(LocalSession.java:123)
      	at org.nuxeo.ecm.core.api.local.LocalSession.connect(LocalSession.java:89)
      	at org.nuxeo.ecm.core.api.CoreInstance.acquireCoreSession(CoreInstance.java:194)
      	at org.nuxeo.ecm.core.api.CoreInstance.openCoreSession(CoreInstance.java:186)
      	at org.nuxeo.ecm.core.api.CoreInstance.openCoreSessionSystem(CoreInstance.java:113)
      	at org.nuxeo.ecm.core.event.impl.ReconnectedEventBundleImpl.getReconnectedCoreSession(ReconnectedEventBundleImpl.java:93)
      	at org.nuxeo.ecm.core.event.impl.ReconnectedEventBundleImpl.getReconnectedEvents(ReconnectedEventBundleImpl.java:111)
      	at org.nuxeo.ecm.core.event.impl.ReconnectedEventBundleImpl.iterator(ReconnectedEventBundleImpl.java:222)
      	at org.nuxeo.ecm.platform.audit.service.DefaultAuditBackend.logEvents(DefaultAuditBackend.java:319)
      	at org.nuxeo.ecm.platform.audit.service.DefaultAuditBackend$16.runWith(DefaultAuditBackend.java:303)
      	at org.nuxeo.ecm.core.persistence.PersistenceProvider.run(PersistenceProvider.java:188)
      	at org.nuxeo.ecm.platform.audit.service.DefaultAuditBackend.logEvents(DefaultAuditBackend.java:300)
      	at org.nuxeo.ecm.platform.audit.listener.AuditEventLogger.handleEvent(AuditEventLogger.java:54)
      	at org.nuxeo.ecm.core.event.impl.AsyncEventExecutor$ListenerWork.work(AsyncEventExecutor.java:177)
      	at org.nuxeo.ecm.core.work.AbstractWork.runWorkWithTransaction(AbstractWork.java:416)
      	at org.nuxeo.ecm.core.work.AbstractWork.runWorkWithTransactionAndCheckExceptions(AbstractWork.java:377)
      	at org.nuxeo.ecm.core.work.AbstractWork.run(AbstractWork.java:338)
      	at org.nuxeo.ecm.core.work.WorkHolder.run(WorkHolder.java:54)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: java.sql.SQLException: Cannot find datasource: repository_test
      	at org.nuxeo.runtime.datasource.ConnectionHelper.getDataSource(ConnectionHelper.java:898)
      	at org.nuxeo.runtime.datasource.ConnectionHelper.getConnection(ConnectionHelper.java:828)
      	at org.nuxeo.ecm.core.storage.sql.jdbc.JDBCConnection.openBaseConnection(JDBCConnection.java:154)
      	at org.nuxeo.ecm.core.storage.sql.jdbc.JDBCConnection.openConnections(JDBCConnection.java:143)
      	... 42 more
      Caused by: javax.naming.NameNotFoundException: repository_test not found in container
      	at org.nuxeo.runtime.datasource.DataSourceHelper.getDataSource(DataSourceHelper.java:99)
      	at org.nuxeo.runtime.datasource.DataSourceHelper.getDataSource(DataSourceHelper.java:85)
      	at org.nuxeo.runtime.datasource.ConnectionHelper.getDataSource(ConnectionHelper.java:888)
      	... 45 more
      11:09:05,249 ERROR [AsyncEventExecutor$ListenerWork] Failed to execute async event test on listener auditLoggerListener
      org.nuxeo.ecm.core.api.NuxeoException: Cannot connect to database: test
      	at org.nuxeo.ecm.core.storage.sql.jdbc.JDBCConnection.openConnections(JDBCConnection.java:147)
      	at org.nuxeo.ecm.core.storage.sql.jdbc.JDBCMapper.connect(JDBCMapper.java:1386)
      	at org.nuxeo.ecm.core.storage.sql.jdbc.JDBCBackend.newMapper(JDBCBackend.java:215)
      	at org.nuxeo.ecm.core.storage.sql.RepositoryImpl.newMapper(RepositoryImpl.java:269)
      	at org.nuxeo.ecm.core.storage.sql.RepositoryImpl.getConnection(RepositoryImpl.java:251)
      	at org.nuxeo.ecm.core.storage.sql.ra.ManagedConnectionFactoryImpl.initialize(ManagedConnectionFactoryImpl.java:277)
      	at org.nuxeo.ecm.core.storage.sql.ra.ManagedConnectionFactoryImpl.createManagedConnection(ManagedConnectionFactoryImpl.java:184)
      	at org.apache.geronimo.connector.outbound.MCFConnectionInterceptor.getConnection(MCFConnectionInterceptor.java:49)
      	at org.apache.geronimo.connector.outbound.XAResourceInsertionInterceptor.getConnection(XAResourceInsertionInterceptor.java:41)
      	at org.apache.geronimo.connector.outbound.SinglePoolMatchAllConnectionInterceptor.internalGetConnection(SinglePoolMatchAllConnectionInterceptor.java:88)
      	at org.apache.geronimo.connector.outbound.AbstractSinglePoolConnectionInterceptor.getConnection(AbstractSinglePoolConnectionInterceptor.java:80)
      	at org.apache.geronimo.connector.outbound.ThreadLocalCachingConnectionInterceptor.getConnection(ThreadLocalCachingConnectionInterceptor.java:70)
      	at org.apache.geronimo.connector.outbound.TransactionEnlistingInterceptor.getConnection(TransactionEnlistingInterceptor.java:49)
      	at org.apache.geronimo.connector.outbound.TransactionCachingInterceptor.getConnection(TransactionCachingInterceptor.java:101)
      	at org.apache.geronimo.connector.outbound.ConnectionHandleInterceptor.getConnection(ConnectionHandleInterceptor.java:43)
      	at org.apache.geronimo.connector.outbound.TCCLInterceptor.getConnection(TCCLInterceptor.java:39)
      	at org.apache.geronimo.connector.outbound.ConnectionTrackingInterceptor.getConnection(ConnectionTrackingInterceptor.java:66)
      	at org.apache.geronimo.connector.outbound.AbstractConnectionManager.allocateConnection(AbstractConnectionManager.java:77)
      	at org.nuxeo.runtime.jtajca.NuxeoContainer$ConnectionManagerWrapper.allocateConnection(NuxeoContainer.java:851)
      	at org.nuxeo.ecm.core.storage.sql.ra.ConnectionFactoryImpl.getConnection(ConnectionFactoryImpl.java:103)
      	at org.nuxeo.ecm.core.storage.sql.ra.ConnectionFactoryImpl.getSession(ConnectionFactoryImpl.java:166)
      	at org.nuxeo.ecm.core.repository.RepositoryService.getSession(RepositoryService.java:223)
      	at org.nuxeo.ecm.core.api.local.LocalSession.createSession(LocalSession.java:123)
      	at org.nuxeo.ecm.core.api.local.LocalSession.connect(LocalSession.java:89)
      	at org.nuxeo.ecm.core.api.CoreInstance.acquireCoreSession(CoreInstance.java:194)
      	at org.nuxeo.ecm.core.api.CoreInstance.openCoreSession(CoreInstance.java:186)
      	at org.nuxeo.ecm.core.api.CoreInstance.openCoreSessionSystem(CoreInstance.java:113)
      	at org.nuxeo.ecm.core.event.impl.ReconnectedEventBundleImpl.getReconnectedCoreSession(ReconnectedEventBundleImpl.java:93)
      	at org.nuxeo.ecm.core.event.impl.ReconnectedEventBundleImpl.getReconnectedEvents(ReconnectedEventBundleImpl.java:111)
      	at org.nuxeo.ecm.core.event.impl.ReconnectedEventBundleImpl.iterator(ReconnectedEventBundleImpl.java:222)
      	at org.nuxeo.ecm.platform.audit.service.DefaultAuditBackend.logEvents(DefaultAuditBackend.java:319)
      	at org.nuxeo.ecm.platform.audit.service.DefaultAuditBackend$16.runWith(DefaultAuditBackend.java:303)
      	at org.nuxeo.ecm.core.persistence.PersistenceProvider.run(PersistenceProvider.java:188)
      	at org.nuxeo.ecm.platform.audit.service.DefaultAuditBackend.logEvents(DefaultAuditBackend.java:300)
      	at org.nuxeo.ecm.platform.audit.listener.AuditEventLogger.handleEvent(AuditEventLogger.java:54)
      	at org.nuxeo.ecm.core.event.impl.AsyncEventExecutor$ListenerWork.work(AsyncEventExecutor.java:177)
      	at org.nuxeo.ecm.core.work.AbstractWork.runWorkWithTransaction(AbstractWork.java:416)
      	at org.nuxeo.ecm.core.work.AbstractWork.runWorkWithTransactionAndCheckExceptions(AbstractWork.java:377)
      	at org.nuxeo.ecm.core.work.AbstractWork.run(AbstractWork.java:338)
      	at org.nuxeo.ecm.core.work.WorkHolder.run(WorkHolder.java:54)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: java.sql.SQLException: Cannot find datasource: repository_test
      	at org.nuxeo.runtime.datasource.ConnectionHelper.getDataSource(ConnectionHelper.java:898)
      	at org.nuxeo.runtime.datasource.ConnectionHelper.getConnection(ConnectionHelper.java:828)
      	at org.nuxeo.ecm.core.storage.sql.jdbc.JDBCConnection.openBaseConnection(JDBCConnection.java:154)
      	at org.nuxeo.ecm.core.storage.sql.jdbc.JDBCConnection.openConnections(JDBCConnection.java:143)
      	... 42 more
      Caused by: javax.naming.NameNotFoundException: repository_test not found in container
      	at org.nuxeo.runtime.datasource.DataSourceHelper.getDataSource(DataSourceHelper.java:99)
      	at org.nuxeo.runtime.datasource.DataSourceHelper.getDataSource(DataSourceHelper.java:85)
      	at org.nuxeo.runtime.datasource.ConnectionHelper.getDataSource(ConnectionHelper.java:888)
      	... 45 more
      11:09:05,252 ERROR [WorkManagerImpl$NamedThreadFactory$1] Uncaught error on thread Nuxeo-Work-audit-1
      org.nuxeo.ecm.core.api.NuxeoException: Cannot connect to database: test
      	at org.nuxeo.ecm.core.storage.sql.jdbc.JDBCConnection.openConnections(JDBCConnection.java:147)
      	at org.nuxeo.ecm.core.storage.sql.jdbc.JDBCMapper.connect(JDBCMapper.java:1386)
      	at org.nuxeo.ecm.core.storage.sql.jdbc.JDBCBackend.newMapper(JDBCBackend.java:215)
      	at org.nuxeo.ecm.core.storage.sql.RepositoryImpl.newMapper(RepositoryImpl.java:269)
      	at org.nuxeo.ecm.core.storage.sql.RepositoryImpl.getConnection(RepositoryImpl.java:251)
      	at org.nuxeo.ecm.core.storage.sql.ra.ManagedConnectionFactoryImpl.initialize(ManagedConnectionFactoryImpl.java:277)
      	at org.nuxeo.ecm.core.storage.sql.ra.ManagedConnectionFactoryImpl.createManagedConnection(ManagedConnectionFactoryImpl.java:184)
      	at org.apache.geronimo.connector.outbound.MCFConnectionInterceptor.getConnection(MCFConnectionInterceptor.java:49)
      	at org.apache.geronimo.connector.outbound.XAResourceInsertionInterceptor.getConnection(XAResourceInsertionInterceptor.java:41)
      	at org.apache.geronimo.connector.outbound.SinglePoolMatchAllConnectionInterceptor.internalGetConnection(SinglePoolMatchAllConnectionInterceptor.java:88)
      	at org.apache.geronimo.connector.outbound.AbstractSinglePoolConnectionInterceptor.getConnection(AbstractSinglePoolConnectionInterceptor.java:80)
      	at org.apache.geronimo.connector.outbound.ThreadLocalCachingConnectionInterceptor.getConnection(ThreadLocalCachingConnectionInterceptor.java:70)
      	at org.apache.geronimo.connector.outbound.TransactionEnlistingInterceptor.getConnection(TransactionEnlistingInterceptor.java:49)
      	at org.apache.geronimo.connector.outbound.TransactionCachingInterceptor.getConnection(TransactionCachingInterceptor.java:101)
      	at org.apache.geronimo.connector.outbound.ConnectionHandleInterceptor.getConnection(ConnectionHandleInterceptor.java:43)
      	at org.apache.geronimo.connector.outbound.TCCLInterceptor.getConnection(TCCLInterceptor.java:39)
      	at org.apache.geronimo.connector.outbound.ConnectionTrackingInterceptor.getConnection(ConnectionTrackingInterceptor.java:66)
      	at org.apache.geronimo.connector.outbound.AbstractConnectionManager.allocateConnection(AbstractConnectionManager.java:77)
      	at org.nuxeo.runtime.jtajca.NuxeoContainer$ConnectionManagerWrapper.allocateConnection(NuxeoContainer.java:851)
      	at org.nuxeo.ecm.core.storage.sql.ra.ConnectionFactoryImpl.getConnection(ConnectionFactoryImpl.java:103)
      	at org.nuxeo.ecm.core.storage.sql.ra.ConnectionFactoryImpl.getSession(ConnectionFactoryImpl.java:166)
      	at org.nuxeo.ecm.core.repository.RepositoryService.getSession(RepositoryService.java:223)
      	at org.nuxeo.ecm.core.api.local.LocalSession.createSession(LocalSession.java:123)
      	at org.nuxeo.ecm.core.api.local.LocalSession.connect(LocalSession.java:89)
      	at org.nuxeo.ecm.core.api.CoreInstance.acquireCoreSession(CoreInstance.java:194)
      	at org.nuxeo.ecm.core.api.CoreInstance.openCoreSession(CoreInstance.java:186)
      	at org.nuxeo.ecm.core.api.CoreInstance.openCoreSessionSystem(CoreInstance.java:113)
      	at org.nuxeo.ecm.core.event.impl.ReconnectedEventBundleImpl.getReconnectedCoreSession(ReconnectedEventBundleImpl.java:93)
      	at org.nuxeo.ecm.core.event.impl.ReconnectedEventBundleImpl.getReconnectedEvents(ReconnectedEventBundleImpl.java:111)
      	at org.nuxeo.ecm.core.event.impl.ReconnectedEventBundleImpl.iterator(ReconnectedEventBundleImpl.java:222)
      	at org.nuxeo.ecm.platform.audit.service.DefaultAuditBackend.logEvents(DefaultAuditBackend.java:319)
      	at org.nuxeo.ecm.platform.audit.service.DefaultAuditBackend$16.runWith(DefaultAuditBackend.java:303)
      	at org.nuxeo.ecm.core.persistence.PersistenceProvider.run(PersistenceProvider.java:188)
      	at org.nuxeo.ecm.platform.audit.service.DefaultAuditBackend.logEvents(DefaultAuditBackend.java:300)
      	at org.nuxeo.ecm.platform.audit.listener.AuditEventLogger.handleEvent(AuditEventLogger.java:54)
      	at org.nuxeo.ecm.core.event.impl.AsyncEventExecutor$ListenerWork.work(AsyncEventExecutor.java:177)
      	at org.nuxeo.ecm.core.work.AbstractWork.runWorkWithTransaction(AbstractWork.java:416)
      	at org.nuxeo.ecm.core.work.AbstractWork.runWorkWithTransactionAndCheckExceptions(AbstractWork.java:377)
      	at org.nuxeo.ecm.core.work.AbstractWork.run(AbstractWork.java:338)
      	at org.nuxeo.ecm.core.work.WorkHolder.run(WorkHolder.java:54)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: java.sql.SQLException: Cannot find datasource: repository_test
      	at org.nuxeo.runtime.datasource.ConnectionHelper.getDataSource(ConnectionHelper.java:898)
      	at org.nuxeo.runtime.datasource.ConnectionHelper.getConnection(ConnectionHelper.java:828)
      	at org.nuxeo.ecm.core.storage.sql.jdbc.JDBCConnection.openBaseConnection(JDBCConnection.java:154)
      	at org.nuxeo.ecm.core.storage.sql.jdbc.JDBCConnection.openConnections(JDBCConnection.java:143)
      	... 42 more
      Caused by: javax.naming.NameNotFoundException: repository_test not found in container
      	at org.nuxeo.runtime.datasource.DataSourceHelper.getDataSource(DataSourceHelper.java:99)
      	at org.nuxeo.runtime.datasource.DataSourceHelper.getDataSource(DataSourceHelper.java:85)
      	at org.nuxeo.runtime.datasource.ConnectionHelper.getDataSource(ConnectionHelper.java:888)
      	... 45 more
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: