vaadin / flow

Vaadin Flow is a Java framework binding Vaadin web components to Java. This is part of Vaadin 10+.
Apache License 2.0
603 stars 165 forks source link

IOException: Broken pipe with IntelliJ embedded Tomcat #4143

Closed mvysny closed 10 months ago

mvysny commented 6 years ago

When starting the Beverage Buddy with Tomcat 9.0.6, BB starts properly but Tomcat prints out IOException: Broken pipe to the log (see this gist for a full log: log ). With Tomcat 8.5.27 the exception is slightly different: log

I thought this to be some integration issue for Tomcat + Flow, however weird thing is that when I try to start the Skeleton Starter using Tomcat 9.0.6, the exception does not show in the log. I thought this is because of Beverage Buddy fetching Polymer templates from the server, but the exception is also present for the Kotlin port of Beverage Buddy which does not use Polymer Templates at all.

pleku commented 6 years ago

BB was working on Tomcat a while back https://github.com/vaadin/beverage-starter-flow/issues/193 (had other issues that were fixed), so seems like we have some regression.

mvysny commented 6 years ago

Sorry, I wasn't clear enough. Tomcat logs abovementioned nasty exceptions, but BB starts and works properly, so it seems that the exceptions do not hinder the ability of BB to work. Maybe it only affects Push (just my wild guess)?

pleku commented 6 years ago

Right, thanks for the clarification. Lets take a look at what exceptions about anyways

mikotin commented 6 years ago

Tested beverage buddy with Apache Tomcat/9.0.8 (windows) and Apache Tomcat/8.5.14 (linux) without exceptions, will test with the exact versions

mikotin commented 6 years ago

Versions Tomcat 9.0.6 and Tomcat 8.5.27 also tested without given exception. This might be something to do with deploy setup with IntelliJ, @mvysny could you make sure that given project (beveragebuddy) is undeployed before it's gets deployd (by intellij) ?

mvysny commented 6 years ago

@mikotin you're right! When I just drop the beverage-buddy-vok.war into Tomcat's webapps and access localhost:8080/beverage-buddy-vok, no exceptions are printed out. But if I run Tomcat from Intellij, the IOException: Broken pipe is shown. Tested it with Tomcat 9.0.8 on Linux.

caalador commented 10 months ago

Closing issue as BevrageBuddy is archived and this has not been noted with other projects.