Announcements

SecurID® Discussions

Browse the SecurID discussion board to get product help and collaborate with other SecurID users.
v_bhalajifis
New Contributor
New Contributor

Error on calling utility program CommandHelperReq from SDK Samples.

I am trying to execute RSA commands on Remote RSA using the Utility class CommandHelperReq.java from the SDK API samples. 
Below is my code calling this class

package com.rsa.samples.request;
import com.rsa.authmgr.admin.tokenmgt.SearchTokensCommand;
import javax.security.auth.Subject;
public class UtilityTester {
public static void main(String as[]) throws Exception {
SearchTokensCommand tokenSrchCmd = new SearchTokensCommand();
CommandHelperReq req= new CommandHelperReq();
req.initializeCommandTarget();
Subject subject = req.login("AdminUserid", "pass");
req.execute(tokenSrchCmd, subject);
}
}

But, I get Below Error:

ERROR, XXXServername.local,,,,Exception during command execution.

javax.ejb.EJBAccessException: [EJB:010160]Security violation: User <anonymous> has insufficient permission to access EJB type=<ejb>, application=am-app, module=ims-cmd-server-ejb.jar, ejb=CommandServerEjb30, method=executeCommand, methodInterface=Remote, signature={java.lang.String,com.rsa.command.TargetableCommand}.
      at weblogic.ejb.container.internal.InvocationWrapper.checkMethodPermissionsBusiness(InvocationWrapper.java:415)
      at weblogic.ejb.container.internal.BaseRemoteObject.preInvokeInternal(BaseRemoteObject.java:215)
      at weblogic.ejb.container.internal.BaseRemoteObject.__WL_preInvoke(BaseRemoteObject.java:119)
      at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invokeInternal(SessionRemoteMethodInvoker.java:42)
      at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:21)
      at com.rsa.command.CommandServerEjb30_vraifm_CommandServerEjb30Impl.executeCommand(Unknown Source)
      at com.rsa.command.CommandServerEjb30_vraifm_CommandServerEjb30Impl_WLSkel.invoke(Unknown Source)
      at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:645)
      at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:246)
      at weblogic.rmi.internal.BasicServerRef$2.run(BasicServerRef.java:534)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:370)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:163)
      at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:531)
      at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:138)
      at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:352)
      at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:337)
      at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:57)
      at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)
      at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:652)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:420)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:360)

Anyone experienced this issue?
Thanks.

0 Likes
0 Replies