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

Don't crash if delta processing is disabled

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 9.2
    • Fix Version/s: 9.10
    • Component/s: Core DBS

      Description

      If delta processing is disabled for efficiency reasons (org.nuxeo.core.delta.disabled=true), there is a crash at startup:

      ERROR [OSGiAdapter] Error during Framework Listener execution : class org.nuxeo.runtime.osgi.OSGiRuntimeService
      java.lang.ClassCastException: org.nuxeo.ecm.core.api.model.DeltaLong cannot be cast to java.lang.Long
      	at org.nuxeo.ecm.core.storage.dbs.DBSTransactionState.save(DBSTransactionState.java:621)
      	at org.nuxeo.ecm.core.storage.dbs.DBSSession.save(DBSSession.java:215)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	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.save(Unknown Source)
      	at org.nuxeo.ecm.core.api.AbstractSession.save(AbstractSession.java:1485)
      	at org.nuxeo.ecm.platform.content.template.listener.RepositoryInitializationListener.doInitializeRepository(RepositoryInitializationListener.java:41)
      	at org.nuxeo.ecm.core.repository.RepositoryInitializationHandler.initializeRepository(RepositoryInitializationHandler.java:93)
      	at org.nuxeo.ecm.core.repository.RepositoryInitializationHandler.initializeRepository(RepositoryInitializationHandler.java:91)
      	at org.nuxeo.ecm.core.repository.RepositoryService$2.run(RepositoryService.java:140)
      	at org.nuxeo.ecm.core.api.UnrestrictedSessionRunner.runUnrestricted(UnrestrictedSessionRunner.java:131)
      	at org.nuxeo.ecm.core.repository.RepositoryService.initializeRepository(RepositoryService.java:142)
      	at org.nuxeo.ecm.core.repository.RepositoryService.doInitRepositories(RepositoryService.java:124)
      

        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 - 15 minutes
                  15m