-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
2.12.0版本在Windows下面启动会出现ClassCircularityError #234
Comments
我没有 试着改了一下,见 分支 你在这个分支上 |
你好 我构建出来了还是一样的问题。 一会儿我新建一个简单的工程看看能否重新,能重现我就提交出来你们看看。 我这边 |
新创建一个项目没有问题,可能是不是是跟其他哪个库有冲突 |
可以从你的应用一步一步减下来,每一步确保问题还在。 这样也可以发现是不是哪个库冲突引起的。 # 这就是问题排查的一般过程 😀❤️ |
实在是不明白 Failed to instantiate SLF4J LoggerFactory
Reported exception:
java.lang.NoClassDefFoundError: Could not initialize class sun.util.calendar.ZoneInfoFile
at java.base/sun.util.calendar.ZoneInfo.getTimeZone(ZoneInfo.java:588)
at java.base/java.util.TimeZone.getTimeZone(TimeZone.java:577)
at java.base/java.util.TimeZone.setDefaultZone(TimeZone.java:682)
at java.base/java.util.TimeZone.getDefaultRef(TimeZone.java:653)
at java.base/java.util.TimeZone.getDefault(TimeZone.java:642)
at java.base/java.util.Calendar.defaultTimeZone(Calendar.java:1679)
at java.base/java.util.Calendar.getInstance(Calendar.java:1660)
at java.base/java.text.SimpleDateFormat.initializeCalendar(SimpleDateFormat.java:676)
at java.base/java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:620)
at java.base/java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:599)
at ch.qos.logback.core.util.CachingDateFormatter.<init>(CachingDateFormatter.java:33)
at ch.qos.logback.classic.layout.TTLLLayout.<init>(TTLLLayout.java:25)
at ch.qos.logback.classic.BasicConfigurator.configure(BasicConfigurator.java:48)
at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:164)
at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:84)
at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55)
at org.slf4j.LoggerFactory.bind(LoggerFactory.java:150)
at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:124)
at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:417)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:362)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:388)
at tech.ailu.luxury.core.starter.util.NetworkUtil.<clinit>(NetworkUtil.java:33)
at tech.ailu.luxury.admin.LuxuryAdminApplication.testIp(LuxuryAdminApplication.java:23)
at tech.ailu.luxury.admin.LuxuryAdminApplication.main(LuxuryAdminApplication.java:17)
Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class sun.util.calendar.ZoneInfoFile
at java.base/sun.util.calendar.ZoneInfo.getTimeZone(ZoneInfo.java:588)
at java.base/java.util.TimeZone.getTimeZone(TimeZone.java:577)
at java.base/java.util.TimeZone.setDefaultZone(TimeZone.java:682)
at java.base/java.util.TimeZone.getDefaultRef(TimeZone.java:653)
at java.base/java.util.TimeZone.getDefault(TimeZone.java:642)
at java.base/java.util.Calendar.defaultTimeZone(Calendar.java:1679)
at java.base/java.util.Calendar.getInstance(Calendar.java:1660)
at java.base/java.text.SimpleDateFormat.initializeCalendar(SimpleDateFormat.java:676)
at java.base/java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:620)
at java.base/java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:599)
at ch.qos.logback.core.util.CachingDateFormatter.<init>(CachingDateFormatter.java:33)
at ch.qos.logback.classic.layout.TTLLLayout.<init>(TTLLLayout.java:25)
at ch.qos.logback.classic.BasicConfigurator.configure(BasicConfigurator.java:48)
at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:164)
at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:84)
at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55)
at org.slf4j.LoggerFactory.bind(LoggerFactory.java:150)
at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:124)
at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:417)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:362)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:388)
at tech.ailu.luxury.core.starter.util.NetworkUtil.<clinit>(NetworkUtil.java:33)
at tech.ailu.luxury.admin.LuxuryAdminApplication.testIp(LuxuryAdminApplication.java:23)
at tech.ailu.luxury.admin.LuxuryAdminApplication.main(LuxuryAdminApplication.java:17)
Process finished with exit code 1 |
不好意思,这次MAC的问题找到了: IDEA自动给我选择了 |
我也出现了这个问题 |
尽量给出全的环境的信息 和 复现方式。 必现吗? |
@kun1988 发布了 包含这个问题的修复;可以试试对于你的情况,是不是解决了? ❤️ |
我在用
IDEA
开发的时候,MAC
下面没有问题,WINDOWS
下面出现了下面的java.lang.ClassCircularityError
错误。WINDOWS
下面用DEBUG
运行也不会出现这个错误。希望这个错误信息能帮到你们
启动时候的错误信息如下:
The text was updated successfully, but these errors were encountered: