tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tobias Bayer (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (OPENEJB-1724) Instrumenting EJBs with Cobertura breaks tests
Date Wed, 21 Dec 2011 17:31:30 GMT

     [ https://issues.apache.org/jira/browse/OPENEJB-1724?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Tobias Bayer updated OPENEJB-1724:
----------------------------------

    Attachment: openejb-1724.zip

Here you go.

"mvn test" runs fine,
"mvn cobertura:cobertura" fails.
                
> Instrumenting EJBs with Cobertura breaks tests
> ----------------------------------------------
>
>                 Key: OPENEJB-1724
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1724
>             Project: OpenEJB
>          Issue Type: Bug
>    Affects Versions: 4.0-beta-2
>         Environment: Mac OS X, Maven 2, Cobertura 1.9.4.1
>            Reporter: Tobias Bayer
>            Priority: Critical
>              Labels: cobertura, instrumentation, test
>         Attachments: openejb-1724.zip
>
>
> Integration tests run fine unless EJBs are instrumented by Cobertura. 
> When adding instrumentation to the Maven POM, all tests fail with the following exception:
> ERROR - CDI Beans module deployment failed
> javax.enterprise.inject.UnsatisfiedResolutionException: Api type [package.SampleBean]
is not found with the qualifiers 
> Qualifiers: [@javax.enterprise.inject.Default()]
> for injection into Field Injection Point, field name :  sampleBean, Bean Owner : [OtherSampleBean,
Name:null, WebBeans Type:ENTERPRISE, API Types:[java.lang.Object,net.sourceforge.cobertura.coveragedata.HasBeenInstrumented],
Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default]]
> 	at org.apache.webbeans.util.InjectionExceptionUtils.throwUnsatisfiedResolutionException(InjectionExceptionUtils.java:92)
> 	at org.apache.webbeans.container.ResolutionUtil.checkResolvedBeans(ResolutionUtil.java:98)
> 	at org.apache.webbeans.container.InjectionResolver.checkInjectionPoints(InjectionResolver.java:193)
> 	at org.apache.webbeans.container.BeanManagerImpl.validate(BeanManagerImpl.java:1148)
> 	at org.apache.openejb.cdi.BeansDeployer.validate(BeansDeployer.java:262)
> 	at org.apache.openejb.cdi.BeansDeployer.validateInjectionPoints(BeansDeployer.java:215)
> 	at org.apache.openejb.cdi.OpenEJBLifecycle.startApplication(OpenEJBLifecycle.java:285)
> 	at org.apache.openejb.cdi.ThreadSingletonServiceImpl.initialize(ThreadSingletonServiceImpl.java:107)
> 	at org.apache.openejb.cdi.CdiBuilder.build(CdiBuilder.java:50)
> 	at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:754)
> 	at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:497)
> 	at org.apache.openejb.OpenEjbContainer$Provider.createEJBContainer(OpenEjbContainer.java:288)
> 	at javax.ejb.embeddable.EJBContainer.createEJBContainer(EJBContainer.java:56)
> 	at package.OtherSampleBeanIT.bootContainer(OtherSampleBeanIT.java:23)
> 	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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
> 	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
> 	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:234)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:133)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:114)
> 	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:188)
> 	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:166)
> 	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:86)
> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:101)
> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message