geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Romain Manni-Bucau (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (GERONIMO-6698) OpenAPI - causes NPE in Jersey CDIExtension
Date Fri, 22 Feb 2019 12:51:00 GMT

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

Romain Manni-Bucau resolved GERONIMO-6698.
------------------------------------------
    Resolution: Fixed

> OpenAPI - causes NPE in Jersey CDIExtension
> -------------------------------------------
>
>                 Key: GERONIMO-6698
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6698
>             Project: Geronimo
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>    Affects Versions: OpenAPI_1.0.5
>            Reporter: James Meen
>            Assignee: Romain Manni-Bucau
>            Priority: Major
>             Fix For: OpenAPI_1.0.6
>
>
> Am running TomEE with Geronimo OpenAPI enabled.  I have a Jersey REST app which works
fine without MicroProfile.
> When Geronimo OpenAPI is added the following exception occurs preventing the Jersey REST
app from starting successfully.
>  
> {code:java}
> SEVERE [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.openejb.cdi.OpenEJBLifecycle.startApplication
CDI Beans module deployment failed
> org.apache.webbeans.exception.WebBeansDeploymentException: Error while sending SystemEvent
to a CDI Extension! org.apache.webbeans.portable.events.discovery.AfterDeploymentValidationImpl@3e1af8b7
> Caused by: java.lang.NullPointerException
> at com.sun.jersey.server.impl.cdi.CDIExtension$PredefinedBean.create(CDIExtension.java:955)
> at org.apache.webbeans.component.third.ThirdpartyBeanImpl.create(ThirdpartyBeanImpl.java:97)
> at org.apache.webbeans.context.DependentContext.getInstance(DependentContext.java:68)
> at org.apache.webbeans.context.AbstractContext.get(AbstractContext.java:125)
> at org.apache.webbeans.container.BeanManagerImpl.getReference(BeanManagerImpl.java:813)
> at org.apache.webbeans.container.BeanManagerImpl.getInjectableReference(BeanManagerImpl.java:673)
> at org.apache.webbeans.inject.AbstractInjectable.inject(AbstractInjectable.java:100)
> at org.apache.webbeans.inject.InjectableField.doInjection(InjectableField.java:65)
> at org.apache.webbeans.portable.InjectionTargetImpl.injectFields(InjectionTargetImpl.java:227)
> at org.apache.webbeans.portable.InjectionTargetImpl.inject(InjectionTargetImpl.java:213)
> at org.apache.webbeans.portable.InjectionTargetImpl.inject(InjectionTargetImpl.java:203)
> at org.apache.webbeans.component.AbstractOwbBean.create(AbstractOwbBean.java:126)
> at org.apache.webbeans.component.ManagedBean.create(ManagedBean.java:66)
> at org.apache.webbeans.context.DependentContext.getInstance(DependentContext.java:68)
> at org.apache.webbeans.context.AbstractContext.get(AbstractContext.java:125)
> at org.apache.webbeans.container.BeanManagerImpl.getReference(BeanManagerImpl.java:813)
> at org.apache.webbeans.container.InjectableBeanManager.getReference(InjectableBeanManager.java:180)
> at org.apache.geronimo.microprofile.openapi.cdi.GeronimoOpenAPIExtension.afterValidation(GeronimoOpenAPIExtension.java:132)
> ...
> {code}
>  
> Is this something that can be solved within OpenAPI?  I have found similar issues logged
with Jersey but they seem to be resolved by the other component, not Jersey.
> Thanks



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message