Release Automation

 View Only
  • 1.  Release Automation and IBM Datapower

    Posted Sep 01, 2015 03:04 PM

    Hi,

     

    I'm using for the first time Release Automation with IBM Datapower and i have a doubt.

     

    Already have enabled XML Management Interface and Curl command works correctly when I use it directly to the equipment (according to Datapower RedBook). But can't do the same thing from Release Automation, always get Test Failed. I'm just using Generic Soap Request with fixed parameters, IP address, Soap and Userid/Password but keep getting Test Failed.

     

    Is there some action i need to do on Datapower itself beside XML Management Interface?. Is there some kind of agent instalation on this equipment?

     

    I have been searching online and haven't found anything yet.

     

    Thanks...



  • 2.  Re: Release Automation and IBM Datapower

    Broadcom Employee
    Posted Sep 08, 2015 06:23 PM

    What is the full error message you're getting?  Do you see an error for this in the RA logs?



  • 3.  Re: Release Automation and IBM Datapower

    Posted Sep 08, 2015 10:59 PM

    From Automation Studio I just get Test Failed. From Process Execution in Enviroments the process starts and cancel right away. I'm connecting trought a server running the RA Agent and get those messages.I'm not sure if i have to "install" or "run" something inside datapower, as far as i know it can't be done....



  • 4.  Re: Release Automation and IBM Datapower

    Broadcom Employee
    Posted Sep 09, 2015 10:09 AM

    Check your logs for a more detailed error, which should help shed some light on the issue. I would start with the nolio actions log in the agent's logs folder.



  • 5.  Re: Release Automation and IBM Datapower

    Posted Sep 10, 2015 01:10 PM

    These are some errors I've found on agent's log. I see a connect timed out, but from that server to my DP using curl the soap request works fine....

     

    ------------------------------------------------------------------------------------------------------------------------------------------------------

     

    2015-09-01 10:50:47,153 [job-164209-jobServer-164228-6:DataPower - Generic SOAP Request(P1027.F18330.E18331):DataPower - Generic SOAP Request] DE

    BUG (com.nolio.platform.shared.parameter.InParameterPlaceHolder:170) - PlaceHolder for field [soapRequest] got value [<?xml version="1.0" encodin

    g="UTF-8"?>

    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">

            <env:Body>

                    <dp:request domain="default" xmlns:dp="http://www.datapower.com/schemas/management">

                            <dp:get-status class="CPUUsage"/>

                    </dp:request>

            </env:Body>

    </env:Envelope>]

    2015-09-01 10:50:47,153 [job-164209-jobServer-164228-6:DataPower - Generic SOAP Request(P1027.F18330.E18331):DataPower - Generic SOAP Request] DE

    BUG (com.nolio.platform.shared.datamodel.Action:409) - Next Action Execution State Execute

    2015-09-01 10:50:47,153 [job-164209-jobServer-164228-6:DataPower - Generic SOAP Request(P1027.F18330.E18331):DataPower - Generic SOAP Request] IN

    FO  (com.nolio.platform.shared.datamodel.Action:322) - ------------------------About to execute action [DataPower - Generic SOAP Request(P1027.F1

    8330.E18331):DataPower - Generic SOAP Request]------------------------

    2015-09-01 10:51:17,178 [job-164209-jobServer-164228-6:DataPower - Generic SOAP Request(P1027.F18330.E18331):DataPower - Generic SOAP Request] IN

    FO  (com.nolio.platform.shared.datamodel.Action:324) - ------------------------Finished action [DataPower - Generic SOAP Request(P1027.F18330.E18

    331):DataPower - Generic SOAP Request] result [false, Operation failed:connect timed out]------------------------

    2015-09-01 10:51:17,179 [job-164209-jobServer-164228-6:DataPower - Generic SOAP Request(P1027.F18330.E18331):DataPower - Generic SOAP Request] DE

    BUG (com.nolio.platform.shared.datamodel.Action:409) - Next Action Execution State ResolveOutParameters

    2015-09-01 10:51:17,179 [job-164209-jobServer-164228-6:DataPower - Generic SOAP Request(P1027.F18330.E18331):DataPower - Generic SOAP Request] DE

    BUG (com.nolio.platform.shared.datamodel.Action:409) - Next Action Execution State Finished

    2015-09-01 10:51:56,122 [Communication Msg Processor-955] DEBUG (com.nolio.platform.shared.flowcontrol.service.FlowControlService:41) - FlowContr

    olService has been invoked with request:[FLOW_CONTROL_REQUEST:STOP]

    2015-09-01 10:51:56,122 [Communication Msg Processor-955] DEBUG (com.nolio.platform.shared.flowcontrol.service.FlowControlService:45) - job[16420

    9], jobServerId[164228], received [STOP] request.

    2015-09-01 10:51:56,125 [Communication Msg Processor-955] DEBUG (com.nolio.platform.shared.datamodel.Action:463) - Submitting Action null(__sub_f

    inal___flow_Test Server Type):StepResultEvaluator for flow execution.

    2015-09-01 10:51:56,126 [job-164209-jobServer-164228-8:null(__sub_final___flow_Test Server Type):StepResultEvaluator] DEBUG (com.nolio.platform.s

    hared.parameter.InParameterPlaceHolder:170) - PlaceHolder for field [evaluationResult] got value [Step Result: false - Operation failed:connect t

    imed out]

     

    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

     

    2015-09-10 12:27:09,171 [Communication Msg Processor-1456] DEBUG (com.nolio.platform.shared.datamodel.Action:409) - Next Action Execution State ResolveInParameters

    2015-09-10 12:27:09,174 [Communication Msg Processor-1456] ERROR (com.nolio.platform.shared.datamodel.Action:111) - org/apache/axis2/client/Stub

    java.lang.NoClassDefFoundError: org/apache/axis2/client/Stub

            at java.lang.ClassLoader.defineClass1(Native Method)

            at java.lang.ClassLoader.defineClass(Unknown Source)

            at java.security.SecureClassLoader.defineClass(Unknown Source)

            at java.net.URLClassLoader.defineClass(Unknown Source)

            at java.net.URLClassLoader.access$100(Unknown Source)

            at java.net.URLClassLoader$1.run(Unknown Source)

            at java.net.URLClassLoader$1.run(Unknown Source)

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

            at java.net.URLClassLoader.findClass(Unknown Source)

            at java.lang.ClassLoader.loadClass(Unknown Source)

            at java.lang.ClassLoader.loadClass(Unknown Source)

            at java.lang.Class.getDeclaredFields0(Native Method)

            at java.lang.Class.privateGetDeclaredFields(Unknown Source)

            at java.lang.Class.getDeclaredFields(Unknown Source)

            at com.nolio.platform.shared.utils.ReflectionUtils.getField(ReflectionUtils.java:40)

            at com.nolio.platform.shared.utils.ReflectionUtils.getField(ReflectionUtils.java:58)

            at com.nolio.platform.shared.utils.ReflectionUtils.setFieldInObject(ReflectionUtils.java:118)

            at com.nolio.platform.shared.datamodel.ActionProxy.createAction(ActionProxy.java:105)

            at com.nolio.platform.shared.flowcontrol.service.FlowActionProxyReplacer.createActionFromActionProxy(FlowActionProxyReplacer.java:74)

            at com.nolio.platform.shared.flowcontrol.service.FlowActionProxyReplacer.replaceSingleStepActionProxies(FlowActionProxyReplacer.java:45)

            at com.nolio.platform.shared.flowcontrol.service.FlowActionProxyReplacer.replaceActionProxies(FlowActionProxyReplacer.java:38)

            at com.nolio.platform.shared.flowcontrol.service.FlowDataFactory.initFlow(FlowDataFactory.java:93)

            at com.nolio.platform.shared.flowcontrol.service.FlowDataFactory.create(FlowDataFactory.java:85)

            at com.nolio.platform.shared.flowcontrol.service.FlowDataFactory.create(FlowDataFactory.java:46)

            at com.nolio.platform.shared.flowcontrol.service.FlowControlService.init(FlowControlService.java:80)

            at com.nolio.platform.shared.flowcontrol.service.FlowControlService.handleServiceRequest(FlowControlService.java:49)

            at com.nolio.platform.shared.communication.CommunicationNetworkServiceManager$1.run(CommunicationNetworkServiceManager.java:232)

            at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

            at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

            at java.lang.Thread.run(Unknown Source)

    Caused by: java.lang.ClassNotFoundException: org.apache.axis2.client.Stub

            at java.net.URLClassLoader$1.run(Unknown Source)

            at java.net.URLClassLoader$1.run(Unknown Source)

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

            at java.net.URLClassLoader.findClass(Unknown Source)

            at java.lang.ClassLoader.loadClass(Unknown Source)

            at java.lang.ClassLoader.loadClass(Unknown Source)

            ... 30 more

    2015-09-10 12:27:09,175 [Communication Msg Processor-1456] ERROR (com.nolio.platform.shared.flowcontrol.service.FlowControlService:87) - failed initialize flow for job[164378], jobServerId[164409].

    java.lang.RuntimeException: Failed to create action from ActionProxy[null:ActionProxy]

            at com.nolio.platform.shared.flowcontrol.service.FlowActionProxyReplacer.createActionFromActionProxy(FlowActionProxyReplacer.java:77)

            at com.nolio.platform.shared.flowcontrol.service.FlowActionProxyReplacer.replaceSingleStepActionProxies(FlowActionProxyReplacer.java:45)

            at com.nolio.platform.shared.flowcontrol.service.FlowActionProxyReplacer.replaceActionProxies(FlowActionProxyReplacer.java:38)

            at com.nolio.platform.shared.flowcontrol.service.FlowDataFactory.initFlow(FlowDataFactory.java:93)

            at com.nolio.platform.shared.flowcontrol.service.FlowDataFactory.create(FlowDataFactory.java:85)

            at com.nolio.platform.shared.flowcontrol.service.FlowDataFactory.create(FlowDataFactory.java:46)

            at com.nolio.platform.shared.flowcontrol.service.FlowControlService.init(FlowControlService.java:80)

            at com.nolio.platform.shared.flowcontrol.service.FlowControlService.handleServiceRequest(FlowControlService.java:49)

            at com.nolio.platform.shared.communication.CommunicationNetworkServiceManager$1.run(CommunicationNetworkServiceManager.java:232)

            at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

            at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

            at java.lang.Thread.run(Unknown Source)

    Caused by: com.thoughtworks.xstream.converters.ConversionException: Could not setup an action :org/apache/axis2/client/Stub : org/apache/axis2/client/Stub

    ---- Debugging information ----

    message             : Could not setup an action :org/apache/axis2/client/Stub

    cause-exception     : java.lang.NoClassDefFoundError

    cause-message       : org/apache/axis2/client/Stub

    -------------------------------

            at com.nolio.platform.shared.datamodel.ActionProxy.createAction(ActionProxy.java:112)

            at com.nolio.platform.shared.flowcontrol.service.FlowActionProxyReplacer.createActionFromActionProxy(FlowActionProxyReplacer.java:74)

            ... 11 more

    Caused by: java.lang.NoClassDefFoundError: org/apache/axis2/client/Stub

            at java.lang.ClassLoader.defineClass1(Native Method)

            at java.lang.ClassLoader.defineClass(Unknown Source)

            at java.security.SecureClassLoader.defineClass(Unknown Source)

            at java.net.URLClassLoader.defineClass(Unknown Source)

            at java.net.URLClassLoader.access$100(Unknown Source)

            at java.net.URLClassLoader$1.run(Unknown Source)

            at java.net.URLClassLoader$1.run(Unknown Source)

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

            at java.net.URLClassLoader.findClass(Unknown Source)

            at java.lang.ClassLoader.loadClass(Unknown Source)

            at java.lang.ClassLoader.loadClass(Unknown Source)

            at java.lang.Class.getDeclaredFields0(Native Method)

            at java.lang.Class.privateGetDeclaredFields(Unknown Source)

            at java.lang.Class.getDeclaredFields(Unknown Source)

            at com.nolio.platform.shared.utils.ReflectionUtils.getField(ReflectionUtils.java:40)

            at com.nolio.platform.shared.utils.ReflectionUtils.getField(ReflectionUtils.java:58)

            at com.nolio.platform.shared.utils.ReflectionUtils.setFieldInObject(ReflectionUtils.java:118)

            at com.nolio.platform.shared.datamodel.ActionProxy.createAction(ActionProxy.java:105)

            ... 12 more

    Caused by: java.lang.ClassNotFoundException: org.apache.axis2.client.Stub

            at java.net.URLClassLoader$1.run(Unknown Source)

            at java.net.URLClassLoader$1.run(Unknown Source)

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

            at java.net.URLClassLoader.findClass(Unknown Source)

            at java.lang.ClassLoader.loadClass(Unknown Source)

            at java.lang.ClassLoader.loadClass(Unknown Source)

            ... 30 more

    2015-09-10 12:27:09,176 [Communication Msg Processor-1456] DEBUG (com.nolio.platform.shared.datamodel.RunIdUtils:31) - Created name with runId : _164378_appsin01

    2015-09-10 12:27:09,176 [Communication Msg Processor-1456] DEBUG (com.nolio.platform.shared.communication.CommunicationNetwork:130) - Send Message was called for:executionLog__164378_appsin01@es_BMLISAES...



  • 6.  Re: Release Automation and IBM Datapower

    Broadcom Employee
    Posted Sep 10, 2015 05:08 PM

    Is this going through a proxy by any chance?



  • 7.  Re: Release Automation and IBM Datapower

    Posted Sep 10, 2015 05:31 PM

    Appsin01 is an AIX server running RA Agent. There is no proxy between Appsin01 and IBM DataPower. Should my DP be listed on RA Server's list? As I said at beginning, curl command works fine from Appsin01 to DP.



  • 8.  Re: Release Automation and IBM Datapower

    Posted Mar 28, 2016 03:20 AM

    Hello,

     

    I am reviving this post to determine a resolution, have you by chance come across one or is still still a problem?   Please let me know any additional information you may have gathered around this class def missing, I will reply within the day on my findings.

     

    Jeremy



  • 9.  Re: Release Automation and IBM Datapower

    Posted Apr 29, 2016 01:34 AM

    Hello,

     

    My apologies on the delay in reply, I wanted to first inquire the first issue had been addressed, I missed this in the post the first time:

     

    java.lang.NoClassDefFoundError: org/apache/axis2/client/Stub

     

    I would imagine this is indicative of the apache axis/2 client classes missing from the classpath, were you able to work through this part of the problem?  They are included within the dependency.zip that needs to be imported along with the datapower action pack, you can retrieve that here:

     

    ftp://ftp.ca.com/pub/dpm/ReleaseAutomationActions/ActionPacks/nolio-datapower-actions/dependency.zip

     

    If the dependencies are in fact imported and this exception is still occurring please let me know, thanks.

     

    Jeremy