You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2010/01/26 17:30:10 UTC
DO NOT REPLY [Bug 48625] New: Server started in illegal state
https://issues.apache.org/bugzilla/show_bug.cgi?id=48625
Summary: Server started in illegal state
Product: Tomcat 6
Version: 6.0.20
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Catalina
AssignedTo: dev@tomcat.apache.org
ReportedBy: romanvt@inbox.ru
Due to Catalina startup logic, server startup in illegal state is possible.
For expamle, the concurrent process takes the socket in use, because of
sysadmin error, or something else.
We started server, the server ignored the socket binding error, startup succes,
but isn't working yet.
In my opinion, the "system errors" (sockets, filesystems,...etc) should
abort the startup process, to ensure the server was started in right state.
If server silently ignores the errors, the sysadmin can miss the error,
and production system can be broken.
Socket binding error example:
....
[2010-01-26 19:09:26] [main ERROR coyote.http11.Http11Protocol] - Error
starting endpoint
java.net.BindException: Address already in use: JVM_Bind /0.0.0.0:8001
at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:511)
at org.apache.tomcat.util.net.JIoEndpoint.start(JIoEndpoint.java:526)
at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:203)
....
See Catalina.java:585
public void start() {
....
if (server instanceof Lifecycle) {
try {
((Lifecycle) server).start();
} catch (LifecycleException e) {
log.error("Catalina.start: ", e);
// !!!! exception ignored !!!!!!, server continued to start in
broken state
}
}
....
log.info("Server startup in " + ((t2 - t1) / 1000000) + " ms");
}
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 48625] Server started in illegal state
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48625
--- Comment #1 from Mark Thomas <ma...@apache.org> 2010-01-31 03:00:27 GMT ---
This was feature was implemented in Tomcat 7 some time ago. I have proposed
back porting it to 6.0.x
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 48625] Server started in illegal state
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48625
Roman Tsirulnikov <ro...@inbox.ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |romanvt@inbox.ru
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 48625] Server started in illegal state
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48625
Roman Tsirulnikov <ro...@inbox.ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC|romanvt@inbox.ru |
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 48625] Server started in illegal state
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48625
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Mark Thomas <ma...@apache.org> 2010-02-18 10:04:42 UTC ---
The patch has been applied to trunk and will be included in 6.0.25 onwards.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org