AnsweredAssumed Answered

RSA API ADMIN Error : ClassNotFound

Question asked by Badr Houssni on Aug 27, 2019
Latest reply on Oct 3, 2019 by Ranjan P

Hi Everyone,

 

We are trying to build an environment to test the RSA API Admin.

We are using the SDK for the latest version of AM 8.4.0

JDK: Oracle JDK 1.8.

IDE: Eclipse

 

We followed the instructions to use the SDK and we are trying to run the AdminAPIDemos.java Class but we are having some errors & exceptions ...
Anyone could help or advice us to troubleshoot this errors?

 

ERROR: com.rsa.common.SystemException: Command target (PrimaryCommandTarget) initialization failure
java.lang.ClassNotFoundException: com.rsa.ims.security.keymanager.sys.FieldsReader
at com.rsa.command.ConnectionFactory.getSpringBeanTarget(ConnectionFactory.java:195)
at com.rsa.command.ConnectionFactory.getTarget(ConnectionFactory.java:174)
at com.rsa.command.ConnectionFactory.getConnection(ConnectionFactory.java:302)
at com.rsa.command.ConnectionFactory.getConnection(ConnectionFactory.java:346)
at rsa_api_admin1.demo_list.main(demo_list.java:1373)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'PrimaryCommandTarget' defined in URL [jar:file:/C:/Users/bahoussni/eclipse-workspace/rsa_api_admin1/RSA_Authentication_Manager_SDK/lib/java/am-client.jar!/CommandClientAppContext.xml]: Cannot resolve reference to bean 'CommandTargetBasicAuth' while setting bean property 'reference'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'CommandTargetBasicAuth' defined in URL [jar:file:/C:/Users/bahoussni/eclipse-workspace/rsa_api_admin1/RSA_Authentication_Manager_SDK/lib/java/am-client.jar!/CommandClientAppContext.xml]: Cannot resolve reference to bean 'ConnectionInfoProvider' while setting bean property 'connectionInfoProvider'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ConnectionInfoProvider' defined in URL [jar:file:/C:/Users/bahoussni/eclipse-workspace/rsa_api_admin1/RSA_Authentication_Manager_SDK/lib/java/am-client.jar!/CommandClientAppContext.xml]: Cannot create inner bean 'com.rsa.ims.security.keymanager.sys.ServerAccessInfo#be64738' of type [com.rsa.ims.security.keymanager.sys.ServerAccessInfo] while setting bean property 'serverAccessInfo'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.rsa.ims.security.keymanager.sys.ServerAccessInfo#be64738' defined in URL [jar:file:/C:/Users/bahoussni/eclipse-workspace/rsa_api_admin1/RSA_Authentication_Manager_SDK/lib/java/am-client.jar!/CommandClientAppContext.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: com/rsa/ims/security/keymanager/sys/FieldsReader
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:334)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1419)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1160)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1127)
at com.rsa.command.ConnectionFactory.getSpringBeanTarget(ConnectionFactory.java:193)
... 4 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'CommandTargetBasicAuth' defined in URL [jar:file:/C:/Users/bahoussni/eclipse-workspace/rsa_api_admin1/RSA_Authentication_Manager_SDK/lib/java/am-client.jar!/CommandClientAppContext.xml]: Cannot resolve reference to bean 'ConnectionInfoProvider' while setting bean property 'connectionInfoProvider'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ConnectionInfoProvider' defined in URL [jar:file:/C:/Users/bahoussni/eclipse-workspace/rsa_api_admin1/RSA_Authentication_Manager_SDK/lib/java/am-client.jar!/CommandClientAppContext.xml]: Cannot create inner bean 'com.rsa.ims.security.keymanager.sys.ServerAccessInfo#be64738' of type [com.rsa.ims.security.keymanager.sys.ServerAccessInfo] while setting bean property 'serverAccessInfo'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.rsa.ims.security.keymanager.sys.ServerAccessInfo#be64738' defined in URL [jar:file:/C:/Users/bahoussni/eclipse-workspace/rsa_api_admin1/RSA_Authentication_Manager_SDK/lib/java/am-client.jar!/CommandClientAppContext.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: com/rsa/ims/security/keymanager/sys/FieldsReader
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:334)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1419)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1160)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
... 15 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ConnectionInfoProvider' defined in URL [jar:file:/C:/Users/bahoussni/eclipse-workspace/rsa_api_admin1/RSA_Authentication_Manager_SDK/lib/java/am-client.jar!/CommandClientAppContext.xml]: Cannot create inner bean 'com.rsa.ims.security.keymanager.sys.ServerAccessInfo#be64738' of type [com.rsa.ims.security.keymanager.sys.ServerAccessInfo] while setting bean property 'serverAccessInfo'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.rsa.ims.security.keymanager.sys.ServerAccessInfo#be64738' defined in URL [jar:file:/C:/Users/bahoussni/eclipse-workspace/rsa_api_admin1/RSA_Authentication_Manager_SDK/lib/java/am-client.jar!/CommandClientAppContext.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: com/rsa/ims/security/keymanager/sys/FieldsReader
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:287)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1419)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1160)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
... 25 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.rsa.ims.security.keymanager.sys.ServerAccessInfo#be64738' defined in URL [jar:file:/C:/Users/bahoussni/eclipse-workspace/rsa_api_admin1/RSA_Authentication_Manager_SDK/lib/java/am-client.jar!/CommandClientAppContext.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: com/rsa/ims/security/keymanager/sys/FieldsReader
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1039)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:985)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:276)
... 35 more
Caused by: java.lang.NoClassDefFoundError: com/rsa/ims/security/keymanager/sys/FieldsReader
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.getDeclaredConstructor(Unknown Source)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:78)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1032)
... 39 more
Caused by: java.lang.ClassNotFoundException: com.rsa.ims.security.keymanager.sys.FieldsReader
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 45 more

 

Thank you.

Outcomes