Re: [Dev] [Integration test] testng.xml Reading Error (java.lang.reflect.InvocationTargetException)
Hi Rajjaz, This might happen due to version mismatch of stub versions. Can you please check the ServiceAdminStub version in ESB and dependency version in test module. Thanks, Nuwanw On Thu, Oct 15, 2015 at 12:30 PM, Rajjaz Mohammed wrote: > Hi Nuwan, > i solved that error as you mentioned and now its producing new error [3] > but if i include proxy manually inside the ESB zip before start the esb > test work fine. full log [4] > > > [3] Failed tests: init(org.wso2.carbon.connector.ejb2XIntegrationTest): > org.apache.axis2.databinding.ADBException: Unexpected subelement { > http://mgt.service.carbon.wso2.org/xsd}CAppArtifact > destroy(org.wso2.carbon.connector.ejb2XIntegrationTest): > org.apache.axis2.databinding.ADBException: Unexpected subelement { > http://mgt.service.carbon.wso2.org/xsd}CAppArtifact > > [4] > [2015-10-15 12:23:18,958] INFO > {org.wso2.carbon.automation.api.clients.proxy.admin.ProxyServiceAdminClient} > - Proxy Added > [2015-10-15 12:23:18,962] INFO > {org.wso2.carbon.automation.utils.esb.ESBTestCaseUtils} - simpleProxy > Proxy Uploaded > [2015-10-15 12:23:19,967] INFO > {org.wso2.carbon.automation.utils.esb.ESBTestCaseUtils} - waiting 3 > millis for Proxy deployment simpleProxy > [2015-10-15 12:25:20,490] INFO > {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - > [2015-10-15 12:24:36,337] WARN - CarbonAuthenticationUtil Failed > Administrator login attempt 'admin[-1234]' at [2015-10-15 12:24:36,337+0530] > [2015-10-15 12:25:20,939] INFO > {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - > [2015-10-15 12:24:40,380] INFO - CarbonAuthenticationUtil > 'admin@carbon.super [-1234]' logged in at [2015-10-15 12:24:40,380+0530] > [2015-10-15 12:25:49,690] INFO > {org.wso2.carbon.automation.core.PlatformTestManager} - Running the test > method --- > org.wso2.carbon.connector.ejb2XIntegrationTest.testPassThroughProxy > [2015-10-15 12:25:49,696] WARN > {org.wso2.carbon.automation.core.PlatformTestManager} - On Test Skipped > [2015-10-15 12:25:49,699] INFO > {org.wso2.carbon.automation.core.PlatformTestManager} - --Test > Skipped null > FAILED CONFIGURATION: @BeforeClass init > org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: > Unexpected subelement {http://mgt.service.carbon.wso2.org/xsd}CAppArtifact > at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430) > at > org.wso2.carbon.service.mgt.stub.ServiceAdminStub.fromOM(ServiceAdminStub.java:12981) > at > org.wso2.carbon.service.mgt.stub.ServiceAdminStub.listServices(ServiceAdminStub.java:8219) > at > org.wso2.carbon.automation.api.clients.service.mgt.ServiceAdminClient.listServices(ServiceAdminClient.java:87) > at > org.wso2.carbon.automation.api.clients.service.mgt.ServiceAdminClient.isServiceExists(ServiceAdminClient.java:126) > at > org.wso2.carbon.automation.utils.esb.ESBTestCaseUtils.isProxyDeployed(ESBTestCaseUtils.java:521) > at > org.wso2.carbon.automation.utils.esb.ESBTestCaseUtils.verifySynapseDeployment(ESBTestCaseUtils.java:1522) > at > org.wso2.carbon.automation.utils.esb.ESBTestCaseUtils.updateESBConfiguration(ESBTestCaseUtils.java:337) > at > org.wso2.carbon.esb.ESBIntegrationTest.updateESBConfiguration(ESBIntegrationTest.java:194) > at > org.wso2.carbon.esb.ESBIntegrationTest.loadESBConfigurationFromClasspath(ESBIntegrationTest.java:180) > at > org.wso2.carbon.connector.ejb2XIntegrationTest.init(ejb2XIntegrationTest.java:52) > 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:606) > at > org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84) > at > org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:564) > at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213) > at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138) > at > org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:175) > at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:107) > at org.testng.TestRunner.privateRun(TestRunner.java:767) > at org.testng.TestRunner.run(TestRunner.java:617) > 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:1224) > at org.testng.TestNG.runSuitesLocally(TestNG.java:1149) >
Re: [Dev] [Integration test] testng.xml Reading Error (java.lang.reflect.InvocationTargetException)
Hi Nuwan, i solved that error as you mentioned and now its producing new error [3] but if i include proxy manually inside the ESB zip before start the esb test work fine. full log [4] [3] Failed tests: init(org.wso2.carbon.connector.ejb2XIntegrationTest): org.apache.axis2.databinding.ADBException: Unexpected subelement { http://mgt.service.carbon.wso2.org/xsd}CAppArtifact destroy(org.wso2.carbon.connector.ejb2XIntegrationTest): org.apache.axis2.databinding.ADBException: Unexpected subelement { http://mgt.service.carbon.wso2.org/xsd}CAppArtifact [4] [2015-10-15 12:23:18,958] INFO {org.wso2.carbon.automation.api.clients.proxy.admin.ProxyServiceAdminClient} - Proxy Added [2015-10-15 12:23:18,962] INFO {org.wso2.carbon.automation.utils.esb.ESBTestCaseUtils} - simpleProxy Proxy Uploaded [2015-10-15 12:23:19,967] INFO {org.wso2.carbon.automation.utils.esb.ESBTestCaseUtils} - waiting 3 millis for Proxy deployment simpleProxy [2015-10-15 12:25:20,490] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - [2015-10-15 12:24:36,337] WARN - CarbonAuthenticationUtil Failed Administrator login attempt 'admin[-1234]' at [2015-10-15 12:24:36,337+0530] [2015-10-15 12:25:20,939] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - [2015-10-15 12:24:40,380] INFO - CarbonAuthenticationUtil 'admin@carbon.super [-1234]' logged in at [2015-10-15 12:24:40,380+0530] [2015-10-15 12:25:49,690] INFO {org.wso2.carbon.automation.core.PlatformTestManager} - Running the test method --- org.wso2.carbon.connector.ejb2XIntegrationTest.testPassThroughProxy [2015-10-15 12:25:49,696] WARN {org.wso2.carbon.automation.core.PlatformTestManager} - On Test Skipped [2015-10-15 12:25:49,699] INFO {org.wso2.carbon.automation.core.PlatformTestManager} - --Test Skipped null FAILED CONFIGURATION: @BeforeClass init org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected subelement {http://mgt.service.carbon.wso2.org/xsd}CAppArtifact at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430) at org.wso2.carbon.service.mgt.stub.ServiceAdminStub.fromOM(ServiceAdminStub.java:12981) at org.wso2.carbon.service.mgt.stub.ServiceAdminStub.listServices(ServiceAdminStub.java:8219) at org.wso2.carbon.automation.api.clients.service.mgt.ServiceAdminClient.listServices(ServiceAdminClient.java:87) at org.wso2.carbon.automation.api.clients.service.mgt.ServiceAdminClient.isServiceExists(ServiceAdminClient.java:126) at org.wso2.carbon.automation.utils.esb.ESBTestCaseUtils.isProxyDeployed(ESBTestCaseUtils.java:521) at org.wso2.carbon.automation.utils.esb.ESBTestCaseUtils.verifySynapseDeployment(ESBTestCaseUtils.java:1522) at org.wso2.carbon.automation.utils.esb.ESBTestCaseUtils.updateESBConfiguration(ESBTestCaseUtils.java:337) at org.wso2.carbon.esb.ESBIntegrationTest.updateESBConfiguration(ESBIntegrationTest.java:194) at org.wso2.carbon.esb.ESBIntegrationTest.loadESBConfigurationFromClasspath(ESBIntegrationTest.java:180) at org.wso2.carbon.connector.ejb2XIntegrationTest.init(ejb2XIntegrationTest.java:52) 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:606) at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84) at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:564) at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213) at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138) at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:175) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:107) at org.testng.TestRunner.privateRun(TestRunner.java:767) at org.testng.TestRunner.run(TestRunner.java:617) 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:1224) at org.testng.TestNG.runSuitesLocally(TestNG.java:1149) at org.testng.TestNG.run(TestNG.java:1057) 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.NativeMethodAccessorIm
Re: [Dev] [Integration test] testng.xml Reading Error (java.lang.reflect.InvocationTargetException)
Hi Rajjaz, In your pom file, testng.xml file path is wrong. So surefire can not locate the testng.xml file defined. Please define relative path to solve this issue. /src/test/resources/testng.xml Above should be corrected as bellow. *src/test/resources/testng.xml* Thanks, Nuwanw On Wed, Oct 14, 2015 at 12:21 PM, Rajjaz Mohammed wrote: > Hi Dev, > I'm writing a simple integration test [1] but while running the test i'm > getting the following error[2]. and i attached my pom also. can anyone > guide on me on this? > > [1] https://docs.wso2.com/display/TA430/Writing+a+Test+Case+for+ESB > > [2] > --- > T E S T S > --- > Forking command line: /bin/sh -c cd > /home/rajjaz/esb-connectors/ejb/org.wso2.carbon.connector/target && > /home/rajjaz/Documents/jdk1.7.0_79/jre/bin/java -Xms512m -Xmx1024m > -XX:MaxPermSize=128m -jar > /home/rajjaz/esb-connectors/ejb/org.wso2.carbon.connector/target/surefire/surefirebooter7361817641598581788.jar > /home/rajjaz/esb-connectors/ejb/org.wso2.carbon.connector/target/surefire/surefire8778537678578881741tmp > /home/rajjaz/esb-connectors/ejb/org.wso2.carbon.connector/target/surefire/surefire_06295743703835172308tmp > org.apache.maven.surefire.util.SurefireReflectionException: > java.lang.reflect.InvocationTargetException; nested exception is > java.lang.reflect.InvocationTargetException: null > java.lang.reflect.InvocationTargetException > 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:606) > 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: org.apache.maven.surefire.testset.TestSetFailedException: Suite > file /src/test/resources/testng.xml is not a valid file > at > org.apache.maven.surefire.testng.TestNGXmlTestSuite.locateTestSets(TestNGXmlTestSuite.java:124) > at > org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:89) > ... 9 more > > Results : > > Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 > > [INFO] > > [INFO] BUILD FAILURE > [INFO] > > [INFO] Total time: 9.685 s > [INFO] Finished at: 2015-10-14T12:17:26+05:30 > [INFO] Final Memory: 94M/668M > [INFO] > > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) > on project org.wso2.carbon.connector.ejb2X: Execution default-test of goal > org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test failed: The > forked VM terminated without saying properly goodbye. VM crash or > System.exit called ? -> [Help 1] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test > (default-test) on project org.wso2.carbon.connector.ejb2X: Execution > default-test of goal > org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test failed: The > forked VM terminated without saying properly goodbye. VM crash or > System.exit called ? > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) > at > org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) > at > org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862) > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286) > at org.apache.maven.cli.MavenCli.main(MavenCli
Re: [Dev] [Integration test] testng.xml Reading Error (java.lang.reflect.InvocationTargetException)
Hi this is my testng.xml file http://testng.org/testng-1.0.dtd"; > On Wed, Oct 14, 2015 at 12:24 PM, Nuwan Wimalasekara wrote: > Hi Rajjaz, > > Please check the testng.xml file whether it is in valid format. > > Thanks, > Nuwanw > > On Wed, Oct 14, 2015 at 12:21 PM, Rajjaz Mohammed wrote: > >> Hi Dev, >> I'm writing a simple integration test [1] but while running the test i'm >> getting the following error[2]. and i attached my pom also. can anyone >> guide on me on this? >> >> [1] https://docs.wso2.com/display/TA430/Writing+a+Test+Case+for+ESB >> >> [2] >> --- >> T E S T S >> --- >> Forking command line: /bin/sh -c cd >> /home/rajjaz/esb-connectors/ejb/org.wso2.carbon.connector/target && >> /home/rajjaz/Documents/jdk1.7.0_79/jre/bin/java -Xms512m -Xmx1024m >> -XX:MaxPermSize=128m -jar >> /home/rajjaz/esb-connectors/ejb/org.wso2.carbon.connector/target/surefire/surefirebooter7361817641598581788.jar >> /home/rajjaz/esb-connectors/ejb/org.wso2.carbon.connector/target/surefire/surefire8778537678578881741tmp >> /home/rajjaz/esb-connectors/ejb/org.wso2.carbon.connector/target/surefire/surefire_06295743703835172308tmp >> org.apache.maven.surefire.util.SurefireReflectionException: >> java.lang.reflect.InvocationTargetException; nested exception is >> java.lang.reflect.InvocationTargetException: null >> java.lang.reflect.InvocationTargetException >> 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:606) >> 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: org.apache.maven.surefire.testset.TestSetFailedException: >> Suite file /src/test/resources/testng.xml is not a valid file >> at >> org.apache.maven.surefire.testng.TestNGXmlTestSuite.locateTestSets(TestNGXmlTestSuite.java:124) >> at >> org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:89) >> ... 9 more >> >> Results : >> >> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 >> >> [INFO] >> >> [INFO] BUILD FAILURE >> [INFO] >> >> [INFO] Total time: 9.685 s >> [INFO] Finished at: 2015-10-14T12:17:26+05:30 >> [INFO] Final Memory: 94M/668M >> [INFO] >> >> [ERROR] Failed to execute goal >> org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) >> on project org.wso2.carbon.connector.ejb2X: Execution default-test of goal >> org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test failed: The >> forked VM terminated without saying properly goodbye. VM crash or >> System.exit called ? -> [Help 1] >> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute >> goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test >> (default-test) on project org.wso2.carbon.connector.ejb2X: Execution >> default-test of goal >> org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test failed: The >> forked VM terminated without saying properly goodbye. VM crash or >> System.exit called ? >> at >> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224) >> at >> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) >> at >> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) >> at >> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) >> at >> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) >> at >> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) >> at >> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) >> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) >> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) >> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) >> at org.apache.maven.cli.MavenCl
Re: [Dev] [Integration test] testng.xml Reading Error (java.lang.reflect.InvocationTargetException)
Hi Rajjaz, Please check the testng.xml file whether it is in valid format. Thanks, Nuwanw On Wed, Oct 14, 2015 at 12:21 PM, Rajjaz Mohammed wrote: > Hi Dev, > I'm writing a simple integration test [1] but while running the test i'm > getting the following error[2]. and i attached my pom also. can anyone > guide on me on this? > > [1] https://docs.wso2.com/display/TA430/Writing+a+Test+Case+for+ESB > > [2] > --- > T E S T S > --- > Forking command line: /bin/sh -c cd > /home/rajjaz/esb-connectors/ejb/org.wso2.carbon.connector/target && > /home/rajjaz/Documents/jdk1.7.0_79/jre/bin/java -Xms512m -Xmx1024m > -XX:MaxPermSize=128m -jar > /home/rajjaz/esb-connectors/ejb/org.wso2.carbon.connector/target/surefire/surefirebooter7361817641598581788.jar > /home/rajjaz/esb-connectors/ejb/org.wso2.carbon.connector/target/surefire/surefire8778537678578881741tmp > /home/rajjaz/esb-connectors/ejb/org.wso2.carbon.connector/target/surefire/surefire_06295743703835172308tmp > org.apache.maven.surefire.util.SurefireReflectionException: > java.lang.reflect.InvocationTargetException; nested exception is > java.lang.reflect.InvocationTargetException: null > java.lang.reflect.InvocationTargetException > 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:606) > 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: org.apache.maven.surefire.testset.TestSetFailedException: Suite > file /src/test/resources/testng.xml is not a valid file > at > org.apache.maven.surefire.testng.TestNGXmlTestSuite.locateTestSets(TestNGXmlTestSuite.java:124) > at > org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:89) > ... 9 more > > Results : > > Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 > > [INFO] > > [INFO] BUILD FAILURE > [INFO] > > [INFO] Total time: 9.685 s > [INFO] Finished at: 2015-10-14T12:17:26+05:30 > [INFO] Final Memory: 94M/668M > [INFO] > > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) > on project org.wso2.carbon.connector.ejb2X: Execution default-test of goal > org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test failed: The > forked VM terminated without saying properly goodbye. VM crash or > System.exit called ? -> [Help 1] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test > (default-test) on project org.wso2.carbon.connector.ejb2X: Execution > default-test of goal > org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test failed: The > forked VM terminated without saying properly goodbye. VM crash or > System.exit called ? > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) > at > org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) > at > org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862) > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:197) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.D
[Dev] [Integration test] testng.xml Reading Error (java.lang.reflect.InvocationTargetException)
Hi Dev, I'm writing a simple integration test [1] but while running the test i'm getting the following error[2]. and i attached my pom also. can anyone guide on me on this? [1] https://docs.wso2.com/display/TA430/Writing+a+Test+Case+for+ESB [2] --- T E S T S --- Forking command line: /bin/sh -c cd /home/rajjaz/esb-connectors/ejb/org.wso2.carbon.connector/target && /home/rajjaz/Documents/jdk1.7.0_79/jre/bin/java -Xms512m -Xmx1024m -XX:MaxPermSize=128m -jar /home/rajjaz/esb-connectors/ejb/org.wso2.carbon.connector/target/surefire/surefirebooter7361817641598581788.jar /home/rajjaz/esb-connectors/ejb/org.wso2.carbon.connector/target/surefire/surefire8778537678578881741tmp /home/rajjaz/esb-connectors/ejb/org.wso2.carbon.connector/target/surefire/surefire_06295743703835172308tmp org.apache.maven.surefire.util.SurefireReflectionException: java.lang.reflect.InvocationTargetException; nested exception is java.lang.reflect.InvocationTargetException: null java.lang.reflect.InvocationTargetException 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:606) 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: org.apache.maven.surefire.testset.TestSetFailedException: Suite file /src/test/resources/testng.xml is not a valid file at org.apache.maven.surefire.testng.TestNGXmlTestSuite.locateTestSets(TestNGXmlTestSuite.java:124) at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:89) ... 9 more Results : Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 9.685 s [INFO] Finished at: 2015-10-14T12:17:26+05:30 [INFO] Final Memory: 94M/668M [INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project org.wso2.carbon.connector.ejb2X: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test failed: The forked VM terminated without saying properly goodbye. VM crash or System.exit called ? -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project org.wso2.carbon.connector.ejb2X: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test failed: The forked VM terminated without saying properly goodbye. VM crash or System.exit called ? at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286) at org.apache.maven.cli.MavenCli.main(MavenCli.java:197) 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:606) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.l