一、该问题的重现步骤是什么?
1.
就是纯净版本bladex-boot-3.2.0,什么也没有修改,就只添加对 jap-ldap 依赖
com.fujieid jap-ldap 1.0.7
一启动就报错误 :
2023-12-08 16:29:15.245 INFO 18268 --- [ main] pertySourcedRequestMappingHandlerMapping : Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2ControllerWebMvc#getDocumentation(String, HttpServletRequest)]
2023-12-08 16:29:15.280 INFO 18268 --- [ main] o.s.c.b.config.BladeRetryConfiguration : configServerRetryInterceptor: Changing backOffOptions to initial: 1000, multiplier: 1.2, maxInterval: 5000
2023-12-08 16:29:15.334 INFO 18268 --- [ main] o.s.core.log.logger.BladeLogger : blade-api: BladeLogger init success!
2023-12-08 16:29:16.224 INFO 18268 --- [ main] com.yomahub.liteflow.core.FlowExecutor : flow info loaded from local file,path=liteflow/*.el.xml
2023-12-08 16:29:16.910 WARN 18268 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'okHttpClientBuilder' defined in class path resource [org/springframework/cloud/commons/httpclient/HttpClientConfiguration$OkHttpClientConfiguration.class]: Initialization of bean failed; nested exception is java.lang.StackOverflowError
2023-12-08 16:29:16.931 INFO 18268 --- [ main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closing ...
2023-12-08 16:29:16.938 INFO 18268 --- [ main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed
2023-12-08 16:29:16.950 INFO 18268 --- [ main] ConditionEvaluationReportLoggingListener :
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2023-12-08 16:29:16.982 ERROR 18268 --- [ main] o.s.boot.SpringApplication : Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'okHttpClientBuilder' defined in class path resource [org/springframework/cloud/commons/httpclient/HttpClientConfiguration$OkHttpClientConfiguration.class]: Initialization of bean failed; nested exception is java.lang.StackOverflowError
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:628)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:921)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:731)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:408)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:307)
at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:164)
at org.springblade.core.launch.BladeApplication.run(BladeApplication.java:50)
at org.springblade.Application.main(Application.java:38)
Caused by: java.lang.StackOverflowError: null
at java.lang.reflect.Method.getParameterTypes(Method.java:264)
at sun.reflect.annotation.AnnotationInvocationHandler.invoke(AnnotationInvocationHandler.java:59)
at com.sun.proxy.$Proxy73.annotationType(Unknown Source)
at cn.hutool.core.annotation.CombinationAnnotationElement.parseDeclared(CombinationAnnotationElement.java:105)
at cn.hutool.core.annotation.CombinationAnnotationElement.parseDeclared(CombinationAnnotationElement.java:108)
at cn.hutool.core.annotation.CombinationAnnotationElement.parseDeclared(CombinationAnnotationElement.java:108)
2.
经过测试排查,发现在3..0.0版本下可以正常,现在就是3.2.0版本一启动就报错。
3.
二、你期待的结果是什么?实际看到的又是什么?
还请管理员帮忙解决下,希望能成功引入 jap-ldap 的依赖。
三、你正在使用的是什么产品,什么版本?在什么操作系统上?
四、请提供详细的错误堆栈信息,这很重要。
五、若有更多详细信息,请在下面提供。
扫一扫访问 Blade技术社区 移动端