Hi K2K,

It seems like you forgot to configure the thrift-client-config.xml file.
The error,

"java.lang.RuntimeException: Could not parse thrift client configuration
        at
org.apache.stratos.common.test.ThriftClientConfigParserTest.testThriftClientConfigParser(ThriftClientConfigParserTest.java:45)
Caused by: java.lang.RuntimeException: *Thrift client config file does not
exist: /D:/gsoc/Stratos/stratos%202/*
*stratos/components/org.apache.stratos.common/target/test-classes/thrift-client-config.xml*
"

Thank You,
Best Regards,
Ashan

On Sat, Feb 6, 2016 at 11:57 AM, K2K <kumaranathferna...@gmail.com> wrote:

> Though the complete stack trace is considerably long, here is gist of it !
>
> >>>Stacktrace
>
> Feb 06, 2016 12:07:17 AM com.hazelcast.core.LifecycleService
> INFO: [192.168.1.4]:5701 [dev] Address[192.168.1.4]:5701 is STARTED
> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.79 sec -
> in org.apache.stratos.common.test.DistributedObjectProviderTest
> Running org.apache.stratos.common.test.ReadWriteLockTest
> Feb 06, 2016 12:07:21 AM com.hazelcast.util.HealthMonitor
> INFO: [192.168.1.4]:5701 [dev]
> memory used=13.1M, free=46.9M, total=60.0M, max=887.0M, used/total=21.91%
> used/max=1.48%
> cpu process-load=-100.00%, system-load=73.00%, system-loadaverage=-100.00%
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.081 sec
> - in org.apache.stratos.common.test.ReadWriteLockTest
> Running org.apache.stratos.common.test.ThriftClientConfigParserTest
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.101 sec
> <<< FAILURE! - in
> org.apache.stratos.common.test.ThriftClientConfigParserTest
> testThriftClientConfigParser(org.apache.stratos.common.test.ThriftClientConfigParserTest)
>  Time elapsed: 0.091 sec  <<< ERROR!
> java.lang.RuntimeException: Could not parse thrift client configuration
>         at
> org.apache.stratos.common.test.ThriftClientConfigParserTest.testThriftClientConfigParser(ThriftClientConfigParserTest.java:45)
> Caused by: java.lang.RuntimeException: Thrift client config file does not
> exist:
> /D:/gsoc/Stratos/stratos%202/stratos/components/org.apache.stratos.common/target/test-classes/thrift-client-config.xml
>         at
> org.apache.stratos.common.test.ThriftClientConfigParserTest.testThriftClientConfigParser(ThriftClientConfigParserTest.java:45)
>
> Running org.apache.stratos.common.test.ThriftStatisticsPublisherTest
> Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.024 sec
> <<< FAILURE! - in
> org.apache.stratos.common.test.ThriftStatisticsPublisherTest
> createCEPLoadBalancingDataPublisher(org.apache.stratos.common.test.ThriftStatisticsPublisherTest)
>  Time elapsed: 0 sec  <<< ERROR!
> java.lang.RuntimeException: Could not parse thrift client configuration
>         at
> org.apache.stratos.common.test.ThriftStatisticsPublisherTest.createCEPLoadBalancingDataPublisher(ThriftStatisticsPublisherTest.java:52)
> Caused by: java.lang.RuntimeException: Thrift client config file does not
> exist:
> /D:/gsoc/Stratos/stratos%202/stratos/components/org.apache.stratos.common/target/test-classes/thrift-client-config.xml
>         at
> org.apache.stratos.common.test.ThriftStatisticsPublisherTest.createCEPLoadBalancingDataPublisher(ThriftStatisticsPublisherTest.java:52)
>
> createDASLoadBalancingDataPublisher(org.apache.stratos.common.test.ThriftStatisticsPublisherTest)
>  Time elapsed: 0 sec  <<< ERROR!
> java.lang.RuntimeException: Could not parse thrift client configuration
>         at
> org.apache.stratos.common.test.ThriftStatisticsPublisherTest.createDASLoadBalancingDataPublisher(ThriftStatisticsPublisherTest.java:64)
> Caused by: java.lang.RuntimeException: Thrift client config file does not
> exist:
> /D:/gsoc/Stratos/stratos%202/stratos/components/org.apache.stratos.common/target/test-classes/thrift-client-config.xml
>         at
> org.apache.stratos.common.test.ThriftStatisticsPublisherTest.createDASLoadBalancingDataPublisher(ThriftStatisticsPublisherTest.java:64)
>
>
> Results :
>
> Tests in error:
>   ThriftClientConfigParserTest.testThriftClientConfigParser:45 ╗ Runtime
> Could n...
>   ThriftStatisticsPublisherTest.createCEPLoadBalancingDataPublisher:52 ╗
> Runtime
>   ThriftStatisticsPublisherTest.createDASLoadBalancingDataPublisher:64 ╗
> Runtime
>
> Tests run: 10, Failures: 0, Errors: 3, Skipped: 0
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Apache Stratos ..................................... SUCCESS [04:54
> min]
> [INFO] Apache Stratos - Dependent Projects ................ SUCCESS [
>  0.494 s]
> [INFO] Guice .............................................. SUCCESS [01:40
> min]
> [INFO] Google Guice - Extensions - MultiBindings .......... SUCCESS [
>  3.507 s]
> [INFO] Guice Assistedinject ............................... SUCCESS [
>  3.455 s]
> [INFO] 99soft :: Rocoto ................................... SUCCESS [
>  4.205 s]
> [INFO] sshj ............................................... SUCCESS [
>  8.135 s]
> [INFO] Apache Stratos - jclouds Dependent Projects ........ SUCCESS [
>  0.496 s]
> [INFO] Apache Stratos - Dependent Projects ................ SUCCESS [
>  0.545 s]
> [INFO] jclouds Google Cloud Core .......................... SUCCESS [
> 19.475 s]
> [INFO] jclouds Google Compute Engine provider ............. SUCCESS [01:18
> min]
> [INFO] jclouds Google Cloud Storage provider .............. SUCCESS [
>  8.235 s]
> [INFO] jclouds OAuth Core ................................. SUCCESS [
>  1.415 s]
> [INFO] jclouds Amazon EC2 provider ........................ SUCCESS [09:25
> min]
> [INFO] jclouds Components Core ............................ SUCCESS [
>  5.886 s]
> [INFO] jclouds Components blobstore ....................... SUCCESS [
>  4.492 s]
> [INFO] jclouds Components bouncycastle .................... SUCCESS [
>  1.786 s]
> [INFO] jclouds Components compute ......................... SUCCESS [
>  4.566 s]
> [INFO] jclouds Components enterprise ...................... SUCCESS [
> 19.605 s]
> [INFO] jclouds Components joda ............................ SUCCESS [
>  1.408 s]
> [INFO] jclouds Components netty ........................... SUCCESS [
>  1.483 s]
> [INFO] jclouds Components sshj ............................ SUCCESS [
>  2.235 s]
> [INFO] jclouds OpenStack Components Core .................. SUCCESS [
>  3.716 s]
> [INFO] jclouds openstack-keystone api ..................... SUCCESS [
>  6.858 s]
> [INFO] jclouds openstack-neutron api ...................... SUCCESS [
>  9.975 s]
> [INFO] Apache jclouds :: OpenStack :: Nova API ............ SUCCESS [
> 13.619 s]
> [INFO] jclouds sts api .................................... SUCCESS [
>  1.826 s]
> [INFO] jclouds cloudstack core ............................ SUCCESS [
> 21.092 s]
> [INFO] jclouds ec2 api .................................... SUCCESS [
>  4.981 s]
> [INFO] WSO2 Carbon - UI ................................... SUCCESS [05:52
> min]
> [INFO] Fabric8 ............................................ SUCCESS [
>  0.461 s]
> [INFO] Fabric8 :: Kubernetes API .......................... SUCCESS [01:33
> min]
> [INFO] Apache Stratos - Service Stubs ..................... SUCCESS [
>  0.350 s]
> [INFO] Apache Stratos - Cloud Controller Service Stub ..... SUCCESS [01:25
> min]
> [INFO] Apache Stratos - Manager Service Stub .............. SUCCESS [
> 59.138 s]
> [INFO] Apache Stratos - Autoscaler Service Stub ........... SUCCESS [
> 29.657 s]
> [INFO] Apache Stratos - Components ........................ SUCCESS [
>  0.424 s]
> [INFO] Apache Stratos - Common ............................ FAILURE [03:00
> min]
> [INFO] Apache Stratos - Messaging ......................... SKIPPED
> [INFO] Apache Stratos - Autoscaler ........................ SKIPPED
> [INFO] Apache Stratos - Kubernetes API Java Client ........ SKIPPED
> [INFO] Apache Stratos - Mock IaaS ......................... SKIPPED
> [INFO] Apache Stratos - Mock IaaS API Client .............. SKIPPED
> [INFO] Apache Stratos - Cloud Controller .................. SKIPPED
> [INFO] Apache Stratos - Manager ........................... SKIPPED
> [INFO] Apache Stratos - CLI ............................... SKIPPED
> [INFO] Apache Stratos - Python Cartridge Agent ............ SKIPPED
> [INFO] Apache Stratos - Python CLI ........................ SKIPPED
> [INFO] Apache Stratos - Cartridge Agent ................... SKIPPED
> [INFO] Apache Stratos - Load Balancer - Common ............ SKIPPED
> [INFO] Apache Stratos - Load Balancer ..................... SKIPPED
> [INFO] Apache Stratos - Load Balancer - Extension API ..... SKIPPED
> [INFO] Apache Stratos - RESTful admin service module ...... SKIPPED
> [INFO] Apache Stratos - Cloud Manager UI styles ........... SKIPPED
> [INFO] Apache Stratos - Custom Handlers ................... SKIPPED
> [INFO] Apache Stratos - Metadata Service .................. SKIPPED
> [INFO] Apache Stratos - Metadata Client ................... SKIPPED
> [INFO] Apache Stratos - Mock IaaS API ..................... SKIPPED
> [INFO] Apache Stratos - Extensions ........................ SKIPPED
> [INFO] Apache Stratos - CEP Extensions .................... SKIPPED
> [INFO] Apache Stratos - CEP Extensions .................... SKIPPED
> [INFO] Apache Stratos - CEP Extensions .................... SKIPPED
> [INFO] Apache Stratos - CEP Extension ..................... SKIPPED
> [INFO] Apache Stratos - Load Balancer Extensions .......... SKIPPED
> [INFO] Apache Stratos - HAProxy Extension ................. SKIPPED
> [INFO] Apache Stratos - Nginx Extension ................... SKIPPED
> [INFO] Apache Stratos - LVS Extension ..................... SKIPPED
> [INFO] Apache Stratos - AWS LB Extension .................. SKIPPED
> [INFO] Apache Stratos - DAS Extension ..................... SKIPPED
> [INFO] Apache Stratos - Metering Service CApps ............ SKIPPED
> [INFO] Apache Stratos - Monitoring Service CApps .......... SKIPPED
> [INFO] Apache Stratos - DAS Extension ..................... SKIPPED
> [INFO] Apache Stratos - DAS Extension ..................... SKIPPED
> [INFO] Apache Stratos - Features .......................... SKIPPED
> [INFO] Apache Stratos - Load Balancer Features ............ SKIPPED
> [INFO] Apache Stratos - Load Balancer - Management Feature  SKIPPED
> [INFO] Apache Stratos - Load Balancer - Common Feature .... SKIPPED
> [INFO] Apache Stratos - Autoscaler Features ............... SKIPPED
> [INFO] Apache Stratos - Autoscaler Feature ................ SKIPPED
> [INFO] Apache Stratos - Mock IaaS Features ................ SKIPPED
> [INFO] Apache Stratos - Mock IaaS API Feature ............. SKIPPED
> [INFO] Apache Stratos - Cloud Controller Features ......... SKIPPED
> [INFO] Apache Stratos - Cloud Controller Feature .......... SKIPPED
> [INFO] Apache Stratos - Manager Features Aggregator Module  SKIPPED
> [INFO] Apache Stratos - Stratos Management Aggregator Module SKIPPED
> [INFO] Apache Stratos - Management Core Feature ........... SKIPPED
> [INFO] Apache Stratos - Management Composite Feature ...... SKIPPED
> [INFO] Apache Stratos - RESTful admin services feature .... SKIPPED
> [INFO] Apache Stratos - stratos manager admin theme ....... SKIPPED
> [INFO] Apache Stratos - Meta Data Service feature ......... SKIPPED
> [INFO] Apache Stratos - Metadata client Feature ........... SKIPPED
> [INFO] Apache Stratos - Messaging Module .................. SKIPPED
> [INFO] Apache Stratos - Messaging Feature ................. SKIPPED
> [INFO] Apache Stratos - Common Features ................... SKIPPED
> [INFO] Apache Stratos - Common Server Feature ............. SKIPPED
> [INFO] Apache Stratos - Custom Handlers Feature ........... SKIPPED
> [INFO] Apache Stratos - Common Composite Feature .......... SKIPPED
> [INFO] Apache Stratos - CEP Features ...................... SKIPPED
> [INFO] Apache Stratos - Event Processor Server Feature .... SKIPPED
> [INFO] Apache Stratos - Event Processor Aggregator Feature  SKIPPED
> [INFO] Apache Stratos - Products .......................... SKIPPED
> [INFO] Apache Stratos - Python Cartridge Agent Product .... SKIPPED
> [INFO] Apache Stratos - Python Cartridge Agent ............ SKIPPED
> [INFO] Apache Stratos - Python Cartridge Agent Integration Aggregator
> SKIPPED
> [INFO] Apache Stratos - PCA - Integration Common Module ... SKIPPED
> [INFO] Apache Stratos - PCA - Integration Tests ........... SKIPPED
> [INFO] Apache Stratos - Cartridge Agent Product ........... SKIPPED
> [INFO] Apache Stratos - Java Cartridge Agent Distribution . SKIPPED
> [INFO] Apache Stratos - Python CLI Product ................ SKIPPED
> [INFO] Apache Stratos - Python CLI ........................ SKIPPED
> [INFO] Apache Stratos - CLI Product ....................... SKIPPED
> [INFO] Apache Stratos - CLI ............................... SKIPPED
> [INFO] Apache Stratos - Load Balancer Product ............. SKIPPED
> [INFO] Apache Stratos - Load Balancer - P2 Profile Generation SKIPPED
> [INFO] Apache Stratos - Load Balancer - Distribution ...... SKIPPED
> [INFO] Apache Stratos - Product ........................... SKIPPED
> [INFO] Apache Stratos - Profile Generation ................ SKIPPED
> [INFO] Apache Stratos - Distribution ...................... SKIPPED
> [INFO] Apache Stratos - Integration Aggregation Module .... SKIPPED
> [INFO] Apache Stratos - Integration Common Module ......... SKIPPED
> [INFO] Apache Stratos - Integration Tests ................. SKIPPED
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 35:36 min
> [INFO] Finished at: 2016-02-06T00:07:24+05:30
> [INFO] Final Memory: 151M/577M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:2.19:test (default-test) on
> project org.apache.stratos.common: There are test failures.
> [ERROR]
> [ERROR] Please refer to D:\gsoc\Stratos\stratos
> 2\stratos\components\org.apache.stratos.common\target\surefire-reports for
> the individual test results.
> [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/MojoFailureException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the
> command
> [ERROR]   mvn <goals> -rf :org.apache.stratos.common
>
> D:\gsoc\Stratos\stratos 2\stratos>[ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:2.19:test (default-test) on
> project org.apache.stratos.common: There are test failures.[ERROR] Failed
> to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19:test
> (default-test) on project org.apache.stratos.common: There are test
> failures.
>
> On Sat, Feb 6, 2016 at 11:34 AM, Ashan Dhananjaya <dhananjay...@gmail.com>
> wrote:
>
>> Hi K2K,
>>
>> Can u please attach the full stack trace.
>>
>> Best Regards,
>> Ashan
>>
>> On Sat, Feb 6, 2016 at 10:48 AM, K2K <kumaranathferna...@gmail.com>
>> wrote:
>>
>>> Hi,
>>> I'm facing an error upon building Apache Stratos
>>>
>>> "java.lang.RuntimeException: Could not parse thrift client configuration
>>>         at
>>> org.apache.stratos.common.test.ThriftStatisticsPublisherTest.createDASLoadBalancingDataPublisher(ThriftStatisticsPublisherTest.java:64)"
>>>
>>> Any insights as to why this is so?
>>>
>>> What I have tried so far :
>>>  >I downgraded oracle jdk and jre from 1.8 to 1.7
>>>  >Tried building in a new m2 repo
>>>
>>> Thanks in advance!!
>>>
>>>
>>>
>>
>>
>> --
>> Ashan Dhananjaya Kumara
>> Phone : +94715547461
>> Blog     : http://ashandhananjaya.blogspot.com/
>> Twitter  : https://twitter.com/Dhananjaya92
>> Say ello :https://ello.co/ashandk
>>
>>
>


-- 
Ashan Dhananjaya Kumara
Phone : +94715547461
Blog     : http://ashandhananjaya.blogspot.com/
Twitter  : https://twitter.com/Dhananjaya92
Say ello :https://ello.co/ashandk

Reply via email to