From: Alexey Y. <Al...@fr...> - 2004-09-27 08:04:17
|
I am running Jetty 4.2.21 inside JBoss 3.2.5. In production environment, = when I stop JBoss, I am getting an NPE in HttpServer.java. In my dev. = configuration, this does not happen. At the bottom of this message you = can find my listener configuration. Apparently, somehow = HttpServer.destroy() is called before HttpServer.stop(). ... server.log ... 2004-09-27 10:45:41,054 INFO [org.jboss.jetty] Stopping Acceptor = ServerSocket[addr=3D0.0.0.0/0.0.0.0,port=3D0,localport=3D8082] 2004-09-27 10:45:41,057 INFO [org.jboss.jetty] Stopped SocketListener = on 0.0.0.0:8082 2004-09-27 10:45:41,058 INFO [org.jboss.jetty] Stopping Acceptor = ServerSocket[addr=3D0.0.0.0/0.0.0.0,port=3D0,localport=3D8455] 2004-09-27 10:45:41,060 INFO [org.jboss.jetty] Stopped SocketListener = on 0.0.0.0:8455 2004-09-27 10:45:41,061 INFO [org.jboss.jetty] Stopping Acceptor = ServerSocket[addr=3D0.0.0.0/0.0.0.0,port=3D0,localport=3D8456] 2004-09-27 10:45:41,063 INFO [org.jboss.jetty] Stopped SocketListener = on 0.0.0.0:8456 2004-09-27 10:45:41,151 INFO [org.jboss.jetty] Stopping Acceptor = ServerSocket[addr=3D0.0.0.0/0.0.0.0,port=3D0,localport=3D8009] 2004-09-27 10:45:41,154 INFO [org.jboss.jetty] Stopped AJP13Listener on = 0.0.0.0:8009 2004-09-27 10:45:41,155 INFO [org.jboss.jetty] Stopped HttpContext[/] 2004-09-27 10:45:41,157 INFO [org.jboss.jetty] Deregister = jboss.jetty:Server=3D0,HttpContext=3D0,context=3D/ 2004-09-27 10:45:41,159 INFO [org.jboss.jetty] Deregister = jboss.jetty:Server=3D0,HttpContext=3D0,context=3D/,RootNotFoundHandler=3D= 0 2004-09-27 10:45:41,161 INFO [org.jboss.jetty] Stopped = org.mortbay.http.NCSARequestLog@19d3b3a 2004-09-27 10:45:41,163 INFO [org.jboss.jetty] Stopped = org.jboss.jetty.Jetty@694f12 2004-09-27 10:45:41,168 INFO [org.jboss.jetty] Deregister = jboss.jetty:Server=3D0,SocketListener=3D0 2004-09-27 10:45:41,171 INFO [org.jboss.jetty] Deregister = jboss.jetty:Server=3D0,SocketListener=3D1 2004-09-27 10:45:41,173 INFO [org.jboss.jetty] Deregister = jboss.jetty:Server=3D0,SocketListener=3D2 2004-09-27 10:45:41,176 INFO [org.jboss.jetty] Deregister = jboss.jetty:Server=3D0,AJP13Listener=3D0 2004-09-27 10:45:41,178 INFO [org.jboss.jetty] Deregister = jboss.jetty:Server=3D0,NCSARequestLog=3D0 2004-09-27 10:45:41,180 INFO [org.jboss.jetty] Deregister = jboss.jetty:Server=3D0 2004-09-27 10:45:41,213 WARN [org.jboss.jetty] WARNING: java.lang.NullPointerException at org.mortbay.http.HttpServer.stop(HttpServer.java:712) at org.mortbay.http.HttpServer.stop(HttpServer.java:700) at = org.mortbay.jetty.jmx.ServerMBean.postDeregister(ServerMBean.java:132) at = org.jboss.mx.server.RawDynamicInvoker.postDeregister(RawDynamicInvoker.ja= va:189) at = org.jboss.mx.server.registry.BasicMBeanRegistry.unregisterMBean(BasicMBea= nRegistry.java:421) at sun.reflect.GeneratedMethodAccessor109.invoke(Unknown Source) at = sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI= mpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at = org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java= :60) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53) at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) at = org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java= :185) at = org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473) at = org.jboss.mx.server.MBeanServerImpl.unregisterMBean(MBeanServerImpl.java:= 339) at = org.mortbay.http.jmx.HttpServerMBean.removeComponent(HttpServerMBean.java= :186) at org.mortbay.http.HttpServer.destroy(HttpServer.java:1388) at = org.jboss.jetty.JettyService.destroyService(JettyService.java:214) at = org.jboss.system.ServiceMBeanSupport.jbossInternalDestroy(ServiceMBeanSup= port.java:363) at = org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanS= upport.java:225) at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) at = sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI= mpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at = org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java= :60) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53) at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) at = org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java= :185) at = org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473) at = org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.= java:837) at $Proxy18.destroy(Unknown Source) at = org.jboss.system.ServiceController.destroy(ServiceController.java:514) at sun.reflect.GeneratedMethodAccessor223.invoke(Unknown Source) at = sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI= mpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at = org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java= :60) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53) at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) at = org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java= :185) at = org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473) at = org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176) at $Proxy4.destroy(Unknown Source) at = org.jboss.deployment.SARDeployer.destroy(SARDeployer.java:324) at = org.jboss.deployment.MainDeployer.destroy(MainDeployer.java:525) at = org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:476) at = org.jboss.deployment.MainDeployer.shutdown(MainDeployer.java:362) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at = sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java= :39) at = sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI= mpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at = org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java= :60) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53) at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) at = org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java= :185) at = org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473) at = org.jboss.system.server.ServerImpl$ShutdownHook.shutdownDeployments(Serve= rImpl.java:884) at = org.jboss.system.server.ServerImpl$ShutdownHook.shutdown(ServerImpl.java:= 859) at = org.jboss.system.server.ServerImpl$ShutdownHook.run(ServerImpl.java:846) 2004-09-27 10:45:41,215 INFO [org.jboss.jetty] Deregister = jboss.jetty:Code=3D0 2004-09-27 10:45:41,217 INFO [org.jboss.jetty] Deregister = jboss.jetty:Log=3D0 2004-09-27 10:45:41,219 INFO [org.jboss.jetty] Deregister = jboss.jetty:Log=3D0,JBossLogSink=3D0 --------listener configuration--------- <!-- = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --> <!-- Configure the Request Listeners = --> <!-- = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - = - - --> <!-- Add and configure a HTTP listener to port 8080 = --> <!-- The default port can be changed using: java = -Djetty.port=3D80 --> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - = - - --> <Call name=3D"addListener"> <Arg> <New class=3D"org.mortbay.http.SocketListener"> <Set name=3D"Port"><SystemProperty name=3D"jetty.port" = default=3D"8082"/></Set> <Set name=3D"MinThreads">1</Set> <Set name=3D"MaxThreads">30</Set> <Set name=3D"MaxIdleTimeMs">30000</Set> <Set name=3D"LowResourcePersistTimeMs">5000</Set> <Set name=3D"ConfidentialPort">443</Set> <Set name=3D"IntegralPort">443</Set> </New> </Arg> </Call> <!-- Listener for YYY and others --> <Call name=3D"addListener"> <Arg> <New class=3D"org.mortbay.http.SocketListener"> <Set name=3D"Port">8455</Set> <Set name=3D"MinThreads">10</Set> <Set name=3D"MaxThreads">100</Set> <Set name=3D"MaxIdleTimeMs">30000</Set> <Set name=3D"LowResourcePersistTimeMs">5000</Set> <Set name=3D"ConfidentialPort">443</Set> <Set name=3D"IntegralPort">443</Set> </New> </Arg> </Call> <!-- Listener for XXX --> <Call name=3D"addListener"> <Arg> <New class=3D"org.mortbay.http.SocketListener"> <Set name=3D"Port">8456</Set> <Set name=3D"MinThreads">10</Set> <Set name=3D"MaxThreads">100</Set> <Set name=3D"MaxIdleTimeMs">30000</Set> <Set name=3D"LowResourcePersistTimeMs">5000</Set> <Set name=3D"ConfidentialPort">443</Set> <Set name=3D"IntegralPort">443</Set> </New> </Arg> </Call> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - = - - --> <!-- Add a HTTPS SSL listener on port 8843 = --> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - = - - --> <!-- UNCOMMENT TO ACTIVATE <Call name=3D"addListener"> <Arg> <New class=3D"org.mortbay.http.SunJsseListener"> <Set name=3D"Port">8443</Set> <Set name=3D"MinThreads">5</Set> <Set name=3D"MaxThreads">100</Set> <Set name=3D"MaxIdleTimeMs">30000</Set> <Set name=3D"LowResourcePersistTimeMs">2000</Set> <Set name=3D"Keystore"><SystemProperty = name=3D"jboss.server.home.dir"/>/conf/demokeystore</Set> <Set = name=3D"Password">OBF:1vny1zlo1x8e1vnw1vn61x8g1zlu1vn4</Set> <Set name=3D"KeyPassword">OBF:1u2u1wml1z7s1z7a1wnl1u2g</Set> </New> </Arg> </Call> --> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - = - - --> <!-- Add a AJP13 listener on port 8009 = --> <!-- This protocol can be used with mod_jk in apache, IIS etc. = --> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - = - - --> <Call name=3D"addListener"> <Arg> <New class=3D"org.mortbay.http.ajp.AJP13Listener"> <Set name=3D"Port">8009</Set> <Set name=3D"MinThreads">5</Set> <Set name=3D"MaxThreads">255</Set> <Set name=3D"MaxIdleTimeMs">0</Set> <Set name=3D"confidentialPort">443</Set> </New> </Arg> </Call> |