tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allistair Crossley" <Allistair.Cross...@QAS.com>
Subject TC 5.5 exceptions on shutdown and restart
Date Fri, 03 Sep 2004 15:14:46 GMT
Hi Guys,

I can create a couple of exceptions with TC 5.5 on shutdown as described below;

SCENARIO 1
==========

1. I start TC 5.5 using the service with no error messages until it says finally :
INFO: Server startup in 8843 ms

2. I wait 1 minute

3. I shutdown the service. The additional logging is;

03-Sep-2004 16:09:31 org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
03-Sep-2004 16:09:32 org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
03-Sep-2004 16:09:32 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@1636e4e')
03-Sep-2004 16:09:32 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@df0438')
03-Sep-2004 16:09:32 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@18e261d')
03-Sep-2004 16:09:32 org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
03-Sep-2004 16:09:32 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()
03-Sep-2004 16:09:32 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@10efd7c')
03-Sep-2004 16:09:32 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@12412e7')
03-Sep-2004 16:09:32 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@1552b76')
03-Sep-2004 16:09:32 org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
03-Sep-2004 16:09:32 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()
java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:582)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Caused by: java.lang.NullPointerException
	at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:875)
	at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1104)
	at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1076)
	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:312)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
	at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1043)
	at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1055)
	at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:425)
	at org.apache.catalina.core.StandardService.stop(StandardService.java:512)
	at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2001)
	at org.apache.catalina.startup.Catalina.stop(Catalina.java:594)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:569)
	... 6 more

SCENARIO 2
==========

1. I start TC 5.5 using the service with no error messages until it says finally :
INFO: Server startup in 9890 ms

2. I restart the service and get a bunch of BindExceptions in addition to the same InvocationTargetException
as in SCENARIO 1.

03-Sep-2004 16:12:41 org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
03-Sep-2004 16:12:42 org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
03-Sep-2004 16:12:42 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@bb494b')
03-Sep-2004 16:12:42 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@1c8efd1')
03-Sep-2004 16:12:42 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@f892a4')
03-Sep-2004 16:12:42 org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
03-Sep-2004 16:12:42 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()
03-Sep-2004 16:12:42 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@df0438')
03-Sep-2004 16:12:42 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@18e261d')
03-Sep-2004 16:12:42 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@1684706')
03-Sep-2004 16:12:42 org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
03-Sep-2004 16:12:42 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()
java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:582)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Caused by: java.lang.NullPointerException
	at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:875)
	at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1104)
	at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1076)
	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:312)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
	at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1043)
	at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1055)
	at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:425)
	at org.apache.catalina.core.StandardService.stop(StandardService.java:512)
	at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2001)
	at org.apache.catalina.startup.Catalina.stop(Catalina.java:594)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:569)
	... 6 more
03-Sep-2004 16:12:44 org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use: JVM_Bind:8080
	at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:264)
	at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:137)
	at org.apache.catalina.connector.Connector.initialize(Connector.java:1290)
	at org.apache.catalina.core.StandardService.initialize(StandardService.java:579)
	at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2038)
	at org.apache.catalina.startup.Catalina.load(Catalina.java:496)
	at org.apache.catalina.startup.Catalina.load(Catalina.java:517)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:582)
	at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:243)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:408)
03-Sep-2004 16:12:44 org.apache.catalina.startup.Catalina load
SEVERE: Catalina.start
LifecycleException:  Protocol handler initialization failed: java.net.BindException: Address
already in use: JVM_Bind:8080
	at org.apache.catalina.connector.Connector.initialize(Connector.java:1292)
	at org.apache.catalina.core.StandardService.initialize(StandardService.java:579)
	at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2038)
	at org.apache.catalina.startup.Catalina.load(Catalina.java:496)
	at org.apache.catalina.startup.Catalina.load(Catalina.java:517)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:582)
	at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:243)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:408)
03-Sep-2004 16:12:44 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1469 ms
03-Sep-2004 16:12:44 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
03-Sep-2004 16:12:44 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.0
03-Sep-2004 16:12:44 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
**Start of LogManager static initializer
*** configurationOptionStr=log4j.properties
log4j:INFO Using URL [file:/C:/jakarta-tomcat/webapps/iq/WEB-INF/classes/log4j.properties]
for automatic log4j configuration of repository named [default].
log4j:ERROR Could not find value for key log4j.appender.CoreLogicA
log4j:ERROR Could not instantiate appender named "CoreLogicA".
log4j:WARN No such property [datePattern] in org.apache.log4j.RollingFileAppender.
log4j:INFO fileane is c:/jakarta-tomcat/logs/iq2-sys-email.log
log4j:INFO sdf is java.text.SimpleDateFormat@5d32f220
log4j:INFO fileane is c:/jakarta-tomcat/logs/iq2-stats-content-access.log
log4j:INFO sdf is java.text.SimpleDateFormat@5d32f220
log4j:WARN No such property [datePattern] in org.apache.log4j.RollingFileAppender.
log4j:INFO fileane is c:/jakarta-tomcat/logs/iq2-app-admin.log
log4j:INFO sdf is java.text.SimpleDateFormat@5d32f220
log4j:INFO fileane is c:/jakarta-tomcat/logs/iq2-sys-dto.log
log4j:INFO sdf is java.text.SimpleDateFormat@5d32f220
log4j:WARN No such property [datePattern] in org.apache.log4j.RollingFileAppender.
log4j:INFO fileane is c:/jakarta-tomcat/logs/iq2-app-holiday-forms.log
log4j:INFO sdf is java.text.SimpleDateFormat@5d32f220
log4j:INFO fileane is c:/jakarta-tomcat/logs/iq2-sys-actions.log
log4j:INFO sdf is java.text.SimpleDateFormat@5d32f220
log4j:INFO fileane is c:/jakarta-tomcat/logs/iq2-sys-cms.log
log4j:INFO sdf is java.text.SimpleDateFormat@ab9f0bcd
log4j:INFO fileane is c:/jakarta-tomcat/logs/iq2-sys-application.log
log4j:INFO sdf is java.text.SimpleDateFormat@5d32f220
log4j:INFO fileane is c:/jakarta-tomcat/logs/iq2-app-rewards-and-recog.log
log4j:INFO sdf is java.text.SimpleDateFormat@5d32f220
log4j:INFO fileane is c:/jakarta-tomcat/logs/iq2-sys-errors.log
log4j:INFO sdf is java.text.SimpleDateFormat@5d32f220
log4j:INFO fileane is c:/jakarta-tomcat/logs/iq2-stats-search-access.log
log4j:INFO sdf is java.text.SimpleDateFormat@5d32f220
log4j:INFO fileane is c:/jakarta-tomcat/logs/iq2-sys-authentication.log
log4j:INFO sdf is java.text.SimpleDateFormat@5d32f220
log4j:INFO fileane is c:/jakarta-tomcat/logs/iq2-sys-search.log
log4j:INFO sdf is java.text.SimpleDateFormat@5d32f220
log4j:INFO fileane is c:/jakarta-tomcat/logs/iq2-core-actions.log
log4j:INFO sdf is java.text.SimpleDateFormat@5d32f220
** End of LogManager static initializer


<FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLUE> 
-------------------------------------------------------
QAS Ltd.
Developers of QuickAddress Software
<a href="http://www.qas.com">www.qas.com</a>
Registered in England: No 2582055
Registered in Australia: No 082 851 474
-------------------------------------------------------
</FONT>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message