A serialization exception while starting up Apache Ignite 2.7 on Net Framework 4.7.1
I've coded up an Ignite .Net service in C# which is running on Linux/NET Core 2.2. Now I'm trying to consume it in a .Net Framework web application.
Ignition.ClientMode = true;
var igniteCfg = new IgniteConfiguration()
{
IgniteHome = System.Web.HttpContext.Current.Server.MapPath(@"~bin")
};
using (var ignite = Ignition.Start(igniteCfg))
{
var services = ignite.GetServices();
IQuoteGeneratorContract proxy = services.GetServiceProxy<IQuoteGeneratorContract>("QuoteService");
quotes = proxy.GenerateQuotes(quoteRequestMapped);
}
However, I am getting a strange exception when calling Ignition.Start:
Type 'Domain.ElasticCachedReference`1[[Domain.Partner, Utility.Click.Domain, Version=3.10.56.40, Culture=neutral, PublicKeyToken=null]]' in Assembly 'Utility.Click.Domain, Version=3.10.56.40, Culture=neutral, PublicKeyToken=null' is not marked as serializable.
Stack Trace:
Server stack trace:
at System.Runtime.Serialization.FormatterServices.InternalGetSerializableMembers(RuntimeType type)
at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
at System.Runtime.Serialization.FormatterServices.GetSerializableMembers(Type type, StreamingContext context)
at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitMemberInfo()
at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter, SerializationBinder binder)
at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Write(WriteObjectInfo objectInfo, NameInfo memberNameInfo, NameInfo typeNameInfo)
at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header inHeaders, __BinaryWriter serWriter, Boolean fCheck)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header headers, Boolean fCheck)
at System.Runtime.Remoting.Channels.CrossAppDomainSerializer.SerializeMessageParts(ArrayList argsToSerialize)
at System.Runtime.Remoting.Messaging.SmuggledMethodCallMessage..ctor(IMethodCallMessage mcm)
at System.Runtime.Remoting.Messaging.SmuggledMethodCallMessage.SmuggleIfPossible(IMessage msg)
at System.Runtime.Remoting.Channels.CrossAppDomainSink.SyncProcessMessage(IMessage reqMsg)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at System._AppDomain.CreateInstanceFrom(String assemblyFile, String typeName)
at Apache.Ignite.Core.Impl.Unmanaged.Jni.Jvm.GetCallbacksFromDefaultDomain()
at Apache.Ignite.Core.Impl.Unmanaged.Jni.Jvm..ctor(IntPtr jvmPtr)
at Apache.Ignite.Core.Impl.Unmanaged.Jni.Jvm.GetOrCreate(IList`1 options)
at Apache.Ignite.Core.Impl.IgniteManager.CreateJvmContext(IgniteConfiguration cfg, ILogger log)
at Apache.Ignite.Core.Ignition.Start(IgniteConfiguration cfg)
at Domain.ServiceAdapters.QuoteServiceAdapter.GenerateQuotes(IEnumerable`1 products, Tender tender, Dictionary`2 customCPs) in C:UsersalexavrutinProjectsutilityclicksrcDomain-LogicServiceAdaptersQuoteServiceAdapter.cs:line 54
at Domain.Tender.Submit(Object shardingKey, TenderOptions tenderOptions, Boolean isSkipRecalcManualQuotes, Dictionary`2 customCPs, Boolean forceGenerateSMEQuotes) in C:UsersalexavrutinProjectsutilityclicksrcDomain-LogicTender.cs:line 616
I need to say that the exception message is absolutely correct: The type Domain.ElasticCachedReference is really not marked as [Serializable]. However, I am not using this type in any Ignite service and not storing it in Ignite cache. I am just trying to run Ignite in the same application where this class is defined and used, and after all, I am just starting Ignite and not yet calling any service or running a distributed closure.
I've reviewed the Ignite source code and suspect that the exception is thrown in a Net Framework method and is likely to be related to how a type is instantiated by Activator rather than to Ignite itself. However, I am wondering how I can do to prevent this exception from occurring? Thank you!
I'm using the following software on the machine where the client is running:
Windows 10 Pro,
Visual Studio 2017,
C# 7.1,
Net Framework 4.7.1 with ASP.NET,
Apache Ignite .Net 2.7
c# asp.net ignite
|
show 2 more comments
I've coded up an Ignite .Net service in C# which is running on Linux/NET Core 2.2. Now I'm trying to consume it in a .Net Framework web application.
Ignition.ClientMode = true;
var igniteCfg = new IgniteConfiguration()
{
IgniteHome = System.Web.HttpContext.Current.Server.MapPath(@"~bin")
};
using (var ignite = Ignition.Start(igniteCfg))
{
var services = ignite.GetServices();
IQuoteGeneratorContract proxy = services.GetServiceProxy<IQuoteGeneratorContract>("QuoteService");
quotes = proxy.GenerateQuotes(quoteRequestMapped);
}
However, I am getting a strange exception when calling Ignition.Start:
Type 'Domain.ElasticCachedReference`1[[Domain.Partner, Utility.Click.Domain, Version=3.10.56.40, Culture=neutral, PublicKeyToken=null]]' in Assembly 'Utility.Click.Domain, Version=3.10.56.40, Culture=neutral, PublicKeyToken=null' is not marked as serializable.
Stack Trace:
Server stack trace:
at System.Runtime.Serialization.FormatterServices.InternalGetSerializableMembers(RuntimeType type)
at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
at System.Runtime.Serialization.FormatterServices.GetSerializableMembers(Type type, StreamingContext context)
at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitMemberInfo()
at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter, SerializationBinder binder)
at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Write(WriteObjectInfo objectInfo, NameInfo memberNameInfo, NameInfo typeNameInfo)
at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header inHeaders, __BinaryWriter serWriter, Boolean fCheck)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header headers, Boolean fCheck)
at System.Runtime.Remoting.Channels.CrossAppDomainSerializer.SerializeMessageParts(ArrayList argsToSerialize)
at System.Runtime.Remoting.Messaging.SmuggledMethodCallMessage..ctor(IMethodCallMessage mcm)
at System.Runtime.Remoting.Messaging.SmuggledMethodCallMessage.SmuggleIfPossible(IMessage msg)
at System.Runtime.Remoting.Channels.CrossAppDomainSink.SyncProcessMessage(IMessage reqMsg)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at System._AppDomain.CreateInstanceFrom(String assemblyFile, String typeName)
at Apache.Ignite.Core.Impl.Unmanaged.Jni.Jvm.GetCallbacksFromDefaultDomain()
at Apache.Ignite.Core.Impl.Unmanaged.Jni.Jvm..ctor(IntPtr jvmPtr)
at Apache.Ignite.Core.Impl.Unmanaged.Jni.Jvm.GetOrCreate(IList`1 options)
at Apache.Ignite.Core.Impl.IgniteManager.CreateJvmContext(IgniteConfiguration cfg, ILogger log)
at Apache.Ignite.Core.Ignition.Start(IgniteConfiguration cfg)
at Domain.ServiceAdapters.QuoteServiceAdapter.GenerateQuotes(IEnumerable`1 products, Tender tender, Dictionary`2 customCPs) in C:UsersalexavrutinProjectsutilityclicksrcDomain-LogicServiceAdaptersQuoteServiceAdapter.cs:line 54
at Domain.Tender.Submit(Object shardingKey, TenderOptions tenderOptions, Boolean isSkipRecalcManualQuotes, Dictionary`2 customCPs, Boolean forceGenerateSMEQuotes) in C:UsersalexavrutinProjectsutilityclicksrcDomain-LogicTender.cs:line 616
I need to say that the exception message is absolutely correct: The type Domain.ElasticCachedReference is really not marked as [Serializable]. However, I am not using this type in any Ignite service and not storing it in Ignite cache. I am just trying to run Ignite in the same application where this class is defined and used, and after all, I am just starting Ignite and not yet calling any service or running a distributed closure.
I've reviewed the Ignite source code and suspect that the exception is thrown in a Net Framework method and is likely to be related to how a type is instantiated by Activator rather than to Ignite itself. However, I am wondering how I can do to prevent this exception from occurring? Thank you!
I'm using the following software on the machine where the client is running:
Windows 10 Pro,
Visual Studio 2017,
C# 7.1,
Net Framework 4.7.1 with ASP.NET,
Apache Ignite .Net 2.7
c# asp.net ignite
I would imagine thatElasticCachedReference
is somehow referenced in your service. Can you also share the source ofGenerateQuotes
?
– alamar
Dec 28 '18 at 10:03
Can you please share a minimal runnable project that reproduces the issue?
– Pavel Tupitsyn
Dec 28 '18 at 12:59
@alamar Thank you for the suggestion. It is unlikely: the service is running on .Net Core in Linux whileElasticCachedReference
is only present on the client machine running Windows/Net Framework and it targets Net Framework itself. I wonder if Ignite is trying to collect and serialize the clases in the neighboring assemblies for the transmission to other nodes? It would be strange as I am running it in the client mode.
– Alex Avrutin
Dec 28 '18 at 13:14
@AlexAvrutin it is quite possible. Can you try to put service into a separate assembly where there's nothing else? Note that for Java Services are not peer loaded at all, but it may be different for .Net.
– alamar
Dec 28 '18 at 13:16
@PavelTupitsyn Thanks for the response, Will do later today or in the first days of Jan. So far I have temporarily worked the problem around by implementing an HTTP endpoint for the service so that I don't have to start Ignite on the client.
– Alex Avrutin
Dec 28 '18 at 13:18
|
show 2 more comments
I've coded up an Ignite .Net service in C# which is running on Linux/NET Core 2.2. Now I'm trying to consume it in a .Net Framework web application.
Ignition.ClientMode = true;
var igniteCfg = new IgniteConfiguration()
{
IgniteHome = System.Web.HttpContext.Current.Server.MapPath(@"~bin")
};
using (var ignite = Ignition.Start(igniteCfg))
{
var services = ignite.GetServices();
IQuoteGeneratorContract proxy = services.GetServiceProxy<IQuoteGeneratorContract>("QuoteService");
quotes = proxy.GenerateQuotes(quoteRequestMapped);
}
However, I am getting a strange exception when calling Ignition.Start:
Type 'Domain.ElasticCachedReference`1[[Domain.Partner, Utility.Click.Domain, Version=3.10.56.40, Culture=neutral, PublicKeyToken=null]]' in Assembly 'Utility.Click.Domain, Version=3.10.56.40, Culture=neutral, PublicKeyToken=null' is not marked as serializable.
Stack Trace:
Server stack trace:
at System.Runtime.Serialization.FormatterServices.InternalGetSerializableMembers(RuntimeType type)
at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
at System.Runtime.Serialization.FormatterServices.GetSerializableMembers(Type type, StreamingContext context)
at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitMemberInfo()
at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter, SerializationBinder binder)
at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Write(WriteObjectInfo objectInfo, NameInfo memberNameInfo, NameInfo typeNameInfo)
at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header inHeaders, __BinaryWriter serWriter, Boolean fCheck)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header headers, Boolean fCheck)
at System.Runtime.Remoting.Channels.CrossAppDomainSerializer.SerializeMessageParts(ArrayList argsToSerialize)
at System.Runtime.Remoting.Messaging.SmuggledMethodCallMessage..ctor(IMethodCallMessage mcm)
at System.Runtime.Remoting.Messaging.SmuggledMethodCallMessage.SmuggleIfPossible(IMessage msg)
at System.Runtime.Remoting.Channels.CrossAppDomainSink.SyncProcessMessage(IMessage reqMsg)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at System._AppDomain.CreateInstanceFrom(String assemblyFile, String typeName)
at Apache.Ignite.Core.Impl.Unmanaged.Jni.Jvm.GetCallbacksFromDefaultDomain()
at Apache.Ignite.Core.Impl.Unmanaged.Jni.Jvm..ctor(IntPtr jvmPtr)
at Apache.Ignite.Core.Impl.Unmanaged.Jni.Jvm.GetOrCreate(IList`1 options)
at Apache.Ignite.Core.Impl.IgniteManager.CreateJvmContext(IgniteConfiguration cfg, ILogger log)
at Apache.Ignite.Core.Ignition.Start(IgniteConfiguration cfg)
at Domain.ServiceAdapters.QuoteServiceAdapter.GenerateQuotes(IEnumerable`1 products, Tender tender, Dictionary`2 customCPs) in C:UsersalexavrutinProjectsutilityclicksrcDomain-LogicServiceAdaptersQuoteServiceAdapter.cs:line 54
at Domain.Tender.Submit(Object shardingKey, TenderOptions tenderOptions, Boolean isSkipRecalcManualQuotes, Dictionary`2 customCPs, Boolean forceGenerateSMEQuotes) in C:UsersalexavrutinProjectsutilityclicksrcDomain-LogicTender.cs:line 616
I need to say that the exception message is absolutely correct: The type Domain.ElasticCachedReference is really not marked as [Serializable]. However, I am not using this type in any Ignite service and not storing it in Ignite cache. I am just trying to run Ignite in the same application where this class is defined and used, and after all, I am just starting Ignite and not yet calling any service or running a distributed closure.
I've reviewed the Ignite source code and suspect that the exception is thrown in a Net Framework method and is likely to be related to how a type is instantiated by Activator rather than to Ignite itself. However, I am wondering how I can do to prevent this exception from occurring? Thank you!
I'm using the following software on the machine where the client is running:
Windows 10 Pro,
Visual Studio 2017,
C# 7.1,
Net Framework 4.7.1 with ASP.NET,
Apache Ignite .Net 2.7
c# asp.net ignite
I've coded up an Ignite .Net service in C# which is running on Linux/NET Core 2.2. Now I'm trying to consume it in a .Net Framework web application.
Ignition.ClientMode = true;
var igniteCfg = new IgniteConfiguration()
{
IgniteHome = System.Web.HttpContext.Current.Server.MapPath(@"~bin")
};
using (var ignite = Ignition.Start(igniteCfg))
{
var services = ignite.GetServices();
IQuoteGeneratorContract proxy = services.GetServiceProxy<IQuoteGeneratorContract>("QuoteService");
quotes = proxy.GenerateQuotes(quoteRequestMapped);
}
However, I am getting a strange exception when calling Ignition.Start:
Type 'Domain.ElasticCachedReference`1[[Domain.Partner, Utility.Click.Domain, Version=3.10.56.40, Culture=neutral, PublicKeyToken=null]]' in Assembly 'Utility.Click.Domain, Version=3.10.56.40, Culture=neutral, PublicKeyToken=null' is not marked as serializable.
Stack Trace:
Server stack trace:
at System.Runtime.Serialization.FormatterServices.InternalGetSerializableMembers(RuntimeType type)
at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
at System.Runtime.Serialization.FormatterServices.GetSerializableMembers(Type type, StreamingContext context)
at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitMemberInfo()
at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter, SerializationBinder binder)
at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Write(WriteObjectInfo objectInfo, NameInfo memberNameInfo, NameInfo typeNameInfo)
at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header inHeaders, __BinaryWriter serWriter, Boolean fCheck)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header headers, Boolean fCheck)
at System.Runtime.Remoting.Channels.CrossAppDomainSerializer.SerializeMessageParts(ArrayList argsToSerialize)
at System.Runtime.Remoting.Messaging.SmuggledMethodCallMessage..ctor(IMethodCallMessage mcm)
at System.Runtime.Remoting.Messaging.SmuggledMethodCallMessage.SmuggleIfPossible(IMessage msg)
at System.Runtime.Remoting.Channels.CrossAppDomainSink.SyncProcessMessage(IMessage reqMsg)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at System._AppDomain.CreateInstanceFrom(String assemblyFile, String typeName)
at Apache.Ignite.Core.Impl.Unmanaged.Jni.Jvm.GetCallbacksFromDefaultDomain()
at Apache.Ignite.Core.Impl.Unmanaged.Jni.Jvm..ctor(IntPtr jvmPtr)
at Apache.Ignite.Core.Impl.Unmanaged.Jni.Jvm.GetOrCreate(IList`1 options)
at Apache.Ignite.Core.Impl.IgniteManager.CreateJvmContext(IgniteConfiguration cfg, ILogger log)
at Apache.Ignite.Core.Ignition.Start(IgniteConfiguration cfg)
at Domain.ServiceAdapters.QuoteServiceAdapter.GenerateQuotes(IEnumerable`1 products, Tender tender, Dictionary`2 customCPs) in C:UsersalexavrutinProjectsutilityclicksrcDomain-LogicServiceAdaptersQuoteServiceAdapter.cs:line 54
at Domain.Tender.Submit(Object shardingKey, TenderOptions tenderOptions, Boolean isSkipRecalcManualQuotes, Dictionary`2 customCPs, Boolean forceGenerateSMEQuotes) in C:UsersalexavrutinProjectsutilityclicksrcDomain-LogicTender.cs:line 616
I need to say that the exception message is absolutely correct: The type Domain.ElasticCachedReference is really not marked as [Serializable]. However, I am not using this type in any Ignite service and not storing it in Ignite cache. I am just trying to run Ignite in the same application where this class is defined and used, and after all, I am just starting Ignite and not yet calling any service or running a distributed closure.
I've reviewed the Ignite source code and suspect that the exception is thrown in a Net Framework method and is likely to be related to how a type is instantiated by Activator rather than to Ignite itself. However, I am wondering how I can do to prevent this exception from occurring? Thank you!
I'm using the following software on the machine where the client is running:
Windows 10 Pro,
Visual Studio 2017,
C# 7.1,
Net Framework 4.7.1 with ASP.NET,
Apache Ignite .Net 2.7
c# asp.net ignite
c# asp.net ignite
asked Dec 27 '18 at 20:18
Alex Avrutin
5472920
5472920
I would imagine thatElasticCachedReference
is somehow referenced in your service. Can you also share the source ofGenerateQuotes
?
– alamar
Dec 28 '18 at 10:03
Can you please share a minimal runnable project that reproduces the issue?
– Pavel Tupitsyn
Dec 28 '18 at 12:59
@alamar Thank you for the suggestion. It is unlikely: the service is running on .Net Core in Linux whileElasticCachedReference
is only present on the client machine running Windows/Net Framework and it targets Net Framework itself. I wonder if Ignite is trying to collect and serialize the clases in the neighboring assemblies for the transmission to other nodes? It would be strange as I am running it in the client mode.
– Alex Avrutin
Dec 28 '18 at 13:14
@AlexAvrutin it is quite possible. Can you try to put service into a separate assembly where there's nothing else? Note that for Java Services are not peer loaded at all, but it may be different for .Net.
– alamar
Dec 28 '18 at 13:16
@PavelTupitsyn Thanks for the response, Will do later today or in the first days of Jan. So far I have temporarily worked the problem around by implementing an HTTP endpoint for the service so that I don't have to start Ignite on the client.
– Alex Avrutin
Dec 28 '18 at 13:18
|
show 2 more comments
I would imagine thatElasticCachedReference
is somehow referenced in your service. Can you also share the source ofGenerateQuotes
?
– alamar
Dec 28 '18 at 10:03
Can you please share a minimal runnable project that reproduces the issue?
– Pavel Tupitsyn
Dec 28 '18 at 12:59
@alamar Thank you for the suggestion. It is unlikely: the service is running on .Net Core in Linux whileElasticCachedReference
is only present on the client machine running Windows/Net Framework and it targets Net Framework itself. I wonder if Ignite is trying to collect and serialize the clases in the neighboring assemblies for the transmission to other nodes? It would be strange as I am running it in the client mode.
– Alex Avrutin
Dec 28 '18 at 13:14
@AlexAvrutin it is quite possible. Can you try to put service into a separate assembly where there's nothing else? Note that for Java Services are not peer loaded at all, but it may be different for .Net.
– alamar
Dec 28 '18 at 13:16
@PavelTupitsyn Thanks for the response, Will do later today or in the first days of Jan. So far I have temporarily worked the problem around by implementing an HTTP endpoint for the service so that I don't have to start Ignite on the client.
– Alex Avrutin
Dec 28 '18 at 13:18
I would imagine that
ElasticCachedReference
is somehow referenced in your service. Can you also share the source of GenerateQuotes
?– alamar
Dec 28 '18 at 10:03
I would imagine that
ElasticCachedReference
is somehow referenced in your service. Can you also share the source of GenerateQuotes
?– alamar
Dec 28 '18 at 10:03
Can you please share a minimal runnable project that reproduces the issue?
– Pavel Tupitsyn
Dec 28 '18 at 12:59
Can you please share a minimal runnable project that reproduces the issue?
– Pavel Tupitsyn
Dec 28 '18 at 12:59
@alamar Thank you for the suggestion. It is unlikely: the service is running on .Net Core in Linux while
ElasticCachedReference
is only present on the client machine running Windows/Net Framework and it targets Net Framework itself. I wonder if Ignite is trying to collect and serialize the clases in the neighboring assemblies for the transmission to other nodes? It would be strange as I am running it in the client mode.– Alex Avrutin
Dec 28 '18 at 13:14
@alamar Thank you for the suggestion. It is unlikely: the service is running on .Net Core in Linux while
ElasticCachedReference
is only present on the client machine running Windows/Net Framework and it targets Net Framework itself. I wonder if Ignite is trying to collect and serialize the clases in the neighboring assemblies for the transmission to other nodes? It would be strange as I am running it in the client mode.– Alex Avrutin
Dec 28 '18 at 13:14
@AlexAvrutin it is quite possible. Can you try to put service into a separate assembly where there's nothing else? Note that for Java Services are not peer loaded at all, but it may be different for .Net.
– alamar
Dec 28 '18 at 13:16
@AlexAvrutin it is quite possible. Can you try to put service into a separate assembly where there's nothing else? Note that for Java Services are not peer loaded at all, but it may be different for .Net.
– alamar
Dec 28 '18 at 13:16
@PavelTupitsyn Thanks for the response, Will do later today or in the first days of Jan. So far I have temporarily worked the problem around by implementing an HTTP endpoint for the service so that I don't have to start Ignite on the client.
– Alex Avrutin
Dec 28 '18 at 13:18
@PavelTupitsyn Thanks for the response, Will do later today or in the first days of Jan. So far I have temporarily worked the problem around by implementing an HTTP endpoint for the service so that I don't have to start Ignite on the client.
– Alex Avrutin
Dec 28 '18 at 13:18
|
show 2 more comments
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53950421%2fa-serialization-exception-while-starting-up-apache-ignite-2-7-on-net-framework-4%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53950421%2fa-serialization-exception-while-starting-up-apache-ignite-2-7-on-net-framework-4%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I would imagine that
ElasticCachedReference
is somehow referenced in your service. Can you also share the source ofGenerateQuotes
?– alamar
Dec 28 '18 at 10:03
Can you please share a minimal runnable project that reproduces the issue?
– Pavel Tupitsyn
Dec 28 '18 at 12:59
@alamar Thank you for the suggestion. It is unlikely: the service is running on .Net Core in Linux while
ElasticCachedReference
is only present on the client machine running Windows/Net Framework and it targets Net Framework itself. I wonder if Ignite is trying to collect and serialize the clases in the neighboring assemblies for the transmission to other nodes? It would be strange as I am running it in the client mode.– Alex Avrutin
Dec 28 '18 at 13:14
@AlexAvrutin it is quite possible. Can you try to put service into a separate assembly where there's nothing else? Note that for Java Services are not peer loaded at all, but it may be different for .Net.
– alamar
Dec 28 '18 at 13:16
@PavelTupitsyn Thanks for the response, Will do later today or in the first days of Jan. So far I have temporarily worked the problem around by implementing an HTTP endpoint for the service so that I don't have to start Ignite on the client.
– Alex Avrutin
Dec 28 '18 at 13:18