Author: vhalbert(a)redhat.com
Date: 2009-04-01 09:10:03 -0400 (Wed, 01 Apr 2009)
New Revision: 681
Modified:
trunk/server/src/main/java/com/metamatrix/server/ServiceManager.java
Log:
TEIID 452 - commands were removed, but the internal numbering wasn't adjusted, causing
the max command number (35) to be greater than the actual number of commands (30) and
therefore causing a ArrayOutOfBounds exception.
Modified: trunk/server/src/main/java/com/metamatrix/server/ServiceManager.java
===================================================================
--- trunk/server/src/main/java/com/metamatrix/server/ServiceManager.java 2009-04-01
01:10:40 UTC (rev 680)
+++ trunk/server/src/main/java/com/metamatrix/server/ServiceManager.java 2009-04-01
13:10:03 UTC (rev 681)
@@ -87,22 +87,22 @@
private final static int COMMAND_LIST_VM_PROPERTIES = 12;
private final static int COMMAND_LIST_SERVICE_PROPERTIES = 13;
private final static int COMMAND_SHUTDOWN_SERVER = 14;
- private final static int COMMAND_SHUTDOWN_VM = 17;
- private final static int COMMAND_START_SERVICE = 19;
- private final static int COMMAND_EXPERT_MODE_ON = 20;
- private final static int COMMAND_EXPERT_MODE_OFF = 21;
- private final static int COMMAND_GET_SERVICE_QUEUES = 22;
- private final static int COMMAND_GET_VM_STATS = 24;
- private final static int COMMAND_DUMP_THREADS = 25;
- private final static int COMMAND_SYNCH_SERVER = 26;
- private final static int COMMAND_KILL_ALL_HCS = 27;
- private final static int COMMAND_KILL_HC = 28;
- private final static int COMMAND_BOUNCE_SERVICE = 29;
- private final static int COMMAND_CLEAR_CODE_TABLE_CACHES = 30;
- private final static int COMMAND_CLEAR_PREPARED_STMT_CACHES = 31;
- private final static int COMMAND_EXIT = 33;
- private final static int COMMAND_HELP = 34;
- private final static int COMMAND_INVALID = 35;
+ private final static int COMMAND_SHUTDOWN_VM = 15;
+ private final static int COMMAND_START_SERVICE = 16;
+ private final static int COMMAND_EXPERT_MODE_ON = 17;
+ private final static int COMMAND_EXPERT_MODE_OFF = 18;
+ private final static int COMMAND_GET_SERVICE_QUEUES = 19;
+ private final static int COMMAND_GET_VM_STATS = 20;
+ private final static int COMMAND_DUMP_THREADS = 21;
+ private final static int COMMAND_SYNCH_SERVER = 22;
+ private final static int COMMAND_KILL_ALL_HCS = 23;
+ private final static int COMMAND_KILL_HC = 24;
+ private final static int COMMAND_BOUNCE_SERVICE = 25;
+ private final static int COMMAND_CLEAR_CODE_TABLE_CACHES = 26;
+ private final static int COMMAND_CLEAR_PREPARED_STMT_CACHES = 27;
+ private final static int COMMAND_EXIT = 28;
+ private final static int COMMAND_HELP = 29;
+ private final static int COMMAND_INVALID = 30;
private final static String[] commands = {"ListProcesses", //$NON-NLS-1$
Show replies by date