You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2026/09/07 12:59:00 UTC
[jira] [Commented] (OFBIZ-13564) quickShipEntireOrder() calls undefined errorMessage() instead of error(), causing MissingMethodException
[ https://issues.apache.org/jira/browse/OFBIZ-13564?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18112341#comment-18112341 ]
ASF subversion and git services commented on OFBIZ-13564:
---------------------------------------------------------
Commit 610930d7cb5232aae16461a3f5e96af538e2c9f1 in ofbiz-framework's branch refs/heads/release24.09 from Mridul Pathak
[ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=610930d7cb ]
Fixed: quickShipEntireOrder calls undefined errorMessage() instead of error() (OFBIZ-13564)
quickShipEntireOrder() called a non-existent errorMessage() method instead of the GroovyBaseScript-provided error(), throwing groovy.lang.MissingMethodException whenever productStore.explodeOrderItems == 'Y' instead of returning the intended service error.
> quickShipEntireOrder() calls undefined errorMessage() instead of error(), causing MissingMethodException
> --------------------------------------------------------------------------------------------------------
>
> Key: OFBIZ-13564
> URL: https://issues.apache.org/jira/browse/OFBIZ-13564
> Project: OFBiz
> Issue Type: Bug
> Components: product
> Affects Versions: Upcoming Branch, 24.09.07
> Reporter: Mridul Pathak
> Assignee: Mridul Pathak
> Priority: Major
>
> In {{ShipmentServices.groovy}}, method {{quickShipEntireOrder()}} (~line 779) calls a non-existent {{errorMessage()}} method instead of {{error()}}:
> {code:groovy}
> return errorMessage(UtilProperties.getMessage('ProductUiLabels',
> 'FacilityShipmentNotCreatedForExplodesOrderItems', [productStore: productStore], locale))
> {code}
> Only {{error()}} and {{success()}} are defined in {{GroovyBaseScript.groovy}}. Whenever {{productStore.explodeOrderItems == 'Y'}}, this throws {{groovy.lang.MissingMethodException}} instead of returning the intended error.
> Fix: Change {{errorMessage(}} to {{error(}} at this call site.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)