[jboss-cvs] JBossAS SVN: r69191 - in trunk/cluster/src/main/org/jboss/invocation: pooled/server and 1 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Jan 22 10:28:33 EST 2008
Author: bstansberry at jboss.com
Date: 2008-01-22 10:28:33 -0500 (Tue, 22 Jan 2008)
New Revision: 69191
Modified:
trunk/cluster/src/main/org/jboss/invocation/jrmp/server/JRMPInvokerHA.java
trunk/cluster/src/main/org/jboss/invocation/pooled/server/PooledInvokerHA.java
trunk/cluster/src/main/org/jboss/invocation/unified/server/UnifiedInvokerHA.java
Log:
Add some diagnostic logging
Modified: trunk/cluster/src/main/org/jboss/invocation/jrmp/server/JRMPInvokerHA.java
===================================================================
--- trunk/cluster/src/main/org/jboss/invocation/jrmp/server/JRMPInvokerHA.java 2008-01-22 13:43:05 UTC (rev 69190)
+++ trunk/cluster/src/main/org/jboss/invocation/jrmp/server/JRMPInvokerHA.java 2008-01-22 15:28:33 UTC (rev 69191)
@@ -112,7 +112,8 @@
if (beanMap.containsKey(hash))
{
// FIXME [oleg] In theory this is possible!
- throw new IllegalStateException("Trying to register bean with the existing hashCode");
+ log.debug("Trying to register target " + target + " using an existing hashCode. Already registered: " + hash + "=" + beanMap.get(hash));
+ throw new IllegalStateException("Trying to register target using an existing hashCode.");
}
beanMap.put(hash, target);
}
Modified: trunk/cluster/src/main/org/jboss/invocation/pooled/server/PooledInvokerHA.java
===================================================================
--- trunk/cluster/src/main/org/jboss/invocation/pooled/server/PooledInvokerHA.java 2008-01-22 13:43:05 UTC (rev 69190)
+++ trunk/cluster/src/main/org/jboss/invocation/pooled/server/PooledInvokerHA.java 2008-01-22 15:28:33 UTC (rev 69191)
@@ -87,7 +87,8 @@
if (beanMap.containsKey(hash))
{
// FIXME [oleg] In theory this is possible!
- throw new IllegalStateException("Trying to register bean with the existing hashCode");
+ log.debug("Trying to register target " + target + " using an existing hashCode. Already registered: " + hash + "=" + beanMap.get(hash));
+ throw new IllegalStateException("Trying to register target using an existing hashCode.");
}
beanMap.put(hash, target);
}
Modified: trunk/cluster/src/main/org/jboss/invocation/unified/server/UnifiedInvokerHA.java
===================================================================
--- trunk/cluster/src/main/org/jboss/invocation/unified/server/UnifiedInvokerHA.java 2008-01-22 13:43:05 UTC (rev 69190)
+++ trunk/cluster/src/main/org/jboss/invocation/unified/server/UnifiedInvokerHA.java 2008-01-22 15:28:33 UTC (rev 69191)
@@ -71,7 +71,8 @@
if(beanMap.containsKey(hash))
{
- throw new IllegalStateException("Trying to register bean (" + beanName + ") with an hash code that already exists");
+ log.debug("Trying to register target " + target + " using an existing hashCode. Already registered: " + hash + "=" + beanMap.get(hash));
+ throw new IllegalStateException("Trying to register target using an existing hashCode.");
}
beanMap.put(hash, target);
}
More information about the jboss-cvs-commits
mailing list