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

Add better error to diagnose random NPE in convert garbage collector

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.0-HF33, 7.10-HF18, 8.2
    • Component/s: Convert

      Description

      I've got a random NPE while testing NXP-18989.

      java.lang.NullPointerException
      	at org.nuxeo.ecm.core.convert.cache.ConversionCacheGCManager.doGC(ConversionCacheGCManager.java:116)
      	at org.nuxeo.ecm.core.convert.tests.TestCache.testCache(TestCache.java:91)
      	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:497)
      

      The NPE does not allow to understand why the key was null => make the code safer to get more information when that happens.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: