From: SourceForge.net <no...@so...> - 2005-04-29 06:10:07
|
Bugs item #1192186, was opened at 2005-04-29 16:10 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=107322&aid=1192186&group_id=7322 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: John Sisson (johnrsisson) Assigned to: Nobody/Anonymous (nobody) Summary: [patch] NullPointerException in ThreadedServer.stop(..) Initial Comment: Encountered the following exception when Jetty embedded in Geronimo, attempts to open a port that is in use: java.lang.NullPointerException at org.mortbay.util.ThreadedServer.stop(ThreadedServer.java:544) at org.mortbay.http.SocketListener.stop(SocketListener.java:211) at org.apache.geronimo.jetty.connector.JettyConnector.doFail(JettyConnector.java:90) I have tested the attached patch and it fixed the problem with the NullPointerException. -------------------- FYI.. Here is the full error output: 11:42:50,124 INFO [HttpServer] Statistics on = false for org.apache.geronimo.jetty.JettyServer@4b0bbb 11:42:50,179 INFO [HttpServer] Version Jetty/5.1.3 11:42:50,222 INFO [Container] Started org.apache.geronimo.jetty.JettyServer@4b0bbb 11:42:52,435 ERROR [GBeanInstance] Problem in doFail of geronimo.server:J2EEApplication=null,J2EEModule=org/apache/geronimo/Server,J2EEServer=geronimo,j2eeType=GBean,name=JettyWebConnector java.lang.NullPointerException at org.mortbay.util.ThreadedServer.stop(ThreadedServer.java:544) at org.mortbay.http.SocketListener.stop(SocketListener.java:211) at org.apache.geronimo.jetty.connector.JettyConnector.doFail(JettyConnector.java:90) at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:860) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:331) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:111) at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:477) at org.apache.geronimo.gbean.runtime.GBeanSingleReference.attemptFullStart(GBeanSingleReference.java:149) at org.apache.geronimo.gbean.runtime.GBeanSingleReference.targetAdded(GBeanSingleReference.java:124) at org.apache.geronimo.gbean.runtime.AbstractGBeanReference.addTarget(AbstractGBeanReference.java:244) at org.apache.geronimo.gbean.runtime.GBeanSingleReference$1.running(GBeanSingleReference.java:158) at org.apache.geronimo.kernel.lifecycle.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:153) at org.apache.geronimo.kernel.lifecycle.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:36) at org.apache.geronimo.kernel.lifecycle.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:229) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:354) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:111) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:133) at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:494) at org.apache.geronimo.kernel.Kernel.startRecursiveGBean(Kernel.java:339) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:141) at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:494) at org.apache.geronimo.kernel.Kernel.startRecursiveGBean(Kernel.java:339) at org.apache.geronimo.system.main.Daemon.main(Daemon.java:185) 11:42:52,572 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: objectName="geronimo.server:J2EEApplication=null,J2EEModule=org/apache/geronimo/Server,J2EEServer=geronimo,j2eeType=GBean,name=JettyWebConnector" java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:331) at java.net.ServerSocket.bind(ServerSocket.java:318) at java.net.ServerSocket.<init>(ServerSocket.java:185) at org.mortbay.util.ThreadedServer.newServerSocket(ThreadedServer.java:391) at org.mortbay.util.ThreadedServer.open(ThreadedServer.java:477) at org.apache.geronimo.jetty.connector.JettyConnector.doStart(JettyConnector.java:71) at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:841) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:331) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:111) at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:477) at org.apache.geronimo.gbean.runtime.GBeanSingleReference.attemptFullStart(GBeanSingleReference.java:149) at org.apache.geronimo.gbean.runtime.GBeanSingleReference.targetAdded(GBeanSingleReference.java:124) at org.apache.geronimo.gbean.runtime.AbstractGBeanReference.addTarget(AbstractGBeanReference.java:244) at org.apache.geronimo.gbean.runtime.GBeanSingleReference$1.running(GBeanSingleReference.java:158) at org.apache.geronimo.kernel.lifecycle.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:153) at org.apache.geronimo.kernel.lifecycle.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:36) at org.apache.geronimo.kernel.lifecycle.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:229) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:354) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:111) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:133) at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:494) at org.apache.geronimo.kernel.Kernel.startRecursiveGBean(Kernel.java:339) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:141) at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:494) at org.apache.geronimo.kernel.Kernel.startRecursiveGBean(Kernel.java:339) at org.apache.geronimo.system.main.Daemon.main(Daemon.java:185) 11:42:52,747 WARN [GBeanSingleReference] Exception occured while attempting to fully start: objectName=geronimo.server:J2EEApplication=null,J2EEModule=org/apache/geronimo/Server,J2EEServer=geronimo,j2eeType=GBean,name=JettyWebConnector java.lang.IllegalStateException: Cannot transition to running state from failed at org.apache.geronimo.gbean.runtime.GBeanInstanceState.setStateInstance(GBeanInstanceState.java:497) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:353) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:111) at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:477) at org.apache.geronimo.gbean.runtime.GBeanSingleReference.attemptFullStart(GBeanSingleReference.java:149) at org.apache.geronimo.gbean.runtime.GBeanSingleReference.targetAdded(GBeanSingleReference.java:124) at org.apache.geronimo.gbean.runtime.AbstractGBeanReference.addTarget(AbstractGBeanReference.java:244) at org.apache.geronimo.gbean.runtime.GBeanSingleReference$1.running(GBeanSingleReference.java:158) at org.apache.geronimo.kernel.lifecycle.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:153) at org.apache.geronimo.kernel.lifecycle.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:36) at org.apache.geronimo.kernel.lifecycle.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:229) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:354) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:111) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:133) at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:494) at org.apache.geronimo.kernel.Kernel.startRecursiveGBean(Kernel.java:339) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:141) at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:494) at org.apache.geronimo.kernel.Kernel.startRecursiveGBean(Kernel.java:339) at org.apache.geronimo.system.main.Daemon.main(Daemon.java:185) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=107322&aid=1192186&group_id=7322 |