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

springboot v3 版本 启动报错 #517

Open
panbdun opened this issue Jan 26, 2024 · 1 comment
Open

springboot v3 版本 启动报错 #517

panbdun opened this issue Jan 26, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@panbdun
Copy link

panbdun commented Jan 26, 2024

Environment

org.springframework.boot spring-boot-starter-parent 3.2.1 UTF-8 21 21 21 com.alipay.sofa tracer-sofa-boot-starter 3.1.1 org.springframework.boot spring-boot-starter org.springframework.boot spring-boot-starter-web org.springframework.boot spring-boot-configuration-processor true

启动异常
java.lang.NoSuchMethodError: 'void ch.qos.logback.classic.util.ContextInitializer.configureByResource(java.net.URL)'
at com.alipay.sofa.common.log.factory.LogbackLoggerSpaceFactory.(LogbackLoggerSpaceFactory.java:67)
at com.alipay.sofa.common.log.factory.LoggerSpaceFactory4LogbackBuilder.doBuild(LoggerSpaceFactory4LogbackBuilder.java:44)
at com.alipay.sofa.common.log.factory.AbstractLoggerSpaceFactoryBuilder.build(AbstractLoggerSpaceFactoryBuilder.java:67)
at com.alipay.sofa.common.log.MultiAppLoggerSpaceManager.createILoggerFactory(MultiAppLoggerSpaceManager.java:289)
at com.alipay.sofa.common.log.MultiAppLoggerSpaceManager.doInit(MultiAppLoggerSpaceManager.java:115)
at com.alipay.sofa.common.log.MultiAppLoggerSpaceManager.init(MultiAppLoggerSpaceManager.java:90)
at com.alipay.sofa.common.log.MultiAppLoggerSpaceManager.getILoggerFactoryBySpaceName(MultiAppLoggerSpaceManager.java:191)
at com.alipay.sofa.common.log.MultiAppLoggerSpaceManager.getLoggerBySpace(MultiAppLoggerSpaceManager.java:177)
at com.alipay.sofa.common.log.MultiAppLoggerSpaceManager.getLoggerBySpace(MultiAppLoggerSpaceManager.java:132)
at com.alipay.sofa.common.log.LoggerSpaceManager.getLoggerBySpace(LoggerSpaceManager.java:44)
at com.alipay.sofa.infra.log.InfraHealthCheckLoggerFactory.getLogger(InfraHealthCheckLoggerFactory.java:53)
at com.alipay.sofa.infra.log.InfraHealthCheckLoggerFactory.getLogger(InfraHealthCheckLoggerFactory.java:39)
at com.alipay.sofa.infra.initializer.SOFABootInfrastructureSpringContextInitializer.(SOFABootInfrastructureSpringContextInitializer.java:39)
at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized0(Native Method)
at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized(Unsafe.java:1160)
at java.base/jdk.internal.reflect.MethodHandleAccessorFactory.ensureClassInitialized(MethodHandleAccessorFactory.java:300)
at java.base/jdk.internal.reflect.MethodHandleAccessorFactory.newConstructorAccessor(MethodHandleAccessorFactory.java:103)
at java.base/jdk.internal.reflect.ReflectionFactory.newConstructorAccessor(ReflectionFactory.java:200)
at java.base/java.lang.reflect.Constructor.acquireConstructorAccessor(Constructor.java:549)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486)
at org.springframework.core.io.support.SpringFactoriesLoader$FactoryInstantiator.instantiate(SpringFactoriesLoader.java:382)
at org.springframework.core.io.support.SpringFactoriesLoader.instantiateFactory(SpringFactoriesLoader.java:228)
at org.springframework.core.io.support.SpringFactoriesLoader.load(SpringFactoriesLoader.java:206)
at org.springframework.core.io.support.SpringFactoriesLoader.load(SpringFactoriesLoader.java:160)
at org.springframework.boot.SpringApplication.getSpringFactoriesInstances(SpringApplication.java:491)
at org.springframework.boot.SpringApplication.getSpringFactoriesInstances(SpringApplication.java:487)
at org.springframework.boot.SpringApplication.(SpringApplication.java:294)
at org.springframework.boot.SpringApplication.(SpringApplication.java:273)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1358)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1347)
at com.cocim.eiis.test.TestApplication.main(TestApplication.java:14)

,---. ,-----. ,------. ,---. ,-----. ,--.
' .-' ' .-. ' | .---' / O \ | |) /_ ,---. ,---. ,-' '-.
. -. | | | | | --, | .-. | | .-. \ | .-. | | .-. | '-. .-' .-' | ' '-' ' | | | | | | | '--' / ' '-' ' ' '-' ' | |
-----' -----' --' --' --' ------' ---' ---' `--'

Spring Boot Version: 3.2.1 (v3.2.1)
SOFABoot Version: 3.1.1 (v3.1.1)
Powered By Ant Financial Services Group

@panbdun
Copy link
Author

panbdun commented Jan 26, 2024

org.springframework.boot spring-boot-starter-parent 3.2.1
<properties>
	<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	<java.version>21</java.version>
	<maven.compiler.source>21</maven.compiler.source>
	<maven.compiler.target>21</maven.compiler.target>
</properties>

<dependencies>

	<dependency>
		<groupId>com.alipay.sofa</groupId>
		<artifactId>tracer-sofa-boot-starter</artifactId>
		<version>3.1.1</version>
	</dependency>

	<dependency>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter</artifactId>
	</dependency>
	<dependency>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-web</artifactId>
	</dependency>

	<dependency>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-configuration-processor</artifactId>
		<optional>true</optional>
	</dependency>

</dependencies>

@panbdun panbdun changed the title springboot v3.1.1版本 启动报错 springboot v3 版本 启动报错 Jan 26, 2024
@nobodyiam nobodyiam added the bug Something isn't working label Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants