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

Free Support Forum - aspose.com

Invalid SHA1 signature with Aspose.Cell 7.0.2 Jar

There is a legacy java application which is a client server application. Client project is in JAva Swing. For this application we are still using Java version 1.5.

Generation of server side jars using maven command :
mvn clean install assembly:assembly -Dmaven.test.skip=true -Denv=ALL

Generation of client side war :
mvn keytool:clean keytool:generateKeyPair install webstart:jnlp assembly:assembly -Dmaven.test.skip=true -Denv=ALL


While creating the Client war with maven command, the jar is not getting signed by giving a certificate issue. The version we use is aspose.cell 7.0.2:

com.aspose

aspose-cells

7.0.2

Getting this issue with aspose cell version 7.0.2 however with Version: 8.6.3 its working fine.

Getting the following error with aspose cell version 7.0.2:

Warning:
[exec] [INFO] No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date (2017-04-07) or after any future revocation date.
[exec] [DEBUG] lastModified signedJar:1460039368890 unprocessed signed Jar:1460039360232
[exec] [DEBUG] Verify signature of aspose-cells-7.0.2.jar

[exec] [INFO] cmd.exe /X /C "C:\HOMEWARE\ITEC-Toolbox\apps\jdk\jdk1.7.0_72-windows-x64\jre\..\bin\jarsigner.exe -verify -verbose C:\HOMEWARE\ITEC-Toolbox\LTRFO\dfi-fin-dcm-syn-ltr-fo-client\target\jnlp\aspose-cells-7.0.2.jar"
[exec] [DEBUG] Executing: cmd.exe /X /C "C:\HOMEWARE\ITEC-Toolbox\apps\jdk\jdk1.7.0_72-windows-x64\jre\..\bin\jarsigner.exe -verify -verbose C:\HOMEWARE\ITEC-Toolbox\LTRFO\dfi-fin-dcm-syn-ltr-fo-client\target\jnlp\aspose-cells-7.0.2.jar"
[exec] [INFO] jarsigner: java.lang.SecurityException: invalid SHA1 signature file digest for com/aspose/cells/jA.class
[exec] [INFO] ------------------------------------------------------------------------
[exec] [ERROR] BUILD ERROR
[exec] [INFO] ------------------------------------------------------------------------
[exec] [INFO] Could not verify jar C:\HOMEWARE\ITEC-Toolbox\LTRFO\dfi-fin-dcm-syn-ltr-fo-client\target\jnlp\aspose-cells-7.0.2.jar, use -X to have detail of error
[exec] [INFO] ------------------------------------------------------------------------
[exec] [DEBUG] Trace
[exec] org.apache.maven.lifecycle.LifecycleExecutionException: Could not verify jar C:\HOMEWARE\ITEC-Toolbox\LTRFO\dfi-fin-dcm-syn-ltr-fo-client\target\jnlp\aspose-cells-7.0.2.jar, use -X to have detail of error
[exec] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
[exec] at or


Hi,


I am afraid, we might not help you much to evaluate your issue in older version (7.0.x) that you are using. Neither, we could do anything to add fixes to older versions against any issues. Also, as our newer versions (e.g v8.6.3) are working fine and you don’t find this issue (as you mentioned), so we highly recommend you to kindly upgrade to our latest APIs set of Aspose.Cells for Java component. For your information, over the years, we have made tremendous enhancements and incorporated many new features and other improvements to make the product more robust, reliable and feature rich API.

We are sorry for any inconvenience caused!

Hello,


I am able to resolve the issue related to the older version (7.0.x) by replacing the 7.0.2 with 8.0.2 version. As we have a legacy application works in JDK 1.5 still so we can’t switch to newer version of the API. Currently with aspose-cells-8.0.2-java we are able to generate the report with no issue.

However we need the License for aspose-cells-8.0.2-java Jar.
I checked the http://www.aspose.com/downloads, only versions released within the last year are available for download.


Could you please help us get the License for aspose-cells-8.0.2-java as we can not upgrade Java to latest version as a very legacy application and there will be lot of rework or you can suggest us any workaround.


Hi,


I am afraid, we might not provide a license to work with any version older than one year or so. The new licenses are always used with the latest APIs set (newer versions of the product).
Although we do not provide JDK 1.5 compiled version of the product now. But if you like I can discuss the matter with our product team to check if could provide you JDK 1.5 version of the product based on latest APIs set (e.g Aspose.Cells for Java v8.7.2/v8.8.0 (upcoming)) separately. To use latest versions (even for JDK1.5), you have to upgrade your subscription to get new license. Also, you might update the code segment in your project in accordance with latest APIs set. If you find any issue while updating your sample code, we are here to help you soon to sort out everything.

Thank you.