Home » Java » Caused by: java.lang.ExceptionInInitializerError at com.businessobjects.bcm.BCM.<clinit>(BCM.java:1144)

Caused by: java.lang.ExceptionInInitializerError at com.businessobjects.bcm.BCM.<clinit>(BCM.java:1144)

Posted by: admin July 12, 2018 Leave a comment

Questions:

I am trying to deploy a war file which creates IEnterpriseSession. I am able to successfully run on tomcat, but when I run it on JBoss i get the below error at this step sessionMgr.logon(trustedPrincipal);

Caused by: java.lang.ExceptionInInitializerError
    at com.businessobjects.bcm.BCM.&lt;clinit&gt;(BCM.java:1144)
    at com.crystaldecisions.sdk.framework.internal.TrustedPrincipal.getRandomString(TrustedPrincipal.java:252)
    at com.crystaldecisions.sdk.framework.internal.TrustedPrincipal.getPassword(TrustedPrincipal.java:195)
    at com.crystaldecisions.sdk.framework.internal.SessionMgr.logon_aroundBody22(SessionMgr.java:850)
    at com.crystaldecisions.sdk.framework.internal.SessionMgr.logon(SessionMgr.java:1)
    at com.crystaldecisions.sdk.framework.internal.SessionMgr.logon_aroundBody20(SessionMgr.java:818)
    at com.crystaldecisions.sdk.framework.internal.SessionMgr.logon_aroundBody21$advice(SessionMgr.java:512)
    at com.crystaldecisions.sdk.framework.internal.SessionMgr.logon(SessionMgr.java:1)

I tried with the solution mentioned in the ExceptionInInitializerError – JBoss 7.0.2, but I still couldn’t get through.

I was digging more into the error and this is where I am stuck

Caused by: java.lang.SecurityException: An internal FIPS 140 self-verification test has failed.  Algorithm HMAC has been disabled
    at com.rsa.cryptoj.f.ug.d(Unknown Source)
    at com.rsa.cryptoj.f.ug.b(Unknown Source)
    at com.rsa.cryptoj.f.nd.b(Unknown Source)
    at com.rsa.cryptoj.f.nd.c(Unknown Source)
    at com.rsa.jsafe.CryptoJ.isFIPS140Compliant(Unknown Source)
    at com.businessobjects.bcm.internal.BcmRsaLib.initialize(BcmRsaLib.java:214)
    at com.businessobjects.bcm.internal.BcmRsaLib.<clinit>(BcmRsaLib.java:289)

Can someone help me to get it working on JBoss?

Answers: