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

NPE when computing repository statistics

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.4.2-RC1
    • Fix Version/s: 5.4.2-RC2, 5.4.2
    • Component/s: None

      Description

      When running "Compute statistics" on the repository in the Admin Center, I see the following stack trace in the logs:

      2011-05-20 08:18:13,251 ERROR [org.nuxeo.ecm.admin.repo.StatsTask] Error while executing StatsTaskRunner
      org.nuxeo.ecm.core.api.ClientException: org.nuxeo.ecm.core.api.WrappedException: Exception: java.lang.NullPointerException. message: null
              at org.nuxeo.ecm.admin.repo.StatsTaskRunner.run(StatsTaskRunner.java:113)
              at org.nuxeo.ecm.core.api.UnrestrictedSessionRunner.runUnrestricted(UnrestrictedSessionRunner.java:155)
              at org.nuxeo.ecm.admin.repo.StatsTask.run(StatsTask.java:61)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
              at java.lang.Thread.run(Thread.java:662)
      Caused by: org.nuxeo.ecm.core.api.WrappedException: Exception: java.lang.NullPointerException. message: null
      2011-05-20 08:21:14,625 ERROR [org.nuxeo.ecm.admin.repo.StatsTaskRunner] Error while running StatsTaskRunner
      java.lang.NullPointerException
              at org.nuxeo.ecm.platform.picture.api.adapters.DefaultPictureAdapter.getPictureFromTitle(DefaultPictureAdapter.java:123)
              at org.nuxeo.ecm.platform.picture.api.adapters.PictureBookBlobHolder.getBlobs(PictureBookBlobHolder.java:59)
              at org.nuxeo.ecm.platform.picture.api.adapters.PictureBookBlobHolder.getBlobs(PictureBookBlobHolder.java:51)
              at org.nuxeo.ecm.admin.repo.StatsTaskRunner.fetchInfoFromDoc(StatsTaskRunner.java:84)
              at org.nuxeo.ecm.admin.repo.StatsTaskRunner.recurse(StatsTaskRunner.java:58)
              at org.nuxeo.ecm.admin.repo.StatsTaskRunner.recurse(StatsTaskRunner.java:68)
              at org.nuxeo.ecm.admin.repo.StatsTaskRunner.recurse(StatsTaskRunner.java:68)
              at org.nuxeo.ecm.admin.repo.StatsTaskRunner.recurse(StatsTaskRunner.java:68)
              at org.nuxeo.ecm.admin.repo.StatsTaskRunner.run(StatsTaskRunner.java:110)
              at org.nuxeo.ecm.core.api.UnrestrictedSessionRunner.runUnrestricted(UnrestrictedSessionRunner.java:155)
              at org.nuxeo.ecm.admin.repo.StatsTask.run(StatsTask.java:61)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
              at java.lang.Thread.run(Thread.java:662)
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: