IBM Support

Exception in thread "main" java.lang.NullPointerException when importing an SSL certificate via ThirdPartyCertificateTool.sh

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

[{"Product":{"code":"SSEP7J","label":"Cognos Business Intelligence"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Install and Config","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"}],"Version":"10.2;10.2.1;10.2.2","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
15 June 2018

UID

swg21594952