openwebbeans-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Struberg <strub...@yahoo.de>
Subject Re: 2.0.1 presently broken?
Date Sun, 27 Aug 2017 20:40:11 GMT
Yes, maybe you do only include the CDI-1.2 API and not the CDI-2.0 API in hammock?

I've added a Literal for BeforeDestroyed. That was basically all.

LieGrue,
strub


> Am 27.08.2017 um 18:54 schrieb Romain Manni-Bucau <rmannibucau@gmail.com>:
> 
> Saw Mark changed our literal with BeforeDestroyed rework, looks related 
> 
> 
> Romain Manni-Bucau
> @rmannibucau |  Blog | Old Blog | Github | LinkedIn | JavaEE Factory
> 
> 2017-08-27 18:51 GMT+02:00 John D. Ament <johndament@apache.org>:
> Here you go.  It looks like something's trying to treat AnnotationUtil as a managed bean.
> 
> Exception in thread "main" java.lang.ExceptionInInitializerError
> 	at org.apache.webbeans.util.AnnotationUtil.<clinit>(AnnotationUtil.java:51)
> 	at org.apache.webbeans.component.BeanAttributesImpl.<init>(BeanAttributesImpl.java:70)
> 	at org.apache.webbeans.component.InstanceBean.<init>(InstanceBean.java:37)
> 	at org.apache.webbeans.util.WebBeansUtil.<init>(WebBeansUtil.java:180)
> 	at org.apache.webbeans.config.WebBeansContext.<init>(WebBeansContext.java:81)
> 	at org.apache.webbeans.config.WebBeansContext.<init>(WebBeansContext.java:114)
> 	at org.apache.webbeans.corespi.DefaultSingletonService.get(DefaultSingletonService.java:54)
> 	at org.apache.webbeans.corespi.DefaultSingletonService.get(DefaultSingletonService.java:28)
> 	at org.apache.webbeans.config.WebBeansFinder.getSingletonInstance(WebBeansFinder.java:57)
> 	at org.apache.webbeans.config.WebBeansContext.getInstance(WebBeansContext.java:194)
> 	at org.apache.webbeans.arquillian.standalone.OwbArquillianScannerService.<init>(OwbArquillianScannerService.java:76)
> 	at org.apache.webbeans.arquillian.standalone.OwbArquillianSingletonService.initOwb(OwbArquillianSingletonService.java:54)
> 	at org.apache.webbeans.arquillian.standalone.OwbArquillianSingletonService.<init>(OwbArquillianSingletonService.java:44)
> 	at org.apache.webbeans.arquillian.standalone.OwbStandaloneContainer.setup(OwbStandaloneContainer.java:81)
> 	at org.apache.webbeans.arquillian.standalone.OwbStandaloneContainer.setup(OwbStandaloneContainer.java:44)
> 	at org.jboss.arquillian.container.impl.ContainerImpl.setup(ContainerImpl.java:181)
> 	at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$7.perform(ContainerLifecycleController.java:149)
> 	at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$7.perform(ContainerLifecycleController.java:145)
> 	at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.forContainer(ContainerLifecycleController.java:255)
> 	at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.setupContainer(ContainerLifecycleController.java:144)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:497)
> 	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:96)
> 	at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:103)
> 	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:85)
> 	at org.jboss.arquillian.container.impl.client.ContainerDeploymentContextHandler.createContainerContext(ContainerDeploymentContextHandler.java:57)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:497)
> 	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:96)
> 	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:92)
> 	at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:143)
> 	at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:114)
> 	at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)
> 	at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$1.perform(ContainerLifecycleController.java:62)
> 	at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$1.perform(ContainerLifecycleController.java:55)
> 	at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.forEachContainer(ContainerLifecycleController.java:209)
> 	at org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.setupContainers(ContainerLifecycleController.java:54)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:497)
> 	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:96)
> 	at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:103)
> 	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:85)
> 	at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:143)
> 	at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:114)
> 	at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)
> 	at org.jboss.arquillian.container.test.impl.client.ContainerEventController.execute(ContainerEventController.java:85)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:497)
> 	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:96)
> 	at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:103)
> 	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:85)
> 	at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:73)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:497)
> 	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:96)
> 	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:92)
> 	at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:143)
> 	at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:114)
> 	at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.beforeSuite(EventTestRunnerAdaptor.java:75)
> 	at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:116)
> 	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
> 	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
> 	at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
> 	at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
> 	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
> Caused by: java.lang.NullPointerException
> 	at javax.enterprise.util.AnnotationLiteral.getMembers(AnnotationLiteral.java:78)
> 	at javax.enterprise.util.AnnotationLiteral.<init>(AnnotationLiteral.java:69)
> 	at org.apache.webbeans.annotation.EmptyAnnotationLiteral.<init>(EmptyAnnotationLiteral.java:36)
> 	at org.apache.webbeans.annotation.DefaultLiteral.<init>(DefaultLiteral.java:32)
> 	at org.apache.webbeans.annotation.DefaultLiteral.<clinit>(DefaultLiteral.java:34)
> 	... 75 more
> 
> 
> 
> On Sun, Aug 27, 2017 at 12:48 PM Romain Manni-Bucau <rmannibucau@gmail.com> wrote:
> Hi John
> 
> can you capture the hidden exception in the static init part of AnnotationUtil?
> 
> 
> Romain Manni-Bucau
> @rmannibucau |  Blog | Old Blog | Github | LinkedIn | JavaEE Factory
> 
> 2017-08-27 18:30 GMT+02:00 John D. Ament <johndament@apache.org>:
> Just did a test against the 2.0.1 snapshots, all of my arquillian tests are failing
> 
> Everything seems to point to a change in AnnotationUtil, however I don't see anything
changed in there.
> 
> [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.298 s <<<
FAILURE! - in ws.ament.hammock.web.undertow.UndertowFilterTest
> [ERROR] ws.ament.hammock.web.undertow.UndertowFilterTest  Time elapsed: 0.298 s  <<<
ERROR!
> java.lang.ExceptionInInitializerError
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:272)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:236)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
> Caused by: java.lang.NullPointerException
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:272)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:236)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
> 
> [INFO] Running ws.ament.hammock.web.undertow.UndertowListenerTest
> [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.019 s <<<
FAILURE! - in ws.ament.hammock.web.undertow.UndertowListenerTest
> [ERROR] ws.ament.hammock.web.undertow.UndertowListenerTest  Time elapsed: 0.019 s  <<<
ERROR!
> java.lang.NoClassDefFoundError: Could not initialize class org.apache.webbeans.util.AnnotationUtil
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:272)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:236)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
> 
> [INFO] Running ws.ament.hammock.web.undertow.UndertowServletMapperTest
> [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.071 s - in ws.ament.hammock.web.undertow.UndertowServletMapperTest
> [INFO] Running ws.ament.hammock.web.undertow.UndertowServletTest
> [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.023 s <<<
FAILURE! - in ws.ament.hammock.web.undertow.UndertowServletTest
> [ERROR] ws.ament.hammock.web.undertow.UndertowServletTest  Time elapsed: 0.023 s  <<<
ERROR!
> java.lang.NoClassDefFoundError: Could not initialize class org.apache.webbeans.util.AnnotationUtil
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:272)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:236)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
> 
> 
> 
> 


Mime
View raw message