COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Cognos Administration => Topic started by: Cog_rookie on 20 Aug 2013 06:35:37 AM

Title: [Cryptography] [ ERROR ] java.lang.NullPointerException
Post by: Cog_rookie on 20 Aug 2013 06:35:37 AM
Hi all,

When I try to start the primary CM I keep getting this error. I have re-created CSK, encrypt keys and sign but still get the error above.

I even re-did the cogstartup.xml file.

It all works fine after I re- do all of the above but when I re-start it again it comes up with the above error.

Does anyone know what the above error is referring to?

Any suggestions would be greatly appreciated.
Title: Re: [Cryptography] [ ERROR ] java.lang.NullPointerException
Post by: Grim on 20 Aug 2013 07:13:47 AM
Unix/Linux or Windows?

If unix/linux did you update the java env? JAVA_HOME set properly? LD_LIBRARY_PATH ok too?
Title: Re: [Cryptography] [ ERROR ] java.lang.NullPointerException
Post by: Cog_rookie on 20 Aug 2013 08:27:19 AM
Windows

There is no JAVA_HOME set in the environmental variables.

I think we don't require that in the windows settings do we?
Title: Re: [Cryptography] [ ERROR ] java.lang.NullPointerException
Post by: Grim on 20 Aug 2013 09:20:37 AM
On windows you do not, and should not have a JAVA_HOME set. Cognos on Windows comes with java.

Is this an older server? Do you have any remnats of old installs in the env vars?

Is DEP on? If yes turn it off.

When you regen the keys make sure you are deleting/moving all of the following:
Files...
<cognos>/configuration/caSerial
<cognos>/configuration/cogconfig.prefs
<cognos>/configuration/cogstartup.xml
<cognos>/temp/cam/freshness

Folders...
<cognos>/configuration/csk
<cognos>/configuration/encryptkeypair
<cognos>/configuration/signkeypair
Title: Re: [Cryptography] [ ERROR ] java.lang.NullPointerException
Post by: emarshah on 26 Aug 2013 02:23:23 AM
Hi Cog_rookie,

               you might need to set either JAVA_HOME variable
              or regeneration of Encyrpt keys will work http://www-01.ibm.com/support/docview.wss?uid=swg21344755 (http://www-01.ibm.com/support/docview.wss?uid=swg21344755).
Title: Re: [Cryptography] [ ERROR ] java.lang.NullPointerException
Post by: Cog_rookie on 28 Aug 2013 05:48:20 AM
I had to delete the JAVA_HOME variable in my environmental variables path.
Title: Re: [Cryptography] [ ERROR ] java.lang.NullPointerException
Post by: Grim on 28 Aug 2013 02:04:57 PM
As I said...
Quote from: Grim on 20 Aug 2013 09:20:37 AM
On windows you do not, and should not have a JAVA_HOME set.
Title: Re: [Cryptography] [ ERROR ] java.lang.NullPointerException
Post by: Cog_rookie on 02 Sep 2013 04:27:37 AM
Thanks Grim.

I did not see the JAVA_HOME then.

Thanks for your help.