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

Fix MongoDB pool error in logs while hot-reloading Studio project

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 9.2-SNAPSHOT
    • Fix Version/s: None
    • Component/s: Core MongoDB

      Description

      When I hot-reloaded my Studio project customizations on my nuxeo-server-9.2-I20170629_0126-tomcat, I got this error in the logs:

      15:05:01,908 ERROR [AbstractWork] Exception during work: UpdateACEStatusWork(, Progress(?%, ?/0), Updating ACE status)
      java.lang.IllegalStateException: The pool is closed
      	at com.mongodb.internal.connection.ConcurrentPool.get(ConcurrentPool.java:123)
      	at com.mongodb.connection.DefaultConnectionPool.getPooledConnection(DefaultConnectionPool.java:257)
      	at com.mongodb.connection.DefaultConnectionPool.get(DefaultConnectionPool.java:98)
      	at com.mongodb.connection.DefaultConnectionPool.get(DefaultConnectionPool.java:87)
      	at com.mongodb.connection.DefaultServer.getConnection(DefaultServer.java:86)
      	at com.mongodb.binding.ClusterBinding$ClusterBindingConnectionSource.getConnection(ClusterBinding.java:86)
      	at com.mongodb.operation.OperationHelper.withConnectionSource(OperationHelper.java:239)
      	at com.mongodb.operation.OperationHelper.withConnection(OperationHelper.java:214)
      	at com.mongodb.operation.FindOperation.execute(FindOperation.java:483)
      	at com.mongodb.operation.FindOperation.execute(FindOperation.java:80)
      	at com.mongodb.Mongo.execute(Mongo.java:818)
      	at com.mongodb.Mongo$2.execute(Mongo.java:805)
      	at com.mongodb.DBCursor.initializeCursor(DBCursor.java:851)
      	at com.mongodb.DBCursor.hasNext(DBCursor.java:152)
      	at org.nuxeo.ecm.core.storage.mongodb.MongoDBRepository.queryAndFetch(MongoDBRepository.java:587)
      	at org.nuxeo.ecm.core.storage.dbs.DBSCachingRepository.queryAndFetch(DBSCachingRepository.java:362)
      	at org.nuxeo.ecm.core.storage.dbs.DBSSession.doQueryAndFetch(DBSSession.java:1517)
      	at org.nuxeo.ecm.core.storage.dbs.DBSSession.queryAndFetch(DBSSession.java:1656)
      	at sun.reflect.GeneratedMethodAccessor132.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.nuxeo.ecm.core.storage.dbs.DBSRepositoryBase$DBSSessionInvoker.invoke(DBSRepositoryBase.java:487)
      	at com.sun.proxy.$Proxy65.queryAndFetch(Unknown Source)
      	at org.nuxeo.ecm.core.api.AbstractSession.queryAndFetch(AbstractSession.java:1243)
      	at org.nuxeo.ecm.core.api.AbstractSession.queryAndFetch(AbstractSession.java:1228)
      	at org.nuxeo.ecm.core.security.UpdateACEStatusWork.work(UpdateACEStatusWork.java:83)
      	at org.nuxeo.ecm.core.work.AbstractWork.runWorkWithTransaction(AbstractWork.java:373)
      	at org.nuxeo.ecm.core.work.AbstractWork.run(AbstractWork.java:332)
      	at org.nuxeo.ecm.core.work.WorkHolder.run(WorkHolder.java:57)
      	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:748)
      

      On my instance, I couldn't see my existing document.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour
                  1h

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.