<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[Heck's  Blog]]></title> 
<link>https://www.heckjj.com/index.php</link> 
<description><![CDATA[一瞬间的决定，往往可以改变很多，事实上，让自己成功的往往不是知识，是精神！ 如果你总是为自己找借口，那只好让成功推迟。执行力，今天！]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[Heck's  Blog]]></copyright>
<item>
<link>https://www.heckjj.com/post//</link>
<title><![CDATA[Caused by: java.util.zip.ZipException: invalid LOC header (bad signature)错误  ]]></title> 
<author>Heck &lt;@hecks.tk&gt;</author>
<category><![CDATA[编程杂谈]]></category>
<pubDate>Thu, 19 Dec 2019 15:42:41 +0000</pubDate> 
<guid>https://www.heckjj.com/post//</guid> 
<description>
<![CDATA[ 
	在tomcat启动时报invalid LOC header (bad signature)错误,这个问题真是搞死人啊，原来是一个jar的问题，删除让maven重新下载就好了，搞了我半天。<br/><br/>Caused by: java.lang.IllegalArgumentException: java.util.zip.ZipException: invalid LOC header (bad signature)&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;at org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.initInternal(AbstractSingleArchiveResourceSet.java:142)&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;... 12 more&nbsp;&nbsp;<br/>Caused by: java.util.zip.ZipException: invalid LOC header (bad signature)&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;at java.util.zip.ZipFile.read(Native Method)&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;at java.util.zip.ZipFile.access$1400(ZipFile.java:60)&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:734)&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:434)&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;at sun.misc.IOUtils.readFully(IOUtils.java:65)&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;at java.util.jar.JarFile.getBytes(JarFile.java:425)&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;at java.util.jar.JarFile.getManifestFromReference(JarFile.java:193)&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;at java.util.jar.JarFile.getManifest(JarFile.java:180)&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;at org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.initInternal(AbstractSingleArchiveResourceSet.java:140)&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;... 13 more&nbsp;&nbsp;<br/><br/>下面是用于定位哪个jar文件没正常被加载的<br/><br/><a href="https://www.heckjj.com/attachment.php?fid=167" target="_blank"><img src="https://www.heckjj.com/attachment.php?fid=167" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0" width="850" height="550"/></a><br/>右键断点的小圆点，弹出断点设置窗口，选择Breakpoint properties<br/><a href="https://www.heckjj.com/attachment.php?fid=168" target="_blank"><img src="https://www.heckjj.com/attachment.php?fid=168" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/>弹出一个断点属性设置窗口，并输入以下字符串<br/><a href="https://www.heckjj.com/attachment.php?fid=169" target="_blank"><img src="https://www.heckjj.com/attachment.php?fid=169" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>System.out.println("===="+this.getName());false;&nbsp;&nbsp;<br/><br/> 输出文件名<br/><a href="https://www.heckjj.com/attachment.php?fid=170" target="_blank"><img src="https://www.heckjj.com/attachment.php?fid=170" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a>
]]>
</description>
</item><item>
<link>https://www.heckjj.com/post//#blogcomment</link>
<title><![CDATA[[评论] Caused by: java.util.zip.ZipException: invalid LOC header (bad signature)错误  ]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>https://www.heckjj.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>