AnsweredAssumed Answered

Policy Xpress - Execute Command Line Question

Question asked by mmarin on Jan 23, 2012
Latest reply on Jan 23, 2012 by Chris_Hackett
Dear Community,

i am trying to test a Policy Xpress with the Action Rule Category "External Codes". Type "Activate Command Line" and Function "Execute Command Line". It meas trying to execute the command line specified. and for my test I am trying to execute an etautil command with bad results.

Anybody have an example of this kind of action in Policy Xpress?

Here is the error:

2012-01-22 21:37:21,711 ERROR [ims.policyxpress.PxController] ENVIRONMENT error occured while running flow. Throwing exception.
com.ca.identitymanager.policyxpress.exceptions.PxEnvironmentException: Failed running command line: "D:\Program Files\CA\Identity Manager\Provisioning Server\bin\etautil.exe -d im -u superuser -p xxxxxxxx update 'eTGlobalUserContainerName=Global Users,eTNamespaceName=CommonObjects' etGlobalUser GlobalUserName='user01' eTUserID=user01 eTDisableDate=0000112039"


at com.ca.identitymanager.policyxpress.plugins.actions.PxActionCommandLine.performAction(PxActionCommandLine.java:44)

at com.ca.identitymanager.policyxpress.engine.flow.FlowAction.immediate(FlowAction.java:64)

at com.ca.identitymanager.policyxpress.engine.flow.FlowAction.runTask(FlowAction.java:50)

at com.ca.identitymanager.policyxpress.engine.PxEventController.processEvent(PxEventController.java:117)

at com.ca.identitymanager.policyxpress.listeners.PxBLTHListener.execute(PxBLTHListener.java:100)

at com.ca.identitymanager.policyxpress.listeners.PxBLTHListener.handleValidation(PxBLTHListener.java:84)

at com.netegrity.ims.businessprocess.BLTHTaskHandler.handleTask(BLTHTaskHandler.java:167)

at com.netegrity.ims.businessprocess.BLTHTaskHandler.handleTask(BLTHTaskHandler.java:120)

at com.netegrity.ims.businessprocess.TaskServiceImpl.validateSubmit(TaskServiceImpl.java:1275)

at com.netegrity.ims.businessprocess.TaskServiceImpl.submit(TaskServiceImpl.java:343)

at com.netegrity.ims.businessprocess.TaskServiceImpl.submit(TaskServiceImpl.java:321)

at com.netegrity.webapp.page.TaskController.taskSubmit(TaskController.java:1023)

at com.netegrity.webapp.page.TaskController.update(TaskController.java:614)

at com.netegrity.taglib.skin.TagUtilLocal.update(TagUtilLocal.java:246)

at com.netegrity.taglib.skin.UpdateTag.doEndTag(UpdateTag.java:131)

at idm_jsp.app.ca12.index_jsp._jspx_meth_skin_005fupdate_005f0(Unknown Source)

at idm_jsp.app.ca12.index_jsp._jspService(Unknown Source)

at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)

at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:445)

at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)

at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292)

at com.netegrity.webapp.filter.ConsolePageFilter.doFilter(ConsolePageFilter.java:521)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at com.netegrity.webapp.page.jsf.FacesFilter.doFilter2(FacesFilter.java:180)

at com.netegrity.webapp.page.jsf.FacesFilter.doFilter(FacesFilter.java:151)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at com.netegrity.webapp.authentication.FrameworkLoginFilter.doFilter(FrameworkLoginFilter.java:221)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at com.netegrity.webapp.filter.LocaleFilter.doFilter(LocaleFilter.java:101)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)

at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)

at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)

at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)

at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)

at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.IOException: CreateProcess: "D:\Program Files\CA\Identity Manager\Provisioning Server\bin\etautil.exe -d im -u superuser -p xxxxxxx update 'eTGlobalUserContainerName=Global Users,eTNamespaceName=CommonObjects' etGlobalUser GlobalUserName='user01' eTUserID=user01 eTDisableDate=0000112039" error=3

at java.lang.ProcessImpl.create(Native Method)

at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)

at java.lang.ProcessImpl.start(ProcessImpl.java:30)

at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)

at java.lang.Runtime.exec(Runtime.java:591)

at java.lang.Runtime.exec(Runtime.java:464)

at com.ca.identitymanager.policyxpress.plugins.shared.CommandLine.Execute(CommandLine.java:42)

at com.ca.identitymanager.policyxpress.plugins.actions.PxActionCommandLine.performAction(PxActionCommandLine.java:42)

... 56 more

Outcomes