Java.io.IOException:invalid header Field

Source: Internet
Author: User
Tags addchild

The following error occurred when Tomcat started:

 --may- -  -: the:47.703SEVERE [localhost-startstop-1] Org. Apache. Catalina. Core. Containerbase. AddchildinternalContainerbase. AddChild: start:org. Apache. Catalina. Lifecycleexception: Failed to start component [Standardengine[catalina]. Standardhost[localhost]. Standardcontext[]] at org. Apache. Catalina. Util. Lifecyclebase. Start(Lifecyclebase. Java:154) at Org. Apache. Catalina. Core. Containerbase. Addchildinternal(Containerbase. Java:725) at Org. Apache. Catalina. Core. Containerbase. AddChild(Containerbase. Java:701) at Org. Apache. Catalina. Core. Standardhost. AddChild(Standardhost. Java:717) at Org. Apache. Catalina. Startup. Hostconfig. Deploydirectory(Hostconfig. Java:1101) at Org. Apache. Catalina. Startup. Hostconfig$DeployDirectory. Run(Hostconfig. Java:1786) at Java. Util. Concurrent. Executors$RunnableAdapter. Call(Executors. Java:511) at Java. Util. Concurrent. Futuretask. Run(Futuretask. Java:266) at Java. Util. Concurrent. Threadpoolexecutor. Runworker(Threadpoolexecutor. Java:1142) at Java. Util. Concurrent. Threadpoolexecutor$Worker. Run(Threadpoolexecutor. Java:617) at Java. Lang. Thread. Run(Thread. Java:745) caused by:org. Apache. Catalina. Lifecycleexception: Failed to start component [org. Apache. Catalina. WebResources. Standardroot@3D7885D1] at org. Apache. Catalina. Util. Lifecyclebase. Start(Lifecyclebase. Java:154) at Org. Apache. Catalina. Core. Standardcontext. Resourcesstart(Standardcontext. Java:4845) at Org. Apache. Catalina. Core. Standardcontext. Startinternal(Standardcontext. Java:4975) at Org. Apache. Catalina. Util. Lifecyclebase. Start(Lifecyclebase. Java: Max)    ...TenMorecaused by:org. Apache. Catalina. Lifecycleexception: Failed to initialize component [org. Apache. Catalina. WebResources. Jarresourceset@799FBBB4] at org. Apache. Catalina. Util. Lifecyclebase. Init(Lifecyclebase. Java:106) at Org. Apache. Catalina. Util. Lifecyclebase. Start(Lifecyclebase. Java:139) at Org. Apache. Catalina. WebResources. Standardroot. Startinternal(Standardroot. Java:699) at Org. Apache. Catalina. Util. Lifecyclebase. Start(Lifecyclebase. Java: Max)    ... -Morecaused By:java. Lang. IllegalArgumentException: Java. IO. IOException: Invalid header field at org. Apache. Catalina. WebResources. Jarresourceset. Initinternal(Jarresourceset. Java: the) at Org. Apache. Catalina. Util. Lifecyclebase. Init(Lifecyclebase. Java:102)    ... -Morecaused By:java. IO. IOException: Invalid header field at Java. Util. Jar. Attributes. Read(Attributes. Java:406) at Java. Util. Jar. Manifest. Read(Manifest. Java:199) at Java. Util. Jar. Manifest.<init> (Manifest. Java: the) at Java. Util. Jar. Jarfile. Getmanifestfromreference(Jarfile. Java:194) at Java. Util. Jar. Jarfile. Getmanifest(Jarfile. Java: the) at Org. Apache. Catalina. WebResources. Jarresourceset. Initinternal(Jarresourceset. Java:94)    ... -More --may- -  -: the:49.833SEVERE [localhost-startstop-1] Org. Apache. Catalina. Startup. Hostconfig. DeploydirectoryError Deploying Web Application directory/opt/apache-tomcat-8.0./webapps/root Java. Lang. IllegalStateException: Containerbase. AddChild: start:org. Apache. Catalina. Lifecycleexception: Failed to start component [Standardengine[catalina]. Standardhost[localhost]. Standardcontext[]] at org. Apache. Catalina. Core. Containerbase. Addchildinternal(Containerbase. Java:728) at Org. Apache. Catalina. Core. Containerbase. AddChild(Containerbase. Java:701) at Org. Apache. Catalina. Core. Standardhost. AddChild(Standardhost. Java:717) at Org. Apache. Catalina. Startup. Hostconfig. Deploydirectory(Hostconfig. Java:1101) at Org. Apache. Catalina. Startup. Hostconfig$DeployDirectory. Run(Hostconfig. Java:1786) at Java. Util. Concurrent. Executors$RunnableAdapter. Call(Executors. Java:511) at Java. Util. Concurrent. Futuretask. Run(Futuretask. Java:266) at Java. Util. Concurrent. Threadpoolexecutor. Runworker(Threadpoolexecutor. Java:1142) at Java. Util. Concurrent. Threadpoolexecutor$Worker. Run(Threadpoolexecutor. Java:617) at Java. Lang. Thread. Run(Thread. Java:745) --may- -  -: the:49.846INFO [localhost-startstop-1] Org. Apache. Catalina. Startup. Hostconfig. DeploydirectoryDeployment of Web Application directory/opt/apache-tomcat-8.0./webapps/root has finishedinch 169,297Ms --may- -  -: the:49.856INFO [main] org. Apache. Coyote. Abstractprotocol. StartStarting Protocolhandler ["http-nio-8080"] --may- -  -: the:49.892INFO [main] org. Apache. Coyote. Abstractprotocol. StartStarting Protocolhandler ["ajp-nio-8009"] --may- -  -: the:49.899INFO [main] org. Apache. Catalina. Startup. Catalina. StartServer Startupinch 176092Ms

Online Search discovery is an error that occurs when the jar is packaged, and I am the one that was encountered when Tomcat started.

Finally, the reason for the error is that when the files in the jar package are encrypted, the " . Class"Files outside the extension are also encrypted.

Such as:

Java.io.IOException:invalid header Field

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.