Uploaded image for project: 'Nuxeo ECM Build/Test Environment'
  1. Nuxeo ECM Build/Test Environment
  2. NXBT-3726

Fix IllegalArgumentException when building package

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None

      Description

      The following error occurred when building the Nuxeo packages in parallel:

      [ERROR] Failed to execute goal org.nuxeo.build:ant-assembly-maven-plugin:2.1.6:build (default-build) on project nuxeo-adobe-connector-package: Error occurred while running /home/jenkins/workspace/nuxeo_lts_nuxeo_2021/packages/nuxeo-adobe-connector-package/../src/main/assemble/assembly.xml@122:52
      
      [2023-05-30T12:36:21.483Z] [ERROR] java.lang.IllegalArgumentException: Can not set java.lang.String field org.nuxeo.studio.components.common.mapper.descriptors.FacetDescriptor.name to org.nuxeo.studio.components.common.mapper.descriptors.EventListenerDescriptor, setter=org.nuxeo.studio.components.common.mapper.xmap.XFieldAccessor@69c46ee, value=CompoundDocument
      

      This looks like a concurrency issue, meaning that NXBT-3721 wasn't enough to fix such errors.

      The XMap class has some static field that can explain such errors. One potential fix could be to replace all this static fields by ThreadLocal ones as it appears the execution on a single package is not performed in parallel (TBC).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                kleturc Kevin Leturc
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: