简体   繁体   English

无效的UTF8! 字节A7处于状态0

[英]Not valid UTF8! byte A7 in state 0

I have a pdf printer which I don't know much about. 我有一台不太了解的pdf打印机。 The pdf that is generated has some images inside. 生成的pdf里面有一些图像。 The problem is that images that start with character '§' are not visible in the generated pdf because of this Exception: 问题在于,由于以下异常,在生成的pdf中看不到以字符“§”开头的图像:

2016-03-01 20:25:30.424 [qtp1181496842-69] WARN  org.eclipse.jetty.io.nio - handle failed 
org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte A7 in state 0
    at org.eclipse.jetty.util.Utf8Appendable.appendByte(Utf8Appendable.java:178) ~[org.eclipse.jetty.util_8.1.16.v20140903.jar:8.1.16.v20140903]
    at org.eclipse.jetty.util.Utf8Appendable.append(Utf8Appendable.java:117) ~[org.eclipse.jetty.util_8.1.16.v20140903.jar:8.1.16.v20140903]
    at org.eclipse.jetty.http.HttpURI.toUtf8String(HttpURI.java:503) ~[na:na]
    at org.eclipse.jetty.http.HttpURI.getPathAndParam(HttpURI.java:687) ~[na:na]
    at org.eclipse.jetty.server.Request.getRequestURI(Request.java:1024) ~[na:na]
    at org.eclipse.jetty.server.Response.sendError(Response.java:364) ~[na:na]
    at org.eclipse.jetty.server.Response.sendError(Response.java:419) ~[na:na]
    at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:603) ~[na:na]
    at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971) ~[na:na]
    at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033) ~[na:na]
    at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644) ~[na:na]
    at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) ~[na:na]
    at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) ~[na:na]
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696) ~[org.eclipse.jetty.io_8.1.16.v20140903.jar:8.1.16.v20140903]
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53) [org.eclipse.jetty.io_8.1.16.v20140903.jar:8.1.16.v20140903]
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) [org.eclipse.jetty.util_8.1.16.v20140903.jar:8.1.16.v20140903]
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) [org.eclipse.jetty.util_8.1.16.v20140903.jar:8.1.16.v20140903]
    at java.lang.Thread.run(Thread.java:745) [na:1.8.0_65]

Any idea why this character causes this or how to fix this ? 知道为什么这个角色会导致这个问题或如何解决这个问题吗?

Jetty 8 is EOL (End of Life) , please upgrade. 码头8已停产 ,请升级。

That stacktrace is telling you that in the process of reporting an error to the user, it encountered a bad RequestURI that included invalid UTF8 encodings in either the path or the query parameters. 该stacktrace告诉您,在向用户报告错误的过程中,它遇到了错误的RequestURI,该URL或查询参数中包含无效的UTF8编码。

The Request URI you are using is bad/invalid. 您使用的请求URI错误/无效。

If you upgrade to Jetty 9, your error messages and stacktraces should become more clear as to the source of the issue well. 如果您升级到Jetty 9,则对于问题的根源,您的错误消息和堆栈跟踪应变得更加清晰。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM