Issues with LRUMap - Can we updae commons-collections.jar ?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Issues with LRUMap - Can we updae commons-collections.jar ?

Gautam Deb
We are using OFBiz from SVN version 424240 in our production server. We are facing frequent issues with the the LRUMap class in Apache commons-collections.jar. A sample error log is -
java.lang.NullPointerException
org.apache.commons.collections.map.LRUMap.reuseMapping(LRUMap.java:272)
org.apache.commons.collections.map.LRUMap.addMapping(LRUMap.java:243)
org.apache.commons.collections.map.AbstractHashedMap.put(AbstractHashedMap.java:282)
org.ofbiz.base.util.cache.CacheLineTable.put(CacheLineTable.java:93)
org.ofbiz.base.util.cache.UtilCache.put(UtilCache.java:305)
org.ofbiz.base.util.cache.UtilCache.put(UtilCache.java:290)
org.ofbiz.entity.cache.AbstractEntityConditionCache.getOrCreateConditionCache(AbstractEntityConditionCache.java:111)
org.ofbiz.entity.cache.AbstractEntityConditionCache.put(AbstractEntityConditionCache.java:63)
org.ofbiz.entity.cache.EntityListCache.put(EntityListCache.java:71)
org.ofbiz.entity.cache.Cache.put(Cache.java:75)
org.ofbiz.entity.GenericDelegator.findByConditionCache(GenericDelegator.java:1747)
org.ofbiz.entity.GenericDelegator.findByAndCache(GenericDelegator.java:1614)
org.ofbiz.entity.GenericDelegator.findByAndCache(GenericDelegator.java:1604)
org.ofbiz.product.price.PriceServices.calculateProductPrice(PriceServices.java:755)

We are planning to update the
commons-collections.jar to the latest available stable version. Can anybody give any pointer if there is any known issues we can face after this update.

Regards,
Gautam Deb

Reply | Threaded
Open this post in threaded view
|

Re: Issues with LRUMap - Can we updae commons-collections.jar ?

BJ Freeman
you can look at the current ver 4.0 and see what version works with the
ver 4. starting at svn svn531956
found in
framework/base/lib

Specification-Vendor: Apache Software Foundation
Specification-Title: Commons Collections
Implementation-Version: 3.1


Gautam Deb sent the following on 7/16/2007 6:49 AM:

> We are using OFBiz from SVN version 424240 in our production server. We
> are facing frequent issues with the the LRUMap class in Apache
> commons-collections.jar. A sample error log is -
>
> java.lang.NullPointerException
> org.apache.commons.collections.map.LRUMap.reuseMapping(LRUMap.java:272)
> org.apache.commons.collections.map.LRUMap.addMapping(LRUMap.java:243)
> org.apache.commons.collections.map.AbstractHashedMap.put(AbstractHashedMap.java:282)
>
> org.ofbiz.base.util.cache.CacheLineTable.put(CacheLineTable.java:93)
> org.ofbiz.base.util.cache.UtilCache.put(UtilCache.java:305)
> org.ofbiz.base.util.cache.UtilCache.put(UtilCache.java:290)
> org.ofbiz.entity.cache.AbstractEntityConditionCache.getOrCreateConditionCache(AbstractEntityConditionCache.java:111)
>
> org.ofbiz.entity.cache.AbstractEntityConditionCache.put(AbstractEntityConditionCache.java:63)
>
> org.ofbiz.entity.cache.EntityListCache.put(EntityListCache.java:71)
> org.ofbiz.entity.cache.Cache.put(Cache.java:75)
> org.ofbiz.entity.GenericDelegator.findByConditionCache(GenericDelegator.java:1747)
>
> org.ofbiz.entity.GenericDelegator.findByAndCache(GenericDelegator.java:1614)
>
> org.ofbiz.entity.GenericDelegator.findByAndCache(GenericDelegator.java:1604)
>
> org.ofbiz.product.price.PriceServices.calculateProductPrice(PriceServices.java:755)
>
>
>
> We are planning to update the commons-collections.jar to the latest
> available stable version. Can anybody give any pointer if there is any
> known issues we can face after this update.
>
> Regards,
> Gautam Deb
>