Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Richard Waite 11 posts 79 karma points
    May 27, 2022 @ 15:54
    Richard Waite
    0

    Intermittent ditto error

    I'm getting this occasional intermittent error on a legacy Umbraco 7.15.6 site, using ditto 0.12.2. Any ideas??

    System.NullReferenceException: Object reference not set to an instance of an object.
       at Our.Umbraco.Ditto.EnumerableConverterAttribute.ProcessValue()
       at Our.Umbraco.Ditto.DittoCacheableAttribute.GetCacheItem[TOuputType](DittoCacheContext cacheContext, Func`1 refresher)
       at Our.Umbraco.Ditto.PublishedContentExtensions.DoGetProcessedValue(IPublishedContent content, DittoTypePropertyInfo mappableProperty, DittoProcessorContext baseProcessorContext, DittoChainContext chainContext)
       at Our.Umbraco.Ditto.PublishedContentExtensions.GetProcessedValue(IPublishedContent content, CultureInfo culture, DittoTypeInfo config, DittoTypePropertyInfo mappableProperty, Object instance, DittoChainContext chainContext)
       at Our.Umbraco.Ditto.PublishedContentExtensions.ConvertContent(IPublishedContent content, DittoTypeInfo config, CultureInfo culture, Object instance, Action`1 onConverting, Action`1 onConverted, DittoChainContext chainContext)
       at Our.Umbraco.Ditto.PublishedContentExtensions.As(IPublishedContent content, Type type, CultureInfo culture, Object instance, IEnumerable`1 processorContexts, Action`1 onConverting, Action`1 onConverted, DittoChainContext chainContext)
    
  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Jun 03, 2022 @ 08:07
    Lee Kelleher
    0

    Hi Richard,

    It's been a few years since I worked on the Ditto library. Re-looking at the source code, I'm unsure what could be causing the intermittent error.

    https://github.com/umco/umbraco-ditto/blob/0.12.2/src/Our.Umbraco.Ditto/ComponentModel/Processors/EnumerableConverterAttribute.cs#L35

    My guess would be a concurrency caching bug - which had been mentioned before - but couldn't reproduce this at the time.

    https://github.com/umco/umbraco-ditto/issues/249

    Given that Ditto has now been retired/archived, I won't be doing any maintenance/patch releases. My best advice is to either identify the underlying issue and patch a custom fork of Ditto ... or to try to workaround or reduce Ditto's usage, e.g. manually mapping properties.

    Sorry I don't have a better answer for you - but I didn't want to leave your post unanswered.

    Cheers,
    - Lee

Please Sign in or register to post replies

Write your reply to:

Draft