panyox opened a new issue, #11048:
URL: https://github.com/apache/dubbo/issues/11048
### Environment
* Dubbo version: 3.2.0-beta.2
* Operating System version: MacOS 13.0.1
* Java version: Java 17
### Steps to reproduce this issue
create a simple provider then start it.
it will start ok, then I try to compile by command:
```sh
./mvnw -Pnative native:compile
```
build failed throw this exception
```
2022-11-29T10:40:35.228+08:00 INFO 3424 --- [ main]
f.a.ReferenceAnnotationBeanPostProcessor : class
org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor
was destroying!
Exception in thread "main" java.lang.IllegalStateException: No constructor
or factory method candidate found for Root bean: class
[org.apache.dubbo.config.spring.beans.factory.annotation.ServiceAnnotationPostProcessor];
scope=singleton; abstract=false; lazyInit=null; autowireMode=0;
dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null;
factoryMethodName=null; initMethodNames=null; destroyMethodNames=null and
argument types [java.util.Collections$SingletonSet<?>]
at
org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorOrFactoryMethod(ConstructorResolver.java:939)
at
org.springframework.beans.factory.support.RegisteredBean.resolveConstructorOrFactoryMethod(RegisteredBean.java:197)
at
org.springframework.beans.factory.aot.BeanDefinitionMethodGenerator.<init>(BeanDefinitionMethodGenerator.java:79)
at
org.springframework.beans.factory.aot.BeanDefinitionMethodGeneratorFactory.getBeanDefinitionMethodGenerator(BeanDefinitionMethodGeneratorFactory.java:102)
at
org.springframework.beans.factory.aot.BeanDefinitionMethodGeneratorFactory.getBeanDefinitionMethodGenerator(BeanDefinitionMethodGeneratorFactory.java:118)
at
org.springframework.beans.factory.aot.BeanRegistrationsAotProcessor.processAheadOfTime(BeanRegistrationsAotProcessor.java:45)
at
org.springframework.beans.factory.aot.BeanRegistrationsAotProcessor.processAheadOfTime(BeanRegistrationsAotProcessor.java:35)
at
org.springframework.context.aot.BeanFactoryInitializationAotContributions.getContributions(BeanFactoryInitializationAotContributions.java:67)
at
org.springframework.context.aot.BeanFactoryInitializationAotContributions.<init>(BeanFactoryInitializationAotContributions.java:49)
at
org.springframework.context.aot.BeanFactoryInitializationAotContributions.<init>(BeanFactoryInitializationAotContributions.java:44)
at
org.springframework.context.aot.ApplicationContextAotGenerator.lambda$processAheadOfTime$0(ApplicationContextAotGenerator.java:58)
at
org.springframework.context.aot.ApplicationContextAotGenerator.withCglibClassHandler(ApplicationContextAotGenerator.java:67)
at
org.springframework.context.aot.ApplicationContextAotGenerator.processAheadOfTime(ApplicationContextAotGenerator.java:53)
at
org.springframework.context.aot.ContextAotProcessor.performAotProcessing(ContextAotProcessor.java:106)
at
org.springframework.context.aot.ContextAotProcessor.doProcess(ContextAotProcessor.java:84)
at
org.springframework.context.aot.ContextAotProcessor.doProcess(ContextAotProcessor.java:49)
at
org.springframework.context.aot.AbstractAotProcessor.process(AbstractAotProcessor.java:82)
at
org.springframework.boot.SpringApplicationAotProcessor.main(SpringApplicationAotProcessor.java:76)
```
but use mvn package to build a jar, it's build success
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]