-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 8.10-HF01
-
Component/s: Core VCS
-
Release Notes Summary:Provide a clear exception when VCS crashes
-
Sprint:nxFG 9.3.3
-
Story Points:1
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.
- depends on
-
NXP-21426 autocommit mode should not be directly set on pooled connections
- Resolved