Play-2.2.1 p.nettyException - 在Netty中捕获异常

 aamjlft 发布于 2023-01-18 16:23

我是Play Framework 2.2.1的新手.最近我从nettyException得到了奇怪的错误.

好的,这就是我用Java开发一个Play项目.它适用于Mac.当我将项目移动到CentOS 6.5服务器时,键入命令"play start"来运行该应用程序.我定期(大约每3分钟)出错:


[error] p.n​​ettyException - 在Netty java.lang.IllegalArgumentException中捕获异常:org.jboss.netty.handler.codec.http.HttpVersion中的空文本.(HttpVersion.java:97)〜[netty.jar:na] at org.jboss.netty.handler.codec.http.HttpVersion.valueOf(HttpVersion.java:62)〜[netty.jar:na] at org.jboss.netty.handler.codec.http.HttpRequestDecoder.createMessage(HttpRequestDecoder.java :75)〜[netty.jar:na] org.jboss.netty.handler.codec.http.HttpMessageDecoder.decode(HttpMessageDecoder.java:189)〜[netty.jar:na] at org.jboss.netty.handler .codec.http.HttpMessageDecoder.decode(HttpMessageDecoder.java:101)〜[netty.jar:na] at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:500)〜[netty. jar:na] [error] p.n​​ettyException - 在Netty java.lang.IllegalArgumentException中捕获异常:org.jboss.netty.handler.codec.http.HttpVersion中的空文本.(HttpVersion.java:97)〜[netty.jar :na] at org.jboss.netty.handler.codec.http.HttpVersion.valueOf(HttpVersion.java:62)〜[nett y.jar:na] at org.jboss.netty.handler.codec.http.HttpRequestDecoder.createMessage(httpRequestDecoder.java:75)〜[netty.jar:na] at org.jboss.netty.handler.codec.http. HttpMessageDecoder.decode(HttpMessageDecoder.java:189)〜[netty.jar:na] at org.jboss.netty.handler.codec.http.HttpMessageDecoder.decode(HttpMessageDecoder.java:101)〜[netty.jar:na] at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:500)〜[netty.jar:na]


然而,当我使用"play new helloworld"创建一个全新的helloworld项目并通过"play start"和"play run"运行时,这些错误仍然存​​在.

我已经尝试了从互联网上找到的所有可能的解决方案,但没有一个解决了我的问题.

任何人都有任何想法来解决这个问题?

谢谢.

问候.

史蒂芬.

撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有