You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Jacques Le Roux (Jira)" <ji...@apache.org> on 2021/03/28 11:07:00 UTC

[jira] [Created] (OFBIZ-12211) addImageForProduct fails

Jacques Le Roux created OFBIZ-12211:
---------------------------------------

             Summary: addImageForProduct fails
                 Key: OFBIZ-12211
                 URL: https://issues.apache.org/jira/browse/OFBIZ-12211
             Project: OFBiz
          Issue Type: Bug
            Reporter: Jacques Le Roux


At catalog/control/addImageForProduct you get  this error:

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)