https://issues.apache.org/bugzilla/show_bug.cgi?id=51713

Konstantin Kolinko <knst.koli...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #3 from Konstantin Kolinko <knst.koli...@gmail.com> 2011-08-25 
00:33:53 UTC ---
Fixed the message in Connector constructor in trunk in r1161322.
Backported to 7.0.x and will be in 7.0.21.


Regarding whether or not rethrow the exception from inside of Connector
constructor:

On one hand, such an error is nearly fatal. If I do not configure an Executor,
there are a lot of failures that follow. None of webapps is able to start
because of NPE in connector.getAttribute() call in
ApplicationContext.populateSessionTrackingModes() - stacktrace is below.

On other hand, Tomcat as a whole does start up and is manageable. There is
*.EXIT_ON_INIT_FAILURE system property that one can use to turn this into a
fatal failure.

If the ClassNotFoundException from Connector constructor were rethrown, the
startup sequence aborts immediately. It might be not what everyone wants.


I think this issue is sufficiently addressed. I do not intend to backport this
to 6.0.


-----
NPE in ApplicationContext.populateSessionTrackingModes():

SEVERE: ContainerBase.addChild: start: 
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/docs]]
  (...)
Caused by: java.lang.NullPointerException
  at
org.apache.tomcat.util.IntrospectionUtils.getProperty(IntrospectionUtils.java:402)
  at org.apache.catalina.connector.Connector.getProperty(Connector.java:272)
  at org.apache.catalina.connector.Connector.getAttribute(Connector.java:291)
  at
org.apache.catalina.core.ApplicationContext.populateSessionTrackingModes(ApplicationContext.java:1195)
  at
org.apache.catalina.core.ApplicationContext.<init>(ApplicationContext.java:127)

-- 
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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to