Ofbiz Cache issues

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

Ofbiz Cache issues

Pradeep Chaudhary
We are getting major caching issues in production. Most of it occurs
in LRUMap class. Following is the error that we just got:

2007-08-20 15:21:42,854 (TP-Processor67)
[ServiceDispatcher.java:runSync:387 :ERROR] ::
---- exception report ----------------------------------------------------------
Service [calculateProductPrice] threw an unexpected exception/error
Exception: org.ofbiz.service.GenericServiceException
Message: Service target threw an unexpected exception
(Entry.next=null, data[removeIndex]=(productPriceRuleId =
'10535')=org.ofbiz.base.util.cache.CacheLine@1281921
previous=(productPriceRuleId =
'10071')=org.ofbiz.base.util.cache.CacheLine@189f341
key=(inputParamEnumId = 'PRIP_PARTY_ID' AND condValue = '215769')
value=org.ofbiz.base.util.cache.CacheLine@a6a57c size=4000
maxSize=4000 Please check that your keys are immutable, and that you
have used synchronization properly. If so, then please report this to
[hidden email] as a bug.)
---- stack trace ---------------------------------------------------------------
org.ofbiz.service.GenericServiceException: Service target threw an
unexpected exception (Entry.next=null,
data[removeIndex]=(productPriceRuleId =
'10535')=org.ofbiz.base.util.cache.CacheLine@1281921
previous=(productPriceRuleId =
'10071')=org.ofbiz.base.util.cache.CacheLine@189f341
key=(inputParamEnumId = 'PRIP_PARTY_ID' AND condValue = '215769')
value=org.ofbiz.base.util.cache.CacheLine@a6a57c size=4000
maxSize=4000 Please check that your keys are immutable, and that you
have used synchronization properly. If so, then please report this to
[hidden email] as a bug.)
org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:104)
org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:54)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:338)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:212)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:114)
org.ofbiz.order.shoppingcart.ShoppingCartItem.updatePrice(ShoppingCartItem.java:879)
org.ofbiz.order.shoppingcart.ShoppingCartItem.setQuantity(ShoppingCartItem.java:823)
org.ofbiz.order.shoppingcart.ShoppingCartItem.setQuantity(ShoppingCartItem.java:694)
org.ofbiz.order.shoppingcart.ShoppingCartItem.makeItem(ShoppingCartItem.java:448)
org.ofbiz.order.shoppingcart.ShoppingCartItem.makeItem(ShoppingCartItem.java:291)
org.ofbiz.order.shoppingcart.ShoppingCart.addItemToEnd(ShoppingCart.java:523)

We had modified the cache settings for ProductPriceRule,
ProductPriceAction, ProductPriceCond to have a max size and
useSoftReference as false. Could this be a problem ?

Any help would be appreciated. Please reply back if anybody has any ideas on it.

Thanks,
Pradeep
Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz Cache issues

Jacques Le Roux
Administrator
Please, this is a question for user ML, thanks
http://docs.ofbiz.org/display/OFBADMIN/Mailing+Lists

Jacques

De : "Pradeep Chaudhary" <[hidden email]>

> We are getting major caching issues in production. Most of it occurs
> in LRUMap class. Following is the error that we just got:
>
> 2007-08-20 15:21:42,854 (TP-Processor67)
> [ServiceDispatcher.java:runSync:387 :ERROR] ::
> ---- exception report ----------------------------------------------------------
> Service [calculateProductPrice] threw an unexpected exception/error
> Exception: org.ofbiz.service.GenericServiceException
> Message: Service target threw an unexpected exception
> (Entry.next=null, data[removeIndex]=(productPriceRuleId =
> '10535')=org.ofbiz.base.util.cache.CacheLine@1281921
> previous=(productPriceRuleId =
> '10071')=org.ofbiz.base.util.cache.CacheLine@189f341
> key=(inputParamEnumId = 'PRIP_PARTY_ID' AND condValue = '215769')
> value=org.ofbiz.base.util.cache.CacheLine@a6a57c size=4000
> maxSize=4000 Please check that your keys are immutable, and that you
> have used synchronization properly. If so, then please report this to
> [hidden email] as a bug.)
> ---- stack trace ---------------------------------------------------------------
> org.ofbiz.service.GenericServiceException: Service target threw an
> unexpected exception (Entry.next=null,
> data[removeIndex]=(productPriceRuleId =
> '10535')=org.ofbiz.base.util.cache.CacheLine@1281921
> previous=(productPriceRuleId =
> '10071')=org.ofbiz.base.util.cache.CacheLine@189f341
> key=(inputParamEnumId = 'PRIP_PARTY_ID' AND condValue = '215769')
> value=org.ofbiz.base.util.cache.CacheLine@a6a57c size=4000
> maxSize=4000 Please check that your keys are immutable, and that you
> have used synchronization properly. If so, then please report this to
> [hidden email] as a bug.)
> org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:104)
> org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:54)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:338)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:212)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:114)
> org.ofbiz.order.shoppingcart.ShoppingCartItem.updatePrice(ShoppingCartItem.java:879)
> org.ofbiz.order.shoppingcart.ShoppingCartItem.setQuantity(ShoppingCartItem.java:823)
> org.ofbiz.order.shoppingcart.ShoppingCartItem.setQuantity(ShoppingCartItem.java:694)
> org.ofbiz.order.shoppingcart.ShoppingCartItem.makeItem(ShoppingCartItem.java:448)
> org.ofbiz.order.shoppingcart.ShoppingCartItem.makeItem(ShoppingCartItem.java:291)
> org.ofbiz.order.shoppingcart.ShoppingCart.addItemToEnd(ShoppingCart.java:523)
>
> We had modified the cache settings for ProductPriceRule,
> ProductPriceAction, ProductPriceCond to have a max size and
> useSoftReference as false. Could this be a problem ?
>
> Any help would be appreciated. Please reply back if anybody has any ideas on it.
>
> Thanks,
> Pradeep
Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz Cache issues

David E Jones
In reply to this post by Pradeep Chaudhary

Most of the effort required to fix this bug will be in finding a way to reproduce it.

Do you have any ideas on this based on where you are seeing it?

Also, which revision of OFBiz are you running on, and what changes have you made to the code or configuration?

-David


Pradeep Chaudhary wrote:

> We are getting major caching issues in production. Most of it occurs
> in LRUMap class. Following is the error that we just got:
>
> 2007-08-20 15:21:42,854 (TP-Processor67)
> [ServiceDispatcher.java:runSync:387 :ERROR] ::
> ---- exception report ----------------------------------------------------------
> Service [calculateProductPrice] threw an unexpected exception/error
> Exception: org.ofbiz.service.GenericServiceException
> Message: Service target threw an unexpected exception
> (Entry.next=null, data[removeIndex]=(productPriceRuleId =
> '10535')=org.ofbiz.base.util.cache.CacheLine@1281921
> previous=(productPriceRuleId =
> '10071')=org.ofbiz.base.util.cache.CacheLine@189f341
> key=(inputParamEnumId = 'PRIP_PARTY_ID' AND condValue = '215769')
> value=org.ofbiz.base.util.cache.CacheLine@a6a57c size=4000
> maxSize=4000 Please check that your keys are immutable, and that you
> have used synchronization properly. If so, then please report this to
> [hidden email] as a bug.)
> ---- stack trace ---------------------------------------------------------------
> org.ofbiz.service.GenericServiceException: Service target threw an
> unexpected exception (Entry.next=null,
> data[removeIndex]=(productPriceRuleId =
> '10535')=org.ofbiz.base.util.cache.CacheLine@1281921
> previous=(productPriceRuleId =
> '10071')=org.ofbiz.base.util.cache.CacheLine@189f341
> key=(inputParamEnumId = 'PRIP_PARTY_ID' AND condValue = '215769')
> value=org.ofbiz.base.util.cache.CacheLine@a6a57c size=4000
> maxSize=4000 Please check that your keys are immutable, and that you
> have used synchronization properly. If so, then please report this to
> [hidden email] as a bug.)
> org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:104)
> org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:54)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:338)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:212)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:114)
> org.ofbiz.order.shoppingcart.ShoppingCartItem.updatePrice(ShoppingCartItem.java:879)
> org.ofbiz.order.shoppingcart.ShoppingCartItem.setQuantity(ShoppingCartItem.java:823)
> org.ofbiz.order.shoppingcart.ShoppingCartItem.setQuantity(ShoppingCartItem.java:694)
> org.ofbiz.order.shoppingcart.ShoppingCartItem.makeItem(ShoppingCartItem.java:448)
> org.ofbiz.order.shoppingcart.ShoppingCartItem.makeItem(ShoppingCartItem.java:291)
> org.ofbiz.order.shoppingcart.ShoppingCart.addItemToEnd(ShoppingCart.java:523)
>
> We had modified the cache settings for ProductPriceRule,
> ProductPriceAction, ProductPriceCond to have a max size and
> useSoftReference as false. Could this be a problem ?
>
> Any help would be appreciated. Please reply back if anybody has any ideas on it.
>
> Thanks,
> Pradeep
Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz Cache issues

Rodrigo Lima-2
David,

level of synchronized is estranged,( CacheLine.java ) .




2007/8/21, David E Jones <[hidden email]>:

>
>
> Most of the effort required to fix this bug will be in finding a way to
> reproduce it.
>
> Do you have any ideas on this based on where you are seeing it?
>
> Also, which revision of OFBiz are you running on, and what changes have
> you made to the code or configuration?
>
> -David
>
>
> Pradeep Chaudhary wrote:
> > We are getting major caching issues in production. Most of it occurs
> > in LRUMap class. Following is the error that we just got:
> >
> > 2007-08-20 15:21:42,854 (TP-Processor67)
> > [ServiceDispatcher.java:runSync:387 :ERROR] ::
> > ---- exception report
> ----------------------------------------------------------
> > Service [calculateProductPrice] threw an unexpected exception/error
> > Exception: org.ofbiz.service.GenericServiceException
> > Message: Service target threw an unexpected exception
> > (Entry.next=null, data[removeIndex]=(productPriceRuleId =
> > '10535')=org.ofbiz.base.util.cache.CacheLine@1281921
> > previous=(productPriceRuleId =
> > '10071')=org.ofbiz.base.util.cache.CacheLine@189f341
> > key=(inputParamEnumId = 'PRIP_PARTY_ID' AND condValue = '215769')
> > value=org.ofbiz.base.util.cache.CacheLine@a6a57c size=4000
> > maxSize=4000 Please check that your keys are immutable, and that you
> > have used synchronization properly. If so, then please report this to
> > [hidden email] as a bug.)
> > ---- stack trace
> ---------------------------------------------------------------
> > org.ofbiz.service.GenericServiceException: Service target threw an
> > unexpected exception (Entry.next=null,
> > data[removeIndex]=(productPriceRuleId =
> > '10535')=org.ofbiz.base.util.cache.CacheLine@1281921
> > previous=(productPriceRuleId =
> > '10071')=org.ofbiz.base.util.cache.CacheLine@189f341
> > key=(inputParamEnumId = 'PRIP_PARTY_ID' AND condValue = '215769')
> > value=org.ofbiz.base.util.cache.CacheLine@a6a57c size=4000
> > maxSize=4000 Please check that your keys are immutable, and that you
> > have used synchronization properly. If so, then please report this to
> > [hidden email] as a bug.)
> > org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(
> StandardJavaEngine.java:104)
> > org.ofbiz.service.engine.StandardJavaEngine.runSync(
> StandardJavaEngine.java:54)
> > org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:338)
> > org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:212)
> > org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:114)
> > org.ofbiz.order.shoppingcart.ShoppingCartItem.updatePrice(
> ShoppingCartItem.java:879)
> > org.ofbiz.order.shoppingcart.ShoppingCartItem.setQuantity(
> ShoppingCartItem.java:823)
> > org.ofbiz.order.shoppingcart.ShoppingCartItem.setQuantity(
> ShoppingCartItem.java:694)
> > org.ofbiz.order.shoppingcart.ShoppingCartItem.makeItem(
> ShoppingCartItem.java:448)
> > org.ofbiz.order.shoppingcart.ShoppingCartItem.makeItem(
> ShoppingCartItem.java:291)
> > org.ofbiz.order.shoppingcart.ShoppingCart.addItemToEnd(ShoppingCart.java
> :523)
> >
> > We had modified the cache settings for ProductPriceRule,
> > ProductPriceAction, ProductPriceCond to have a max size and
> > useSoftReference as false. Could this be a problem ?
> >
> > Any help would be appreciated. Please reply back if anybody has any
> ideas on it.
> >
> > Thanks,
> > Pradeep
>