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

Possible NPE on ScrollService during start

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 2023.x, 2025.x
    • Component/s: Events / Works

      Description

      Seen during start, a Work is skipped because of a NPE on scrollService wihtout causing problem to start Nuxeo.

      It's probable that the ScrollService (order 1000) should be started before WorkManager (-501).

      Seen only on a dev stack, this error was not found in our cloud instances.

      nuxeo-1  | 2024-10-24T16:39:31,447 ERROR [Nuxeo-Work-common-1:2032383896074.1236036756] [org.nuxeo.ecm.core.work.AbstractWork] Exception during work: ListenerWork(Listener nuxeoDriveGroupUpdateListener [group_created], Progress(?%, ?/0), null)
      nuxeo-1  | java.lang.NullPointerException: Cannot invoke "org.nuxeo.ecm.core.api.scroll.ScrollService.exists(org.nuxeo.ecm.core.api.scroll.ScrollRequest)" because "scrollService" is null
      nuxeo-1  | 	at org.nuxeo.ecm.core.bulk.BulkServiceImpl.checkIfScrollerExists(BulkServiceImpl.java:224) ~[nuxeo-core-bulk-2023.20.15.jar:?]
      nuxeo-1  | 	at org.nuxeo.ecm.core.bulk.BulkServiceImpl.submit(BulkServiceImpl.java:182) ~[nuxeo-core-bulk-2023.20.15.jar:?]
      nuxeo-1  | 	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) ~[?:?]
      nuxeo-1  | 	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) ~[?:?]
      nuxeo-1  | 	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) ~[?:?]
      nuxeo-1  | 	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?]
      nuxeo-1  | 	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?]
      nuxeo-1  | 	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) ~[?:?]
      nuxeo-1  | 	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) ~[?:?]
      nuxeo-1  | 	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
      nuxeo-1  | 	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) ~[?:?]
      nuxeo-1  | 	at org.nuxeo.drive.listener.NuxeoDriveGroupUpdateListener.handleUpdatedGroups(NuxeoDriveGroupUpdateListener.java:114) ~[nuxeo-drive-core-2023.20.15.jar:?]
      nuxeo-1  | 	at org.nuxeo.drive.listener.NuxeoDriveGroupUpdateListener.handleEvent(NuxeoDriveGroupUpdateListener.java:74) ~[nuxeo-drive-core-2023.20.15.jar:?]
      nuxeo-1  | 	at org.nuxeo.ecm.core.event.impl.AsyncEventExecutor$ListenerWork.work(AsyncEventExecutor.java:209) [nuxeo-core-event-2023.20.15.jar:?]
      nuxeo-1  | 	at org.nuxeo.ecm.core.work.AbstractWork.runWorkWithTransaction(AbstractWork.java:493) [nuxeo-core-event-2023.20.15.jar:?]
      nuxeo-1  | 	at org.nuxeo.ecm.core.work.AbstractWork.run(AbstractWork.java:352) [nuxeo-core-event-2023.20.15.jar:?]
      nuxeo-1  | 	at org.nuxeo.ecm.core.work.WorkHolder.run(WorkHolder.java:57) [nuxeo-core-event-2023.20.15.jar:?]
      nuxeo-1  | 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
      nuxeo-1  | 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
      nuxeo-1  | 	at java.base/java.lang.Thread.run(Thread.java:840) [?:?]
      
      nuxeo-1  | 2024-10-24T16:39:32,809 WARN  [stream/metricsPool-00] [org.nuxeo.runtime.stream.StreamMetricsComputation] Instance elected to report stream metrics
      nuxeo-1  | 2024-10-24T16:39:32,861 WARN  [stream/introspectionPool-00] [org.nuxeo.ecm.core.bulk.introspection.StreamIntrospectionComputation] Instance elected to introspect Nuxeo Stream activity
      nuxeo-1  | 2024-10-24T16:39:33,121 INFO  [Nuxeo-Work-default-1:2034087554706.1659030409] [org.nuxeo.ai.listeners.InvalidateModelDefinitionsListener] Publishing AI Model invalidation event
      nuxeo-1  | 2024-10-24T16:39:33,135 INFO  [main] [org.nuxeo.runtime.osgi.OSGiRuntimeService] Nuxeo Platform Started
      nuxeo-1  | ======================================================================
      nuxeo-1  | = Component Loading Warnings:
      nuxeo-1  |   * In-Memory type for log config "ai/similar-content-resolver" is ONLY for testing purpose. Use Kafka for production.
      nuxeo-1  |   * In-Memory type for log config "default" is ONLY for testing purpose. Use Kafka for production.
      nuxeo-1  |   * In-Memory type for log config "bulk" is ONLY for testing purpose. Use Kafka for production.
      nuxeo-1  |   * In-Memory type for log config "audit" is ONLY for testing purpose. Use Kafka for production.
      nuxeo-1  |   * In-Memory type for log config "pubsub" is ONLY for testing purpose. Use Kafka for production.
      nuxeo-1  | ======================================================================
      nuxeo-1  | = Component Loading Status: Pending: 0 / Missing: 0 / Unstarted: 0 / Total: 716
      nuxeo-1  | ======================================================================
      
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                bdelbosc Benoit Delbosc
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: