Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-5787

.NET: Ignite entities (ICache, ICompute) cause weird serialization errors when used as fields in user object

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.6
    • None
    • platforms

    Description

      Common use case is using Ignite cache inside Compute:

      class MyAction : IComputeAction
      {
        private readonly ICache<int, string> _cache;
        ...
      }
      

      This fails with a weird error:

      class org.apache.ignite.IgniteException: Cannot serialize delegates over unmanaged function pointers, dynamic methods or methods outside the delegate creator's assembly.
      

      We should consider providing a helpful error message, or handling this the same way as Ignite class is handled in BinarySystemHandlers.FindWriteHandler.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ptupitsyn Pavel Tupitsyn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: