[
https://issues.apache.org/jira/browse/IGNITE-14320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17302493#comment-17302493
]
Pavel Tupitsyn commented on IGNITE-14320:
-----------------------------------------
[~nizhikov] looks good to me, thanks for catching this.
> .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
> Time Spent: 50m
> Remaining Estimate: 0h
>
> 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)