Free Support Forum - aspose.com

Aspose slide loding License with error

Hi There


After changing Aspose Slide 15.4.0 to 15.5.0, my method to load license threw exception.

Here is my method:

protected boolean loadPPTLicense() {
boolean result = false;
long start = System.nanoTime();
try {
com.aspose.slides.License license = new com.aspose.slides.License();
license.setLicense(“lic path”);
result = true;
} catch (Exception ex) {
LOGGER.error("[PPT] license loaded fail.", ex);
}
long dur = System.nanoTime() - start;
dur = TimeUnit.NANOSECONDS.toMillis(dur);
//
if (result) {
LOGGER.info("[PPT] license loaded in " + dur + " ms.");
}
//
return result;
}


And the Exception looks like this:
13:28:24,044 ERROR AsposeLicenseService:76 - [PPT] license loaded fail.
class com.aspose.slides.ms.pbdb106a0.co: The license is not valid for this product.
com.aspose.slides.p883e881b.an.do(Unknown Source)
com.aspose.slides.p883e881b.an.do(Unknown Source)
com.aspose.slides.License.setLicense(Unknown Source)
com.aspose.slides.License.setLicense(Unknown Source)
com.newegg.read.convert.service.impl.AsposeLicenseService.loadPPTLicense(AsposeLicenseService.java:73)
com.newegg.read.convert.service.impl.AsposeLicenseService.init(AsposeLicenseService.java:28)
com.newegg.commons.base.service.AbstractCommonService.afterPropertiesSet(AbstractCommonService.java:69)
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1625)
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1562)
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:762)
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403)
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4994)
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5492)
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
java.util.concurrent.FutureTask.run(Unknown Source)
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
at com.aspose.slides.p883e881b.an.do(Unknown Source)
at com.aspose.slides.p883e881b.an.do(Unknown Source)
at com.aspose.slides.License.setLicense(Unknown Source)
at com.aspose.slides.License.setLicense(Unknown Source)
at com.newegg.read.convert.service.impl.AsposeLicenseService.loadPPTLicense(AsposeLicenseService.java:73)
at com.newegg.read.convert.service.impl.AsposeLicenseService.init(AsposeLicenseService.java:28)
at com.newegg.commons.base.service.AbstractCommonService.afterPropertiesSet(AbstractCommonService.java:69)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1625)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1562)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:762)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4994)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5492)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


Could you please help solve this issue? Appreciate your kind help!

Hi,


Thank you for considering Aspose.Slides.

I have observed your comments and like to share with you that we need to investigate your license file so I request you to send us your license file by following the instructions written over this link. Once you send the license file then please acknowledge us by posting over the same thread.

Best Regards,

Hi,


I sent it, and please check the license file, thanks :slight_smile:

Hi,


We are discussing the issue with our product team and we will get back to you with our findings soon. We appreciate your patience in this regard.

Many Thanks,

Hi ,

You are
very right in your observation regarding Aspose.Total license failing to
work with Aspose.Slides for Java 15.5.0. I have created an issue with
ID SLIDESJAVA-34922 in our issue tracking system. We are working
over fixing the issue on urgent basis and will share the new hotfix for
Aspose.Slides for Java 15.5.0 as soon as possible. We will share the
notification with you as soon as the issue will be fixed.

We are sorry for your inconvenience,

The issues you have found earlier (filed as SLIDESJAVA-34922) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
(4)