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

Colm O hEigeartaigh resolved CXF-7486.
--------------------------------------
    Resolution: Won't Fix

current CXF already fails at startup for missing _annotated_ dependencies. The 
NPE only happens with unannotated setter injection, so switching to 
{{{}@Autowired{}}}/{{{}@Inject{}}} on the scanned classes gets them fail-fast 
behaviour today.

> JAXRSServerFactoryBeanDefinitionParser should throw exception when autowiring 
> fails.
> ------------------------------------------------------------------------------------
>
>                 Key: CXF-7486
>                 URL: https://issues.apache.org/jira/browse/CXF-7486
>             Project: CXF
>          Issue Type: Improvement
>          Components: JAX-RS
>    Affects Versions: 3.0.14
>            Reporter: Matthew Buckett
>            Priority: Major
>
> Rather than logging an error JAXRSServerFactoryBeanDefinitionParser should 
> throw the exception from the failure to autowire a bean. This would match the 
> standard behaviour observed by from Spring when autowiring fails and make 
> tracking down failures easier startup fails rather than getting a 
> NullPointerException at runtime.
> As this could a breaking change it should only be introduced at a major 
> upgrade and documented in the release notes. If there's time  updating the 
> log message produced to warn about this upcoming change may also be helpful.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to