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

Fix error reporting in VCS

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 8.10-HF01
    • Fix Version/s: 8.10-HF14, 9.3
    • Component/s: Core VCS

      Description

      We get this error during startup in some unclear circumstances:

      ERROR [localhost-startStop-1] [org.nuxeo.runtime.model.impl.RegistrationInfoImpl] Component service:org.nuxeo.ecm.core.repository.RepositoryServiceComponent notification of application started failed: org.nuxeo.ecm.core.api.NuxeoException cannot be cast to org.nuxeo.ecm.core.storage.sql.Invalidations
      java.lang.ClassCastException: org.nuxeo.ecm.core.api.NuxeoException cannot be cast to org.nuxeo.ecm.core.storage.sql.Invalidations
          at com.sun.proxy.$Proxy60.receiveInvalidations(Unknown Source)
          at org.nuxeo.ecm.core.storage.sql.SoftRefCachingRowMapper.receiveInvalidations(SoftRefCachingRowMapper.java:218)
          at org.nuxeo.ecm.core.storage.sql.PersistenceContext.processReceivedInvalidations(PersistenceContext.java:470)
          at org.nuxeo.ecm.core.storage.sql.SessionImpl.processReceivedInvalidations(SessionImpl.java:583)
          at org.nuxeo.ecm.core.storage.sql.SessionImpl.save(SessionImpl.java:323)
          at org.nuxeo.ecm.core.storage.sql.ra.ConnectionImpl.save(ConnectionImpl.java:174)
          at org.nuxeo.ecm.core.storage.sql.coremodel.SQLSession.save(SQLSession.java:142)
          at org.nuxeo.ecm.core.api.AbstractSession.save(AbstractSession.java:1471)
          at org.nuxeo.ecm.core.io.impl.AbstractDocumentModelWriter.close(AbstractDocumentModelWriter.java:121)
          at org.nuxeo.ecm.platform.routing.core.persistence.RouteModelsZipImporter.create(RouteModelsZipImporter.java:97)
          at org.nuxeo.ecm.platform.filemanager.service.FileManagerService.createDocumentFromBlob(FileManagerService.java:257)
          at org.nuxeo.ecm.platform.filemanager.service.FileManagerService.createDocumentFromBlob(FileManagerService.java:239)
          at org.nuxeo.ecm.platform.routing.core.impl.DocumentRoutingServiceImpl.importRouteModel(DocumentRoutingServiceImpl.java:694)
          at org.nuxeo.ecm.platform.routing.core.impl.DocumentRoutingServiceImpl.importAllRouteModels(DocumentRoutingServiceImpl.java:681)
          at org.nuxeo.ecm.platform.routing.core.listener.RouteModelsInitializator.doInitializeRepository(RouteModelsInitializator.java:39)
          at org.nuxeo.ecm.core.repository.RepositoryInitializationHandler.initializeRepository(RepositoryInitializationHandler.java:93)
          ...
      

      The code in error is in org.nuxeo.ecm.core.storage.sql.jdbc.JDBCMapperConnector.doInvoke which does a return instead of throw when unwrapping the target exception. This is valid when doInvoke is called by doConnectAndInvoke but not for direct calls from invoke.

        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