定位Caused by: java.util.zip.ZipException: invalid LOC header (bad signature)错误
程序员文章站
2022-07-07 16:49:44
...
在tomcat启动时报invalid LOC header (bad signature)错误
Caused by: java.lang.IllegalArgumentException: java.util.zip.ZipException: invalid LOC header (bad signature) at org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.initInternal(AbstractSingleArchiveResourceSet.java:142) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102) ... 12 more Caused by: java.util.zip.ZipException: invalid LOC header (bad signature) at java.util.zip.ZipFile.read(Native Method) at java.util.zip.ZipFile.access$1400(ZipFile.java:60) at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:734) at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:434) at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158) at sun.misc.IOUtils.readFully(IOUtils.java:65) at java.util.jar.JarFile.getBytes(JarFile.java:425) at java.util.jar.JarFile.getManifestFromReference(JarFile.java:193) at java.util.jar.JarFile.getManifest(JarFile.java:180) at org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.initInternal(AbstractSingleArchiveResourceSet.java:140) ... 13 more
以下截图是用于定位哪个jar文件没正常被加载的
右键断点的小圆点,弹出断点设置窗口,选择Breakpoint properties
弹出一个断点属性设置窗口,并输入以下字符串
System.out.println("===="+this.getName());false;
输出文件名
推荐阅读
-
java.lang.IllegalArgumentException: java.util.zip.ZipException: invalid LOC header (bad signature)异常解决方法
-
定位Caused by: java.util.zip.ZipException: invalid LOC header (bad signature)错误
-
定位Caused by: java.util.zip.ZipException: invalid LOC header (bad signature)错误
-
启动Tomcat报错 java.util.zip.ZipException: invalid LOC header (bad signature)
-
【转载】maven提示invalid LOC header (bad signature)
-
【转载】maven提示invalid LOC header (bad signature)
-
java.lang.IllegalArgumentException: java.util.zip.ZipException: invalid LOC header (bad signature)异常解决方法