You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Message: Outer injection point inaccessible from here
Path Taken: MessageBrokerIntegrationTest.pulsarConsumer --> new MessageBrokerIntegrationTest$PulsarMessageConsumer$Intercepted([Reader reader],BeanResolutionContext $beanResolutionContext,BeanContext $beanContext,Qualifier $qualifier,List $interceptors,InterceptorRegistry $interceptorRegistry)
io.micronaut.context.exceptions.BeanInstantiationException: Error instantiating bean of type [com.frogdevelopment.pulsar.MessageBrokerIntegrationTest$PulsarMessageConsumer$Intercepted]
Message: Outer injection point inaccessible from here
Path Taken: MessageBrokerIntegrationTest.pulsarConsumer --> new MessageBrokerIntegrationTest$PulsarMessageConsumer$Intercepted([Reader reader],BeanResolutionContext $beanResolutionContext,BeanContext $beanContext,Qualifier $qualifier,List $interceptors,InterceptorRegistry $interceptorRegistry)
at io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2343)
at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2298)
at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2310)
at io.micronaut.context.DefaultBeanContext.createRegistration(DefaultBeanContext.java:3120)
at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:3010)
at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:2749)
at io.micronaut.context.DefaultBeanContext.getBean(DefaultBeanContext.java:1748)
at io.micronaut.context.AbstractBeanResolutionContext.getBean(AbstractBeanResolutionContext.java:89)
at io.micronaut.context.AbstractInitializableBeanDefinition.resolveBean(AbstractInitializableBeanDefinition.java:2188)
at io.micronaut.context.AbstractInitializableBeanDefinition.getBeanForConstructorArgument(AbstractInitializableBeanDefinition.java:1350)
at com.frogdevelopment.pulsar.$MessageBrokerIntegrationTest$PulsarMessageConsumer$Intercepted$Definition.instantiate(Unknown Source)
at io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2328)
at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2298)
at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2310)
at io.micronaut.context.DefaultBeanContext.createRegistration(DefaultBeanContext.java:3120)
at io.micronaut.context.SingletonScope.getOrCreate(SingletonScope.java:80)
at io.micronaut.context.DefaultBeanContext.findOrCreateSingletonBeanRegistration(DefaultBeanContext.java:3022)
at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:2983)
at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:2749)
at io.micronaut.context.DefaultBeanContext.getBean(DefaultBeanContext.java:1748)
at io.micronaut.context.AbstractBeanResolutionContext.getBean(AbstractBeanResolutionContext.java:89)
at io.micronaut.context.AbstractInitializableBeanDefinition.resolveBean(AbstractInitializableBeanDefinition.java:2188)
at io.micronaut.context.AbstractInitializableBeanDefinition.getBeanForField(AbstractInitializableBeanDefinition.java:1694)
at com.frogdevelopment.pulsar.$MessageBrokerIntegrationTest$Definition.inject(Unknown Source)
at io.micronaut.context.DefaultBeanContext.doInjectAndInitialize(DefaultBeanContext.java:2655)
at io.micronaut.context.DefaultBeanContext.inject(DefaultBeanContext.java:1012)
at io.micronaut.test.extensions.AbstractMicronautExtension.beforeEach(AbstractMicronautExtension.java:459)
at io.micronaut.test.extensions.junit5.MicronautJunit5Extension.beforeEach(MicronautJunit5Extension.java:223)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
Caused by: java.lang.UnsupportedOperationException: Outer injection point inaccessible from here
at io.micronaut.context.AbstractBeanResolutionContext$ConstructorArgumentSegment.getOuterInjectionPoint(AbstractBeanResolutionContext.java:504)
at io.micronaut.pulsar.PulsarReaderFactory.getReaderByInjectionPoint(PulsarReaderFactory.java:115)
at io.micronaut.pulsar.PulsarReaderFactory.getReaderByInjectionPoint(PulsarReaderFactory.java:90)
at io.micronaut.pulsar.$PulsarReaderFactory$GetReaderByInjectionPoint0$Definition.doInstantiate(Unknown Source)
at io.micronaut.context.AbstractInitializableBeanDefinition.instantiate(AbstractInitializableBeanDefinition.java:770)
at io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2326)
Expected Behavior
We can inject
@PulsarReader
in a constructorActual Behaviour
We got the error
Steps To Reproduce
Environment Information
Example Application
https://github.com/FrogDevelopper/micronaut-4_5
Version
4.5.1
The text was updated successfully, but these errors were encountered: