[ https://issues.apache.org/jira/browse/OFBIZ-5385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13814927#comment-13814927 ]
Jacques Le Roux commented on OFBIZ-5385: ---------------------------------------- Like I believe for OFBIZ-5389, this is due to changes Adrian did recently where he introduced some immutable variables. One of those commits is http://svn.apache.org/viewvc?view=revision&revision=1471283 In OFBIZ-5389, you say {quote} 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? {quote} Actually this was working as is before Adrian's changes. At this stage I don't know yet if we should revert those, improve them, or change all related possible cases in OFBiz to not use cache. I have no ideas if the last would be large or not, and if it should be the way because we would have to consider the performance impact in each case. Though I did not review much of his work, I think Adrian were right to do what he did. Now we have to measure the impacts of it before changing things like you suggest. Though I both cases, from what I have quickly seen, we could use your changes because there are not much possible performance impacts (the service and the worker method should not be used intensively). Maybe the way, but we should try to see before the possible other cases to handle. It would be then better to do it as a whole... > Purchase order immutable/unchangeable errors when adding variant products > ------------------------------------------------------------------------- > > Key: OFBIZ-5385 > URL: https://issues.apache.org/jira/browse/OFBIZ-5385 > Project: OFBiz > Issue Type: Bug > Affects Versions: SVN trunk > Reporter: Christian Carlow > Attachments: ProductWorker.java.diff > > > This error message is generated when trying to add a variant product to a > purchase order cart after features have been selected: > Error calling event: org.ofbiz.webapp.event.EventHandlerException: Problems > processing event: java.lang.IllegalStateException: This object has been > flagged as immutable (unchangeable), probably because it came from an Entity > Engine cache. > To reproduce: > 1. Add new feature "Gold" as COLOR Feature Type to Widget Features Category > 2. Change WG-9943 virtual variant method to "Feature Tree Generation" on the > product page > 3. Add new "Gold" feature to WG-9943 on feature page of product app > 4. Create new purchase order from BigSupplier for WG-9943 > 5. Select the new feature "Gold" as the color > The error is generated after trying to add the product after all features > have been selected. -- This message was sent by Atlassian JIRA (v6.1#6144)