Hi,

In ESB integration test, after running the test cases(inside @AfterClass
method) on cleaning out stage to delete inbound end points we are calling
getAllInboundEndpointNames() method from InboundAdminStub service stub to
get all the inbound end point names

       String endPoint = backEndUrl + serviceName;
        InboundAdminStub endpointAdminStub = new InboundAdminStub(endPoint);
        AuthenticateStub.authenticateStub(userName, password,
endpointAdminStub);
        endpointAdminStub.getAllInboundEndpointNames();

It's throwing RemoteException.

java.lang.Exception: java.rmi.RemoteException: Error when get endpoint
names in InboundAdmin Client; nested exception is:
    org.apache.axis2.AxisFault: The input stream for an incoming message is
null.
    at
org.wso2.esb.integration.common.utils.ESBIntegrationTest.deleteInboundEndpoints(ESBIntegrationTest.java:269)
    at
org.wso2.esb.integration.common.utils.ESBIntegrationTest.cleanup(ESBIntegrationTest.java:137)
    at
org.wso2.carbon.esb.samples.test.proxy.Sample151TestCase.destroy(Sample151TestCase.java:59)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at
org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
    at
org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:525)
    at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:202)
    at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:130)
    at
org.testng.internal.TestMethodWorker.invokeAfterClassMethods(TestMethodWorker.java:222)
    at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:112)
    at org.testng.TestRunner.runWorkers(TestRunner.java:1178)
    at org.testng.TestRunner.privateRun(TestRunner.java:757)
    at org.testng.TestRunner.run(TestRunner.java:608)
    at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
    at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
    at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
    at org.testng.SuiteRunner.run(SuiteRunner.java:240)
    at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
    at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
    at org.testng.TestNG.runSuitesSequentially(TestNG.java:1158)
    at org.testng.TestNG.runSuitesLocally(TestNG.java:1083)
    at org.testng.TestNG.run(TestNG.java:999)
    at
org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:178)
    at
org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
    at
org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:96)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
    at
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
    at
org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
    at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
    at
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
Caused by: java.rmi.RemoteException: Error when get endpoint names in
InboundAdmin Client; nested exception is:
    org.apache.axis2.AxisFault: The input stream for an incoming message is
null.
    at
org.wso2.esb.integration.common.clients.inbound.endpoint.InboundAdminClient.getAllInboundEndpointNames(InboundAdminClient.java:71)
    at
org.wso2.esb.integration.common.utils.ESBTestCaseUtils.getAllInboundEndpoints(ESBTestCaseUtils.java:397)
    at
org.wso2.esb.integration.common.utils.ESBIntegrationTest.deleteInboundEndpoints(ESBIntegrationTest.java:260)
    ... 36 more
Caused by: org.apache.axis2.AxisFault: The input stream for an incoming
message is null.
    at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:93)
    at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:68)
    at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:348)
    at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:445)
    at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
    at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
    at
org.wso2.carbon.inbound.stub.InboundAdminStub.getAllInboundEndpointNames(InboundAdminStub.java:762)
    at
org.wso2.esb.integration.common.clients.inbound.endpoint.InboundAdminClient.getAllInboundEndpointNames(InboundAdminClient.java:68)
    ... 38 more



-- 
Irham Iqbal
Software Engineer - Test Automation
 WSO2, Inc.: http://wso2.com
lean. enterprise. middleware
phone: +94 777888452
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to