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

Error trying to deploy more than one repository

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.7.2
    • Component/s: Dev Tools

      Description

      On the last build I have an error trying to deploy layoutDemo plugin.
      The issue seems to be tied to the fact that this plugin does declare an additional repository : deployment fails because of a H2 lock.

      23:01:02,547 ERROR [RegistrationInfoImpl] Component notification of application started failed.
      java.lang.RuntimeException: Failed to initialize repository 'layoutDemo': Failed to load repository layoutDemo
      	at org.nuxeo.ecm.core.repository.RepositoryService.initializeRepository(RepositoryService.java:173)
      	at org.nuxeo.ecm.core.repository.RepositoryService.applicationStarted(RepositoryService.java:147)
      	at org.nuxeo.runtime.model.impl.RegistrationInfoImpl.notifyApplicationStarted(RegistrationInfoImpl.java:332)
      	at org.nuxeo.runtime.osgi.OSGiRuntimeService.notifyComponentsOnStarted(OSGiRuntimeService.java:474)
      	at org.nuxeo.runtime.osgi.OSGiRuntimeService.fireApplicationStarted(OSGiRuntimeService.java:513)
      	at org.nuxeo.runtime.osgi.OSGiRuntimeService.frameworkEvent(OSGiRuntimeService.java:523)
      	at org.nuxeo.osgi.OSGiAdapter.fireFrameworkEvent(OSGiAdapter.java:238)
      	at org.nuxeo.osgi.application.loader.FrameworkLoader.doStart(FrameworkLoader.java:232)
      	at org.nuxeo.osgi.application.loader.FrameworkLoader.start(FrameworkLoader.java:112)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:601)
      	at org.nuxeo.osgi.application.FrameworkBootstrap.start(FrameworkBootstrap.java:134)
      	at org.nuxeo.runtime.tomcat.NuxeoLauncher.handleEvent(NuxeoLauncher.java:130)
      	at org.nuxeo.runtime.tomcat.NuxeoLauncher.lifecycleEvent(NuxeoLauncher.java:89)
      	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
      	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4700)
      	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
      	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
      	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
      	at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
      	at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
      	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
      	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
      	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
      	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
      	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
      	at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
      	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
      	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
      	at org.apache.catalina.core.StandardService.start(StandardService.java:525)
      	at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
      	at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:601)
      	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
      	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
      Caused by: org.nuxeo.ecm.core.api.ClientException: Failed to load repository layoutDemo
      	at org.nuxeo.ecm.core.api.local.LocalSession.createSession(LocalSession.java:105)
      	at org.nuxeo.ecm.core.api.local.LocalSession.getSession(LocalSession.java:170)
      	at org.nuxeo.ecm.core.api.AbstractSession.connect(AbstractSession.java:244)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:601)
      	at org.nuxeo.ecm.core.api.TransactionalCoreSessionWrapper.invoke(TransactionalCoreSessionWrapper.java:133)
      	at sun.proxy.$Proxy44.connect(Unknown Source)
      	at org.nuxeo.ecm.core.api.repository.Repository.open(Repository.java:155)
      	at org.nuxeo.ecm.core.api.repository.Repository.open(Repository.java:113)
      	at org.nuxeo.ecm.core.api.UnrestrictedSessionRunner.runUnrestricted(UnrestrictedSessionRunner.java:140)
      	at org.nuxeo.ecm.core.repository.RepositoryService.initializeRepository(RepositoryService.java:166)
      	... 39 more
      Caused by: org.nuxeo.ecm.core.api.DocumentException: org.nuxeo.ecm.core.storage.StorageException: Could not select: SELECT "ID" FROM "REPOSITORIES" WHERE "NAME" = ?
      	at org.nuxeo.ecm.core.storage.sql.coremodel.SQLRepository.getSession(SQLRepository.java:100)
      	at org.nuxeo.ecm.core.api.local.LocalSession.createSession(LocalSession.java:103)
      	... 51 more
      Caused by: org.nuxeo.ecm.core.storage.StorageException: Could not select: SELECT "ID" FROM "REPOSITORIES" WHERE "NAME" = ?
      	at org.nuxeo.ecm.core.storage.sql.jdbc.JDBCMapper.getRootId(JDBCMapper.java:630)
      	at org.nuxeo.ecm.core.storage.sql.SoftRefCachingMapper.getRootId(SoftRefCachingMapper.java:81)
      	at org.nuxeo.ecm.core.storage.sql.SessionImpl.computeRootNode(SessionImpl.java:1252)
      	at org.nuxeo.ecm.core.storage.sql.SessionImpl.<init>(SessionImpl.java:152)
      	at org.nuxeo.ecm.core.storage.sql.RepositoryImpl.newSession(RepositoryImpl.java:439)
      	at org.nuxeo.ecm.core.storage.sql.RepositoryImpl.getConnection(RepositoryImpl.java:429)
      	at org.nuxeo.ecm.core.storage.sql.RepositoryImpl.getConnection(RepositoryImpl.java:380)
      	at org.nuxeo.ecm.core.storage.sql.coremodel.SQLRepository.getSession(SQLRepository.java:98)
      	... 52 more
      Caused by: org.h2.jdbc.JdbcSQLException: Timeout trying to lock table REPOSITORIES; SQL statement:
      SELECT "ID" FROM "REPOSITORIES" WHERE "NAME" = ? [50200-114]
      	at org.h2.message.Message.getSQLException(Message.java:105)
      	at org.h2.message.Message.getSQLException(Message.java:116)
      	at org.h2.message.Message.getSQLException(Message.java:75)
      	at org.h2.table.TableData.doLock(TableData.java:435)
      	at org.h2.table.TableData.lock(TableData.java:373)
      	at org.h2.table.TableFilter.lock(TableFilter.java:110)
      	at org.h2.command.dml.Select.queryWithoutCache(Select.java:549)
      	at org.h2.command.dml.Query.query(Query.java:234)
      	at org.h2.command.CommandContainer.query(CommandContainer.java:82)
      	at org.h2.command.Command.executeQueryLocal(Command.java:142)
      	at org.h2.command.Command.executeQuery(Command.java:123)
      	at org.h2.jdbc.JdbcPreparedStatement.executeQuery(JdbcPreparedStatement.java:98)
      	at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
      	at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
      	at org.nuxeo.ecm.core.storage.sql.jdbc.JDBCMapper.getRootId(JDBCMapper.java:606)
      	... 59 more
      
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: