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

Fix NuxeoPrincipal deserialization when not logged in

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9.3
    • Component/s: Redis

      Description

      When Redis is activated for work queuing (nuxeo.redis.enabled=true, nuxeo.work.queuing=redis), we have the following ERROR in the logs when running ITUserProfileTest.testUserProfile (but the test passes):

      19:27:05,953 ERROR [WorkManagerImpl] Uncaught error on thread: Nuxeo-Work-default-2, current work might be lost, WorkManager metrics might be corrupted.
      java.lang.NullPointerException
      	at org.nuxeo.ecm.platform.usermanager.NuxeoPrincipalImpl$TransferableClone$DataTransferObject.readResolve(NuxeoPrincipalImpl.java:485)
      	...
      	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:422)
      	at org.nuxeo.ecm.core.redis.contribs.RedisWorkQueuing.deserializeWork(RedisWorkQueuing.java:463)
      	at org.nuxeo.ecm.core.redis.contribs.RedisWorkQueuing.getWorkFromQueue(RedisWorkQueuing.java:781)
      	at org.nuxeo.ecm.core.redis.contribs.RedisBlockingQueue.pollElement(RedisBlockingQueue.java:143)
      	at org.nuxeo.ecm.core.work.NuxeoBlockingQueue.poll(NuxeoBlockingQueue.java:121)
      	at org.nuxeo.ecm.core.redis.contribs.RedisBlockingQueue.poll(RedisBlockingQueue.java:101)
      	at org.nuxeo.ecm.core.redis.contribs.RedisBlockingQueue.take(RedisBlockingQueue.java:85)
      	at org.nuxeo.ecm.core.redis.contribs.RedisBlockingQueue.take(RedisBlockingQueue.java:47)
      	at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      
      

        Attachments

          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 - 2 hours
                2h