Grails在启动时失败 - 解析HTTP标头时出错

时间:2015-12-15 11:07:55

标签: tomcat grails web-applications http-headers

我正在尝试在默认端口8080启动Grails应用。 我在我的机器上使用相同的配置取得了成功,但是当我在另一台机器上时,同样的情况也不会发生。

这是错误:

    2015-12-15 08:30:30,393 [http-bio-8080-exec-3] DEBUG http11.Http11Processor  - Error parsing HTTP request header
    java.io.EOFException: Unexpected EOF read on the socket
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:744)
    2015-12-15 08:30:30,399 [http-bio-8080-exec-3] DEBUG http11.Http11Protocol  - Socket: [org.apache.tomcat.util.net.SocketWrapper@81fcf4a:Socket[addr=/127.0.0.1,port=63470,localport=8080]], Status in: [OPEN_READ], State out: [CLOSED]
    2015-12-15 08:30:30,400 [http-bio-8080-exec-3] DEBUG threads.LimitLatch  - Counting down[http-bio-8080-exec-3] latch=2
    2015-12-15 08:31:25,152 [ContainerBackgroundProcessor[StandardEngine[Tomcat]]] DEBUG session.ManagerBase  - Start expire sessions StandardManager at 1450175485152 sessioncount 0
    2015-12-15 08:31:25,153 [ContainerBackgroundProcessor[StandardEngine[Tomcat]]] DEBUG session.ManagerBase  - End expire sessions StandardManager processingTime 0 expired sessions: 0

我确定8080端口是免费的,但我想这是一些在Grails上嵌入的Tomcat配置(因为错误套接字发生在端口63470)。我试过做一些搜索,但没找到如何解决它

已更新

现在我猜这是java版本的东西。我在这台机器上有1.6.0.39和1.7.0.51,JAVA_HOME指向1.6版本。我也尝试在cmd和Windows环境变量中设置JAVA_HOME,但没有任何成功

0 个答案:

没有答案