java.security.InvalidKeyException: not a DSA private key: null

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by NataS, 1 year ago
via Oracle Community by IDMuser19, 1 year ago
via Oracle Community by Caddick, 1 year ago
not a DSA private key: Sun RSA private CRT ke y, 1024 bits modulus: 967212999089764237589802410055861244329969944634203672079776 18600532250990943480152711851107099917200626042460163647725910465095787255943754
via hivmr.com by Unknown author, 1 year ago
via hivmr.com by Unknown author, 1 year ago
via xml-security-dev by t. winkler, 1 year ago
not a DSA private key: com.sun.net.ssl.internal.ssl.JSA_RSAPrivateKey@47c1db
java.security.InvalidKeyException: not a DSA private key: null
at sun.security.provider.DSA.engineInitSign(DSA.java:200)
at java.security.Signature$Delegate.engineInitSign(Signature.java:1095)
at java.security.Signature.initSign(Signature.java:480)
at java.security.SignedObject.sign(SignedObject.java:225)
at java.security.SignedObject.(SignedObject.java:144)
at com.thortech.xl.crypto.tcDefaultSignatureImpl.sign(Unknown Source)
at com.thortech.xl.crypto.tcCryptoUtil.sign(Unknown Source)
at mx.com.spsolutions.utils.AsertaTest.initSignatureConn(AsertaTest.java:53)
at mx.com.spsolutions.utils.AsertaTest.createModifyRequest(AsertaTest.java:146)
at mx.com.spsolutions.utils.AsertaTest.main(AsertaTest.java:260)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.