[JBoss-user] [JBossCache] - Wrong region selected in RegionManager

2005-12-15 Thread crl42
In RegionManager the wrong region is selected for a fqn because of the use of 
an HashMap to store the configurated region elements from definition 

Since I need this correction now, I submited a bug on jira and I proposed a 
patch

http://jira.jboss.com/jira/browse/JBCACHE-373

Patch:

--- RegionManager.java.orig 2005-12-15 13:21:32.014766898 +0100
+++ RegionManager.java 2005-12-15 14:14:12.752630015 +0100
@@ -11,7 +11,7 @@
 import org.apache.commons.logging.LogFactory;
 import org.jboss.cache.TreeCache;

-import java.util.HashMap;
+import java.util.LinkedHashMap;
 import java.util.Map;

 /**
@@ -28,7 +28,7 @@
private Log log_=LogFactory.getLog(RegionManager.class);
// TODO We should externalize this.
public final static int CAPACITY = 20;
- private Map regionMap_ = new HashMap();
+ private Map regionMap_ = new LinkedHashMap();
// optimization
private Region[] regions_;
private EvictionPolicy policy_;
@@ -95,8 +95,8 @@
   String myRFqn = appendFqn(myFqn);
   // TODO need further optimization in regex matching

- // Do it in reverse order such that children fqn gets matched first.
- for (int i = (regions.length - 1); i = 0; i--)
+ // Do it in direct order such that children fqn gets matched first.
+ for (int i = 0; iregions.length ; i++)
   {
  String fqn = regions.getFqn();
  if (myRFqn.startsWith(fqn)) return regions;

I hope this help.

Carlo Rossi


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3912871#3912871

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3912871


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation Configuration] - Re: JBoss-3.2.5 Throws IP_MULTICAST_IF address not bound

2004-09-08 Thread crl42
I got the same problem.
There are truobles in binding the ANY_ADDR 0.0.0.0 to multicast socket when in the 
kernel the ipv6 is active.
If you disable ipv6 from kernel the binding of multicast is ok and the services 
related to 'all' configuration runs smooth.



View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3847520#3847520

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3847520


---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047alloc_id=10808op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation Configuration] - Re: Problems starting AutomaticDiscovery on Mac OSX 10.3

2004-09-08 Thread crl42
I got the same problem and I don't want to modify the startup script, so I worked more 
till I found the origin of error.
The problem is in binding the ANY_ADDR 0.0.0.0 to multicast socket on a linux kernel 
with ipv6 enabled.
If you disable ipv6 from kernel the binding of multicast is ok and the services 
related to 'all' configuration runs smooth.



View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3847521#3847521

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3847521


---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047alloc_id=10808op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user