Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

引入后项目启动失败 #133

Closed
yuan-mei opened this issue Oct 27, 2022 · 5 comments
Closed

引入后项目启动失败 #133

yuan-mei opened this issue Oct 27, 2022 · 5 comments

Comments

@yuan-mei
Copy link

yuan-mei commented Oct 27, 2022

作者大大 能帮忙看下吗

java.lang.ExceptionInInitializerError: null
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at
com.github.lianjiatech.retrofit.spring.boot.core.PathMatchInterceptorBdfProcessor.postProcessBeanDefinitionRegistry(PathMatchInterceptorBdfProcessor.java:28)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:272)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:122)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:687)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:525)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:303)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107)
at com.ifreecomm.cm.apis.app.AppConfig.main(AppConfig.java:72)

@chentianming11
Copy link
Collaborator

chentianming11 commented Oct 27, 2022

麻烦提供一下更完整的异常堆栈

@yuan-mei
Copy link
Author

麻烦提供一下更完整的异常堆栈

已连接到目标 VM, 地址: ''127.0.0.1:52423',传输: '套接字''

. ____ _ __ _ _
/\ / ' __ _ () __ __ _ \ \ \
( ( )_
_ | '_ | '| | ' / ` | \ \ \
\/ )| |)| | | | | || (| | ) ) ) )
' |
| .__|| ||| |_, | / / / /
=========|
|==============|/=////
:: Spring Boot :: (v1.5.9.RELEASE)

2022-10-27 09:57:49 [main] INFO com.igcom.cm.apis.app.AppConfig - Starting AppConfig on DESKTOP-G0SL3H1 with PID 5964 (D:\code\IdeaProjects\mdcs_v3.5_platform_server\cm-api\target\classes started by zf in D:\code\IdeaProjects\mdcs_v3.5_platform_server)
2022-10-27 09:57:49 [main] INFO com.igcom.cm.apis.app.AppConfig - The following profiles are active: dev-mix
2022-10-27 09:57:49 [main] INFO org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext - Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@2a5b3fee: startup date [Thu Oct 27 09:57:49 CST 2022]; root of context hierarchy
2022-10-27 09:57:58 [main] INFO com.github.lianjiatech.retrofit.spring.boot.core.RetrofitClientScannerRegistrar - Scan the @RetrofitClient annotated interface using the @RetrofitScan configuration. packages=[com.igcom.cm.service]
2022-10-27 09:58:02 [main] INFO org.springframework.data.repository.config.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode!
2022-10-27 09:58:05 [main] INFO org.springframework.data.repository.config.RepositoryConfigurationDelegate - Multiple Spring Data modules found, entering strict repository configuration mode!
2022-10-27 09:58:06 [main] ERROR org.springframework.boot.SpringApplication - Application startup failed
java.lang.ExceptionInInitializerError: null
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at com.github.lianjiatech.retrofit.spring.boot.core.PathMatchInterceptorBdfProcessor.postProcessBeanDefinitionRegistry(PathMatchInterceptorBdfProcessor.java:28)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:272)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:122)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:687)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:525)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:303)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107)
at com.igcom.cm.apis.app.AppConfig.main(AppConfig.java:72)
Caused by: java.lang.NullPointerException: null
at com.igcom.cm.common.helper.ApplicationContextUtil.getBean(ApplicationContextUtil.java:36)
at com.igcom.cm.service.common.MqttFactory.(MqttFactory.java:31)
... 14 common frames omitted
2022-10-27 09:58:06 [main] INFO org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext - Closing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@2a5b3fee: startup date [Thu Oct 27 09:57:49 CST 2022]; root of context hierarchy
与目标 VM 断开连接, 地址为: ''127.0.0.1:52423',传输: '套接字''

进程已结束,退出代码1

@yuan-mei
Copy link
Author

就是在 该项目上, 一引入starter 坐标后 ,项目启动就报错。 同样的springboot 版本另启个项目 就不会发生

@chentianming11
Copy link
Collaborator

image

是这个空指针导致的吧?

@yuan-mei
Copy link
Author

image

是这个空指针导致的吧?

恩,好像是这段代码引起的
image

不知道为什么不引入starter的话,项目启动运行一点问题没有, 引入的话 就会启动不起来

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants