开发者社区> 问答> 正文

Jfinal报错 Not valid UTF8! byte F5 in state 0?报错

当时把


<li><a class="edit" target="navTab"><span>修改</span></a></li>

去掉Manager字符修改为

<li><a class="edit" target="navTab"><span>修改</span></a></li>

按下ctrl S 就报错了 


2014-02-07 10:52:05.753:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte F5 in state 0
2014-02-07 10:52:05.753:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte B0 in state 0
2014-02-07 10:52:05.754:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte F5 in state 0
2014-02-07 10:52:05.754:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte 0b in state 2
2014-02-07 10:52:05.754:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte 8a in state 0
2014-02-07 10:52:05.754:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte 04 in state 3
2014-02-07 10:52:05.754:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte 89 in state 0
2014-02-07 10:52:05.754:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte 88 in state 0
2014-02-07 10:52:05.754:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ac in state 0
2014-02-07 10:52:05.754:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Cc in state 2
2014-02-07 10:52:05.755:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte A3 in state 0
2014-02-07 10:52:05.755:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte 8f in state 0
2014-02-07 10:52:05.755:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte 9f in state 0
2014-02-07 10:52:05.755:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte B4 in state 0
2014-02-07 10:52:05.755:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Dc in state 2
2014-02-07 10:52:05.755:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Aa in state 0

2014-02-07 10:52:05
[ERROR]-[Thread: qtp30516915-20]-[com.jfinal.core.ActionHandler.handle()]: /announce?info_hash=%F5M%D1%B7K%B0%F5%DD%0B%CE%8A%8A%E6%04%D3%BD%89%88%AC7&peer_id=%2DSD0100%2D%5B%C9%CC%A3%8F%9F%B4%7C%DF%DC%AA%D4&ip=118.79.249.4&port=11008&uploaded=3951894726&downloaded=3951894726&left=2571108352&numwant=200&key=17136&compact=1
java.lang.IllegalArgumentException: Tried to read incomplete UTF8 decoded String
	at org.eclipse.jetty.util.Utf8StringBuilder.checkState(Utf8StringBuilder.java:80)
	at org.eclipse.jetty.util.Utf8StringBuilder.toString(Utf8StringBuilder.java:73)
	at org.eclipse.jetty.util.UrlEncoded.decodeUtf8To(UrlEncoded.java:304)
	at org.eclipse.jetty.http.HttpURI.decodeQueryTo(HttpURI.java:699)
	at org.eclipse.jetty.server.Request.extractParameters(Request.java:275)
	at org.eclipse.jetty.server.Request.getParameterNames(Request.java:764)
	at com.jfinal.core.ActionReporter.doReport(ActionReporter.java:77)
	at com.jfinal.core.ActionReporter.reportCommonRequest(ActionReporter.java:38)
	at com.jfinal.core.ActionHandler.handle(ActionHandler.java:72)
	at com.jfinal.core.JFinalFilter.doFilter(JFinalFilter.java:72)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:453)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:560)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
	at org.eclipse.jetty.server.Server.handle(Server.java:365)
	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485)
	at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:926)
	at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:988)
	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:635)
	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
	at java.lang.Thread.run(Thread.java:724)
2014-02-07 10:52:07.404:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte F5 in state 0
2014-02-07 10:52:07.405:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte B0 in state 0
2014-02-07 10:52:07.405:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte F5 in state 0
2014-02-07 10:52:07.405:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte 0b in state 2
2014-02-07 10:52:07.405:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte 8a in state 0
2014-02-07 10:52:07.406:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte 04 in state 3
2014-02-07 10:52:07.406:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte 89 in state 0
2014-02-07 10:52:07.406:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte 88 in state 0
2014-02-07 10:52:07.406:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ac in state 0
2014-02-07 10:52:07.406:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Cc in state 2
2014-02-07 10:52:07.407:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte A3 in state 0
2014-02-07 10:52:07.407:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte 8f in state 0
2014-02-07 10:52:07.407:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte 9f in state 0
2014-02-07 10:52:07.407:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte B4 in state 0
2014-02-07 10:52:07.407:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Dc in state 2
2014-02-07 10:52:07.408:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Aa in state 0

2014-02-07 10:52:07
[ERROR]-[Thread: qtp30516915-22]-[com.jfinal.core.ActionHandler.handle()]: /announce?info_hash=%F5M%D1%B7K%B0%F5%DD%0B%CE%8A%8A%E6%04%D3%BD%89%88%AC7&peer_id=%2DSD0100%2D%5B%C9%CC%A3%8F%9F%B4%7C%DF%DC%AA%D4&ip=118.79.249.4&port=11008&uploaded=3953991878&downloaded=3953991878&left=2569011200&numwant=200&key=1691&compact=1
java.lang.IllegalArgumentException: Tried to read incomplete UTF8 decoded String
	at org.eclipse.jetty.util.Utf8StringBuilder.checkState(Utf8StringBuilder.java:80)
	at org.eclipse.jetty.util.Utf8StringBuilder.toString(Utf8StringBuilder.java:73)
	at org.eclipse.jetty.util.UrlEncoded.decodeUtf8To(UrlEncoded.java:304)
	at org.eclipse.jetty.http.HttpURI.decodeQueryTo(HttpURI.java:699)
	at org.eclipse.jetty.server.Request.extractParameters(Request.java:275)
	at org.eclipse.jetty.server.Request.getParameterNames(Request.java:764)
	at com.jfinal.core.ActionReporter.doReport(ActionReporter.java:77)
	at com.jfinal.core.ActionReporter.reportCommonRequest(ActionReporter.java:38)
	at com.jfinal.core.ActionHandler.handle(ActionHandler.java:72)
	at com.jfinal.core.JFinalFilter.doFilter(JFinalFilter.java:72)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:453)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:560)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
	at org.eclipse.jetty.server.Server.handle(Server.java:365)
	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485)
	at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:926)
	at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:988)
	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:635)
	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
	at java.lang.Thread.run(Thread.java:724)
2014-02-07 10:57:08.422:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte F5 in state 0
2014-02-07 10:57:08.422:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte B0 in state 0
2014-02-07 10:57:08.422:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte F5 in state 0
2014-02-07 10:57:08.422:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte 0b in state 2
2014-02-07 10:57:08.422:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte 8a in state 0
2014-02-07 10:57:08.422:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte 04 in state 3
2014-02-07 10:57:08.422:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte 89 in state 0
2014-02-07 10:57:08.423:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte 88 in state 0
2014-02-07 10:57:08.423:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ac in state 0
2014-02-07 10:57:08.423:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Cc in state 2
2014-02-07 10:57:08.423:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte A3 in state 0
2014-02-07 10:57:08.423:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte 8f in state 0
2014-02-07 10:57:08.423:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte 9f in state 0
2014-02-07 10:57:08.424:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte B4 in state 0
2014-02-07 10:57:08.424:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Dc in state 2
2014-02-07 10:57:08.424:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Aa in state 0

2014-02-07 10:57:08
[ERROR]-[Thread: qtp30516915-21]-[com.jfinal.core.ActionHandler.handle()]: /announce?info_hash=%F5M%D1%B7K%B0%F5%DD%0B%CE%8A%8A%E6%04%D3%BD%89%88%AC7&peer_id=%2DSD0100%2D%5B%C9%CC%A3%8F%9F%B4%7C%DF%DC%AA%D4&ip=118.79.249.4&port=11008&uploaded=4115472582&downloaded=4115472582&left=2407530496&numwant=200&key=1691&compact=1
java.lang.IllegalArgumentException: Tried to read incomplete UTF8 decoded String
	at org.eclipse.jetty.util.Utf8StringBuilder.checkState(Utf8StringBuilder.java:80)
	at org.eclipse.jetty.util.Utf8StringBuilder.toString(Utf8StringBuilder.java:73)
	at org.eclipse.jetty.util.UrlEncoded.decodeUtf8To(UrlEncoded.java:304)
	at org.eclipse.jetty.http.HttpURI.decodeQueryTo(HttpURI.java:699)
	at org.eclipse.jetty.server.Request.extractParameters(Request.java:275)
	at org.eclipse.jetty.server.Request.getParameterNames(Request.java:764)
	at com.jfinal.core.ActionReporter.doReport(ActionReporter.java:77)
	at com.jfinal.core.ActionReporter.reportCommonRequest(ActionReporter.java:38)
	at com.jfinal.core.ActionHandler.handle(ActionHandler.java:72)
	at com.jfinal.core.JFinalFilter.doFilter(JFinalFilter.java:72)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:453)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:560)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
	at org.eclipse.jetty.server.Server.handle(Server.java:365)
	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485)
	at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:926)
	at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:988)
	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:635)
	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
	at java.lang.Thread.run(Thread.java:724)
2014-02-07 10:57:08.766:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte F5 in state 0
2014-02-07 10:57:08.767:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte B0 in state 0
2014-02-07 10:57:08.767:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte F5 in state 0
2014-02-07 10:57:08.767:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte 0b in state 2
2014-02-07 10:57:08.767:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte 8a in state 0
2014-02-07 10:57:08.767:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte 04 in state 3
2014-02-07 10:57:08.767:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte 89 in state 0
2014-02-07 10:57:08.767:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte 88 in state 0
2014-02-07 10:57:08.767:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ac in state 0
2014-02-07 10:57:08.768:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Cc in state 2
2014-02-07 10:57:08.768:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte A3 in state 0
2014-02-07 10:57:08.768:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte 8f in state 0
2014-02-07 10:57:08.768:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte 9f in state 0
2014-02-07 10:57:08.768:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte B4 in state 0
2014-02-07 10:57:08.768:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Dc in state 2
2014-02-07 10:57:08.768:WARN:oeju.UrlEncoded:org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Aa in state 0

2014-02-07 10:57:08
[ERROR]-[Thread: qtp30516915-25]-[com.jfinal.core.ActionHandler.handle()]: /announce?info_hash=%F5M%D1%B7K%B0%F5%DD%0B%CE%8A%8A%E6%04%D3%BD%89%88%AC7&peer_id=%2DSD0100%2D%5B%C9%CC%A3%8F%9F%B4%7C%DF%DC%AA%D4&ip=118.79.249.4&port=11008&uploaded=4115472582&downloaded=4115472582&left=2407530496&numwant=200&key=17136&compact=1
java.lang.IllegalArgumentException: Tried to read incomplete UTF8 decoded String
	at org.eclipse.jetty.util.Utf8StringBuilder.checkState(Utf8StringBuilder.java:80)
	at org.eclipse.jetty.util.Utf8StringBuilder.toString(Utf8StringBuilder.java:73)
	at org.eclipse.jetty.util.UrlEncoded.decodeUtf8To(UrlEncoded.java:304)
	at org.eclipse.jetty.http.HttpURI.decodeQueryTo(HttpURI.java:699)
	at org.eclipse.jetty.server.Request.extractParameters(Request.java:275)
	at org.eclipse.jetty.server.Request.getParameterNames(Request.java:764)
	at com.jfinal.core.ActionReporter.doReport(ActionReporter.java:77)
	at com.jfinal.core.ActionReporter.reportCommonRequest(ActionReporter.java:38)
	at com.jfinal.core.ActionHandler.handle(ActionHandler.java:72)
	at com.jfinal.core.JFinalFilter.doFilter(JFinalFilter.java:72)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:453)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:560)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
	at org.eclipse.jetty.server.Server.handle(Server.java:365)
	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485)
	at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:926)
	at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:988)
	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:635)
	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
	at java.lang.Thread.run(Thread.java:724)






展开
收起
爱吃鱼的程序员 2020-06-22 13:08:25 849 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    估计不是我上面操作的原因,刚才什么都没操作还是出现这个错误

    目测是jetty的问题,urlencode的问题吧,应该需要配置什么

    你换下tomcat试试

    问题应该出在这:<spanstyle="font-family:Consolas,'BitstreamVeraSansMono','CourierNew',Courier,monospace;line-height:14.65625px;background-color:#FFFFFF;">info_hash=%F5M%D1%B7K%B0%F5%DD%0B%CE%8A%8A%E6%04%D3%BD%89%88%AC7&peer_id=%2DSD0100%2D%5B%C9%CC%A3%8F%9F%B4%7C%DF%DC%AA%D4尝试先把这两个参数去掉试试,如果是这个问题,那么就是unicode编码问题。试着用escape()或者encodeURIComponent()做url编码转换,而不是直接写死为unicode字符<divclass="ref">

    引用来自“缪斯的情人”的答案

    <divclass=ref_body>问题应该出在这:<spanstyle="font-family:Consolas,'BitstreamVeraSansMono','CourierNew',Courier,monospace;line-height:14.65625px;background-color:#FFFFFF;">info_hash=%F5M%D1%B7K%B0%F5%DD%0B%CE%8A%8A%E6%04%D3%BD%89%88%AC7&peer_id=%2DSD0100%2D%5B%C9%CC%A3%8F%9F%B4%7C%DF%DC%AA%D4尝试先把这两个参数去掉试试,如果是这个问题,那么就是unicode编码问题。试着用escape()或者encodeURIComponent()做url编码转换,而不是直接写死为unicode字符回复<aclass='referer'target='_blank'>@缪斯的情人:谢谢~,没有改过,那个问题再没有出现过,也不知道问题在哪儿改过系统时间吗?往前改过吗?jetty下改时间经常会出现编译问题,一般重启下eclipse就行了传中文的话要转码

    2020-06-23 11:59:08
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
OPEN SOURCE IN A DATA-DRIVEN WORLD 立即下载
Data Outsourcing in Cloud Comp 立即下载
Java8简明教...[fredwong].1494561200.pdf 立即下载