Gaurav Handa wrote:
Can I try adding some debug statements in the code of Server B so that the
next time it crashes, I get more informational log messages? I think the
Here is the method that write the "JVM exiting abnormally" message. It
is in the org.apache.avalon.phoenix.frontends.CLIMain object from
avalon-phoenix.
/**
* Shut the embeddor down.
* This method is designed to only be called from within the
ShutdownHook.
* To shutdown Pheonix, call shutdown() below.
*/
protected void forceShutdown()
{
if( null == m_hook || null == m_embeddor )
{
//We were shutdown gracefully but the shutdown hook
//thread was not removed. This can occur when an earlier
//shutdown hook caused a shutdown() request to be processed
return;
}
final String message = REZ.getString(
"main.abnormal-exit.notice" );
System.out.print( message );
System.out.print( " " );
System.out.flush();
shutdown();
}
This method is registered as a shutdown hook:
if( false == disableHook )
{
m_hook = new ShutdownHook( this );
Runtime.getRuntime().addShutdownHook( m_hook );
}
So this should be called when the program exit in an unexpected way.
Stefano
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]