You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Pavel Tupitsyn (Jira)" <ji...@apache.org> on 2021/03/25 09:46:00 UTC
[jira] [Updated] (IGNITE-14320) .NET: Collections can't be used as
service method parameters
[ https://issues.apache.org/jira/browse/IGNITE-14320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pavel Tupitsyn updated IGNITE-14320:
------------------------------------
Labels: .NET (was: )
> .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
> Components: platforms
> Reporter: Nikolay Izhikov
> Assignee: Nikolay Izhikov
> Priority: Major
> Labels: .NET
> Time Spent: 1h
> 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)