ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikolay Izhikov (Jira)" <j...@apache.org>
Subject [jira] [Assigned] (IGNITE-14320) .NET: Collections can't be used as service method parameters
Date Mon, 15 Mar 2021 20:19:00 GMT

     [ https://issues.apache.org/jira/browse/IGNITE-14320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Nikolay Izhikov reassigned IGNITE-14320:
----------------------------------------

    Assignee: Nikolay Izhikov

> .NET: Collections can't be used as service method parameters
> ------------------------------------------------------------
>
>                 Key: IGNITE-14320
>                 URL: https://issues.apache.org/jira/browse/IGNITE-14320
>             Project: Ignite
>          Issue Type: Improvement
>            Reporter: Nikolay Izhikov
>            Assignee: Nikolay Izhikov
>            Priority: Major
>
> 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