Bugs item #511977, was opened at 2002-02-01 16:10
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=511977&group_id=22866
Category: JBossServer
Group: v3.0 Rabbit Hole
>Status: Closed
>Resolution: Duplicate
Priority: 5
Submitted By: Jeff Tulley (jtulley)
>Assigned to: Jason Dillon (user57)
Summary: exception in addShutdownHook some JVM's
Initial Comment:
some JVM's (JVM 1.22 & 1.3 on Novell NetWare for sure)
do not have adequate support for
Runtime.addShutdownHook(), causing an exception to be
thrown (java.lang.IllegalArgumentException: Unknown
signal: INT). This stops JBoss from starting up
entirely. I suggest you change Server.java to have
exception handling for this case.
diff -u of Server.java follows:
--- Server.java 2002/01/30 23:53:23 1.6
+++ Server.java 2002/02/01 23:55:52
@@ -131,9 +131,16 @@
log.debug("Registered service controller: " +
controllerName);
// Install the shutdown hook
- ShutdownHook hook = new ShutdownHook
(controllerName);
- Runtime.getRuntime().addShutdownHook(hook);
- log.debug("Shutdown hook added");
+ try
+ {
+ ShutdownHook hook = new ShutdownHook
(controllerName);
+ Runtime.getRuntime().addShutdownHook(hook);
+ log.debug("Shutdown hook added");
+ }
+ catch (Exception e)
+ {
+ log.debug("An exception occurred, Shutdown
hook NOT added.");
+ log.debug("Exception: " + e.toString());
+ }
// Deployer
ObjectName mainDeployer =
----------------------------------------------------------------------
>Comment By: Jason Dillon (user57)
Date: 2002-02-05 17:55
Message:
Logged In: YES
user_id=15045
This has been fixed.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=511977&group_id=22866
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development