[ 
https://issues.apache.org/jira/browse/OFBIZ-5389?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13815257#comment-13815257
 ] 

Christian Carlow edited comment on OFBIZ-5389 at 11/6/13 8:32 PM:
------------------------------------------------------------------

I found another eeca in the specialpurpose directory that resolve the problem 
when removed:
   <eca entity="Product" operation="create-store-remove" event="return">
        <action service="indexProduct" mode="sync"/>
    </eca>

The indexProduct service seems to be causing the product not to be stored in 
cache when created.  It seems that the service uses Lucene for indexing 
products.

Not exactly sure if Lucene affects caching but when creating a product I 
receive this log message:(DocumentIndexer_default_products) [    
DocumentIndexer.java:117:INFO ] DocumentIndexer_default_products: deleted 
Lucene document: productId:product_1

When I update the product I receive this log message:
(DocumentIndexer_default_products) [    DocumentIndexer.java:120:INFO ] 
DocumentIndexer_default_products: indexed Lucene document: productId:product_1


was (Author: ofbizzer):
I found another eeca in the specialpurpose directory that resolve the problem 
when removed:
   <eca entity="Product" operation="create-store-remove" event="return">
        <action service="indexProduct" mode="sync"/>
    </eca>

The indexProduct service seems to be causing the product not to be stored in 
cache when created.  It seems that the service uses Lucene for indexing 
products.


> Error adding newly created virtual product to purchase order
> ------------------------------------------------------------
>
>                 Key: OFBIZ-5389
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5389
>             Project: OFBiz
>          Issue Type: Bug
>    Affects Versions: SVN trunk
>            Reporter: Christian Carlow
>         Attachments: ProductServices.java.diff
>
>
> A "Problems getting the product entity" error occurs when adding a newly 
> created "Variant Tree Generation" virtual product is added to a purchase 
> order.  
> The feature selections are not rendered because the variant products list is 
> created from cache in which the newly created product hasn't yet been added.
> Cache searches seem somewhat ubiquitous throughout the purchase orders.  Does 
> anyone know if this was intentional for some reason which would require the 
> user to clear cache before the new products register for use?



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to