We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Issue with failure to load license appears intermittently

We have integrated Aspose with Documentum. We are using aspose to add content to word documents (user signature),merge documents …etc.
It is lately observed that there is the following error in the log. The signature is not getting applied this was happening a few days ago, but now it fails with the reason below. This integration was done by another team. We have no clue as this works on the developer machine but the code when deployed to QA fails.
Request your assitance in this matter. We suspect this may be an issue with licensing as after some changes in the environment by the original team things work out for some time, but the resolution is not consistent.
Is there any url / mechanism to validate the license file deployed in the server?

2018-11-13 08:09:04,204 GST ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/DmMethods].[DoMethod]] (http-0.0.0.0-0.0.0.0-9080-5) Servlet.service() for servlet DoMethod threw exception: java.lang.ClassNotFoundException: com.aspose.words.License
at java.net.URLClassLoader$1.run(URLClassLoader.java:366) [rt.jar:1.7.0_17]
at java.net.URLClassLoader$1.run(URLClassLoader.java:355) [rt.jar:1.7.0_17]
at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.7.0_17]
at java.net.URLClassLoader.findClass(URLClassLoader.java:354) [rt.jar:1.7.0_17]
at com.documentum.fc.client.impl.bof.classmgmt.URLClassLoaderEx.findClass(URLClassLoaderEx.java:49) [dfc.jar:]
at com.documentum.fc.client.impl.bof.classmgmt.DelayedDelegationClassLoader.findClass(DelayedDelegationClassLoader.java:241) [dfc.jar:]
at com.documentum.fc.client.impl.bof.classmgmt.AbstractTransformingClassLoader.findClass(AbstractTransformingClassLoader.java:122) [dfc.jar:]
at com.documentum.fc.client.impl.bof.classmgmt.DelayedDelegationClassLoader.loadClass(DelayedDelegationClassLoader.java:147) [dfc.jar:]
at com.documentum.fc.client.impl.bof.classmgmt.AbstractTransformingClassLoader.loadClass(AbstractTransformingClassLoader.java:69) [dfc.jar:]
at java.lang.ClassLoader.loadClass(ClassLoader.java:356) [rt.jar:1.7.0_17]
at com.dewa.documentum.Execute.SignatureGenerator.execute(SignatureGenerator.java:65)
at com.documentum.mthdservlet.DfMethodRunner.runIt(Unknown Source) [mthdservlet.jar:]
at com.documentum.mthdservlet.AMethodRunner.runAndReturnStatus(Unknown Source) [mthdservlet.jar:]
at com.documentum.mthdservlet.DoMethod.invokeMethod(Unknown Source) [mthdservlet.jar:]
at com.documentum.mthdservlet.DoMethod.doPost(Unknown Source) [mthdservlet.jar:]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_17]

@nirukan,

Have you tried the latest version of Aspose.Words for Java i.e. 18.11 yet?

The Stack Trace you shared is not complete. We do not see an Aspose.Words’ code that caused the exception. Please share complete Stack Trace of the error for our reference.

Please also share simplified source code that is causing the problem on your end. Other than the License class, are you able to load any other Aspose.Words’ class from your environment? For example, try only this without applying License:

Document doc = new Document();

What environment are you running Aspose.Words for Java on?

  • OS (Windows Version or Linux Version)
  • Architecture (32 / 64 bit)
  • Java version (JDK)
  • Any Third Party Libraries / SDK in addition to Aspose.Words