Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-12211

addImageForProduct fails

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Trunk, 18.12.01
    • 17.12.07, 18.12.01
    • product/catalog
    • None

    Description

      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):

      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)
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jleroux Jacques Le Roux
            jleroux Jacques Le Roux
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment