我是Play Framework 2.2.1的新手.最近我从nettyException得到了奇怪的错误.
好的,这就是我用Java开发一个Play项目.它适用于Mac.当我将项目移动到CentOS 6.5服务器时,键入命令"play start"来运行该应用程序.我定期(大约每3分钟)出错:
[error] p.nettyException - 在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.nettyException - 在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"运行时,这些错误仍然存在.
我已经尝试了从互联网上找到的所有可能的解决方案,但没有一个解决了我的问题.
任何人都有任何想法来解决这个问题?
谢谢.
问候.
史蒂芬.