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

[jira] [Updated] (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:all-tabpanel ]

Olaf Otto updated SM-3855:
--------------------------
    Description: 
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}

  was:
The AsyncAnnotationBeanPostProcessor requires the org.springframework.util.function, but the package import is 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}

        Summary: OSGi bundle for spring-context and spring-aop 5.1.1 are missing import of "org.springframework.util.function"  (was: OSGi bundle for spring-context 5.1.1 is missing import of "org.springframework.util.function")

> 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
>            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}



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