Springboot jar 部署IllegalStateException: Failed to get nested archive for entry BOOT-INF/lib/byte-bud

Exception in thread "main" java.lang.IllegalStateException: Failed to get nested archive for entry BOOT-INF/lib/byte-buddy-1.7.11.jar
	at org.springframework.boot.loader.archive.JarFileArchive.getNestedArchive(JarFileArchive.java:108)
	at org.springframework.boot.loader.archive.JarFileArchive.getNestedArchives(JarFileArchive.java:86)
	at org.springframework.boot.loader.ExecutableArchiveLauncher.getClassPathArchives(ExecutableArchiveLauncher.java:70)
	at org.springframework.boot.loader.Launcher.launch(Launcher.java:49)
	at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
Caused by: java.io.IOException: Unable to open nested jar file 'BOOT-INF/lib/byte-buddy-1.7.11.jar'
	at org.springframework.boot.loader.jar.JarFile.getNestedJarFile(JarFile.java:254)
	at org.springframework.boot.loader.jar.JarFile.getNestedJarFile(JarFile.java:239)
	at org.springframework.boot.loader.archive.JarFileArchive.getNestedArchive(JarFileArchive.java:103)
	... 4 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: 6
	at org.springframework.boot.loader.jar.AsciiBytes.hashCode(AsciiBytes.java:208)
	at org.springframework.boot.loader.jar.JarFileEntries.add(JarFileEntries.java:107)
	at org.springframework.boot.loader.jar.JarFileEntries.visitFileHeader(JarFileEntries.java:102)
	at org.springframework.boot.loader.jar.CentralDirectoryParser.visitFileHeader(CentralDirectoryParser.java:95)
	at org.springframework.boot.loader.jar.CentralDirectoryParser.parseEntries(CentralDirectoryParser.java:70)
	at org.springframework.boot.loader.jar.CentralDirectoryParser.parse(CentralDirectoryParser.java:58)
	at org.springframework.boot.loader.jar.JarFile.(JarFile.java:121)
	at org.springframework.boot.loader.jar.JarFile.(JarFile.java:109)
	at org.springframework.boot.loader.jar.JarFile.createJarFileFromFileEntry(JarFile.java:287)
	at org.springframework.boot.loader.jar.JarFile.createJarFileFromEntry(JarFile.java:262)
	at org.springframework.boot.loader.jar.JarFile.getNestedJarFile(JarFile.java:250)
	... 6 more
Exception in thread "main" java.lang.IllegalStateException: Failed to get nested archive for entry BOOT-INF/lib/byte-buddy-1.7.11.jar
	at org.springframework.boot.loader.archive.JarFileArchive.getNestedArchive(JarFileArchive.java:108)
	at org.springframework.boot.loader.archive.JarFileArchive.getNestedArchives(JarFileArchive.java:86)
	at org.springframework.boot.loader.ExecutableArchiveLauncher.getClassPathArchives(ExecutableArchiveLauncher.java:70)
	at org.springframework.boot.loader.Launcher.launch(Launcher.java:49)
	at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
Caused by: java.io.IOException: Unable to open nested jar file 'BOOT-INF/lib/byte-buddy-1.7.11.jar'
	at org.springframework.boot.loader.jar.JarFile.getNestedJarFile(JarFile.java:254)
	at org.springframework.boot.loader.jar.JarFile.getNestedJarFile(JarFile.java:239)
	at org.springframework.boot.loader.archive.JarFileArchive.getNestedArchive(JarFileArchive.java:103)
	... 4 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: 6
	at org.springframework.boot.loader.jar.AsciiBytes.hashCode(AsciiBytes.java:208)
	at org.springframework.boot.loader.jar.JarFileEntries.add(JarFileEntries.java:107)
	at org.springframework.boot.loader.jar.JarFileEntries.visitFileHeader(JarFileEntries.java:102)
	at org.springframework.boot.loader.jar.CentralDirectoryParser.visitFileHeader(CentralDirectoryParser.java:95)
	at org.springframework.boot.loader.jar.CentralDirectoryParser.parseEntries(CentralDirectoryParser.java:70)
	at org.springframework.boot.loader.jar.CentralDirectoryParser.parse(CentralDirectoryParser.java:58)
	at org.springframework.boot.loader.jar.JarFile.(JarFile.java:121)
	at org.springframework.boot.loader.jar.JarFile.(JarFile.java:109)
	at org.springframework.boot.loader.jar.JarFile.createJarFileFromFileEntry(JarFile.java:287)
	at org.springframework.boot.loader.jar.JarFile.createJarFileFromEntry(JarFile.java:262)
	at org.springframework.boot.loader.jar.JarFile.getNestedJarFile(JarFile.java:250)

检查发现byte-buddy的包里面为空,到mvn 资源库中如下处理删除1.7.11

Springboot jar 部署IllegalStateException: Failed to get nested archive for entry BOOT-INF/lib/byte-bud_第1张图片

maven update 重新下载jar 

Springboot jar 部署IllegalStateException: Failed to get nested archive for entry BOOT-INF/lib/byte-bud_第2张图片

执行java -jar test.jar

Springboot jar 部署IllegalStateException: Failed to get nested archive for entry BOOT-INF/lib/byte-bud_第3张图片

 

 

过放荡不羁的生活,容易得像顺水推舟,

但是要结识良朋益友,却难如登天。—— 巴尔扎克

Springboot jar 部署IllegalStateException: Failed to get nested archive for entry BOOT-INF/lib/byte-bud_第4张图片

Springboot jar 部署IllegalStateException: Failed to get nested archive for entry BOOT-INF/lib/byte-bud_第5张图片

你可能感兴趣的:(java)