IPresentation Object Serilization

Hi,

I am using aspose slides 17.8 version of aspose java (license).I want to put presentation object into hazelcastInstance hashmap but its giving null pointer exception and says that presentation is not Serialized.

Map<String, Object> packDetails = hazelcastInstance.getMap(PackGenerationConstant.PACK_DETAILS);
packDetails.put(“presentationName”, IPresentation(object));

is there any solution…?

@Rutuja,

I have observed the information shared by you and request you to please provide the working sample project, source presentation and complete stack trace to reproduce and further investigate the issue on our end. Please share the requested information so that we may proceed further to investigate the issue.

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)

@Rutuja,

As requested earlier, please also share the source presentation reproducing the issue on your end as well.

template.zip (89.1 KB)

Hi ,
i am just reading master layout from this presentation.

@Rutuja,

I have discussed this with our product team and like to share that the issue is not related to Aspose.Slides but with Hazelcast it self. I suggest you to please visit the web link1, web link2 and web link3 for your kind reference.

Hi,

ok thanks.