[ https://issues.apache.org/jira/browse/OFBIZ-12211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17310513#comment-17310513 ] ASF subversion and git services commented on OFBIZ-12211: --------------------------------------------------------- Commit 87c03d4e06f343d10e40ac269b5ee465c115546a in ofbiz-framework's branch refs/heads/release18.12 from Jacques Le Roux [ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=87c03d4 ] Fixed: addImageForProduct fails (OFBIZ-12211) The addImageForProduct process is not directly uploading a file but renames it before.So there is a hyphen, and possibly a pair or parenthesis in case of duplicate files, added to the file name. In this commit I have also added the possibility to use underscores and spaces in the original filename > addImageForProduct fails > ------------------------ > > Key: OFBIZ-12211 > URL: https://issues.apache.org/jira/browse/OFBIZ-12211 > Project: OFBiz > Issue Type: Bug > Components: product/catalog > Affects Versions: 18.12.01, Trunk > Reporter: Jacques Le Roux > Assignee: Jacques Le Roux > Priority: Major > > At catalog/control/addImageForProduct you get this error (the R17 branch is not concerned): > The Following Errors Occurred: > Error calling event: org.apache.ofbiz.webapp.event.EventHandlerException: Service invocation error (org.apache.ofbiz.service.ExecutionServiceException: Service [createContentAssoc] Failed (null)) > In log (relevant parts): > {noformat} > 2021-03-28 12:57:56,829 |jsse-nio-8443-exec-9 |UtilProperties |I| ResourceBundle ServiceErrorUiLabels (en) created in 0.05s with 40 properties > 2021-03-28 12:57:56,829 |jsse-nio-8443-exec-9 |ServiceDispatcher |E| Incoming context (in runSync : updateContent) does not match expected requirements > org.apache.ofbiz.service.ServiceValidationException: The following required parameter is missing: [updateContent.contentId] > at org.apache.ofbiz.service.ModelService.validate(ModelService.java:1194) ~[main/:?] > at org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:403) [main/:?] > at org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:240) [main/:?] > at org.apache.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync(GenericDispatcherFactory.java:93) [main/:?] > at org.apache.ofbiz.product.imagemanagement.ImageManagementServices.createContentAndDataResource(ImageManagementServices.java:476) [main/:?] > at org.apache.ofbiz.product.imagemanagement.ImageManagementServices.addMultipleuploadForProduct(ImageManagementServices.java:225) [main/:?] > [...] > 2021-03-28 12:57:56,846 |jsse-nio-8443-exec-9 |ServiceUtil |E| {errorMessage=The following required parameter is missing: [updateContent.contentId], responseMessage=error} > [...] > 2021-03-28 12:57:56,926 |jsse-nio-8443-exec-9 |ImageManagementServices |E| null > org.apache.ofbiz.service.GenericServiceException: Service [createContentAssoc] Failed (null) > at org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:563) ~[main/:?] > at org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:240) ~[main/:?] > at org.apache.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync(GenericDispatcherFactory.java:93) ~[main/:?] > at org.apache.ofbiz.product.imagemanagement.ImageManagementServices.addMultipleuploadForProduct(ImageManagementServices.java:234) [main/:?] > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_202] > [...] > 2021-03-28 12:57:56,927 |jsse-nio-8443-exec-9 |ServiceUtil |E| {errorMessage=Service [createContentAssoc] Failed (null), responseMessage=error} > 2021-03-28 12:57:56,928 |jsse-nio-8443-exec-9 |ServiceDispatcher |E| Error in Service [addMultipleuploadForProduct]: Service [createContentAssoc] Failed (null) > 2021-03-28 12:57:56,928 |jsse-nio-8443-exec-9 |TransactionUtil |I| Transaction rollback only not set, rollback only is already set. > 2021-03-28 12:57:56,928 |jsse-nio-8443-exec-9 |ServiceDispatcher |T| Sync service [catalog/addMultipleuploadForProduct] finished in [8207] milliseconds > 2021-03-28 12:57:56,951 |jsse-nio-8443-exec-9 |ServiceDispatcher |T| [[Sync service failed...- total:0.0,since last(Begin):0.0]] - 'catalog / multipleUploadProductImages' > 2021-03-28 12:57:57,012 |jsse-nio-8443-exec-9 |TransactionUtil |I| Transaction rolled back > 2021-03-28 12:57:57,013 |jsse-nio-8443-exec-9 |TransactionUtil |W| Not committing transaction, status is No Transaction (6) > 2021-03-28 12:57:57,013 |jsse-nio-8443-exec-9 |ServiceEventHandler |E| Service invocation error > org.apache.ofbiz.service.GenericServiceException: Error running Groovy method [uploadProductImages] in Groovy file [component://product/groovyScripts/product/imagemanagement/ImageManagementServices.groovy]: (org.apache.ofbiz.service.Exe > cutionServiceException: Service [createContentAssoc] Failed (null)) > [...] > Caused by: org.codehaus.groovy.runtime.InvokerInvocationException: org.apache.ofbiz.service.ExecutionServiceException: Service [createContentAssoc] Failed (null) > {noformat} -- This message was sent by Atlassian Jira (v8.3.4#803005) |
Free forum by Nabble | Edit this page |