Hi All,
We are trying to build API Manager master branch using locally deployed
jenkins server.
We are having following configuration on the jenkins machine
mvn version =Apache Maven 3.0.5
Java version=1.8.0_77
When building we are getting below stack trace. when checked the
/home/ubuntu/.jenkins/jobs/APIManager110BuildConfig/workspace/modules/integration/tests-integration/tests-backend/target/carbontmp1459253504310/wso2am-2.0.0-SNAPSHOT
folder,
We see only repository folder there. Unzipped Product Build
distribution( modules/distribution/product/target/wso2am-2.0.0-SNAPSHOT)
also has repository folder only.
Appreciate any help to identify a solution.
[INFO] *--- maven-surefire-plugin:2.18:test (default-test) @
org.wso2.carbon.am.integration.backend.test ---
*[INFO] Surefire report directory:
/home/ubuntu/.jenkins/jobs/APIManager110BuildConfig/workspace/modules/integration/tests-integration/tests-backend/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running TestSuite
INFO
[org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager]
- Extracting carbon zip file..
ERROR
[org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerExtension]
- Fail to start carbon server
java.io.FileNotFoundException: Server startup script not found at
/home/ubuntu/.jenkins/jobs/APIManager110BuildConfig/workspace/modules/integration/tests-integration/tests-backend/target/carbontmp1459253504310/wso2am-2.0.0-SNAPSHOT/bin
at
org.wso2.carbon.automation.engine.frameworkutils.TestFrameworkUtils.getStartupScriptFileName(TestFrameworkUtils.java:78)
at
org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager.instrumentForCoverage(CarbonServerManager.java:427)
at
org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager.setUpCarbonHome(CarbonServerManager.java:212)
at
org.wso2.carbon.automation.extensions.servers.carbonserver.TestServerManager.startServer(TestServerManager.java:107)
at
org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerExtension.onExecutionStart(CarbonServerExtension.java:50)
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.wso2.carbon.automation.engine.extensions.TestNGExtensionExecutor.executeExtensible(TestNGExtensionExecutor.java:75)
at
org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.onExecutionStart(TestExecutionListener.java:47)
at org.testng.TestNG.runExecutionListeners(TestNG.java:1032)
at org.testng.TestNG.run(TestNG.java:983)
at
org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:295)
at
org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:84)
at
org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:90)
at
org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
at
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
ERROR [org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener]
- Execution error occurred in TestExecutionListener:-
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.wso2.carbon.automation.engine.extensions.TestNGExtensionExecutor.executeExtensible(TestNGExtensionExecutor.java:75)
at
org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.onExecutionStart(TestExecutionListener.java:47)
at org.testng.TestNG.runExecutionListeners(TestNG.java:1032)
at org.testng.TestNG.run(TestNG.java:983)
at
org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:295)
at
org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:84)
at
org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:90)
at
org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
at
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
Caused by: java.lang.RuntimeException: Fail to start carbon server
at
org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerExtension.handleException(CarbonServerExtension.java:70)
at
org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerExtension.onExecutionStart(CarbonServerExtension.java:54)
... 14 more
Caused by: java.io.FileNotFoundException: Server startup script not
found at
/home/ubuntu/.jenkins/jobs/APIManager110BuildConfig/workspace/modules/integration/tests-integration/tests-backend/target/carbontmp1459253504310/wso2am-2.0.0-SNAPSHOT/bin
at
org.wso2.carbon.automation.engine.frameworkutils.TestFrameworkUtils.getStartupScriptFileName(TestFrameworkUtils.java:78)
at
org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager.instrumentForCoverage(CarbonServerManager.java:427)
at
org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager.setUpCarbonHome(CarbonServerManager.java:212)
at
org.wso2.carbon.automation.extensions.servers.carbonserver.TestServerManager.startServer(TestServerManager.java:107)
at
org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerExtension.onExecutionStart(CarbonServerExtension.java:50)
... 14 more
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[JENKINS] Recording test results
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] WSO2 API Manager - Aggregator Module .............. SUCCESS [2.669s]
[INFO] WSO2 API Manager - Styles Parent .................. SUCCESS [0.308s]
[INFO] WSO2 API Manager - Styles ......................... SUCCESS [4.711s]
[INFO] WSO2 Stratos API Manager - UI styles ............. SUCCESS [6.472s]
[INFO] WSO2 API Manager - Multi Tenant Dashboard ......... SUCCESS [2.122s]
[INFO] WSO2 Stratos API Manager - Dashboard UI .......... SUCCESS [1.807s]
[INFO] WSO2 AM - Login User Interface .................... SUCCESS [2.641s]
[INFO] WSO2 API Manager - Features Parent ................ SUCCESS [0.161s]
[INFO] WSO2 API Manager - Features Aggregator Module ..... SUCCESS [0.143s]
[INFO] WSO2 API Manager - Styles Features ................ SUCCESS [0.187s]
[INFO] WSO2 API Manager - Multi Tenant Dashboard Feature . SUCCESS [3.946s]
[INFO] WSO2 Stratos API Manager - Features Aggregator Module SUCCESS [0.157s]
[INFO] WSO2 Stratos API Manager - Style Features ........ SUCCESS [1.598s]
[INFO] WSO2 Stratos API Manager - Utils Features ........ SUCCESS [0.792s]
[INFO] WSO2 Stratos API Manager - Dashboard UI Features . SUCCESS [1.533s]
[INFO] WSO2 Stratos API Manager - Deployment Features ... SUCCESS [1.116s]
[INFO] WSO2 API Manager - P2 Profile Generation Parent ... SUCCESS [0.154s]
[INFO] WSO2 API Manager - P2 Profile Generation .......... SUCCESS [4.326s]
[INFO] WSO2 API Manager - DAS Carbon Application ......... SUCCESS [1.571s]
[INFO] WSO2 API Manager - Distribution Parent ............ SUCCESS [0.129s]
[INFO] WSO2 API Manager - Distribution ................... SUCCESS [5.594s]
[INFO] WSO2 API Manager - API Import Export .............. SUCCESS [29.979s]
[INFO] WSO2 API Manager - Integration Tests .............. SUCCESS [5.992s]
[INFO] WSO2 API Manager - Integration Test Common Module . SUCCESS [1.169s]
[INFO] WSO2 API Manager - Integration Admin Clients Module SUCCESS [13.928s]
[INFO] WSO2 API Manager - Integration Common Test Module . SUCCESS [6.728s]
[INFO] WSO2 API Manager - Test Artifacts Tests ........... SUCCESS [1.477s]
[INFO] WSO2 API Manager - RestFul Backend Module for Integration Tests
SUCCESS [3.587s]
[INFO] WSO2 API Manager - ArtifactDeploymentMonitor WebApp SUCCESS [24.006s]
[INFO] WSO2 API Manager - Integration Extensions Module .. SUCCESS [3.674s]
[INFO] WSO2 API Manager - Integration UI Pages Module .... SUCCESS [2.420s]
[INFO] WSO2 API Manager - Integration New Test Module .... SUCCESS [1.129s]
[INFO] WSO2 API Manager - Based on product backend Test Module
FAILURE [18.937s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2:49.367s
[INFO] Finished at: Tue Mar 29 12:11:50 UTC 2016
[INFO] Final Memory: 206M/485M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.18:test
(default-test) on project org.wso2.carbon.am.integration.backend.test:
Execution default-test of goal
org.apache.maven.plugins:maven-surefire-plugin:2.18:test failed: There
was an error in the forked process[ERROR] java.lang.RuntimeException:
Error on initializing test environment[ERROR] at
org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.handleException(TestExecutionListener.java:71)[ERROR]
at
org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.onExecutionStart(TestExecutionListener.java:52)[ERROR]
at org.testng.TestNG.runExecutionListeners(TestNG.java:1032)[ERROR] at
org.testng.TestNG.run(TestNG.java:983)[ERROR] at
org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:295)[ERROR]
at
org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:84)[ERROR]
at
org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:90)[ERROR]
at
org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)[ERROR]
at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)[ERROR]
at
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)[ERROR]
Caused by: java.lang.reflect.InvocationTargetException[ERROR] at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[ERROR] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[ERROR]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[ERROR]
at java.lang.reflect.Method.invoke(Method.java:606)[ERROR] at
org.wso2.carbon.automation.engine.extensions.TestNGExtensionExecutor.executeExtensible(TestNGExtensionExecutor.java:75)[ERROR]
at
org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.onExecutionStart(TestExecutionListener.java:47)[ERROR]
... 8 more[ERROR] Caused by: java.lang.RuntimeException: Fail to start
carbon server[ERROR] at
org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerExtension.handleException(CarbonServerExtension.java:70)[ERROR]
at
org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerExtension.onExecutionStart(CarbonServerExtension.java:54)[ERROR]
... 14 more[ERROR] Caused by: java.io.FileNotFoundException: Server
startup script not found at
/home/ubuntu/.jenkins/jobs/APIManager110BuildConfig/workspace/modules/integration/tests-integration/tests-backend/target/carbontmp1459253504310/wso2am-2.0.0-SNAPSHOT/bin[ERROR]
at
org.wso2.carbon.automation.engine.frameworkutils.TestFrameworkUtils.getStartupScriptFileName(TestFrameworkUtils.java:78)[ERROR]
at
org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager.instrumentForCoverage(CarbonServerManager.java:427)[ERROR]
at
org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager.setUpCarbonHome(CarbonServerManager.java:212)[JENKINS]
Archiving
/home/ubuntu/.jenkins/jobs/APIManager110BuildConfig/workspace/modules/org.wso2.am.multitenancy.dashboard.ui/pom.xml
to
org.wso2.am/org.wso2.am.multitenancy.dashboard.ui/2.0.0-SNAPSHOT/org.wso2.am.multitenancy.dashboard.ui-2.0.0-SNAPSHOT.pom[ERROR]
at
org.wso2.carbon.automation.extensions.servers.carbonserver.TestServerManager.startServer(TestServerManager.java:107)[ERROR]
at
org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerExtension.onExecutionStart(CarbonServerExtension.java:50)[ERROR]
... 14 more[ERROR] -> [Help 1][ERROR] [ERROR] To see the full stack
trace of the errors, re-run Maven with the -e switch.[ERROR] Re-run
Maven using the -X switch to enable full debug logging.[ERROR] [ERROR]
For more information about the errors and possible solutions, please
read the following articles:[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException[ERROR]
[ERROR] After correcting the problems, you can resume the build with
the command[ERROR] mvn <goals> -rf
:org.wso2.carbon.am.integration.backend.test
[JENKINS] Archiving
/home/ubuntu/.jenkins/jobs/APIManager110BuildConfig/workspace/modules/integration/tests-common/backend-service/pom.xml
to org.wso2.am/test-artifacts/2.0.0-SNAPSHOT/test-artifacts-2.0.0-SNAPSHOT.pom
--
Asanka Vithanage
Senior Software Engineer -QA
Mobile: +94 0716286708
Email: [email protected]
WSO2 Inc. www.wso2.com
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev