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

Error at EditWorkEffort for reason field

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Trunk
    • Fix Version/s: 14.12.01, 16.11.01
    • Component/s: workeffort
    • Labels:
      None

      Description

      This error occurs when editing a workEffort at workeffort/control/EditWorkEffort:

      Error rendering included form named [EditWorkEffort] at location [component://workeffort/widget/WorkEffortForms.xml]: java.lang.IllegalArgumentException: The field name (or key) [reason] is not valid for entity [WorkEffort].java.lang.IllegalArgumentException: The field name (or key) [reason] is not valid for entity [WorkEffort].

      1. OFBIZ-5944.patch
        1.0 kB
        Christian Carlow
      2. widget-OFBIZ-5944.patch
        1 kB
        Jacopo Cappellato

        Issue Links

          Activity

          Hide
          deepak.dixit Deepak Dixit added a comment - - edited

          Hi Christian,

          This is not the correct fix of problem that you have reported. Actual cause is
          <auto-fields-service service-name="updateWorkEffort"/> in component://workeffort/widget/WorkEffortForms.xml#EditWorkEffort form.

          And as per service definition "reason" if field of updateWorkEffort service. So here form widget try to get the "reason" from GenericValue workEffort and hence reason is not a valid field of WorkEffort entity so its throwing IllegalArgumentException.

          Show
          deepak.dixit Deepak Dixit added a comment - - edited Hi Christian, This is not the correct fix of problem that you have reported. Actual cause is <auto-fields-service service-name="updateWorkEffort"/> in component://workeffort/widget/WorkEffortForms.xml#EditWorkEffort form. And as per service definition "reason" if field of updateWorkEffort service. So here form widget try to get the "reason" from GenericValue workEffort and hence reason is not a valid field of WorkEffort entity so its throwing IllegalArgumentException.
          Hide
          jacopoc Jacopo Cappellato added a comment -

          Please try the attached patch that should fix the issue.

          Show
          jacopoc Jacopo Cappellato added a comment - Please try the attached patch that should fix the issue.
          Hide
          ofbizzer Christian Carlow added a comment -

          Works for me. Thanks Deepak and Jacopo.

          Show
          ofbizzer Christian Carlow added a comment - Works for me. Thanks Deepak and Jacopo.
          Hide
          deepak.dixit Deepak Dixit added a comment -

          Its working fine for me as well.

          Show
          deepak.dixit Deepak Dixit added a comment - Its working fine for me as well.
          Hide
          jacopoc Jacopo Cappellato added a comment -

          Fixed in rev. 1649742 (trunk) and 1649747 (14.12 release branch)

          Show
          jacopoc Jacopo Cappellato added a comment - Fixed in rev. 1649742 (trunk) and 1649747 (14.12 release branch)
          Hide
          deepak.dixit Deepak Dixit added a comment -

          Thanks Jacopo.

          Show
          deepak.dixit Deepak Dixit added a comment - Thanks Jacopo.
          Hide
          diveshdut Divesh Dutta added a comment -

          I guess this issue is similar to https://issues.apache.org/jira/browse/OFBIZ-5942

          So this OFBIZ-5942 should also be resolved now after this fix.

          Show
          diveshdut Divesh Dutta added a comment - I guess this issue is similar to https://issues.apache.org/jira/browse/OFBIZ-5942 So this OFBIZ-5942 should also be resolved now after this fix.

            People

            • Assignee:
              jacopoc Jacopo Cappellato
              Reporter:
              ofbizzer Christian Carlow
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development