11 Replies Latest reply on Mar 8, 2016 9:52 AM by Olivier Renault

    unable to call Utility nshCommand via webservices

    Olivier Renault

      Hi

       

      when I call this webservice:

      CLITunnel "${SESSID}" "Utility" "nshCommand" "'/data/flf/sgadep/AUTOMATES/AMADEUS/_OUTILLAGE/Liste_roles_rolesid-S1F0.sh'|10000"

       

      I get in the logs :

       

      [12 Feb 2016 16:34:53,200] [http-9943-2] [ERROR] [BLAdmin:BLAdmins:10.195.202.81] [] [CLI Tunnel Service] Exit status was : 15.

      Standard err was :

      java.lang.Exception: Exit status was : 15.

      Standard err was :

              at com.bladelogic.om.infra.cli.commands.NSHCommand.executeCommand(NSHCommand.java:72)

              at com.bladelogic.om.infra.cli.CLIEngine.executeCommand(CLIEngine.java:116)

              at com.bladelogic.om.infra.model.clitunnel.CLITunnelServiceImpl.executeCommand(CLITunnelServiceImpl.java:142)

              at com.bladelogic.webservices.skeleton.clitunnel.CLITunnelServiceSkeleton.executeCommandByParamList(CLITunnelServiceSkeleton.java:197)

              at com.bladelogic.webservices.skeleton.clitunnel.CLITunnelServiceMessageReceiverInOut.invokeBusinessLogic(CLITunnelServiceMessageReceiverInOut.java:

      102)

              at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)

              at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)

              at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:173)

              at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:167)

              at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:142)

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

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

              at sun.reflect.GeneratedMethodAccessor66.invoke(Unknown Source)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:270)

              at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:269)

              at java.security.AccessController.doPrivileged(Native Method)

              at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)

              at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:302)

              at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:163)

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

              at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:56)

              at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)

              at java.security.AccessController.doPrivileged(Native Method)

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

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

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

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

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

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

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

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

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

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

              at java.lang.Thread.run(Thread.java:662)

       

       

      what am I doing wrong?

      The file /data/flf/sgadep/AUTOMATES/AMADEUS/_OUTILLAGE/Liste_roles_rolesid-S1F0.sh exists, is executable and works fine as a standalons script