[ https://issues.apache.org/jira/browse/OFBIZ-10567?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16616230#comment-16616230 ]
Jacques Le Roux commented on OFBIZ-10567: ----------------------------------------- Thansk Sebastian, Indeed I confirm this behaviour. I went a bit ahead and I found a 1st issue due to OFBIZ-6924: {noformat} 2018-09-14 21:34:07,141 |jsse-nio-8443-exec-4 |ConfigXMLReader |I| controller loaded: 0.005s, 539 requests, 178 views in file:/C:/projectsASF/ofbiz/applications/product/webapp/catalog/WEB-INF/controller.xml 2018-09-14 21:34:07,158 |jsse-nio-8443-exec-4 |ConfigXMLReader |I| controller loaded: 0.001s, 49 requests, 22 views in file:/C:/projectsASF/ofbiz/framework/common/webcommon/WEB-INF/common-controller.xml 2018-09-14 21:34:07,170 |jsse-nio-8443-exec-4 |ConfigXMLReader |I| controller loaded: 0.0s, 0 requests, 0 views in file:/C:/projectsASF/ofbiz/framework/common/webcommon/WEB-INF/handlers-controller.xml 2018-09-14 21:34:07,183 |jsse-nio-8443-exec-4 |ConfigXMLReader |I| controller loaded: 0.0s, 26 requests, 10 views in file:/C:/projectsASF/ofbiz/framework/common/webcommon/WEB-INF/portal-controller.xml 2018-09-14 21:34:07,197 |jsse-nio-8443-exec-4 |ConfigXMLReader |I| controller loaded: 0.0s, 4 requests, 0 views in file:/C:/projectsASF/ofbiz/applications/commonext/webapp/WEB-INF/controller.xml 2018-09-14 21:34:07,210 |jsse-nio-8443-exec-4 |Log |I| [ProductStoreServices.xml#updateProductStore line 87] parameters.productStoreId=======[9000, 9000] 2018-09-14 21:34:07,210 |jsse-nio-8443-exec-4 |TransactionUtil |W| Calling transaction setRollbackOnly; this stack trace shows where this is happening: java.lang.Exception: Error in simple-method [Update a Product Store [file:/C:/projectsASF/ofbiz/applications/product/minilang/product/store/ProductStoreServices.xml#updateProductStore]]: Erreur pendant la sim ple-method: Entity value not found with name: store Method = updateProductStore, File = file:/C:/projectsASF/ofbiz/applications/product/minilang/product/store/ProductStoreServices.xml, Element = <set-nonpk-fi elds>, Line 91null {noformat} As shown by a log I added, it's due to the duplication of the productStoreId. It's easily fixed by removing an useless hidden field: {code} Index: StoreForms.xml =================================================================== --- StoreForms.xml (revision 1840902) +++ StoreForms.xml (working copy) @@ -43,11 +43,9 @@ header-row-style="header-row" default-table-style="basic-table"> <alt-target use-when="productStore==null" target="createProductStore"/> - <auto-fields-service service-name="updateProductStore" map-name=""/> + <auto-fields-service service-name="updateProductStore"/> <field use-when="productStore!=null" name="productStoreId" tooltip="${uiLabelMap.ProductNotModificationRecreatingProductStore}"><display/></field> - <field name="productStoreId"><hidden/></field> - <field name="primaryStoreGroupId"> <drop-down allow-empty="true"> <entity-options entity-name="ProductStoreGroup" key-field-name="productStoreGroupId" description="${productStoreGroupName} [${productStoreGroupId}]"> {code} But then come another error, the one I already reported. At this stage things get really confused and I guess recent reorganizations or adds are involved, maybe related to common-theme. Here is the log for a normal access to EditProductStore view {noformat} 2018-09-14 21:59:42,262 |jsse-nio-8443-exec-5 |RequestHandler |I| Rendering View [EditProductStore]. Hidden sessionId by default. 2018-09-14 21:59:42,263 |jsse-nio-8443-exec-5 |ServiceDispatcher |T| Sync service [catalog/getUserPreferenceGroup] finished in [1] milliseconds 2018-09-14 21:59:42,269 |jsse-nio-8443-exec-5 |ScreenFactory |I| Got 21 screens in 0.006s from: file:/C:/projectsASF/ofbiz/applications/product/widget/catalog/StoreScreens.xml 2018-09-14 21:59:42,275 |jsse-nio-8443-exec-5 |ScreenFactory |I| Got 16 screens in 0.005s from: file:/C:/projectsASF/ofbiz/applications/product/widget/catalog/CommonScreens.xml 2018-09-14 21:59:42,281 |jsse-nio-8443-exec-5 |ScreenFactory |I| Got 1 screens in 0.005s from: file:/C:/projectsASF/ofbiz/applications/commonext/widget/CommonScreens.xml 2018-09-14 21:59:42,310 |jsse-nio-8443-exec-5 |ServiceDispatcher |T| Sync service [catalog/getLastSystemInfoNote] finished in [7] milliseconds 2018-09-14 21:59:42,407 |jsse-nio-8443-exec-5 |CategoryServices |E| null 2018-09-14 21:59:42,461 |jsse-nio-8443-exec-5 |UtilProperties |I| FieldDescription.ProductStore.managedByLot misses in ProductEntityLabels for locale fr 2018-09-14 21:59:42,461 |jsse-nio-8443-exec-5 |UtilProperties |I| FieldDescription.managedByLot misses in ProductEntityLabels for locale fr 2018-09-14 21:59:42,464 |jsse-nio-8443-exec-5 |UtilProperties |I| FieldDescription.ProductStore.orderDecimalQuantity misses in ProductEntityLabels for locale fr 2018-09-14 21:59:42,464 |jsse-nio-8443-exec-5 |UtilProperties |I| FieldDescription.orderDecimalQuantity misses in ProductEntityLabels for locale fr 2018-09-14 21:59:42,495 |jsse-nio-8443-exec-5 |UtilProperties |I| FieldDescription.ProductStore.allowComment misses in ProductEntityLabels for locale fr 2018-09-14 21:59:42,495 |jsse-nio-8443-exec-5 |UtilProperties |I| FieldDescription.allowComment misses in ProductEntityLabels for locale fr 2018-09-14 21:59:42,506 |jsse-nio-8443-exec-5 |ServerHitBin |I| Visit delegatorName=default, ServerHitBin delegatorName=default 2018-09-14 21:59:42,507 |jsse-nio-8443-exec-5 |ControlServlet |T| [[[EditProductStore(Domain:https://localhost)] Request Done- total:0.25,since last([EditProductStore...):0.25]] {noformat} And the same after updateProductStore which normally should leads to EditProductStore view {noformat} 2018-09-14 21:49:30,185 |jsse-nio-8443-exec-1 |Log |I| [ProductStoreServices.xml#updateProductStore line 87] parameters.productStoreId=======9000 2018-09-14 21:49:30,187 |jsse-nio-8443-exec-1 |ServiceDispatcher |T| Sync service [catalog/updateProductStore] finished in [10] milliseconds 2018-09-14 21:49:30,187 |jsse-nio-8443-exec-1 |RequestHandler |I| Ran Event [service:#updateProductStore] from [request], result is [success] 2018-09-14 21:49:30,188 |jsse-nio-8443-exec-1 |RequestHandler |I| Rendering View [EditProductStore]. Hidden sessionId by default. 2018-09-14 21:49:30,196 |jsse-nio-8443-exec-1 |ScreenFactory |I| Got 21 screens in 0.006s from: file:/C:/projectsASF/ofbiz/applications/product/widget/catalog/StoreScreens.xml 2018-09-14 21:49:30,202 |jsse-nio-8443-exec-1 |ScreenFactory |I| Got 16 screens in 0.005s from: file:/C:/projectsASF/ofbiz/applications/product/widget/catalog/CommonScreens.xml 2018-09-14 21:49:30,206 |jsse-nio-8443-exec-1 |ScreenFactory |I| Got 1 screens in 0.004s from: file:/C:/projectsASF/ofbiz/applications/commonext/widget/CommonScreens.xml 2018-09-14 21:49:30,233 |jsse-nio-8443-exec-1 |ServiceDispatcher |T| Sync service [catalog/getLastSystemInfoNote] finished in [7] milliseconds 2018-09-14 21:49:30,240 |jsse-nio-8443-exec-1 |ScreenFactory |I| Got 27 screens in 0.005s from: file:/C:/projectsASF/ofbiz/framework/common/widget/CommonScreens.xml 2018-09-14 21:49:30,296 |jsse-nio-8443-exec-1 |ScreenFactory |I| Got 26 screens in 0.006s from: file:/C:/projectsASF/ofbiz/themes/common-theme/widget/CommonScreens.xml 2018-09-14 21:49:30,302 |jsse-nio-8443-exec-1 |ScreenFactory |I| Got 8 screens in 0.004s from: file:/C:/projectsASF/ofbiz/plugins/ecommerce/widget/CartScreens.xml 2018-09-14 21:49:30,304 |jsse-nio-8443-exec-1 |FreeMarkerWorker |E| null freemarker.core.InvalidReferenceException: The following has evaluated to null or missing: ==> catalogQuickaddUse [in template "component://ecommerce/template/includes/Header.ftl" at line 108, column 12] {noformat} I have not yet found the exact reason The error you reported bq. org.apache.tomcat.util.digester.Digester error[..] is unrelated and already known: OFBIZ-6993 > Stores can't be modified at catalog/control/updateProductStore > -------------------------------------------------------------- > > Key: OFBIZ-10567 > URL: https://issues.apache.org/jira/browse/OFBIZ-10567 > Project: OFBiz > Issue Type: Bug > Components: product > Affects Versions: Trunk, Release Branch 17.12 > Reporter: Jacques Le Roux > Priority: Major > > The catalogQuickaddUse var is missing when sets from > catalog/control/updateProductStore > The error is > bq. The following has evaluated to null or missing: ==> catalogQuickaddUse > [in template "component://ecommerce/template/includes/Header.ftl" at line > 108, column 12] ---- Tip: If the failing expression is known to legally refer > to something that's sometimes null or missing, either specify a default value > like myOptionalVar!myDefault, or use <#if > myOptionalVar??>when-present<#else>when-missing. (These only cover the last > step of the expression; to cover the whole expression, use parenthesis: > (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack > trace ("~" means nesting-related): - Failed at: #if catalogQuickaddUse [in > template "component://ecommerce/template/includes/Header.ftl" at line 108, > column 7] ---- -- This message was sent by Atlassian JIRA (v7.6.3#76005)