<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to bugs</title><link>https://sourceforge.net/p/swarmcache/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/swarmcache/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Sun, 12 Jun 2005 21:25:11 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/swarmcache/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>LRUCache.clearAll() memory leak &amp; listener bug</title><link>https://sourceforge.net/p/swarmcache/bugs/6/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;If you ever clearAll() using an LRUCache it will create&lt;br /&gt;
a new map for the cache, but it doesn't properly set&lt;br /&gt;
both internal references to the map.  This has the&lt;br /&gt;
effect of keeping both the old map and the new map in&lt;br /&gt;
memory.&lt;/p&gt;
&lt;p&gt;Also the listener interface is never reset to the new&lt;br /&gt;
map so any consumers of that interface will be broken.&lt;br /&gt;
For example HybridCache uses that listener interface&lt;br /&gt;
to move entries into the AutoCache once they fall off&lt;br /&gt;
the LRU cache.  After the first clearAll this&lt;br /&gt;
functionality will be broken.&lt;/p&gt;
&lt;p&gt;Quick fix is to simply change method do do map.clear();&lt;br /&gt;
instead of creating a new cache reference.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Sun, 12 Jun 2005 21:25:11 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net45947ca581dd547b6c2faa90cbc10d20ee5c23a8</guid></item><item><title>invalidating entire area: don´t work in distributed mode</title><link>https://sourceforge.net/p/swarmcache/bugs/5/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Problem:&lt;/p&gt;
&lt;p&gt;We have two VM's working in distributed mode.&lt;br /&gt;
When clearing an entire area in one VM we expected &lt;br /&gt;
that area to be cleared in both VM's. &lt;br /&gt;
But it doesn't work that way, instead only one VM was &lt;br /&gt;
cleared (the one that invoke objectCache.clearAll() ), &lt;br /&gt;
but the other who receives the notification takes no &lt;br /&gt;
action.&lt;/p&gt;
&lt;p&gt;Why ?&lt;/p&gt;
&lt;p&gt;When clearing an individual element of an area swarm &lt;br /&gt;
transmits the key of the element. When clearing an &lt;br /&gt;
entire area, swarm transmits a dummy token (ALL).&lt;br /&gt;
But the VM that receives the token uses the == &lt;br /&gt;
operand to test equality instead of equals().&lt;/p&gt;
&lt;p&gt;Fix:&lt;/p&gt;
&lt;p&gt;replace in MultiCacheManager.receiveNotification&lt;br /&gt;
if(notification.getKey()=="(ALL)")&lt;br /&gt;
with&lt;br /&gt;
if(notification.getKey().equals("(ALL)"))&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">santiagofont</dc:creator><pubDate>Fri, 15 Oct 2004 19:55:43 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netd3c09b2993b3238cb98b4a35b10b202c7a612af3</guid></item><item><title>MultiManager did not release instances</title><link>https://sourceforge.net/p/swarmcache/bugs/4/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;On MultiCacheManager.shutDown() every manager get&lt;br /&gt;
closed but then the instances map remain full and on a&lt;br /&gt;
successive cacheFactory.createCache() I get a null cache.&lt;br /&gt;
On Hibernate under JBoss this lead to a NPE when hot&lt;br /&gt;
deploy of application bring to a call to&lt;br /&gt;
cacheFactory.createCache().&lt;/p&gt;
&lt;p&gt;I suggest the removing of instance in MultiCacheManager&lt;br /&gt;
during shutdown:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="o"&gt;/\*&lt;/span&gt;
 &lt;span class="o"&gt;\*&lt;/span&gt;  &lt;span class="n"&gt;Shutdown&lt;/span&gt; &lt;span class="n"&gt;all&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;managers&lt;/span&gt; &lt;span class="n"&gt;in&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;list&lt;/span&gt;
 &lt;span class="o"&gt;\*&lt;/span&gt;  &lt;span class="p"&gt;@&lt;/span&gt;&lt;span class="n"&gt;author&lt;/span&gt; &lt;span class="n"&gt;Rajeev&lt;/span&gt; &lt;span class="n"&gt;Kaul&lt;/span&gt;
 &lt;span class="o"&gt;\*/&lt;/span&gt;
&lt;span class="n"&gt;public&lt;/span&gt; &lt;span class="n"&gt;static&lt;/span&gt; &lt;span class="n"&gt;synchronized&lt;/span&gt; &lt;span class="n"&gt;void&lt;/span&gt; &lt;span class="n"&gt;shutDown&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;!&lt;span class="n"&gt;instances&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;isEmpty&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;Set&lt;/span&gt; &lt;span class="n"&gt;keys&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;instances&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;keySet&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
        &lt;span class="n"&gt;Iterator&lt;/span&gt; &lt;span class="n"&gt;iter&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;keys&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;iterator&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
        &lt;span class="n"&gt;String&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="n"&gt;MultiCacheManager&lt;/span&gt; &lt;span class="n"&gt;manager&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;iter&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;hasNext&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="n"&gt;key&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;String&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;iter&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;next&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
            &lt;span class="n"&gt;manager&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;MultiCacheManager&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;instances&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;get&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
            &lt;span class="n"&gt;manager&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;close&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;+              iter.remove();&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Carlo Rossi</dc:creator><pubDate>Tue, 21 Sep 2004 11:40:25 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netd359ee6ad8bf028d32b83ea7845a1c6ed7db6a9f</guid></item><item><title>swarmcache sometimes blocks</title><link>https://sourceforge.net/p/swarmcache/bugs/3/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;[Environment]: Red Hat Linux ES 3.0, Oracle Application &lt;br /&gt;
Server 9.0.4 x2 in cluster, Hibernate 2.1.2 used.&lt;/p&gt;
&lt;p&gt;[Description]: &lt;br /&gt;
I initialize Hibernate using a ServletContextListerner &lt;br /&gt;
in which I call net.sf.hibernate.cfg.Configuration&lt;br /&gt;
().setProperties(). Sometimes I found the method will &lt;br /&gt;
not end but also no exception, no timeout. The log &lt;br /&gt;
shows swarmcache is starting a UDPGroup(? I'm sorry I &lt;br /&gt;
cannot remember the real name.) , but it blocks, no &lt;br /&gt;
exception, no timeout. I guess the problem is related to &lt;br /&gt;
jgroups.jar and out unstable network. Because if I &lt;br /&gt;
temporally cut off the network when the log is printed, &lt;br /&gt;
the log shows the UDPGroup is started and Hibernate is &lt;br /&gt;
initialized without any exception. I hope swarmcache or &lt;br /&gt;
jgroups can set some timeout for the UDPGroup.&lt;/p&gt;
&lt;p&gt;[My email] Balduran.bu@bleum.com&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Thu, 20 May 2004 06:54:11 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net7bf0cd5ff917e36bf2552d784d713425d7cae2e4</guid></item><item><title>AutoCache WeakHashmap Bug</title><link>https://sourceforge.net/p/swarmcache/bugs/2/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The constructor for AutoCache creates...&lt;/p&gt;
&lt;p&gt;public AutoCache() {&lt;br /&gt;
cache = Collections.synchronizedMap(new &lt;br /&gt;
ReferenceMap());&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;But the clearAll method uses something else&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;public&lt;/span&gt; &lt;span class="n"&gt;void&lt;/span&gt; &lt;span class="n"&gt;clearAll&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="o"&gt;//&lt;/span&gt; &lt;span class="n"&gt;Just&lt;/span&gt; &lt;span class="n"&gt;make&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="n"&gt;new&lt;/span&gt; &lt;span class="n"&gt;one&lt;/span&gt;
    &lt;span class="nb"&gt;log&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;debug&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;amp&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="n"&gt;quot&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="n"&gt;Cleared&lt;/span&gt; &lt;span class="n"&gt;entire&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;amp&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="n"&gt;quot&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;type&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="n"&gt;amp&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="n"&gt;quot&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;cache.&amp;amp;quot;);&lt;br /&gt;
        cache = Collections.synchronizedMap&lt;br /&gt;
(new WeakHashMap());&lt;br /&gt;
    }&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 24 Dec 2003 03:28:16 -0000</pubDate><guid isPermaLink="false">https://sourceforge.nete39d31d4c93119b6adb19b0546618c7f2c7ac659</guid></item><item><title>Thread deadlocks</title><link>https://sourceforge.net/p/swarmcache/bugs/1/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I run in an asynchronous environment.  Currently&lt;br /&gt;
whenever I try to implement swarmcache as my caching&lt;br /&gt;
mechanism, I seem to get thread deadlocks.&lt;br /&gt;
&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Thu, 16 Oct 2003 23:27:50 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net1198f4996608409db38b6f95fa99cbb9f78a1642</guid></item></channel></rss>