Hi Krishantha,

Attached the  filter.txt file. Nothing was defined in instrumentation.txt
so that all bundles will be instrumented.

Thanks,
Supun

On Wed, Jan 7, 2015 at 1:42 PM, Krishantha Samaraweera <[email protected]>
wrote:

> Can you share instrumentation.txt and filter.txt files
>
> Thanks,
> Krishantha.
>
> On Wed, Jan 7, 2015 at 12:12 PM, Supun Sethunga <[email protected]> wrote:
>
>> Hi Krishantha,
>>
>> The following exception is thrown when i enable the test coverage in the
>> ML UI integration tests. Tests work fine when the coverage is set to false.
>> I followed the documentation on [1].
>>
>> Similar issue has been discussed in [2] and [3]. Any idea what causes
>> this?
>>
>> I have attached the *integration/pom.xml* and the
>> *integration/tests-ui-integration/pom.xml*
>>
>>
>>> *-------------------------------------------------------*
>>> * T E S T S*
>>> *-------------------------------------------------------*
>>> *Running TestSuite*
>>> *INFO
>>>  
>>> [org.wso2.carbon.integration.common.extensions.carbonserver.CarbonServerManager]
>>> - Extracting carbon zip file.. *
>>> *INFO
>>>  
>>> [org.wso2.carbon.integration.common.extensions.carbonserver.TestServerManager]
>>> - Carbon Home -
>>> /home/supun/Supun/MachineLearning/Product/modules/integration/tests-ui-integration/target/carbontmp1420611207295/wso2ml-1.0.0-SNAPSHOT*
>>> *INFO
>>>  [org.wso2.carbon.automation.engine.frameworkutils.CodeCoverageUtils] -
>>> Instrumentation of jar files in progress ...*
>>> *INFO
>>>  [org.wso2.carbon.automation.engine.frameworkutils.CodeCoverageUtils] -
>>> Instrumented 310 file(s) in plugins directory*
>>> *INFO
>>>  [org.wso2.carbon.automation.engine.frameworkutils.CodeCoverageUtils] -
>>> Instrumented 0 file(s) in patches directory*
>>> *INFO
>>>  
>>> [org.wso2.carbon.integration.common.extensions.carbonserver.CarbonServerManager]
>>> - Starting server............. *
>>> *INFO
>>>  [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] -
>>> JAVA_HOME environment variable is set to
>>> /home/supun/Supun/Softwares/jdk1.6.0_45*
>>> *INFO
>>>  [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] -
>>> CARBON_HOME environment variable is set to
>>> /home/supun/Supun/MachineLearning/Product/modules/integration/tests-ui-integration/target/carbontmp1420611207295/wso2ml-1.0.0-SNAPSHOT*
>>> *ERROR
>>> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] -
>>> java.lang.reflect.InvocationTargetException*
>>> *ERROR
>>> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] -
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)*
>>> *ERROR
>>> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] -
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)*
>>> *ERROR
>>> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] -
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)*
>>> *ERROR
>>> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] -
>>> at java.lang.reflect.Method.invoke(Method.java:597)*
>>> *ERROR
>>> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] -
>>> at org.wso2.carbon.bootstrap.Bootstrap.loadClass(Bootstrap.java:63)*
>>> *ERROR
>>> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] -
>>> at org.wso2.carbon.bootstrap.Bootstrap.main(Bootstrap.java:45)*
>>> *ERROR
>>> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] -
>>> Caused by: java.lang.RuntimeException: Invalid signature file digest for
>>> Manifest main attributes*
>>> *ERROR
>>> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] -
>>> at org.wso2.carbon.server.CarbonLauncher.launch(CarbonLauncher.java:117)*
>>> *ERROR
>>> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] -
>>> at org.wso2.carbon.server.Main.launchCarbon(Main.java:162)*
>>> *ERROR
>>> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] -
>>> at org.wso2.carbon.server.Main.main(Main.java:96)*
>>> *ERROR
>>> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] -
>>> ... 6 more*
>>> *ERROR
>>> [org.wso2.carbon.integration.common.extensions.carbonserver.CarbonServerExtension]
>>> - Fail to start carbon server *
>>> *java.lang.RuntimeException: Port 9763 is not open*
>>> * at
>>> org.wso2.carbon.integration.common.utils.ClientConnectionUtil.waitForPort(ClientConnectionUtil.java:101)*
>>> * at
>>> org.wso2.carbon.integration.common.extensions.carbonserver.CarbonServerManager.startServerUsingCarbonHome(CarbonServerManager.java:136)*
>>> * at
>>> org.wso2.carbon.integration.common.extensions.carbonserver.TestServerManager.startServer(TestServerManager.java:102)*
>>> * at
>>> org.wso2.carbon.integration.common.extensions.carbonserver.CarbonServerExtension.onExecutionStart(CarbonServerExtension.java:51)*
>>> * at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)*
>>> * at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)*
>>> * at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)*
>>> * at java.lang.reflect.Method.invoke(Method.java:597)*
>>> * 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:1094)*
>>> * at org.testng.TestNG.run(TestNG.java:1041)*
>>> * 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:39)*
>>> * at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)*
>>> * at java.lang.reflect.Method.invoke(Method.java:597)*
>>> * 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)*
>>> *ERROR
>>> [org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener] -
>>> Execution error occurred in
>>> TestExecutionListener:-[Ljava.lang.StackTraceElement;@34883357*
>>> *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:39)*
>>> * at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)*
>>> * at java.lang.reflect.Method.invoke(Method.java:597)*
>>> * 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.lang.RuntimeException: Error on initializing test
>>> environment *
>>> * at
>>> org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.handleException(TestExecutionListener.java:71)*
>>> * at
>>> org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.onExecutionStart(TestExecutionListener.java:52)*
>>> * at org.testng.TestNG.runExecutionListeners(TestNG.java:1094)*
>>> * at org.testng.TestNG.run(TestNG.java:1041)*
>>> * 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)*
>>> * ... 9 more*
>>> *Caused by: java.lang.reflect.InvocationTargetException*
>>> * at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)*
>>> * at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)*
>>> * at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)*
>>> * at java.lang.reflect.Method.invoke(Method.java:597)*
>>> * at
>>> org.wso2.carbon.automation.engine.extensions.TestNGExtensionExecutor.executeExtensible(TestNGExtensionExecutor.java:75)*
>>> * at
>>> org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.onExecutionStart(TestExecutionListener.java:47)*
>>> * ... 14 more*
>>> *Caused by: java.lang.RuntimeException: Fail to start carbon server *
>>> * at
>>> org.wso2.carbon.integration.common.extensions.carbonserver.CarbonServerExtension.handleException(CarbonServerExtension.java:71)*
>>> * at
>>> org.wso2.carbon.integration.common.extensions.carbonserver.CarbonServerExtension.onExecutionStart(CarbonServerExtension.java:55)*
>>> * ... 20 more*
>>> *Caused by: java.lang.RuntimeException: Port 9763 is not open*
>>> * at
>>> org.wso2.carbon.integration.common.utils.ClientConnectionUtil.waitForPort(ClientConnectionUtil.java:101)*
>>> * at
>>> org.wso2.carbon.integration.common.extensions.carbonserver.CarbonServerManager.startServerUsingCarbonHome(CarbonServerManager.java:136)*
>>> * at
>>> org.wso2.carbon.integration.common.extensions.carbonserver.TestServerManager.startServer(TestServerManager.java:102)*
>>> * at
>>> org.wso2.carbon.integration.common.extensions.carbonserver.CarbonServerExtension.onExecutionStart(CarbonServerExtension.java:51)**
>>> ... 20 more*
>>
>>
>>
>> Ref:
>>  [1]
>> https://docs.wso2.com/display/TA430/Emma+Based+Integration+Test+Code+Coverage
>>  [2] http://mail.wso2.org/mailarchive/dev/2014-May/030683.html
>>  [3]
>> http://wso2-oxygen-tank.10903.n7.nabble.com/Dev-Jaggery-integration-test-module-Code-coverage-lt-coverage-gt-true-lt-coverage-gt-Exception-td99662.html
>>
>> --
>> *Supun Sethunga*
>> Software Engineer
>> WSO2, Inc.
>> lean | enterprise | middleware
>> Mobile : +94 716546324
>>
>
>
>
> --
> Krishantha Samaraweera
> Senior Technical Lead - Test Automation
> Mobile: +94 77 7759918
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>



-- 
*Supun Sethunga*
Software Engineer
WSO2, Inc.
lean | enterprise | middleware
Mobile : +94 716546324
-org.wso2.carbon.caching.core.identity.*
-org.wso2.carbon.caching.core.permissiontree.*
-org.wso2.carbon.caching.infinispan.*
-org.wso2.carbon.event.core.internal.delivery.jms.*
-org.wso2.carbon.event.core.qpid.*
-org.wso2.carbon.registry.synchronization.*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to