Startup the portal with an IBM JDK, now Company.key is using the default IBM JDK provider.
Now start the portal with a Sun JDK, company.getKey() is null because it can't read the value from the Company.key table since it is a key that is using a provider that is not supported.
Try signing in, big NullPointerException because bottom_js.jsp chokes on:
encryptedUserId: '<%= Encryptor.encrypt(company.getKeyObj(), String.valueOf(themeDisplay.getUserId())) %>',
This simply allows things to work and prints a warning. This should only happen in tests scenarios. Most ppl don't swap JDKs in production.