gpt4 book ai didi

java - 线程中的异常 "main"java.time.DateTimeException : Invalid value for MonthOfYear (valid values 1 - 12): 0 when i am using Google Map jar

转载 作者:太空宇宙 更新时间:2023-11-04 09:03:38 35 4
gpt4 key购买 nike

我正在研究地理围栏,因此我正在使用 Google 依赖项 "android-maps-utils""geopackage-android-map"

我在系统中安装了这些 jar 并在 pom.xml 文件中使用它们

它在 Eclipse IDE 中工作正常,但是当我构建项目并单独运行项目 jar 时,它会抛出下面给出的 Expecetion :

预先感谢您的帮助。

Exception in thread "main" java.time.DateTimeException: Invalid value for MonthOfYear (valid values 1 - 12): 0
at java.time.temporal.ValueRange.checkValidValue(Unknown Source)
at java.time.temporal.ChronoField.checkValidValue(Unknown Source)
at java.time.LocalDate.of(Unknown Source)
at java.time.LocalDateTime.of(Unknown Source)
at org.springframework.boot.loader.jar.CentralDirectoryFileHeader.decodeMsDosFormatDateTime(CentralDirectoryFileHeader.java:127)
at org.springframework.boot.loader.jar.CentralDirectoryFileHeader.getTime(CentralDirectoryFileHeader.java:116)
at org.springframework.boot.loader.jar.JarEntry.<init>(JarEntry.java:58)
at org.springframework.boot.loader.jar.JarFileEntries.getEntry(JarFileEntries.java:316)
at org.springframework.boot.loader.jar.JarFileEntries.access$400(JarFileEntries.java:48)
at org.springframework.boot.loader.jar.JarFileEntries$EntryIterator.next(JarFileEntries.java:366)
at org.springframework.boot.loader.jar.JarFileEntries$EntryIterator.next(JarFileEntries.java:350)
at org.springframework.boot.loader.jar.JarFile$2.nextElement(JarFile.java:204)
at org.springframework.boot.loader.jar.JarFile$2.nextElement(JarFile.java:195)
at org.springframework.boot.loader.archive.JarFileArchive$EntryIterator.next(JarFileArchive.java:189)
at org.springframework.boot.loader.archive.JarFileArchive$EntryIterator.next(JarFileArchive.java:174)
at org.springframework.boot.loader.archive.JarFileArchive.getNestedArchives(JarFileArchive.java:85)
at org.springframework.boot.loader.ExecutableArchiveLauncher.getClassPathArchives(ExecutableArchiveLauncher.java:69)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:52)

最佳答案

看起来它已在 spring-boot 2.1.12 中修复 https://github.com/spring-projects/spring-boot/pull/19595

关于java - 线程中的异常 "main"java.time.DateTimeException : Invalid value for MonthOfYear (valid values 1 - 12): 0 when i am using Google Map jar,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60486960/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com