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

Fix error messages in directory tests missing bundle org.nuxeo.ecm.core.cache

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9.3
    • Component/s: Cache, Directory, Tests

      Description

      In a directory test defined by Studio since NXS-2504 and that does not deploy contribution "org.nuxeo.ecm.core.cache", test setup fails with unclear error:

          Suppressed: java.lang.NullPointerException
              at org.nuxeo.ecm.directory.DirectoryCache.getEntryCache(DirectoryCache.java:197)
              at org.nuxeo.ecm.directory.DirectoryCache.invalidateAll(DirectoryCache.java:177)
              at org.nuxeo.ecm.directory.AbstractDirectory.invalidateCaches(AbstractDirectory.java:125)
              at org.nuxeo.ecm.directory.sql.SQLSession.deleteEntry(SQLSession.java:638)
              at org.nuxeo.ecm.directory.sql.SQLDirectoryFeature.afterTeardown(SQLDirectoryFeature.java:154)
              at org.nuxeo.runtime.test.runner.FeaturesRunner$9.call(FeaturesRunner.java:231)
              at org.nuxeo.runtime.test.runner.FeaturesLoader.apply(FeaturesLoader.java:126)
      

      We should clearly state that the cache service is missing instead of throwing a NPE.

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

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.