Troubleshooting
Problem
Exception in thread "main" java.lang.NullPointerException when importing an SSL certificate via ThirdPartyCertificateTool.sh on UNIX
Symptom
When running the following command an error is received:
ThirdPartyCertificateTool.sh -T -i -r /opt/cognos/certificates/certificate.cer -D ../configuration/signkeypair -p NoPassWordSet
Error received during import:
log4j:WARN No appenders could be found for logger (Trace.CAM.JCAM).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main" java.lang.NullPointerException
at com.cognos.accman.jcam.crypto.misc.CAMCryptoUtilities.
getCertificatesFromFile(CAMCryptoUtilities.java:436)
at com.cognos.accman.jcam.utilities.ThirdPartyCertificateTool.
installCACert(ThirdPartyCertificateTool.java:660)
at com.cognos.accman.jcam.utilities.ThirdPartyCertificateTool.
main(ThirdPartyCertificateTool.java:1043)
Cause
The Operating System User running the ThirdPartyCertificateTool.sh does not have read access to the SSL certificate file or the directory where it is located.
Environment
All Unix/Linux
Resolving The Problem
Ensure the Operating System User performing the certificate import has access to the directory where the certificate is stored as well as read access to the certificate file itself
Was this topic helpful?
Document Information
Modified date:
15 June 2018
UID
swg21594952