Hi Saneth, But, the WAR files deployed successfully and I could invoke the API exposed in that WAR file through an API in API Manager and also, I got the response. But the probelm is retrieving the log from APIM Server.
I don't see any issue with WAR file deployment, API xml file deployment or invoking them. Anyway I will check and fix this path issue having //. On Mon, Oct 12, 2015 at 10:14 AM, Saneth Dharmakeerthi <[email protected]> wrote: > HI Abimaran, > > It seems there is a some issue with file path. Refer following log, > which printing the file path. there is "//" in between "resources" and " > artifacts" > > [2015-10-01 13:34:33,524] INFO > {org.wso2.carbon.automation.core.PlatformTestManager} - Running the test > method --- > org.wso2.carbon.am.tests.ESBJAVA3530TimeoutHandlerLogMessageTestCase.testBackendTimeoutLog > ---- > ======================================== File PAth > /home/abimaran/sources/wso2-dev/support/trunk/products/apimgt/1.6.0/modules/integration/tests-patches/src/test/resources > *//*artifacts/AM/war/backendTimeout/RESTFulExample.war > > > > > > > Thanks and Best Regards, > > Saneth Dharmakeerthi > Senior Software Engineer > WSO2, Inc. > Mobile: +94772325511 > > On Thu, Oct 1, 2015 at 2:27 PM, Abimaran Kugathasan <[email protected]> > wrote: > >> HI Irham, >> >> >> Please find it from [1]. I have attached that test module. >> >> >> [1] : >> https://drive.google.com/a/wso2.com/file/d/0B368ZmWTkoFpNHI5MHVPaDBTTDA/view?usp=sharing >> >> On Thu, Oct 1, 2015 at 1:47 PM, Irham Iqbal <[email protected]> wrote: >> >>> Hi Abimaran, >>> >>> Can you send the whole test case as well. >>> >>> Thanks, >>> Iqbal >>> >>> On Thu, Oct 1, 2015 at 1:41 PM, Abimaran Kugathasan <[email protected]> >>> wrote: >>> >>>> Yes, It works fine when deploying manually. >>>> >>>> I'm copying the details error log here. >>>> >>>> [2015-10-01 13:34:33,524] INFO >>>> {org.wso2.carbon.automation.core.PlatformTestManager} - Running the test >>>> method --- >>>> org.wso2.carbon.am.tests.ESBJAVA3530TimeoutHandlerLogMessageTestCase.testBackendTimeoutLog >>>> ---- >>>> ======================================== File PAth >>>> /home/abimaran/sources/wso2-dev/support/trunk/products/apimgt/1.6.0/modules/integration/tests-patches/src/test/resources//artifacts/AM/war/backendTimeout/RESTFulExample.war >>>> [2015-10-01 13:34:33,585] INFO >>>> {org.apache.commons.httpclient.HttpMethodDirector} - I/O exception >>>> (org.apache.axis2.AxisFault) caught when processing request: Unable to read >>>> data handler for dataHandler >>>> [2015-10-01 13:34:33,585] INFO >>>> {org.apache.commons.httpclient.HttpMethodDirector} - I/O exception >>>> (org.apache.axis2.AxisFault) caught when processing request: Unable to read >>>> data handler for dataHandler >>>> [2015-10-01 13:34:33,586] INFO >>>> {org.apache.commons.httpclient.HttpMethodDirector} - Retrying request >>>> [2015-10-01 13:34:33,586] INFO >>>> {org.apache.commons.httpclient.HttpMethodDirector} - Retrying request >>>> [2015-10-01 13:34:33,594] INFO >>>> {org.apache.commons.httpclient.HttpMethodDirector} - I/O exception >>>> (org.apache.axis2.AxisFault) caught when processing request: Unable to read >>>> data handler for dataHandler >>>> [2015-10-01 13:34:33,594] INFO >>>> {org.apache.commons.httpclient.HttpMethodDirector} - I/O exception >>>> (org.apache.axis2.AxisFault) caught when processing request: Unable to read >>>> data handler for dataHandler >>>> [2015-10-01 13:34:33,594] INFO >>>> {org.apache.commons.httpclient.HttpMethodDirector} - Retrying request >>>> [2015-10-01 13:34:33,594] INFO >>>> {org.apache.commons.httpclient.HttpMethodDirector} - Retrying request >>>> [2015-10-01 13:34:33,600] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - >>>> [2015-10-01 13:34:33,600] ERROR - ResponseTimeCalculator >>>> wso2statistics.request.received.time is null in the IN MessageContext >>>> [2015-10-01 13:34:33,602] INFO >>>> {org.apache.commons.httpclient.HttpMethodDirector} - I/O exception >>>> (org.apache.axis2.AxisFault) caught when processing request: Unable to read >>>> data handler for dataHandler >>>> [2015-10-01 13:34:33,602] INFO >>>> {org.apache.commons.httpclient.HttpMethodDirector} - I/O exception >>>> (org.apache.axis2.AxisFault) caught when processing request: Unable to read >>>> data handler for dataHandler >>>> [2015-10-01 13:34:33,603] INFO >>>> {org.apache.commons.httpclient.HttpMethodDirector} - Retrying request >>>> [2015-10-01 13:34:33,603] INFO >>>> {org.apache.commons.httpclient.HttpMethodDirector} - Retrying request >>>> [2015-10-01 13:34:33,603] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - >>>> [2015-10-01 13:34:33,602] ERROR - PassThroughHttpSSLSender IO Error >>>> sending response message >>>> [2015-10-01 13:34:33,604] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - >>>> org.apache.axis2.AxisFault: ClientAbortException: java.io.IOException: >>>> Unable to wrap data, invalid engine state: CLOSED >>>> [2015-10-01 13:34:33,604] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.apache.axis2.AxisFault.makeFault(AxisFault.java:430) >>>> [2015-10-01 13:34:33,604] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:78) >>>> [2015-10-01 13:34:33,604] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.apache.synapse.transport.passthru.PassThroughHttpSender.sendUsingOutputStream(PassThroughHttpSender.java:297) >>>> [2015-10-01 13:34:33,604] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:261) >>>> [2015-10-01 13:34:33,605] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.apache.axis2.engine.AxisEngine.sendFault(AxisEngine.java:525) >>>> [2015-10-01 13:34:33,605] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.java:433) >>>> [2015-10-01 13:34:33,605] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.apache.axis2.transport.http.AxisServlet.processAxisFault(AxisServlet.java:398) >>>> [2015-10-01 13:34:33,605] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:188) >>>> [2015-10-01 13:34:33,605] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231) >>>> [2015-10-01 13:34:33,606] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:755) >>>> [2015-10-01 13:34:33,606] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:848) >>>> [2015-10-01 13:34:33,606] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61) >>>> [2015-10-01 13:34:33,606] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128) >>>> [2015-10-01 13:34:33,607] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68) >>>> [2015-10-01 13:34:33,607] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:848) >>>> [2015-10-01 13:34:33,607] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68) >>>> [2015-10-01 13:34:33,607] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) >>>> [2015-10-01 13:34:33,608] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) >>>> [2015-10-01 13:34:33,608] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61) >>>> [2015-10-01 13:34:33,608] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) >>>> [2015-10-01 13:34:33,608] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) >>>> [2015-10-01 13:34:33,608] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) >>>> [2015-10-01 13:34:33,609] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) >>>> [2015-10-01 13:34:33,609] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) >>>> [2015-10-01 13:34:33,609] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) >>>> [2015-10-01 13:34:33,609] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) >>>> [2015-10-01 13:34:33,610] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178) >>>> [2015-10-01 13:34:33,610] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47) >>>> [2015-10-01 13:34:33,610] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56) >>>> [2015-10-01 13:34:33,610] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47) >>>> [2015-10-01 13:34:33,611] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141) >>>> [2015-10-01 13:34:33,611] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156) >>>> [2015-10-01 13:34:33,611] ERROR >>>> {org.wso2.carbon.automation.api.clients.webapp.mgt.WebAppAdminClient} - >>>> Fail to upload webapp file :org.apache.axis2.AxisFault: Unable to read >>>> data handler for dataHandler >>>> [2015-10-01 13:34:33,612] ERROR >>>> {org.wso2.carbon.automation.core.PlatformTestManager} - On Test failure.. >>>> [2015-10-01 13:34:33,613] ERROR >>>> {org.wso2.carbon.automation.core.PlatformTestManager} - >>>> java.rmi.RemoteException: Fail to upload webapp file >>>> :org.apache.axis2.AxisFault: Unable to read data handler for dataHandler >>>> [2015-10-01 13:34:33,613] INFO >>>> {org.wso2.carbon.automation.core.PlatformTestManager} - >>>> --------------Tests Failed >>>> org.wso2.carbon.am.tests.ESBJAVA3530TimeoutHandlerLogMessageTestCase.testBackendTimeoutLog-------- >>>> [2015-10-01 13:34:33,611] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936) >>>> [2015-10-01 13:34:33,613] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52) >>>> [2015-10-01 13:34:33,614] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) >>>> [2015-10-01 13:34:33,614] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) >>>> [2015-10-01 13:34:33,614] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004) >>>> [2015-10-01 13:34:33,614] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) >>>> [2015-10-01 13:34:33,614] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653) >>>> [2015-10-01 13:34:33,614] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) >>>> [2015-10-01 13:34:33,614] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) >>>> [2015-10-01 13:34:33,615] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> java.lang.Thread.run(Thread.java:745) >>>> [2015-10-01 13:34:33,615] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - >>>> Caused by: javax.xml.stream.XMLStreamException: ClientAbortException: >>>> java.io.IOException: Unable to wrap data, invalid engine state: CLOSED >>>> [2015-10-01 13:34:33,615] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> com.sun.xml.internal.stream.writers.XMLStreamWriterImpl.close(XMLStreamWriterImpl.java:378) >>>> [2015-10-01 13:34:33,615] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.apache.axiom.util.stax.wrapper.XMLStreamWriterWrapper.close(XMLStreamWriterWrapper.java:46) >>>> [2015-10-01 13:34:33,615] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.apache.axiom.om.impl.MTOMXMLStreamWriter.close(MTOMXMLStreamWriter.java:188) >>>> [2015-10-01 13:34:33,615] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.apache.axiom.om.impl.llom.OMSerializableImpl.serializeAndConsume(OMSerializableImpl.java:197) >>>> [2015-10-01 13:34:33,615] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:74) >>>> [2015-10-01 13:34:33,616] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - >>>> ... >>>> 40 more >>>> [2015-10-01 13:34:33,616] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - >>>> Caused by: ClientAbortException: java.io.IOException: Unable to wrap >>>> data, invalid engine state: CLOSED >>>> [2015-10-01 13:34:33,616] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:346) >>>> [2015-10-01 13:34:33,616] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:306) >>>> [2015-10-01 13:34:33,616] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.apache.catalina.connector.CoyoteOutputStream.flush(CoyoteOutputStream.java:101) >>>> [2015-10-01 13:34:33,616] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> com.sun.xml.internal.stream.writers.UTF8OutputStreamWriter.flush(UTF8OutputStreamWriter.java:138) >>>> [2015-10-01 13:34:33,616] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> com.sun.xml.internal.stream.writers.XMLStreamWriterImpl.close(XMLStreamWriterImpl.java:376) >>>> [2015-10-01 13:34:33,617] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - >>>> ... >>>> 44 more >>>> [2015-10-01 13:34:33,617] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - >>>> Caused by: java.io.IOException: Unable to wrap data, invalid engine state: >>>> CLOSED >>>> [2015-10-01 13:34:33,617] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.apache.tomcat.util.net.SecureNioChannel.write(SecureNioChannel.java:505) >>>> [2015-10-01 13:34:33,617] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.apache.tomcat.util.net.NioBlockingSelector.write(NioBlockingSelector.java:94) >>>> [2015-10-01 13:34:33,617] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.apache.tomcat.util.net.NioSelectorPool.write(NioSelectorPool.java:174) >>>> [2015-10-01 13:34:33,617] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.apache.coyote.http11.InternalNioOutputBuffer.writeToSocket(InternalNioOutputBuffer.java:163) >>>> [2015-10-01 13:34:33,617] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.apache.coyote.http11.InternalNioOutputBuffer.flushBuffer(InternalNioOutputBuffer.java:242) >>>> [2015-10-01 13:34:33,618] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.apache.coyote.http11.InternalNioOutputBuffer.flush(InternalNioOutputBuffer.java:94) >>>> [2015-10-01 13:34:33,618] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.apache.coyote.http11.AbstractHttp11Processor.action(AbstractHttp11Processor.java:790) >>>> [2015-10-01 13:34:33,618] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.apache.coyote.Response.action(Response.java:173) >>>> [2015-10-01 13:34:33,618] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:341) >>>> [2015-10-01 13:34:33,618] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:306) >>>> [2015-10-01 13:34:33,618] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.apache.catalina.connector.CoyoteOutputStream.flush(CoyoteOutputStream.java:101) >>>> [2015-10-01 13:34:33,619] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> com.sun.xml.internal.stream.writers.UTF8OutputStreamWriter.flush(UTF8OutputStreamWriter.java:138) >>>> [2015-10-01 13:34:33,619] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> com.sun.xml.internal.stream.writers.XMLStreamWriterImpl.flush(XMLStreamWriterImpl.java:397) >>>> [2015-10-01 13:34:33,619] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.apache.axiom.util.stax.wrapper.XMLStreamWriterWrapper.flush(XMLStreamWriterWrapper.java:50) >>>> [2015-10-01 13:34:33,619] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.apache.axiom.om.impl.MTOMXMLStreamWriter.flush(MTOMXMLStreamWriter.java:198) >>>> [2015-10-01 13:34:33,619] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at >>>> org.apache.axiom.om.impl.llom.OMSerializableImpl.serializeAndConsume(OMSerializableImpl.java:195) >>>> [2015-10-01 13:34:33,619] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - >>>> ... >>>> 41 more >>>> [2015-10-01 13:34:33,619] INFO >>>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - >>>> [2015-10-01 13:34:33,605] INFO - AxisServlet org.apache.axis2.AxisFault: >>>> IO Error sending response message >>>> [2015-10-01 13:34:33,621] INFO >>>> {org.wso2.carbon.automation.core.PlatformTestManager} - >>>> --------------Finishing executing test class InitializedAndSetupServer on >>>> suiteam-patch-verifier-------- >>>> [2015-10-01 13:34:33,624] INFO >>>> {org.wso2.carbon.automation.core.PlatformSuiteManager} - >>>> ***********Finishing executing test Suite am-patch-verifier on user******* >>>> [2015-10-01 13:34:33,625] INFO >>>> {org.wso2.carbon.automation.core.PlatformSuiteManager} - >>>> **********Starting executing test Suite am-features-test-suite on >>>> user*********** >>>> >>>> >>>> >>>> On Thu, Oct 1, 2015 at 1:36 PM, Irham Iqbal <[email protected]> wrote: >>>> >>>>> Hi Abimaran, >>>>> >>>>> Did you try to deploy the same war file manually I mean by copying. If >>>>> not try that to make sure no issue with war file. >>>>> >>>>> Thanks, >>>>> Iqbal >>>>> >>>>> On Thu, Oct 1, 2015 at 1:32 PM, Abimaran Kugathasan <[email protected] >>>>> > wrote: >>>>> >>>>>> Hi Irham, >>>>>> >>>>>> Yes, war file path is correct. Please find the whole logs attached. >>>>>> >>>>>> On Thu, Oct 1, 2015 at 1:22 PM, Irham Iqbal <[email protected]> wrote: >>>>>> >>>>>>> Hi Abimaran, >>>>>>> >>>>>>> Can you send the full log. Also make sure the was file path is >>>>>>> correct. >>>>>>> >>>>>>> Thanks, >>>>>>> Iqbal >>>>>>> >>>>>>> On Thu, Oct 1, 2015 at 1:15 PM, Abimaran Kugathasan < >>>>>>> [email protected]> wrote: >>>>>>> >>>>>>>> Hi, >>>>>>>> >>>>>>>> I'm getting below Exception while uploading a REST web service. >>>>>>>> >>>>>>>> java.rmi.RemoteException: Fail to upload webapp file >>>>>>>>> :org.apache.axis2.AxisFault: Unable to read data handler for >>>>>>>>> dataHandler >>>>>>>> >>>>>>>> >>>>>>>> Below is my test method. >>>>>>>> >>>>>>>> public void deployArrService(String backEndUrl, String sessionCookie, >>>>>>>> String serviceFilePath) >>>>>>>> throws RemoteException, MalformedURLException, >>>>>>>> LoginAuthenticationExceptionException, ExceptionException { >>>>>>>> >>>>>>>> WebAppAdminClient webAppAdminClient = new >>>>>>>> WebAppAdminClient(backEndUrl, sessionCookie); >>>>>>>> webAppAdminClient.warFileUplaoder(serviceFilePath); >>>>>>>> >>>>>>>> } >>>>>>>> >>>>>>>> @Test(groups = {"wso2.am"}, description = "test endpoint deployment >>>>>>>> from car file") >>>>>>>> public void testMethod() throws Exception { >>>>>>>> String filePath = >>>>>>>> ProductConstant.getResourceLocations(ProductConstant.AM_SERVER_NAME) >>>>>>>> + File.separator + >>>>>>>> "backendTimeout" + File.separator + "RESTFulExample.war"; >>>>>>>> >>>>>>>> deployArrService(amServer.getBackEndUrl(), >>>>>>>> amServer.getSessionCookie(), filePath); >>>>>>>> System.out.println("Running test"); >>>>>>>> } >>>>>>>> >>>>>>>> >>>>>>>> The webserive is simple REST webservice based on resteasy-jaxrs. >>>>>>>> >>>>>>>> <dependency> >>>>>>>> <groupId>org.jboss.resteasy</groupId> >>>>>>>> <artifactId>resteasy-jaxrs</artifactId> >>>>>>>> <version>2.2.1.GA</version> >>>>>>>> </dependency> >>>>>>>> >>>>>>>> >>>>>>>> On Thu, Oct 1, 2015 at 10:28 AM, Abimaran Kugathasan < >>>>>>>> [email protected]> wrote: >>>>>>>> >>>>>>>>> Thanks a lot NuwanW and Thusitha! I will use it. >>>>>>>>> >>>>>>>>> On Thu, Oct 1, 2015 at 10:25 AM, Thusitha Thilina Dayaratne < >>>>>>>>> [email protected]> wrote: >>>>>>>>> >>>>>>>>>> Hi Abimaran, >>>>>>>>>> In product-as we are using WebappAdminClient[1] to deploy war >>>>>>>>>> files. I think you can refer to the same >>>>>>>>>> [1] - >>>>>>>>>> https://github.com/wso2/product-as/blob/master/modules/integration/tests-common/admin-clients/src/main/java/org/wso2/appserver/integration/common/clients/WebAppAdminClient.java >>>>>>>>>> >>>>>>>>>> Thanks >>>>>>>>>> /Thusitha >>>>>>>>>> On Thu, Oct 1, 2015 at 10:11 AM, Abimaran Kugathasan < >>>>>>>>>> [email protected]> wrote: >>>>>>>>>> >>>>>>>>>>> Hi, >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> We can deploy aar files using ServiceAdminClient into a product. >>>>>>>>>>> Can we do the same for war file. Does our automation framework >>>>>>>>>>> support it? >>>>>>>>>>> >>>>>>>>>>> If so, can anybody please point me the Class or module name? >>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> Thanks >>>>>>>>>>> Abimaran Kugathasan >>>>>>>>>>> >>>>>>>>>>> Software Engineer | WSO2 Inc >>>>>>>>>>> Data & APIs Technologies Team >>>>>>>>>>> Mobile : +94 773922820 >>>>>>>>>>> >>>>>>>>>>> <http://stackoverflow.com/users/515034> >>>>>>>>>>> <http://lk.linkedin.com/in/abimaran> >>>>>>>>>>> <http://www.lkabimaran.blogspot.com/> >>>>>>>>>>> <https://github.com/abimarank> <https://twitter.com/abimaran> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> _______________________________________________ >>>>>>>>>>> Dev mailing list >>>>>>>>>>> [email protected] >>>>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> Thusitha Dayaratne >>>>>>>>>> Software Engineer >>>>>>>>>> WSO2 Inc. - lean . enterprise . middleware | wso2.com >>>>>>>>>> >>>>>>>>>> Mobile +94712756809 >>>>>>>>>> Blog alokayasoya.blogspot.com >>>>>>>>>> About http://about.me/thusithathilina >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Thanks >>>>>>>>> Abimaran Kugathasan >>>>>>>>> >>>>>>>>> Software Engineer | WSO2 Inc >>>>>>>>> Data & APIs Technologies Team >>>>>>>>> Mobile : +94 773922820 >>>>>>>>> >>>>>>>>> <http://stackoverflow.com/users/515034> >>>>>>>>> <http://lk.linkedin.com/in/abimaran> >>>>>>>>> <http://www.lkabimaran.blogspot.com/> >>>>>>>>> <https://github.com/abimarank> <https://twitter.com/abimaran> >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Thanks >>>>>>>> Abimaran Kugathasan >>>>>>>> >>>>>>>> Software Engineer | WSO2 Inc >>>>>>>> Data & APIs Technologies Team >>>>>>>> Mobile : +94 773922820 >>>>>>>> >>>>>>>> <http://stackoverflow.com/users/515034> >>>>>>>> <http://lk.linkedin.com/in/abimaran> >>>>>>>> <http://www.lkabimaran.blogspot.com/> >>>>>>>> <https://github.com/abimarank> <https://twitter.com/abimaran> >>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> Dev mailing list >>>>>>>> [email protected] >>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Irham Iqbal >>>>>>> Software Engineer - Test Automation >>>>>>> WSO2, Inc.: http://wso2.com >>>>>>> lean. enterprise. middleware >>>>>>> phone: +94 777888452 >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Thanks >>>>>> Abimaran Kugathasan >>>>>> >>>>>> Software Engineer | WSO2 Inc >>>>>> Data & APIs Technologies Team >>>>>> Mobile : +94 773922820 >>>>>> >>>>>> <http://stackoverflow.com/users/515034> >>>>>> <http://lk.linkedin.com/in/abimaran> >>>>>> <http://www.lkabimaran.blogspot.com/> <https://github.com/abimarank> >>>>>> <https://twitter.com/abimaran> >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Irham Iqbal >>>>> Software Engineer - Test Automation >>>>> WSO2, Inc.: http://wso2.com >>>>> lean. enterprise. middleware >>>>> phone: +94 777888452 >>>>> >>>> >>>> >>>> >>>> -- >>>> Thanks >>>> Abimaran Kugathasan >>>> >>>> Software Engineer | WSO2 Inc >>>> Data & APIs Technologies Team >>>> Mobile : +94 773922820 >>>> >>>> <http://stackoverflow.com/users/515034> >>>> <http://lk.linkedin.com/in/abimaran> >>>> <http://www.lkabimaran.blogspot.com/> <https://github.com/abimarank> >>>> <https://twitter.com/abimaran> >>>> >>>> >>> >>> >>> -- >>> Irham Iqbal >>> Software Engineer - Test Automation >>> WSO2, Inc.: http://wso2.com >>> lean. enterprise. middleware >>> phone: +94 777888452 >>> >> >> >> >> -- >> Thanks >> Abimaran Kugathasan >> >> Software Engineer | WSO2 Inc >> Data & APIs Technologies Team >> Mobile : +94 773922820 >> >> <http://stackoverflow.com/users/515034> >> <http://lk.linkedin.com/in/abimaran> >> <http://www.lkabimaran.blogspot.com/> <https://github.com/abimarank> >> <https://twitter.com/abimaran> >> >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > -- Thanks Abimaran Kugathasan Software Engineer | WSO2 Inc Data & APIs Technologies Team Mobile : +94 773922820 <http://stackoverflow.com/users/515034> <http://lk.linkedin.com/in/abimaran> <http://www.lkabimaran.blogspot.com/> <https://github.com/abimarank> <https://twitter.com/abimaran>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
