ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikolay Izhikov (Jira)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-14328) .NET: Array of Collections can't be used as service method parameters
Date Wed, 17 Mar 2021 09:20:00 GMT
Nikolay Izhikov created IGNITE-14328:
----------------------------------------

             Summary: .NET: Array of Collections can't be used as service method parameters
                 Key: IGNITE-14328
                 URL: https://issues.apache.org/jira/browse/IGNITE-14328
             Project: Ignite
          Issue Type: Improvement
            Reporter: Nikolay Izhikov
            Assignee: Nikolay Izhikov


Currently, collections (list, map) can't be used as a service method parameter in case of

.Net (client node) -> .Net (server node) call.

This can be reproduced my one line modification of {{ServicesTypeAutoResolveTest#DoTestPlatformService}}

{code:java}
        /// <summary>
        /// Tests .Net service invocation.
        /// </summary>
        public void DoTestPlatformService(IServices svcsForProxy)
        {
            const string platformSvcName = "PlatformTestService";

            _grid1.GetServices().DeployClusterSingleton(platformSvcName, new PlatformTestService());

            var svc = svcsForProxy.GetServiceProxy<IJavaService>(platformSvcName);

            DoTestService(svc);

            DoTestCollections(svc); // This line was added.

            _grid1.GetServices().Cancel(platformSvcName);
        }

{code}

Exception:

{noformat}
Apache.Ignite.Core.Services.ServiceInvocationException : Proxy method invocation failed with
an exception. Examine InnerException for details.
  ----> Apache.Ignite.Core.Common.IgniteException : No matching type found for object [typeId=1552553483,
typeName=org.system.collections.generic.List`1[[org.apache.ignite.platform.model.department,
apache.ignite.core.testDepartment]]]. This usually indicates that assembly with specified
type is not loaded on a node. When using Apache.Ignite.exe, make sure to load assemblies with
-assembly parameter. Alternatively, set IgniteConfiguration.PeerAssemblyLoadingMode to CurrentAppDomain.
{noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message