ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Tupitsyn (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-5787) .NET: Ignite entities (ICache, ICompute) cause weird serialization errors when used as fields in user object
Date Wed, 19 Jul 2017 17:38:00 GMT
Pavel Tupitsyn created IGNITE-5787:
--------------------------------------

             Summary: .NET: Ignite entities (ICache, ICompute) cause weird serialization errors
when used as fields in user object
                 Key: IGNITE-5787
                 URL: https://issues.apache.org/jira/browse/IGNITE-5787
             Project: Ignite
          Issue Type: Bug
          Components: platforms
    Affects Versions: 1.6
            Reporter: Pavel Tupitsyn
            Priority: Minor
             Fix For: 2.2


Common use case is using Ignite cache inside Compute:
{code}
class MyAction : IComputeAction
{
  private readonly ICache<int, string> _cache;
  ...
}
{code}

This fails with a weird error:
{code}
class org.apache.ignite.IgniteException: Cannot serialize delegates over unmanaged function
pointers, dynamic methods or methods outside the delegate creator's assembly.
{code}

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



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message