[ https://issues.apache.org/jira/browse/OFBIZ-13225?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17946470#comment-17946470 ]
ASF subversion and git services commented on OFBIZ-13225: --------------------------------------------------------- Commit e81d46e979d64f288b50da2f15c531b18b387cd8 in ofbiz-framework's branch refs/heads/release24.09 from Nicolas Malin [ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=e81d46e979 ] Fixed: ClassCastException on PO Receipt in OFBiz (OFBIZ-13225) When you realize a purchase order receipt the service receiveInventoryProduct return a success list with a message formatted by GString that raise an exception : 'GStringImpl cannot be cast to String'. The service finish as success but the screen behind failed due to this exception. To solve it we force the message as String Thanks to Yashwant Dhakad for raise this issue > ClassCastException on PO Receipt in OFBiz - GStringImpl cannot be cast to > String > -------------------------------------------------------------------------------- > > Key: OFBIZ-13225 > URL: https://issues.apache.org/jira/browse/OFBIZ-13225 > Project: OFBiz > Issue Type: Bug > Components: order > Affects Versions: Upcoming Branch > Reporter: Yashwant Dhakad > Assignee: Nicolas Malin > Priority: Major > Attachments: OFBIZ-13225.patch, POReceiveError.png, POScreenshot.png > > > *Issue Description: > * > When attempting to receive a Purchase Order in OFBiz, we are encountering the > following error: > {code} > java.lang.ClassCastException: class org.codehaus.groovy.runtime.GStringImpl > cannot be cast to class java.lang.String > (org.codehaus.groovy.runtime.GStringImpl is in unnamed module of loader > 'app'; java.lang.String is in module java.base of loader 'bootstrap') > This issue seems related to Groovy GStringImpl being used where a standard > java.lang.String is expected, likely due to Groovy string interpolation being > passed to a strict Java method. > {code} > *Steps to Reproduce:* > Navigate to the PO Receipt module in OFBiz. > Attempt to receive an existing Purchase Order. > The error appears on screen and the receipt process fails. > *Expected Result:* > The Purchase Order should be received without any exceptions, and the > confirmation message should be displayed. > *Actual Result:* > The system throws a ClassCastException during the receipt process, halting > further processing. -- This message was sent by Atlassian Jira (v8.20.10#820010)