Hi,
please find below code and respective error log.[com.hazelcast.core.HazelcastInstance ]
@Inject
private com.hazelcast.core.HazelcastInstance hazelcastInstance;
IPresentation iPresentation = new com.aspose.slides.Presentation(templateFile.getAbsolutePath());
Map<String, Object> packDetails = hazelcastInstance.getMap("myMap");
packDetails.put("pres", presentation);
com.hazelcast.nio.serialization.HazelcastSerializationException: There is no suitable serializer for class com.aspose.slides.Presentation
at com.hazelcast.internal.serialization.impl.AbstractSerializationService.serializerFor(AbstractSerializationService.java:411)
at com.hazelcast.internal.serialization.impl.AbstractSerializationService.toBytes(AbstractSerializationService.java:132)
at com.hazelcast.internal.serialization.impl.AbstractSerializationService.toData(AbstractSerializationService.java:116)
at com.hazelcast.internal.serialization.impl.AbstractSerializationService.toData(AbstractSerializationService.java:104)
at com.hazelcast.map.impl.proxy.MapProxySupport.toData(MapProxySupport.java:969)
at com.hazelcast.map.impl.proxy.MapProxyImpl.put(MapProxyImpl.java:108)
at com.hazelcast.map.impl.proxy.MapProxyImpl.put(MapProxyImpl.java:99)
at com.crisil.publishing.service.impl.TemplateServiceImpl.parseTemplate(TemplateServiceImpl.java:77)
at com.crisil.publishing.service.impl.TemplateServiceImpl.parseAllTemplate(TemplateServiceImpl.java:323)
at com.crisil.publishing.config.WebConfigurer.loadMasterData(WebConfigurer.java:255)
at com.crisil.publishing.config.WebConfigurer.onStartup(WebConfigurer.java:92)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.selfInitialize(EmbeddedWebApplicationContext.java:229)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.access$000(EmbeddedWebApplicationContext.java:89)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext$1.onStartup(EmbeddedWebApplicationContext.java:213)
at org.springframework.boot.context.embedded.undertow.UndertowEmbeddedServletContainerFactory$Initializer.onStartup(UndertowEmbeddedServletContainerFactory.java:667)
at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:184)
at org.springframework.boot.context.embedded.undertow.UndertowEmbeddedServletContainerFactory.createDeploymentManager(UndertowEmbeddedServletContainerFactory.java:394)
at org.springframework.boot.context.embedded.undertow.UndertowEmbeddedServletContainerFactory.getEmbeddedServletContainer(UndertowEmbeddedServletContainerFactory.java:228)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:164)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:134)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:535)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:761)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:371)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
at com.crisil.publishing.PublishingApp.main(PublishingApp.java:69)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)