Java. Io. utfdataformatexception: Invalid byte 3 of 3-byte UTF-8 Sequence

Source: Internet
Author: User

SSH writing, encountered error: Java. Io. utfdataformatexception: Invalid byte 3 of 3-byte UTF-8 Sequence

Error [Org. apache. catalina. core. containerbase. [Catalina]. [121.199.28.46]. [/]-exception sending context initialized event to listener instance of class Org. springframework. web. context. contextloaderlistener
Org. springframework. beans. factory. beandefinitionstoreexception: ioexception parsing XML document from servletcontext resource [/WEB-INF/classes/applicationContext-common.xml]; Nested exception is Java. io. utfdataformatexception: Invalid byte 3 of 3-byte UTF-8 sequence.
At org. springframework. Beans. Factory. xml. xmlbeandefinitionreader. doloadbeandefinitions (xmlbeandefinitionreader. Java: 416)
At org. springframework. Beans. Factory. xml. xmlbeandefinitionreader. loadbeandefinitions (xmlbeandefinitionreader. Java: 342)
At org. springframework. Beans. Factory. xml. xmlbeandefinitionreader. loadbeandefinitions (xmlbeandefinitionreader. Java: 310)
At org. springframework. Beans. Factory. Support. abstractbeandefinitionreader. loadbeandefinitions (abstractbeandefinitionreader. Java: 143)
At org. springframework. Beans. Factory. Support. abstractbeandefinitionreader. loadbeandefinitions (abstractbeandefinitionreader. Java: 178)
At org. springframework. Beans. Factory. Support. abstractbeandefinitionreader. loadbeandefinitions (abstractbeandefinitionreader. Java: 149)
At org. springframework. Web. Context. Support. xmlwebapplicationcontext. loadbeandefinitions (xmlwebapplicationcontext. Java: 124)
At org. springframework. Web. Context. Support. xmlwebapplicationcontext. loadbeandefinitions (xmlwebapplicationcontext. Java: 92)
At org. springframework. Context. Support. abstractrefreshableapplicationcontext. refreshbeanfactory (abstractrefreshableapplicationcontext. Java: 123)
At org. springframework. Context. Support. abstractapplicationcontext. obtainfreshbeanfactory (abstractapplicationcontext. Java: 423)
At org. springframework. Context. Support. abstractapplicationcontext. Refresh (abstractapplicationcontext. Java: 353)
At org. springframework. Web. Context. contextloader. createwebapplicationcontext (contextloader. Java: 255)
At org. springframework. Web. Context. contextloader. initwebapplicationcontext (contextloader. Java: 199)
At org. springframework. Web. Context. contextloaderlistener. contextinitialized (contextloaderlistener. Java: 45)
At org. Apache. Catalina. Core. standardcontext. listenerstart (standardcontext. Java: 3764)
At org. Apache. Catalina. Core. standardcontext. Start (standardcontext. Java: 4216)
At org. Apache. Catalina. Core. containerbase. Start (containerbase. Java: 1014)
At org. Apache. Catalina. Core. standardhost. Start (standardhost. Java: 736)
At org. Apache. Catalina. Core. containerbase. Start (containerbase. Java: 1014)
At org. Apache. Catalina. Core. standardengine. Start (standardengine. Java: 443)
At org. Apache. Catalina. Core. standardservice. Start (standardservice. Java: 448)
At org. Apache. Catalina. Core. standardserver. Start (standardserver. Java: 700)
At org. Apache. Catalina. startup. Catalina. Start (Catalina. Java: 552)
At sun. Reflect. nativemethodaccessorimpl. invoke0 (native method)
At sun. Reflect. nativemethodaccessorimpl. Invoke (nativemethodaccessorimpl. Java: 39)
At sun. Reflect. delegatingmethodaccessorimpl. Invoke (delegatingmethodaccessorimpl. Java: 25)
At java. Lang. Reflect. method. Invoke (method. Java: 585)
At org. Apache. Catalina. startup. Bootstrap. Start (Bootstrap. Java: 295)
At org. Apache. Catalina. startup. Bootstrap. Main (Bootstrap. Java: 433)
Caused by: Java. Io. utfdataformatexception: Invalid byte 3 of 3-byte UTF-8 sequence.
At org. Apache. xerces. impl. Io. utf8reader. invalidbyte (unknown source)
At org. Apache. xerces. impl. Io. utf8reader. Read (unknown source)
At org. Apache. xerces. impl. xmlentityscanner. Load (unknown source)
At org. Apache. xerces. impl. xmlentityscanner. peekchar (unknown source)
At org. Apache. xerces. impl. xmlcommunity. scancomment (unknown source)
At org. Apache. xerces. impl. xmldocumentfragmentscannerimpl. scancomment (unknown source)
At org. Apache. xerces. impl. xmldocumentfragmentscannerimpl $ fragmentcontentdispatcher. Dispatch (unknown source)
At org. Apache. xerces. impl. xmldocumentfragmentscannerimpl. scandocument (unknown source)
At org. Apache. xerces. parsers. xml11configuration. parse (unknown source)
At org. Apache. xerces. parsers. xml11configuration. parse (unknown source)
At org. Apache. xerces. parsers. xmlparser. parse (unknown source)
At org. Apache. xerces. parsers. domparser. parse (unknown source)
At org. Apache. xerces. JAXP. documentbuilderimpl. parse (unknown source)
At org. springframework. Beans. Factory. xml. defaultdocumentloader. loaddocument (defadocumentdocumentloader. Java: 75)
At org. springframework. Beans. Factory. xml. xmlbeandefinitionreader. doloadbeandefinitions (xmlbeandefinitionreader. Java: 396)
... 28 more

Solution: this is because the comments in the commom. xml file suddenly have one more Chinese? It is a bit garbled, caused by XML parsing errors. It is normal to delete Chinese comments.

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.