- This topic has 24 replies, 6 voices, and was last updated 18 years, 7 months ago by
innogate.
-
AuthorPosts
-
October 19, 2006 at 10:06 am #260696
Riyad KallaMemberThank you for following up with your workaround for other folks that may be hitting this annoyance as well.
October 20, 2006 at 5:57 pm #260778
jcastellMemberME folks,
I think you might want to put a small delay (5-10 seconds) into the server restart between the time the server is actually down and the call to start it again. Sometimes the OS needs a bit of time to clean up the IP listening ports the the app server opens up, and attempting to restart a server immediately after it was shutdown can lead to BindExceptions. I’ve seen it more than once, especially on Solaris and Win2K. Both of those OSes had default timeouts for listener ports that were not small.
-jc
October 24, 2006 at 6:12 pm #260872
Riyad KallaMemberJC,
Good point. I was able to reproduce the bind exceptions easily. I filed a bug about it, they do seems to be harmless though. Is this what the rest of you are seeing? Just scary messages in the console, but app server is still running fine?October 24, 2006 at 9:58 pm #260874
jcastellMemberRiyad,
Actually, it’s been my experience that when an app server fails to open a listener, it’s usually hosed. Most don’t seem to have much retry logic in ’em. I’m certainly no Tomcat expert, so I won’t attempt a definitve response, but I’d guess that BindExceptions on startup are not recoverable. And a default Tomcat/JBoss server opens up about a billion ports when it fires up.
-jc
October 25, 2006 at 10:34 am #260891
Riyad KallaMemberJC,
Could you try this locally? In my tests the odd thing is that I got it to throw BindExceptions right away, and each time I would try and access the different admin web application and other test applications and they worked fine (seemed harmless).Then I handed this off to a developer to fix, and he can’t reproduce BindExceptions to save his life for some reason. I’m trying to figure out the missing link here =/
October 25, 2006 at 4:06 pm #260925
jcastellMemberRiyad,
I restarted JBoss 4.0.4GA on my laptop running Windows XP SP2, and I got a slew of BindExceptions, then tried to access any webapp deployed on it. No luck. I just back blank pages, not even an HTTP 404 or 500. If it helps, it’s a pretty quick machine.
-jc
October 26, 2006 at 8:56 am #260955
Riyad KallaMemberAnother developer on the team was able to reproduce it, it seems to be dependent on how long it takes the app server to shut down, as the re-start may occur before the previous shut-down is complete.
November 1, 2006 at 6:10 pm #261239
Riyad KallaMemberJust a heads up, this will be fixed in 5.0.3. We identified a race condition that can occur during a restart and fixed it.
November 1, 2006 at 7:32 pm #261241
jcastellMemberYeehah!
November 22, 2006 at 5:51 am #262448
innogateMemberFixed for me with MyEclipse 5.1 / Eclipse 3.2.1
-
AuthorPosts