欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

java.lang.IllegalArgumentException: java.util.zip.ZipException: invalid LOC header (bad signature)异常解决方法

程序员文章站 2022-09-27 20:58:20
jar包出错。 解决方法maven-test排查jar包 ......
java.util.concurrent.executionexception: org.apache.catalina.lifecycleexception: failed to start component [standardengine[catalina].standardhost[localhost].standardcontext[/hibernate_springmvc]]
    at java.util.concurrent.futuretask.report(futuretask.java:122)
    at java.util.concurrent.futuretask.get(futuretask.java:192)
    at org.apache.catalina.core.containerbase.startinternal(containerbase.java:931)
    at org.apache.catalina.core.standardhost.startinternal(standardhost.java:850)
    at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150)
    at org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1412)
    at org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1402)
    at java.util.concurrent.futuretask.run(futuretask.java:266)
    at java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1149)
    at java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:624)
    at java.lang.thread.run(thread.java:748)
caused by: org.apache.catalina.lifecycleexception: failed to start component [standardengine[catalina].standardhost[localhost].standardcontext[/hibernate_springmvc]]
    at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:167)
    ... 6 more
caused by: org.apache.catalina.lifecycleexception: failed to start component [org.apache.catalina.webresources.standardroot@17ac2fea]
    at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:167)
    at org.apache.catalina.core.standardcontext.resourcesstart(standardcontext.java:4814)
    at org.apache.catalina.core.standardcontext.startinternal(standardcontext.java:4949)
    at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150)
    ... 6 more
caused by: org.apache.catalina.lifecycleexception: failed to initialize component [org.apache.catalina.webresources.jarresourceset@1697c610]
    at org.apache.catalina.util.lifecyclebase.init(lifecyclebase.java:112)
    at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:140)
    at org.apache.catalina.webresources.standardroot.startinternal(standardroot.java:724)
    at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150)
    ... 9 more
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:107)
    ... 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

七月 22, 2019 6:44:06 下午 org.apache.catalina.core.containerbase startinternal
严重: a child container failed during start
java.util.concurrent.executionexception: org.apache.catalina.lifecycleexception: failed to start component [standardengine[catalina].standardhost[localhost]]
    at java.util.concurrent.futuretask.report(futuretask.java:122)
    at java.util.concurrent.futuretask.get(futuretask.java:192)
    at org.apache.catalina.core.containerbase.startinternal(containerbase.java:931)
    at org.apache.catalina.core.standardengine.startinternal(standardengine.java:258)
    at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150)
    at org.apache.catalina.core.standardservice.startinternal(standardservice.java:422)
    at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150)
    at org.apache.catalina.core.standardserver.startinternal(standardserver.java:770)
    at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150)
    at org.apache.catalina.startup.catalina.start(catalina.java:688)
    at sun.reflect.nativemethodaccessorimpl.invoke0(native method)
    at sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:62)
    at sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)
    at java.lang.reflect.method.invoke(method.java:498)
    at org.apache.catalina.startup.bootstrap.start(bootstrap.java:353)
    at org.apache.catalina.startup.bootstrap.main(bootstrap.java:493)
caused by: org.apache.catalina.lifecycleexception: failed to start component [standardengine[catalina].standardhost[localhost]]
    at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:167)
    at org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1412)
    at org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1402)
    at java.util.concurrent.futuretask.run(futuretask.java:266)
    at java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1149)
    at java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:624)
    at java.lang.thread.run(thread.java:748)
caused by: org.apache.catalina.lifecycleexception: a child container failed during start
    at org.apache.catalina.core.containerbase.startinternal(containerbase.java:942)
    at org.apache.catalina.core.standardhost.startinternal(standardhost.java:850)
    at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150)
    ... 6 more
caused by: java.util.concurrent.executionexception: org.apache.catalina.lifecycleexception: failed to start component [standardengine[catalina].standardhost[localhost].standardcontext[/hibernate_springmvc]]
    at java.util.concurrent.futuretask.report(futuretask.java:122)
    at java.util.concurrent.futuretask.get(futuretask.java:192)
    at org.apache.catalina.core.containerbase.startinternal(containerbase.java:931)
    ... 8 more
caused by: org.apache.catalina.lifecycleexception: failed to start component [standardengine[catalina].standardhost[localhost].standardcontext[/hibernate_springmvc]]
    at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:167)
    ... 6 more
caused by: org.apache.catalina.lifecycleexception: failed to start component [org.apache.catalina.webresources.standardroot@17ac2fea]
    at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:167)
    at org.apache.catalina.core.standardcontext.resourcesstart(standardcontext.java:4814)
    at org.apache.catalina.core.standardcontext.startinternal(standardcontext.java:4949)
    at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150)
    ... 6 more
caused by: org.apache.catalina.lifecycleexception: failed to initialize component [org.apache.catalina.webresources.jarresourceset@1697c610]
    at org.apache.catalina.util.lifecyclebase.init(lifecyclebase.java:112)
    at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:140)
    at org.apache.catalina.webresources.standardroot.startinternal(standardroot.java:724)
    at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150)
    ... 9 more
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:107)
    ... 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

七月 22, 2019 6:44:06 下午 org.apache.catalina.startup.catalina start
严重: the required server component failed to start so tomcat is unable to start.
org.apache.catalina.lifecycleexception: failed to start component [standardserver[8005]]
    at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:167)
    at org.apache.catalina.startup.catalina.start(catalina.java:688)
    at sun.reflect.nativemethodaccessorimpl.invoke0(native method)
    at sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:62)
    at sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)
    at java.lang.reflect.method.invoke(method.java:498)
    at org.apache.catalina.startup.bootstrap.start(bootstrap.java:353)
    at org.apache.catalina.startup.bootstrap.main(bootstrap.java:493)
caused by: org.apache.catalina.lifecycleexception: failed to start component [standardservice[catalina]]
    at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:167)
    at org.apache.catalina.core.standardserver.startinternal(standardserver.java:770)
    at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150)
    ... 7 more
caused by: org.apache.catalina.lifecycleexception: failed to start component [standardengine[catalina]]
    at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:167)
    at org.apache.catalina.core.standardservice.startinternal(standardservice.java:422)
    at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150)
    ... 9 more
caused by: org.apache.catalina.lifecycleexception: a child container failed during start
    at org.apache.catalina.core.containerbase.startinternal(containerbase.java:942)
    at org.apache.catalina.core.standardengine.startinternal(standardengine.java:258)
    at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150)
    ... 11 more
caused by: java.util.concurrent.executionexception: org.apache.catalina.lifecycleexception: failed to start component [standardengine[catalina].standardhost[localhost]]
    at java.util.concurrent.futuretask.report(futuretask.java:122)
    at java.util.concurrent.futuretask.get(futuretask.java:192)
    at org.apache.catalina.core.containerbase.startinternal(containerbase.java:931)
    ... 13 more
caused by: org.apache.catalina.lifecycleexception: failed to start component [standardengine[catalina].standardhost[localhost]]
    at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:167)
    at org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1412)
    at org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1402)
    at java.util.concurrent.futuretask.run(futuretask.java:266)
    at java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1149)
    at java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:624)
    at java.lang.thread.run(thread.java:748)
caused by: org.apache.catalina.lifecycleexception: a child container failed during start
    at org.apache.catalina.core.containerbase.startinternal(containerbase.java:942)
    at org.apache.catalina.core.standardhost.startinternal(standardhost.java:850)
    at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150)
    ... 6 more
caused by: java.util.concurrent.executionexception: org.apache.catalina.lifecycleexception: failed to start component [standardengine[catalina].standardhost[localhost].standardcontext[/hibernate_springmvc]]
    at java.util.concurrent.futuretask.report(futuretask.java:122)
    at java.util.concurrent.futuretask.get(futuretask.java:192)
    at org.apache.catalina.core.containerbase.startinternal(containerbase.java:931)
    ... 8 more
caused by: org.apache.catalina.lifecycleexception: failed to start component [standardengine[catalina].standardhost[localhost].standardcontext[/hibernate_springmvc]]
    at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:167)
    ... 6 more
caused by: org.apache.catalina.lifecycleexception: failed to start component [org.apache.catalina.webresources.standardroot@17ac2fea]
    at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:167)
    at org.apache.catalina.core.standardcontext.resourcesstart(standardcontext.java:4814)
    at org.apache.catalina.core.standardcontext.startinternal(standardcontext.java:4949)
    at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150)
    ... 6 more
caused by: org.apache.catalina.lifecycleexception: failed to initialize component [org.apache.catalina.webresources.jarresourceset@1697c610]
    at org.apache.catalina.util.lifecyclebase.init(lifecyclebase.java:112)
    at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:140)
    at org.apache.catalina.webresources.standardroot.startinternal(standardroot.java:724)
    at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150)
    ... 9 more
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:107)
    ... 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

七月 22, 2019 6:44:06 下午 org.apache.coyote.abstractprotocol pause
信息: pausing protocolhandler ["http-nio-8080"]
七月 22, 2019 6:44:06 下午 org.apache.coyote.abstractprotocol pause
信息: pausing protocolhandler ["ajp-nio-8009"]
七月 22, 2019 6:44:06 下午 org.apache.catalina.core.standardservice stopinternal
信息: stopping service [catalina]
七月 22, 2019 6:44:06 下午 org.apache.coyote.abstractprotocol destroy
信息: destroying protocolhandler ["http-nio-8080"]
七月 22, 2019 6:44:06 下午 org.apache.coyote.abstractprotocol destroy
信息: destroying protocolhandler ["ajp-nio-8009"]

jar包出错。

解决方法maven-test排查jar包