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

Free Support Forum - aspose.com

Bug in license reading

Aspose PDF for Java (jdk16) has from version 19.9 onwards bug while reading license files.
Result is following code:

Caused by: java.security.SignatureException: Signature decryption error: javax.crypto.BadPaddingException: Invalid PKCS#1 padding: no leading zero!
	at iaik.security.rsa.RSASignature.engineVerify(Unknown Source)
	at java.security.Signature.verify(Signature.java:651)
	at com.aspose.pdf.l9u.lI(Unknown Source)
	at com.aspose.pdf.l9u.lc(Unknown Source)
	at com.aspose.pdf.l9u.lI(Unknown Source)
	at com.aspose.pdf.License.setLicense(Unknown Source)
	at at.exthex.xdp.aspose.PdfConverter.<init>(PdfConverter.java:22)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
	at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148)

This is executed on Windows Server 2008 R2. We use 4 other Aspose modules and none of them, in any version has problems with reading the license file, so something specific happened on this Aspose module from version 19.9->19.10.



Could you please share your license file with us in a private message. We will test it in our environment and address the issue accordingly. Please also try to use license file in a separate console application by setting the file path to license. You can send a private message by clicking over username and pressing Blue Message Button.