JOnAS freezes when stopping
Jonas freezes when you perform a "jonas stop"
It appears that the following code (part of Joram) enter in an infinite loop, forcing us to kill the java process in order to stop jonas :
/**
-
Forces the daemon to stop executing. This method notifies thread that
-
it should stop running, if the thread is waiting it is first interupted
-
then the shutdown method is called to close all ressources. */ public synchronized void stop() { logmon.log(BasicLevel.DEBUG, getName() + ", stops."); running = false; if (thread != null) { while (thread.isAlive()) { if (canStop) {
if (thread.isAlive()) thread.interrupt(); shutdown();
} try { thread.join(1000L); } catch (InterruptedException exc) { continue; } } finish(); thread = null; } }
Call stack: org.objectweb.joram.mom.proxies.tcp.TcpConnectionListener(Daemon).stop() org.objectweb.joram.mom.proxies.tcp.TcpProxyService.stop() org.objectweb.joram.mom.proxies.tcp.TcpProxyService.stopService() fr.dyade.aaa.agent.ServiceManager.stop(ServiceDesc) fr.dyade.aaa.agent.ServiceManager.stop() fr.dyade.aaa.agent.AgentServer.stop() org.objectweb.joram.client.connector.JoramAdapter.stop()
Config:
Jonas version : 4.9.2 JVM : jrockit-jdk1.5.0_12 OS : Red Hat Enterprise Linux Server release 5.2 (Tikanga)