000017091 - Can't create api: RSA API Initialization running sample AuthAPI.jar

Document created by RSA Customer Support Employee on Jun 14, 2016Last modified by RSA Customer Support Employee on Apr 21, 2017
Version 2Show Document
  • View in full screen mode

Article Content

Article Number000017091
Applies ToAuthSDK_Java_8.1.2.495.09_14_12_07_12_26
Java_8.1.2.495
Can't create api
build.xml
java -classpath ..:../../lib/authapi.jar:../../lib/log4j-1.2.8.jar sample.AuthUser sample.properties
java -classpath ..:../../lib/authapi.jar:../../lib/log4j-1.2.8.jar sample.AuthUser sample.properties
IssueCan't create api: RSA API Initialization Error: java.lang.NullPointerException
com.rsa.authagent.authapi.AuthAgentException: RSA API Initialization Error: java.lang.NullPointerException
        at com.rsa.authagent.authapi.AuthSessionFactory.a(Unknown Source)
        at com.rsa.authagent.authapi.AuthSessionFactory.<init>(Unknown Source)
        at com.rsa.authagent.authapi.AuthSessionFactory.getInstance(Unknown Source)
        at sample.AuthUser.<init>(AuthUser.java:33)
        at sample.AuthUser.main(AuthUser.java:63)
Node secret is created on the Authentication Manager Database under the Agent entry.  But securid file is not created on the JavaAPI side.
CauseAt least one version of BEA JRocket has an incompatiblity with the SecurID Java API
java version "1.5.0_15"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_15-b04)
BEA JRockit(R) (build R27.6.0-50_o-100423-1.5.0_15-20080626-2104-linux-x86_64, compiled mode)
When a node secret is extracted from the nodesecret.rec file via the agent_nsload utiltity and the securid file is present the can't create api error will manifest itself.
ResolutionUse a current Java version from Oracle
Legacy Article IDa60890

Attachments

    Outcomes