You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicemix.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2018/11/12 00:58:00 UTC

[jira] [Commented] (SM-3855) OSGi bundle for spring-context and spring-aop 5.1.1 are missing import of "org.springframework.util.function"

    [ https://issues.apache.org/jira/browse/SM-3855?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16683093#comment-16683093 ] 

Freeman Fang commented on SM-3855:
----------------------------------

And this is introduced since spring 5.1

> OSGi bundle for spring-context and spring-aop 5.1.1 are missing import of "org.springframework.util.function"
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: SM-3855
>                 URL: https://issues.apache.org/jira/browse/SM-3855
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: bundles
>    Affects Versions: bundles-2018.10
>            Reporter: Olaf Otto
>            Assignee: Freeman Fang
>            Priority: Critical
>
> The AsyncAnnotationBeanPostProcessor and AsyncExecutionAspectSupport require the org.springframework.util.function, but the package imports are missing from the generated OSGi bundle. This prevents context startup:
> {code:java}
> org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.context.annotation.internalAsyncAnnotationProcessor': Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
> PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'executor' threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/util/function/SingletonSupplier
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1685)
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1400)
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:575)
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:498)
>         at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
>         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
>         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
>         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:204)
>         at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1089)
> {code}
> Both bundles should exhibit an import of the form
> {code:java}
> org.springframework.util.function;version="[5.1.1.RELEASE,5.2)"
> {code}



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