tomee-1.7.x bug hunting

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

tomee-1.7.x bug hunting

Mark Struberg-2
I try to finally get our CI all green again. RELIABLY. Currently a few of them are randomly failing.


Current target 2 failure left.

in:
https://ci.apache.org/builders/tomee-1.7.x-ubuntu/builds/183/steps/test/logs/stdio

Seems to happen only in the ExtCdi bug for tomee-plus tests.

Apr 08, 2017 1:50:12 AM org.apache.openejb.assembler.classic.Assembler createApplication
INFO: Deployed Application(path=/home/buildslave/slave/tomee-1.7.x-ubuntu/build/arquillian/arquillian-tomee-tests/arquillian-tomee-codi-tests/target/arquillian-test-working-dir/0/MyFacesExtCdiDeploymentTest
)
Apr 08, 2017 1:50:12 AM org.apache.catalina.core.ContainerBase addChildInternal
SEVERE: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/MyFacesExtCdiDeploymentTest]]
....
Caused by: java.lang.NullPointerException
        at org.apache.openejb.util.AppFinder.findAppContextOrWeb(AppFinder.java:28)
        at org.apache.openejb.cdi.ThreadSingletonServiceImpl.get(ThreadSingletonServiceImpl.java:260)
        at org.apache.openejb.cdi.ThreadSingletonServiceImpl.getContext(ThreadSingletonServiceImpl.java:240)
        at org.apache.openejb.cdi.ThreadSingletonServiceImpl.get(ThreadSingletonServiceImpl.java:300)
        at org.apache.openejb.cdi.ThreadSingletonServiceImpl.get(ThreadSingletonServiceImpl.java:57)
        at org.apache.webbeans.config.WebBeansFinder.getSingletonInstance(WebBeansFinder.java:51)
        at org.apache.webbeans.config.WebBeansContext.getInstance(WebBeansContext.java:168)
        at org.apache.webbeans.el22.WebBeansELResolver.<init>(WebBeansELResolver.java:61)
        at org.apache.openejb.cdi.CustomELAdapter.getOwbELResolver(CustomELAdapter.java:41)
        at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1405)
        at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1100)
        at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:130)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5522)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
        ... 56 more

Apr 08, 2017 1:50:12 AM org.apache.openejb.assembler.classic.Assembler destroyApplication
INFO: Undeploying app: /home/buildslave/slave/tomee-1.7.x-ubuntu/build/arquillian/arquillian-tomee-tests/arquillian-tomee-codi-tests/target/arquillian-test-working-dir/0/MyFacesExtCdiDeploymentTest
Apr 08, 2017 1:50:12 AM org.apache.openejb.core.transaction.EjbTransactionUtil handleSystemException


in:
https://ci.apache.org/builders/tomee-1.7.x-ubuntu/builds/184/steps/test/logs/stdio

Running org.apache.openejb.concurrencyutilities.test.ManagedScheduledExecutorServiceImplFactoryTest
WARNING - Unable to create configured thread factory: org.apache.openejb.concurrencyutilities.test.ManagedScheduledExecutorServiceImplFactoryTest$MyThreadFactory
java.lang.RuntimeException: Throwing test exception in MyThreadFactory - I expect to see this logged as a warning!
        at org.apache.openejb.concurrencyutilities.test.ManagedScheduledExecutorServiceImplFactoryTest$MyThreadFactory.<init>(ManagedScheduledExecutorServiceImplFactoryTest.java:41)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
        at java.lang.Class.newInstance(Class.java:383)
        at org.apache.openejb.concurrencyutilities.ee.factory.ManagedScheduledExecutorServiceImplFactory.createScheduledExecutorService(ManagedScheduledExecutorServiceImplFactory.java:40)
        at org.apache.openejb.concurrencyutilities.ee.factory.ManagedScheduledExecutorServiceImplFactory.create(ManagedScheduledExecutorServiceImplFactory.java:34)
        at org.apache.openejb.concurrencyutilities.test.ManagedScheduledExecutorServiceImplFactoryTest.createServiceTest(ManagedScheduledExecutorServiceImplFactoryTest.java:34)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)


Failed tests:
  ManagedScheduledExecutorServiceTest.triggerRunnableSchedule:130 Unexpected state


Any help is welcome!

Would love to release TomEE-1.7.5 somewhen in the near future.

LieGrue,
strub

Reply | Threaded
Open this post in threaded view
|

Re: tomee-1.7.x bug hunting

Romain Manni-Bucau
Hi Mark

From phone but first one is likely linked to last upgrades versus last one
log is normal (likely more a timing issue, we saw it when buildbot was
highly used but if we increase too much wait time we dont test that well so
kind of a compromise).

Can help on monday with first one if still weird why context is not found
properly.

Le 8 avr. 2017 12:35, "Mark Struberg" <[hidden email]> a écrit :

> I try to finally get our CI all green again. RELIABLY. Currently a few of
> them are randomly failing.
>
>
> Current target 2 failure left.
>
> in:
> https://ci.apache.org/builders/tomee-1.7.x-ubuntu/
> builds/183/steps/test/logs/stdio
>
> Seems to happen only in the ExtCdi bug for tomee-plus tests.
>
> Apr 08, 2017 1:50:12 AM org.apache.openejb.assembler.classic.Assembler
> createApplication
> INFO: Deployed Application(path=/home/buildslave/slave/tomee-1.7.x-
> ubuntu/build/arquillian/arquillian-tomee-tests/
> arquillian-tomee-codi-tests/target/arquillian-test-working-dir/0/
> MyFacesExtCdiDeploymentTest
> )
> Apr 08, 2017 1:50:12 AM org.apache.catalina.core.ContainerBase
> addChildInternal
> SEVERE: ContainerBase.addChild: start:
> org.apache.catalina.LifecycleException: Failed to start component
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/
> MyFacesExtCdiDeploymentTest]]
> ....
> Caused by: java.lang.NullPointerException
>         at org.apache.openejb.util.AppFinder.findAppContextOrWeb(
> AppFinder.java:28)
>         at org.apache.openejb.cdi.ThreadSingletonServiceImpl.get(
> ThreadSingletonServiceImpl.java:260)
>         at org.apache.openejb.cdi.ThreadSingletonServiceImpl.getContext(
> ThreadSingletonServiceImpl.java:240)
>         at org.apache.openejb.cdi.ThreadSingletonServiceImpl.get(
> ThreadSingletonServiceImpl.java:300)
>         at org.apache.openejb.cdi.ThreadSingletonServiceImpl.get(
> ThreadSingletonServiceImpl.java:57)
>         at org.apache.webbeans.config.WebBeansFinder.getSingletonInstance(
> WebBeansFinder.java:51)
>         at org.apache.webbeans.config.WebBeansContext.getInstance(
> WebBeansContext.java:168)
>         at org.apache.webbeans.el22.WebBeansELResolver.<init>(
> WebBeansELResolver.java:61)
>         at org.apache.openejb.cdi.CustomELAdapter.getOwbELResolver(
> CustomELAdapter.java:41)
>         at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(
> TomcatWebAppBuilder.java:1405)
>         at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(
> TomcatWebAppBuilder.java:1100)
>         at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(
> GlobalListenerSupport.java:130)
>         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
> LifecycleSupport.java:117)
>         at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(
> LifecycleBase.java:90)
>         at org.apache.catalina.core.StandardContext.startInternal(
> StandardContext.java:5522)
>         at org.apache.catalina.util.LifecycleBase.start(
> LifecycleBase.java:145)
>         ... 56 more
>
> Apr 08, 2017 1:50:12 AM org.apache.openejb.assembler.classic.Assembler
> destroyApplication
> INFO: Undeploying app: /home/buildslave/slave/tomee-
> 1.7.x-ubuntu/build/arquillian/arquillian-tomee-tests/
> arquillian-tomee-codi-tests/target/arquillian-test-working-dir/0/
> MyFacesExtCdiDeploymentTest
> Apr 08, 2017 1:50:12 AM org.apache.openejb.core.transaction.EjbTransactionUtil
> handleSystemException
>
>
> in:
> https://ci.apache.org/builders/tomee-1.7.x-ubuntu/
> builds/184/steps/test/logs/stdio
>
> Running org.apache.openejb.concurrencyutilities.test.
> ManagedScheduledExecutorServiceImplFactoryTest
> WARNING - Unable to create configured thread factory: org.apache.openejb.
> concurrencyutilities.test.ManagedScheduledExecutorServiceImplFactoryTest$
> MyThreadFactory
> java.lang.RuntimeException: Throwing test exception in MyThreadFactory - I
> expect to see this logged as a warning!
>         at org.apache.openejb.concurrencyutilities.test.
> ManagedScheduledExecutorServiceImplFactoryTest$MyThreadFactory.<init>(
> ManagedScheduledExecutorServiceImplFactoryTest.java:41)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance(
> NativeConstructorAccessorImpl.java:57)
>         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
> DelegatingConstructorAccessorImpl.java:45)
>         at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
>         at java.lang.Class.newInstance(Class.java:383)
>         at org.apache.openejb.concurrencyutilities.ee.factory.
> ManagedScheduledExecutorServiceImplFactory.createScheduledExecutorService(
> ManagedScheduledExecutorServiceImplFactory.java:40)
>         at org.apache.openejb.concurrencyutilities.ee.factory.
> ManagedScheduledExecutorServiceImplFactory.create(
> ManagedScheduledExecutorServiceImplFactory.java:34)
>         at org.apache.openejb.concurrencyutilities.test.
> ManagedScheduledExecutorServiceImplFactoryTest.createServiceTest(
> ManagedScheduledExecutorServiceImplFactoryTest.java:34)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
>
> Failed tests:
>   ManagedScheduledExecutorServiceTest.triggerRunnableSchedule:130
> Unexpected state
>
>
> Any help is welcome!
>
> Would love to release TomEE-1.7.5 somewhen in the near future.
>
> LieGrue,
> strub
>
>